/* enCantabria · Oportunidades */
.ebo, .ebo-home {
	--ebo-ink: #14241C;
	--ebo-green: #1F4D3A;
	--ebo-orange: #E8622C;
	--ebo-orange-d: #C94E1D;
	--ebo-cream: #F7F3EA;
	--ebo-line: #E4DED1;
	--ebo-muted: #5E6B63;
	--ebo-ok: #1E7B4C;
	--ebo-err: #B3261E;
	--ebo-r: 16px;
}
.ebo { background: #fff; color: var(--ebo-ink); padding-bottom: 64px; }
.ebo *, .ebo-home * { box-sizing: border-box; }
.ebo-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ebo-narrow { max-width: 760px; padding-top: 40px; }
.ebo a { color: inherit; }
.ebo-h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 4px 0 24px; color: var(--ebo-ink); }
.ebo-h2, .ebo-sec h2 { font-size: 22px; line-height: 1.25; margin: 0 0 14px; color: var(--ebo-ink); }
.ebo-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F3B48F; margin: 0 0 10px; }
.ebo-eyebrow--dark { color: var(--ebo-orange); }
.ebo-fine { font-size: 13px; color: var(--ebo-muted); }
.ebo-center { text-align: center; }

/* Botones, precio, chips */
.ebo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--ebo-orange); color: #fff !important; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: background .15s, transform .15s; }
.ebo-btn:hover { background: var(--ebo-orange-d); }
.ebo-btn:active { transform: translateY(1px); }
.ebo-btn--ink { background: var(--ebo-ink); }
.ebo-btn--ink:hover { background: #000; }
.ebo-btn--block { display: flex; width: 100%; }
.ebo-precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ebo-precio b { font-size: 22px; font-weight: 800; color: var(--ebo-ink); }
.ebo-precio del { color: var(--ebo-muted); font-size: 15px; }
.ebo-precio--big b { font-size: 38px; letter-spacing: -.02em; }
.ebo-precio--big del { font-size: 18px; }
.ebo-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #FCE6DB; color: var(--ebo-orange-d); font-weight: 800; font-size: 14px; align-self: center; }
.ebo-dto { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 10px; background: var(--ebo-orange); color: #fff; font-weight: 800; font-size: 15px; line-height: 1; }
.ebo-dto--big { top: 16px; left: 16px; font-size: 22px; padding: 8px 14px; }
.ebo-tipo { position: absolute; bottom: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 36, 28, .82); color: #fff; font-size: 12px; font-weight: 600; }
.ebo-bar { display: block; height: 8px; border-radius: 999px; background: #ECE7DC; overflow: hidden; }
.ebo-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ebo-orange), #F29A3A); transition: width .6s ease; }

/* Hero del listado */
.ebo-hero { background: var(--ebo-ink) url(../img/hero-ondas.svg) no-repeat right bottom / auto 100%; color: #fff; padding: 48px 0 56px; margin-bottom: 32px; }
.ebo-hero__title { color: #fff; font-size: clamp(30px, 5vw, 50px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 12px; max-width: 760px; }
.ebo-hero__title span { color: #F3B48F; }
.ebo-hero__sub { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 620px; margin: 0 0 32px; }

/* Oferta del día */
.ebo-dia { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; color: var(--ebo-ink) !important; border-radius: 22px; overflow: hidden; text-decoration: none !important; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.ebo-dia__img { position: relative; min-height: 340px; display: block; }
.ebo-dia__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ebo-dia__body { display: flex; flex-direction: column; gap: 12px; padding: 28px 30px; min-width: 0; }
.ebo-dia__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ebo-orange); }
.ebo-dia__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; }
.ebo-dia__neg { color: var(--ebo-muted); font-size: 15px; }
.ebo-dia__count { font-size: 14px; color: var(--ebo-muted); }
.ebo-dia__count b { color: var(--ebo-ink); }
.ebo-dia__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 6px; }

/* Cuenta atrás */
.ebo-cd { display: flex; gap: 8px; }
.ebo-cd span { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 8px 6px; border-radius: 12px; background: var(--ebo-cream); }
.ebo-cd b { font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ebo-ink); }
.ebo-cd small { margin-top: 4px; font-size: 11px; color: var(--ebo-muted); text-transform: uppercase; letter-spacing: .06em; }
.ebo-cd.is-fin b { color: var(--ebo-muted); }

/* Filtros */
.ebo-filtros { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 6px; margin: 0 0 22px; scrollbar-width: thin; }
.ebo-filtros button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--ebo-line); border-radius: 999px; background: #fff; color: var(--ebo-ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ebo-filtros button span { font-size: 12px; color: var(--ebo-muted); }
.ebo-filtros button.is-on { background: var(--ebo-ink); border-color: var(--ebo-ink); color: #fff; }
.ebo-filtros button.is-on span { color: rgba(255, 255, 255, .7); }

/* Tarjetas */
.ebo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.ebo-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ebo-line); border-radius: var(--ebo-r); background: #fff; overflow: hidden; color: var(--ebo-ink) !important; text-decoration: none !important; transition: transform .18s, box-shadow .18s; }
.ebo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 36, 28, .12); }
.ebo-card[hidden] { display: none; }
.ebo-card__img { position: relative; display: block; aspect-ratio: 4 / 3; }
.ebo-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ebo-card__body { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 16px; flex: 1; }
.ebo-card__neg { font-size: 13px; color: var(--ebo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebo-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ebo-card__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 13px; color: var(--ebo-muted); }
.ebo-card__meta b { color: var(--ebo-ink); }
.ebo-left { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ebo-orange-d); }
.ebo-card.is-agotada .ebo-card__img img { filter: grayscale(1) opacity(.7); }
.ebo-card.is-agotada .ebo-bar i { background: var(--ebo-muted); }

/* Vacío, próximamente, CTA negocios */
.ebo-vacio { text-align: center; padding: 48px 20px; border: 1px dashed var(--ebo-line); border-radius: var(--ebo-r); background: var(--ebo-cream); color: var(--ebo-muted); }
.ebo-vacio__t { font-size: 20px; font-weight: 700; color: var(--ebo-ink); margin: 0 0 6px; }
.ebo-prox { margin-top: 48px; }
.ebo-prox__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ebo-prox__item { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--ebo-line); border-radius: 14px; text-decoration: none !important; color: var(--ebo-ink) !important; min-width: 0; }
.ebo-prox__item > span:last-child { min-width: 0; }
.ebo-prox__item b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebo-prox__item small { color: var(--ebo-muted); font-size: 13px; }
.ebo-prox__img { position: relative; flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.ebo-prox__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); }
.ebo-negocios { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding: 28px 30px; border-radius: 20px; background: var(--ebo-cream); }
.ebo-negocios p { margin: 0; color: var(--ebo-muted); }
.ebo-negocios__t { font-size: 20px; font-weight: 800; color: var(--ebo-ink) !important; margin-bottom: 4px !important; }

/* Landing */
.ebo-bread { font-size: 14px; color: var(--ebo-muted); padding: 22px 0 16px; }
.ebo-bread a { text-decoration: none; color: var(--ebo-muted); }
.ebo-bread a:hover { color: var(--ebo-ink); text-decoration: underline; }
.ebo-l { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; align-items: start; }
.ebo-l__main { min-width: 0; }
.ebo-gal__main { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; }
.ebo-gal__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ebo-gal__th { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.ebo-gal__th button { flex: 0 0 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.ebo-gal__th button.is-on { border-color: var(--ebo-orange); opacity: 1; }
.ebo-gal__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebo-sec { padding: 30px 0; border-bottom: 1px solid var(--ebo-line); }
.ebo-sec:last-child { border-bottom: 0; }
.ebo-list { margin: 0; padding: 0; list-style: none; }
.ebo-list li { position: relative; padding: 5px 0 5px 28px; line-height: 1.5; }
.ebo-list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px; border-left: 2.5px solid var(--ebo-green); border-bottom: 2.5px solid var(--ebo-green); transform: rotate(-45deg); }
.ebo-prose { margin-top: 14px; line-height: 1.65; }
.ebo-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: ebo; }
.ebo-how li { counter-increment: ebo; padding: 16px; border-radius: 14px; background: var(--ebo-cream); }
.ebo-how li::before { content: counter(ebo); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--ebo-ink); color: #fff; font-weight: 800; font-size: 14px; }
.ebo-how b { display: block; margin-bottom: 4px; }
.ebo-how span { font-size: 14px; color: var(--ebo-muted); line-height: 1.45; }
.ebo-neg { display: flex; gap: 16px; align-items: flex-start; }
.ebo-neg__logo { flex: 0 0 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; color: #fff; font-size: 26px; font-weight: 800; }
.ebo-neg__logo img { width: 100%; height: 100%; object-fit: cover; }
.ebo-neg__name { font-size: 18px; font-weight: 800; margin: 0 0 2px; }
.ebo-neg__meta { margin: 0 0 2px; color: var(--ebo-muted); font-size: 15px; }
.ebo-neg__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; }
.ebo-neg__links a { color: var(--ebo-green); font-weight: 700; font-size: 15px; }
.ebo-faq details { border-bottom: 1px solid var(--ebo-line); }
.ebo-faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 700; }
.ebo-faq summary::-webkit-details-marker { display: none; }
.ebo-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; font-weight: 400; color: var(--ebo-muted); }
.ebo-faq details[open] summary::after { content: "−"; }
.ebo-faq p { margin: 0 0 16px; color: var(--ebo-muted); line-height: 1.55; }

/* Caja de compra */
.ebo-buy { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--ebo-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(20, 36, 28, .10); }
.admin-bar .ebo-buy { top: 132px; }
.ebo-buy__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ebo-orange); }
.ebo-buy__title { font-size: 26px; line-height: 1.2; margin: 0; color: var(--ebo-ink); }
.ebo-buy__sub { margin: 0; color: var(--ebo-muted); }
.ebo-buy__fine { margin: 0; font-size: 13px; color: var(--ebo-muted); }
.ebo-buy__count { margin: -4px 0 0; font-size: 14px; color: var(--ebo-muted); }
.ebo-buy__count b { color: var(--ebo-ink); }
.ebo-buy__label { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--ebo-muted); }
.ebo-buy .ebo-cd span { flex: 1; }
.ebo-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ebo-form .ebo-btn { width: 100%; min-height: 54px; font-size: 17px; }
.ebo-qty { display: flex; align-items: center; gap: 8px; }
.ebo-qty button { width: 42px; height: 42px; border: 1px solid var(--ebo-line); border-radius: 50%; background: #fff; color: var(--ebo-ink); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.ebo-qty button:hover { border-color: var(--ebo-ink); }
.ebo-qty input { width: 60px; height: 42px; text-align: center; border: 1px solid var(--ebo-line); border-radius: 10px; font-size: 17px; font-weight: 700; -moz-appearance: textfield; padding: 0; }
.ebo-qty input::-webkit-outer-spin-button, .ebo-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ebo-qty small { color: var(--ebo-muted); margin-left: 4px; }
.ebo-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FBE9E7; color: var(--ebo-err); font-size: 14px; }
.ebo-soldout { margin: 4px 0 0; padding: 14px; border-radius: 12px; background: var(--ebo-cream); font-size: 15px; }
.ebo-soldout a { color: var(--ebo-green); font-weight: 700; }

/* Cupón */
.ebo-cupon { text-align: center; padding: 32px 26px; border: 2px dashed var(--ebo-line); border-radius: 24px; background: #fff; }
.ebo-cupon__t { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.ebo-cupon__neg { color: var(--ebo-muted); margin: 0 0 20px; }
.ebo-qr { display: inline-block; padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--ebo-line); }
.ebo-qr img, .ebo-qr canvas { display: block; width: 220px; height: 220px; }
.ebo-cupon__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 28px; font-weight: 800; letter-spacing: .08em; margin: 16px 0 6px; }
.ebo-cupon__estado { display: inline-block; padding: 10px 18px; border-radius: 12px; font-weight: 800; background: var(--ebo-cream); }
.ebo-cupon__estado--redeemed { background: #E3F2EA; color: var(--ebo-ok); }
.ebo-cupon__estado--void { background: #FBE9E7; color: var(--ebo-err); }
.ebo-cupon__fine { color: var(--ebo-muted); font-size: 14px; margin: 6px 0; }
.ebo-cupon__cond { text-align: left; max-width: 480px; margin: 16px auto; font-size: 14px; }
.ebo-cupon .ebo-btn { margin-top: 14px; }

/* Comercio / canje */
.ebo-msg { padding: 12px 16px; border-radius: 12px; font-weight: 600; margin: 0 0 14px; }
.ebo-msg--ok { background: #E3F2EA; color: var(--ebo-ok); }
.ebo-msg--err { background: #FBE9E7; color: var(--ebo-err); }
.ebo-msg--big { font-size: 22px; text-align: center; padding: 22px; }
.ebo-confirm { padding: 18px; border: 1px solid var(--ebo-line); border-radius: 16px; background: var(--ebo-cream); margin-bottom: 14px; }
.ebo-confirm form { margin-top: 12px; }
.ebo-codeform { display: flex; gap: 10px; flex-wrap: wrap; }
.ebo-codeform input[type="text"] { flex: 1 1 200px; min-height: 48px; padding: 0 14px; border: 1px solid var(--ebo-line); border-radius: 12px; font-size: 18px; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .05em; }
.ebo-table-wrap { overflow-x: auto; border: 1px solid var(--ebo-line); border-radius: 14px; }
.ebo-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.ebo-table th, .ebo-table td { padding: 10px 12px; border-bottom: 1px solid var(--ebo-line); text-align: left; white-space: nowrap; }
.ebo-table th { background: var(--ebo-cream); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ebo-muted); }
.ebo-table tr:last-child td { border-bottom: 0; }

/* Bloque de la home (va con las clases del tema) */
.ebo-home .ebo-grid { margin-top: 8px; }

/* Responsive */
@media (max-width: 1024px) {
	.ebo-l { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
	.ebo-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.ebo-l { display: flex; flex-direction: column; align-items: stretch; }
	.ebo-buy { position: static; order: -1; box-shadow: none; padding: 20px; }
	.ebo-l__main { display: contents; }
	.ebo-gal { order: -2; }
	.ebo-buy { margin-top: 4px; }
	.ebo-dia { grid-template-columns: 1fr; }
	.ebo-dia__img { min-height: 0; aspect-ratio: 16 / 9; }
	.ebo-dia__body { padding: 20px; }
}
@media (max-width: 600px) {
	.ebo-wrap { padding-left: 16px; padding-right: 16px; }
	.ebo-hero { padding: 32px 0 36px; background-image: none; }
	.ebo-dia__foot .ebo-cd { width: 100%; }
	.ebo-dia__foot .ebo-btn { width: 100%; }
	.ebo-hero__sub { font-size: 16px; }
	.ebo-precio--big b { font-size: 32px; }
	.ebo-cd { gap: 6px; }
	.ebo-cd span { min-width: 0; flex: 1; }
	.ebo-cd b { font-size: 20px; }
	.ebo-how { grid-template-columns: 1fr; gap: 8px; }
	.ebo-how li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 12px 14px; }
	.ebo-how li::before { grid-row: span 2; margin: 0; }
	.ebo-negocios { padding: 22px; }
	.ebo-negocios .ebo-btn { width: 100%; }
	.ebo-cupon { padding: 24px 16px; }
	.ebo-cupon__code { font-size: 22px; }
}

/* Impresión del cupón */
@media print {
	body * { visibility: hidden; }
	.ebo-cupon, .ebo-cupon * { visibility: visible; }
	.ebo-cupon { position: absolute; left: 0; top: 0; width: 100%; border-color: #999; }
	.ebo-noprint { display: none !important; }
}
