/* Beneficios: buscador y detalle. Mobile first; usa los colores y tipografías del equipo (variables --cdh-*). */
.cdh-bn, .cdh-bnd {
	--p: var(--cdh-primary, #d71920);
	--dk: var(--cdh-dark, #141414);
	--mu: var(--cdh-muted, #6b6b72);
	--bg: var(--cdh-bg, #f6f5f2);
	--ln: #e6e3dd;
	--disp: var(--cdh-font-display, 'Barlow Condensed', sans-serif);
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 16px 48px;
	box-sizing: border-box;
	color: var(--dk);
}
.cdh-bn *, .cdh-bnd * { box-sizing: border-box; }
.cdh-bn a, .cdh-bnd a { text-decoration: none; }

/* ---------- Buscador ---------- */
.cdh-bn__head { padding: 18px 0 10px; }
.cdh-bn__eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--p); }
.cdh-bn__head h2 { margin: 4px 0 8px; font-family: var(--disp); font-style: var(--cdh-display-style, italic); font-weight: var(--cdh-display-weight, 800); text-transform: uppercase; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1; }
.cdh-bn__head p { margin: 0; max-width: 62ch; color: var(--mu); line-height: 1.55; }

.cdh-bn__filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 18px 0 10px; padding: 16px; background: #fff; border: 1px solid var(--ln); border-radius: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.04); }
.cdh-bn__f { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.cdh-bn__f > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); }
.cdh-bn__f input[type="search"], .cdh-bn__f select {
	width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #d4d0c8; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--dk);
}
.cdh-bn__f select:disabled { background: #f3f1ec; color: #9a968e; }
.cdh-bn__f input:focus, .cdh-bn__f select:focus { outline: 2px solid var(--p); outline-offset: 1px; }

.cdh-bn__seg { display: inline-flex; border: 1px solid #d4d0c8; border-radius: 12px; overflow: hidden; min-height: 46px; background: #fff; }
.cdh-bn__seg label { flex: 1; margin: 0; cursor: pointer; display: flex; }
.cdh-bn__seg input { position: absolute; opacity: 0; pointer-events: none; }
.cdh-bn__seg b { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s; }
.cdh-bn__seg input:checked + b { background: var(--dk); color: #fff; }
.cdh-bn__seg input:focus-visible + b { outline: 2px solid var(--p); outline-offset: -3px; }

.cdh-bn__clear { align-self: end; min-height: 46px; padding: 0 18px; border: 1px solid var(--dk); border-radius: 12px; background: transparent; color: var(--dk); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.cdh-bn__clear:hover { background: var(--dk); color: #fff; }
.cdh-bn__count { margin: 14px 2px 12px; font-size: 14px; color: var(--mu); font-weight: 600; min-height: 20px; }

.cdh-bn__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cdh-bn__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ln); border-radius: 20px; overflow: hidden; color: inherit; box-shadow: 0 8px 22px rgba(0,0,0,.05); transition: transform .18s, box-shadow .18s; }
.cdh-bn__card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.cdh-bn__card[hidden] { display: none; }
.cdh-bn__media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--p), var(--dk)) center / cover no-repeat; }
.cdh-bn__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 45%); }
.cdh-bn__brand, .cdh-bnd__brand { position: absolute; z-index: 2; left: 12px; top: 12px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.cdh-bn__brand { left: 14px; top: 14px; width: 108px; height: 108px; padding: 8px; border-radius: 22px; }
.cdh-bn__brand img { --cdh-logo-scale: 1; display: block; max-width: calc(92px * (0.7 + 0.3 * var(--cdh-logo-scale))); max-height: calc(92px * (0.7 + 0.3 * var(--cdh-logo-scale))); object-fit: contain; }
.cdh-bn__brand--text, .cdh-bnd__brand--text { width: auto; height: auto; max-width: 70%; padding: 8px 12px; font-weight: 800; font-size: 13px; line-height: 1.1; text-align: center; }
.cdh-bn__tags, .cdh-bnd__tags { position: absolute; z-index: 2; right: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.cdh-bn__tag { font-style: normal; display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(20,20,20,.88); color: #fff; backdrop-filter: blur(4px); }
.cdh-bn__tag--premium { background: #f5b301; color: #1a1300; }
.cdh-bn__tag--gratuito { background: #1b8a5a; color: #fff; }
.cdh-bn__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; flex: 1; }
.cdh-bn__rubro { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
.cdh-bn__marca { font-family: var(--disp); font-style: var(--cdh-display-style, italic); font-weight: var(--cdh-display-weight, 800); text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.cdh-bn__titulo { color: var(--p); font-weight: 800; font-size: 17px; line-height: 1.25; }
.cdh-bn__meta { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; font-size: 13px; color: var(--mu); }
.cdh-bn__state { align-self: flex-start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #eee; color: #555; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cdh-bn__empty { margin: 20px 0; padding: 30px 20px; text-align: center; background: #fff; border: 1px dashed #cfcac0; border-radius: 18px; color: var(--mu); }
.cdh-bn__empty[hidden] { display: none; }
.cdh-bn__empty strong { display: block; color: var(--dk); font-size: 18px; margin-bottom: 6px; }
.cdh-bn__morewrap { text-align: center; margin-top: 24px; }
.cdh-bn__more { min-height: 48px; padding: 0 34px; border: 0; border-radius: 999px; background: var(--dk); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.cdh-bn__more[hidden] { display: none; }
.cdh-bn__more:hover { background: var(--p); }

@media (min-width: 640px) {
	.cdh-bn__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cdh-bn__f--search, .cdh-bn__f--vig, .cdh-bn__filters > .cdh-bn__clear { grid-column: 1 / -1; }
	.cdh-bn__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
	.cdh-bn__brand { width: 136px; height: 136px; padding: 10px; border-radius: 26px; }
	.cdh-bn__brand img { max-width: calc(116px * (0.7 + 0.3 * var(--cdh-logo-scale))); max-height: calc(116px * (0.7 + 0.3 * var(--cdh-logo-scale))); }
	/* Fila 1: buscador largo + rubro a la derecha. Fila 2: provincia, localidad, días y vigencia. Fila 3: limpiar filtros. */
	.cdh-bn__filters { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
	.cdh-bn__f--search { grid-column: span 9; }
	.cdh-bn__f--rubro { grid-column: span 3; }
	.cdh-bn__f--prov, .cdh-bn__f--loc, .cdh-bn__f--dia, .cdh-bn__f--vig { grid-column: span 3; }
	.cdh-bn__filters > .cdh-bn__clear { grid-column: 1 / -1; justify-self: start; min-width: 200px; }
	.cdh-bn__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* aclaración para los miembros gratuitos: lo que tendría un premium */
.cdh-bn__plus { margin-top: -2px; font-size: 12px; font-weight: 700; line-height: 1.25; color: var(--p); }

/* La página del buscador va sin la caja blanca que el tema pone alrededor del contenido */
body.cdh-bn-page .entry--page,
.entry--page:has(.cdh-bn),
.entry--page:has(.cdh-bnd) { background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 0; }

/* ---------- Detalle ---------- */
.cdh-bnd { max-width: 900px; }
.cdh-bnd__back { display: inline-flex; align-items: center; gap: 8px; margin: 14px 2px; font-weight: 700; color: var(--dk); }
.cdh-bnd__back:hover { color: var(--p); }
.cdh-bnd__card { background: #fff; border: 1px solid var(--ln); border-radius: 24px; overflow: hidden; box-shadow: 0 14px 36px rgba(0,0,0,.08); }
.cdh-bnd__hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--p), var(--dk)) center / cover no-repeat; }
.cdh-bnd__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 38%, rgba(0,0,0,.78) 100%); }
.cdh-bnd__brand { left: 16px; top: 16px; width: 132px; height: 132px; padding: 10px; border-radius: 26px; }
.cdh-bnd__brand img { --cdh-logo-scale: 1; display: block; max-width: calc(112px * (0.7 + 0.3 * var(--cdh-logo-scale))); max-height: calc(112px * (0.7 + 0.3 * var(--cdh-logo-scale))); object-fit: contain; }
.cdh-bnd__tags { right: 16px; top: 16px; }
.cdh-bnd__herotext { position: relative; z-index: 2; padding: 0 20px 22px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.cdh-bnd__rubro { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.cdh-bnd__herotext h1 { margin: 0; color: #fff; font-family: var(--disp); font-style: var(--cdh-display-style, italic); font-weight: var(--cdh-display-weight, 800); text-transform: uppercase; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1; }
.cdh-bnd__headline { font-size: clamp(1.15rem, 4.5vw, 1.6rem); font-weight: 800; line-height: 1.2; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.cdh-bnd__body { padding: 22px 20px 26px; }
.cdh-bnd__note { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: #eef6ff; color: #134a8a; font-size: 14px; line-height: 1.45; }
.cdh-bnd__note a { color: inherit; font-weight: 800; text-decoration: underline; }
.cdh-bnd__note--warn { background: #fff4e0; color: #8a5200; }
.cdh-bnd__desc { font-size: 16px; line-height: 1.65; color: #2a2a2a; margin-bottom: 14px; }
.cdh-bnd__desc > :first-child { margin-top: 0; }
.cdh-bnd__desc > :last-child { margin-bottom: 0; }
.cdh-bnd__chips { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cdh-bnd__chips li { padding: 8px 14px; border: 1px solid #d4d0c8; border-radius: 999px; font-size: 14px; font-weight: 700; background: #faf9f6; }
.cdh-bnd__sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ln); }
.cdh-bnd__sec h3 { margin: 0 0 8px; font-family: var(--disp); font-style: var(--cdh-display-style, italic); font-weight: var(--cdh-display-weight, 800); text-transform: uppercase; font-size: 20px; }
.cdh-bnd__sec p { margin: 0; line-height: 1.55; }
.cdh-bnd__where { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; line-height: 1.5; }
.cdh-bnd__where a { color: var(--p); font-weight: 700; }
.cdh-bnd__hint { margin-top: 12px !important; font-size: 13px; color: var(--mu); }
.cdh-bnd__hint a { color: var(--p); font-weight: 700; }
.cdh-bnd__terms summary { cursor: pointer; list-style: none; font-family: var(--disp); font-style: var(--cdh-display-style, italic); font-weight: var(--cdh-display-weight, 800); text-transform: uppercase; font-size: 20px; display: flex; justify-content: space-between; align-items: center; }
.cdh-bnd__terms summary::-webkit-details-marker { display: none; }
.cdh-bnd__terms summary::after { content: "+"; font-size: 26px; color: var(--p); transition: transform .2s; }
.cdh-bnd__terms[open] summary::after { transform: rotate(45deg); }
.cdh-bnd__terms div { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #444; }
.cdh-bnd__terms p { margin: 0 0 10px; }
@media (min-width: 720px) {
	.cdh-bnd__brand { left: 24px; top: 24px; width: 184px; height: 184px; padding: 14px; border-radius: 32px; }
	.cdh-bnd__brand img { max-width: calc(156px * (0.7 + 0.3 * var(--cdh-logo-scale))); max-height: calc(156px * (0.7 + 0.3 * var(--cdh-logo-scale))); }
	.cdh-bnd__tags { right: 24px; top: 24px; }
	.cdh-bnd__hero { min-height: 440px; }
	.cdh-bnd__body { padding: 28px 32px 34px; }
	.cdh-bnd__herotext { padding: 0 32px 30px; }
}


/* ---------- Promociones del día (home) ---------- */
.cdh-pd {
	--p: var(--cdh-primary, #d71920);
	--dk: var(--cdh-dark, #141414);
	--mu: var(--cdh-muted, #6b6b72);
	--ln: #e6e3dd;
	--disp: var(--cdh-font-display, 'Barlow Condensed', sans-serif);
	position: relative;
	color: var(--dk);
}
.cdh-pd *, .cdh-pd *::before, .cdh-pd *::after { box-sizing: border-box; }
.cdh-pd a { text-decoration: none; }
.cdh-pd__track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 2px 16px; margin: 0 -2px; }
.cdh-pd__track::-webkit-scrollbar { display: none; }
.cdh-pd__card { flex: 0 0 76%; min-width: 0; scroll-snap-align: start; }
.cdh-pd .cdh-bn__media { aspect-ratio: 16 / 10; }
.cdh-pd .cdh-bn__brand { left: 10px; top: 10px; width: 76px; height: 76px; padding: 6px; border-radius: 16px; }
.cdh-pd .cdh-bn__brand img { max-width: calc(62px * (0.7 + 0.3 * var(--cdh-logo-scale))); max-height: calc(62px * (0.7 + 0.3 * var(--cdh-logo-scale))); }
.cdh-pd .cdh-bn__brand--text { width: auto; height: auto; padding: 6px 10px; font-size: 12px; }
.cdh-pd .cdh-bn__tags { right: 10px; top: 10px; }
.cdh-pd .cdh-bn__tag { padding: 3px 9px; font-size: 10px; }
.cdh-pd .cdh-bn__body { padding: 12px 14px 15px; gap: 3px; }
.cdh-pd .cdh-bn__rubro { font-size: 10px; }
.cdh-pd .cdh-bn__marca { font-size: 19px; }
.cdh-pd .cdh-bn__titulo { font-size: 14px; line-height: 1.25; }
.cdh-pd__nav { display: none; }
@media (min-width: 640px) {
	.cdh-pd__card { flex-basis: calc((100% - 14px) / 2); }
}
@media (min-width: 980px) {
	.cdh-pd__card { flex-basis: calc((100% - 42px) / 4); }
	.cdh-pd__nav { position: absolute; top: calc(50% - 22px); z-index: 5; width: 42px; height: 42px; padding: 0 0 4px; border: 0; border-radius: 50%; background: #fff; color: var(--dk); font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.22); transition: background .15s, color .15s; }
	.cdh-pd__nav[hidden] { display: none; }
	.cdh-pd__nav:hover { background: var(--p); color: #fff; }
	.cdh-pd__nav--prev { left: -16px; }
	.cdh-pd__nav--next { right: -16px; }
}

/* Promociones del día: al pasar el mouse la tarjeta sube un poco, sin sombras */
.cdh-pd__track { padding: 8px 2px 6px; }
.cdh-pd .cdh-bn__card,
.cdh-pd .cdh-bn__card:hover { box-shadow: none; }
.cdh-pd .cdh-bn__card:hover { transform: translateY(-4px); }


/* ---------- Promociones del día: tarjeta partida (logo blanco | color de la marca) ---------- */
.cdh-pd__card.cdh-pc { --pc1: var(--cdh-primary, #d71920); --pc2: color-mix(in srgb, var(--pc1) 66%, #000); --pcfg: #fff; flex: 0 0 88%; display: flex; align-items: stretch; min-height: 138px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: none; color: var(--pcfg, #fff); transition: transform .2s; scroll-snap-align: start; }
.cdh-pd__card.cdh-pc:hover { transform: translateY(-4px); box-shadow: none; }
.cdh-pc__logo { flex: 0 0 46%; display: flex; align-items: center; justify-content: center; padding: 10px; background: #fff; }
.cdh-pc__logo img { display: block; max-width: calc(100% * (0.8 + 0.2 * var(--cdh-logo-scale, 1))); max-height: calc(118px * (0.78 + 0.22 * var(--cdh-logo-scale, 1))); width: auto; height: auto; object-fit: contain; }
.cdh-pc__logo b { color: #141414; font-family: var(--disp, 'Barlow Condensed', sans-serif); font-size: 18px; text-align: center; line-height: 1.1; }
.cdh-pc__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 14px 16px; background: linear-gradient(135deg, var(--pc1, #d71920), var(--pc2, #8f0f14)); }
.cdh-pc__marca { font-family: var(--disp, 'Barlow Condensed', sans-serif); font-size: 15px; line-height: 1.15; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.cdh-pc__ben { font-family: var(--disp, 'Barlow Condensed', sans-serif); font-size: 19px; font-weight: 800; line-height: 1.12; margin-top: 12px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cdh-pc__lugar { font-size: 12px; font-weight: 400; letter-spacing: 0; opacity: .9; line-height: 1.2; margin-top: 1px; }
.cdh-pc__more { margin-top: 14px; font-size: 12px; font-weight: 700; opacity: .85; }
@media (min-width: 640px) { .cdh-pd__card.cdh-pc { flex-basis: calc((100% - 14px) / 2); } }
@media (min-width: 980px) { .cdh-pd__card.cdh-pc { flex-basis: calc((100% - 28px) / 3); min-height: 150px; } .cdh-pc__ben { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .cdh-pd__card.cdh-pc, .cdh-pd__card.cdh-pc:hover { transition: none; transform: none; } }

/* Al pasar el mouse: borde punteado como un cupón recortable, con tijerita sobre la línea */
.cdh-pc__logo, .cdh-pc__txt { position: relative; }
.cdh-pc__logo::after, .cdh-pc__txt::after { content: ""; position: absolute; top: 7px; bottom: 7px; opacity: 0; transition: opacity .18s; pointer-events: none; }
.cdh-pc__logo::after { left: 7px; right: 0; border: 2px dashed #8b9098; border-right: 0; border-radius: 13px 0 0 13px; }
.cdh-pc__txt::after { left: 0; right: 7px; border: 2px dashed var(--pcfg, #fff); border-left: 0; border-radius: 0 13px 13px 0; }
.cdh-pc__logo::before { content: "\2702\FE0E"; position: absolute; left: 22px; top: 7px; transform: translateY(-52%); z-index: 2; padding: 0 4px; background: #fff; color: #5b6168; font-size: 17px; line-height: 1; opacity: 0; transition: opacity .18s; pointer-events: none; }
.cdh-pd__card.cdh-pc:hover .cdh-pc__logo::after,
.cdh-pd__card.cdh-pc:hover .cdh-pc__txt::after,
.cdh-pd__card.cdh-pc:hover .cdh-pc__logo::before,
.cdh-pd__card.cdh-pc:focus-visible .cdh-pc__logo::after,
.cdh-pd__card.cdh-pc:focus-visible .cdh-pc__txt::after,
.cdh-pd__card.cdh-pc:focus-visible .cdh-pc__logo::before { opacity: 1; }

/* Mismo estilo que la página de Salidas: fondo crema, sin la caja blanca del tema alrededor del contenido */
body:has(.cdh-bn), body:has(.cdh-bnd) { background: var(--cdh-bg, #f6f5f2); }
.entry--page:has(.cdh-bn), .entry--page:has(.cdh-bnd),
.entry--page:has(.cdh-bn):hover, .entry--page:has(.cdh-bnd):hover { background: transparent; box-shadow: none; border-radius: 0; padding: 0; overflow: visible; }
.cdh-bn__head { padding-top: 26px; }
