/* ==========================================================================
   CACHIPAYESTÉREO 89.6 FM — pages.css
   Estilos de composición del sitio público: hero, marquesina, estadísticas,
   "Ahora suena", parrilla, bandas CTA, cabeceras de página interna y
   separadores de onda. Depende de base.css y components.css.
   ========================================================================== */

:root {
  --wave-h: clamp(36px, 6vw, 96px);
  /* Onda orgánica (sonido + colinas) usada como máscara de los separadores */
  --wave: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0 80V46C80 20 160 12 240 30s160 46 240 34 160-52 240-48 160 40 240 44 160-30 240-40V80Z'/></svg>");
}

/* --- 1. SEPARADORES DE ONDA entre secciones ------------------------------------------ */
.section--alt::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--wave-h) * -1 + 1px); height: var(--wave-h); pointer-events: none;
  background: var(--bg-2); -webkit-mask: var(--wave) bottom / 100% 100% no-repeat; mask: var(--wave) bottom / 100% 100% no-repeat;
}
.section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--wave-h) * -1 + 1px); height: var(--wave-h); pointer-events: none; transform: scaleY(-1);
  background: var(--bg-2); -webkit-mask: var(--wave) bottom / 100% 100% no-repeat; mask: var(--wave) bottom / 100% 100% no-repeat;
}
.section--alt { margin-block: var(--wave-h); }
.site-footer { margin-top: 0; }

/* Fondo de "líneas de frecuencia" (antes: puntos) */
.dots-bg {
  background:
    repeating-radial-gradient(circle at 88% 18%, transparent 0 34px, color-mix(in oklab, var(--text) 7%, transparent) 34px 35px),
    transparent;
  -webkit-mask: radial-gradient(70% 90% at 88% 18%, #000, transparent 75%); mask: radial-gradient(70% 90% at 88% 18%, #000, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }

/* --- 2. HERO ------------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem)) 0 clamp(8rem, 16vw, 14rem); overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 20% 0%, color-mix(in oklab, var(--verde) 16%, var(--bg)), var(--bg) 70%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.aurora--verde { width: 52vw; aspect-ratio: 1; left: -14vw; top: -18vw; background: var(--verde); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora--amarillo { width: 40vw; aspect-ratio: 1; right: 8vw; top: 4vw; background: var(--amarillo); opacity: .22; animation: drift-b 26s ease-in-out infinite alternate; }
.aurora--rojo { width: 34vw; aspect-ratio: 1; right: -10vw; bottom: 10vw; background: var(--rojo); opacity: .22; animation: drift-c 30s ease-in-out infinite alternate; }
:root[data-theme="light"] .aurora { opacity: .28; } :root[data-theme="light"] .aurora--amarillo { opacity: .4; } :root[data-theme="light"] .aurora--rojo { opacity: .14; }
@keyframes drift-a { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-10vw, 8vw, 0) scale(.85); } }
@keyframes drift-c { to { transform: translate3d(-8vw, -6vw, 0) scale(1.2); } }
.hero__hills { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(230px, 32vw, 460px); }
.hero__hills svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__hills .hill-1 { fill: var(--hill-1); } .hero__hills .hill-2 { fill: var(--hill-2); } .hero__hills .hill-3 { fill: var(--hill-3); }
.hero__hills .hill-front { fill: var(--bg); }
/* Torre y señal dibujadas dentro del SVG de las colinas */
.hero__hills .tower { stroke: var(--text-soft); fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__hills .tower__tip { fill: var(--amarillo); stroke: none; }
.hero__hills .sig path { stroke: var(--amarillo); stroke-width: 3; opacity: 0; animation: sig 3.2s ease-in-out infinite; }
.hero__hills .sig path:nth-child(2), .hero__hills .sig path:nth-child(5) { animation-delay: .35s; }
.hero__hills .sig path:nth-child(3), .hero__hills .sig path:nth-child(6) { animation-delay: .7s; }
@keyframes sig { 0%, 100% { opacity: 0; } 25%, 55% { opacity: .95; } }

.hero__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.hero__badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .45rem 1rem; margin-bottom: 1.5rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); background: var(--glass); border: 1px solid var(--line-strong); border-radius: var(--r-pill); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero__badge svg { color: var(--accent-text); }
.hero__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-mute); }
.hero__title { display: grid; font-size: clamp(2.9rem, 1rem + 9vw, 8.5rem); line-height: .86; font-weight: 800; letter-spacing: -.05em; text-transform: uppercase; }
.hero__title > span { display: block; }
.hero__title .text-gradient { padding-bottom: .06em; }
.ch { display: inline-block; opacity: 0; transform: translate3d(0, .6em, 0) rotate(5deg); animation: ch-in 800ms var(--ease-out) forwards; animation-delay: calc(var(--ci, 0) * 38ms + 150ms); }
.ch--space { width: .28em; }
:root[data-theme="light"] .hero__title .ch { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.hero__title .is-grad { background: var(--grad-brand-lux); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes ch-in { to { opacity: 1; transform: none; } }
.hero__slogan { margin-top: 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xl); letter-spacing: -.02em; color: var(--accent-text); }
.hero__text { max-width: 54ch; margin-top: 1rem; font-size: var(--fs-lg); color: var(--text-soft); }
.hero__text strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.hero__cta .btn--lg[data-play] { min-height: 68px; padding-inline: 2.2rem; font-size: var(--fs-xl); gap: .8rem; }
.hero__cta .btn--lg[data-play]::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; transition: transform var(--t-base) var(--ease-spring); }
.hero__cta .btn--lg[data-play]:hover::before { transform: scale(1.25); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.hero__freq { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.hero__freq-badge { padding: .3rem .85rem; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-base); letter-spacing: .02em; color: var(--accent-ink); background: var(--accent); border-radius: var(--r-pill); }
.viz { width: min(100%, 420px); height: 56px; }

.hero__visual { position: relative; min-height: clamp(360px, 46vw, 600px); }
.hero__dial {
  position: absolute; left: -4%; top: -2%; z-index: 0; font: 800 clamp(6rem, 1rem + 15.5vw, 14rem)/.78 var(--font-display); letter-spacing: -.07em; user-select: none; white-space: nowrap;
  color: transparent; background: var(--grad-brand-lux); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 20px 50px color-mix(in oklab, var(--amarillo) 25%, transparent));
}
:root[data-theme="light"] .hero__dial { background: linear-gradient(100deg, var(--verde) 0%, var(--amarillo) 55%, var(--rojo) 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(3px 4px 0 var(--ink)); }
.hero__frame {
  position: absolute; right: 0; bottom: 0; z-index: 1; width: 66%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--r-xl) var(--r-xl); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
}
.hero__frame .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,3,.88) 0%, rgba(5,8,3,.1) 55%, transparent); }
.hero__caption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; color: #fff; }
.hero__caption p { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); line-height: 1.1; margin-top: .5rem; }
.hero__caption small { opacity: .8; font-size: var(--fs-xs); }
.hero__freq-round { display: grid; place-items: center; width: 64px; height: 64px; flex: none; font-family: var(--font-display); font-weight: 800; color: var(--ink); background: var(--amarillo); border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,0,0,.35); }
.hero__float { position: absolute; left: 6%; bottom: 8%; z-index: 2; display: grid; padding: .8rem 1.1rem; background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: var(--r-md); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-md); animation: bob 5s ease-in-out infinite alternate; }
.hero__float span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.hero__float strong { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1; } .hero__float em { font-style: normal; color: var(--accent-text); }
@keyframes bob { to { transform: translate3d(0, -10px, 0); } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 300px; margin-bottom: -1rem; }
  .hero__frame { width: 52%; }
  .hero__float { display: none; }
}

/* --- 3. MARQUESINA doble fila ---------------------------------------------------------------- */
.marquee { position: relative; padding-block: clamp(1rem, 2vw, 1.75rem); background: var(--ink); color: #fff; overflow: hidden; transform: rotate(-1.2deg); margin-block: -1.5rem 0; z-index: 3; box-shadow: var(--shadow-md); }
:root[data-theme="light"] .marquee { background: var(--ink); }
.marquee__row { display: flex; overflow: hidden; }
.marquee__row + .marquee__row { margin-top: .4rem; }
.marquee__track { display: flex; flex: none; min-width: 100%; animation: marquee 38s linear infinite; will-change: transform; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__item { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1rem + 3vw, 3.4rem); letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; text-transform: uppercase; }
.marquee__row--rev .marquee__item { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); }
.marquee__dot { width: .5em; height: .5em; border-radius: 50%; background: var(--amarillo); flex: none; }
.marquee__item:nth-child(3n) .marquee__dot { background: var(--verde-lux); } .marquee__item:nth-child(3n+1) .marquee__dot { background: var(--rojo); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* --- 4. ESTADÍSTICAS (bento) ------------------------------------------------------------------- */
.stats dl { display: grid; gap: 1rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.stats dl > div { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 180px; padding: 1.4rem 1.5rem; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t-slow) var(--ease-out), border-color var(--t-base); }
.stats dl > div:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.stats dl > div:nth-child(1) { background: linear-gradient(140deg, color-mix(in oklab, var(--verde) 55%, var(--surface)), var(--surface)); }
.stats dl > div:nth-child(2)::after, .stats dl > div:nth-child(3)::after, .stats dl > div:nth-child(4)::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; opacity: .18; }
.stats dl > div:nth-child(2)::after { background: var(--amarillo); } .stats dl > div:nth-child(3)::after { background: var(--verde-lux); } .stats dl > div:nth-child(4)::after { background: var(--rojo); }
.stats dd { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); line-height: .9; letter-spacing: -.05em; background: var(--grad-brand-lux); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; order: 2; }
.stats dt { order: 1; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
@media (max-width: 900px) { .stats dl { grid-template-columns: 1fr 1fr; } .stats dl > div:nth-child(1) { grid-column: 1 / -1; } }

/* --- 5. AHORA SUENA / A CONTINUACIÓN --------------------------------------------------------- */
.now-layout { display: grid; gap: 1.25rem; grid-template-columns: 1.6fr 1fr; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.now-override { margin-bottom: 1rem; padding: .7rem 1.1rem; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: var(--r-md); }
.now-card {
  position: relative; display: grid; align-content: space-between; gap: 1.5rem; min-height: 340px; padding: clamp(1.5rem, 3vw, 2.5rem); overflow: hidden; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in oklab, var(--rojo) 55%, #1a0505) 0%, transparent 60%), radial-gradient(80% 100% at 0% 100%, color-mix(in oklab, var(--verde) 70%, #060a04) 0%, transparent 70%), #0b0e08;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.now-card::after { content: "ON AIR"; position: absolute; right: -2%; bottom: -8%; font: 800 clamp(5rem, 14vw, 11rem)/1 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.1); pointer-events: none; }
.now-card > * { position: relative; z-index: 1; }
.now-card .muted { color: rgba(255,255,255,.72); }
.now-card .pill { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.now-card .pill--rojo { background: var(--rojo); border-color: var(--rojo); box-shadow: var(--glow-rojo); }
.now-card .pill--verde { background: color-mix(in oklab, var(--verde) 60%, transparent); }
.now-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.now-card .live-dot { background: #fff; }
.now-card__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.now-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.now-card__time { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.now-progress { display: grid; gap: .5rem; }
.now-progress__track { position: relative; height: 8px; overflow: hidden; background: rgba(255,255,255,.16); border-radius: var(--r-pill); }
.now-progress__fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--p, 0)); background: var(--grad-brand); border-radius: inherit; transition: transform 1.4s var(--ease-out); }
.now-progress__labels { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); }
.now-card.is-swapping > * { animation: swap-in 700ms var(--ease-out) both; }
.now-card.is-swapping > *:nth-child(2) { animation-delay: 80ms; } .now-card.is-swapping > *:nth-child(3) { animation-delay: 160ms; } .now-card.is-swapping > *:nth-child(4) { animation-delay: 240ms; }
@keyframes swap-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
.side-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.side-card__title { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: var(--fs-lg); }
.side-card__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; margin-bottom: .4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); background: var(--surface-2); border-radius: var(--r-sm); transition: background-color var(--t-base); }
.side-card__item.is-active { color: var(--accent-ink); background: var(--accent); }
.side-card__time { font-variant-numeric: tabular-nums; font-weight: 800; }
@media (max-width: 900px) { .now-layout { grid-template-columns: 1fr; } }

/* --- 6. PARRILLA con pestañas y línea de tiempo ---------------------------------------------- */
.schedule-tabs { display: flex; gap: .4rem; padding: .35rem; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); width: fit-content; max-width: 100%; }
.schedule-tabs::-webkit-scrollbar { display: none; }
.schedule-tab { position: relative; flex: none; min-height: 44px; padding: .5rem 1.15rem; font-family: var(--font-display); font-weight: 700; color: var(--text-mute); border-radius: var(--r-pill); transition: background-color var(--t-fast), color var(--t-fast); }
.schedule-tab:hover { color: var(--text); }
.schedule-tab.is-active { color: var(--accent-ink); background: var(--accent); }
.schedule-tab__today { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); }
[data-schedule-list] { position: relative; display: grid; gap: 1rem; padding-left: clamp(1.8rem, 5vw, 3rem); }
[data-schedule-list]::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--verde), var(--amarillo), var(--rojo)); opacity: .5; border-radius: 2px; }
.schedule-item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 1.25rem; align-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t-slow) var(--ease-out), border-color var(--t-base), box-shadow var(--t-base); animation: sched-in 600ms var(--ease-out) both; }
.schedule-item:nth-child(2) { animation-delay: 60ms; } .schedule-item:nth-child(3) { animation-delay: 120ms; } .schedule-item:nth-child(4) { animation-delay: 180ms; } .schedule-item:nth-child(n+5) { animation-delay: 240ms; }
@keyframes sched-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
.schedule-item::before { content: ""; position: absolute; left: calc(clamp(1.8rem, 5vw, 3rem) * -1 + 5px); top: 50%; width: 14px; height: 14px; translate: 0 -50%; border-radius: 50%; background: var(--bg); border: 3px solid var(--text-mute); }
.schedule-item:hover { transform: translateX(6px); border-color: var(--line-strong); }
.schedule-item.is-live { border-color: var(--amarillo); box-shadow: 0 0 0 1px var(--amarillo), var(--shadow-md); background: linear-gradient(100deg, color-mix(in oklab, var(--amarillo) 14%, var(--surface)), var(--surface) 60%); }
.schedule-item.is-live::before { border-color: var(--rojo); background: var(--rojo); box-shadow: 0 0 0 5px color-mix(in oklab, var(--rojo) 30%, transparent); }
.schedule-item__media .media { border-radius: var(--r-md); }
.schedule-item__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.schedule-item__time { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.schedule-item__air { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .65rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--rojo); border-radius: var(--r-pill); }
.schedule-item__air .live-dot { background: #fff; }
.schedule-item__host { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); color: var(--text-mute); }
@media (max-width: 560px) { .schedule-item { grid-template-columns: 64px 1fr; gap: .8rem; padding: .75rem; } }

/* --- 7. CTA FINAL con onda animada --------------------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem); color: #fff; border-radius: var(--r-xl); background: linear-gradient(135deg, color-mix(in oklab, var(--verde) 85%, #000), color-mix(in oklab, var(--verde) 35%, #050803)); box-shadow: var(--shadow-lg); }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg::before { content: "89.6"; position: absolute; right: -2%; top: 50%; translate: 0 -50%; font: 800 clamp(9rem, 28vw, 26rem)/.8 var(--font-display); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.22); }
.cta-band__bg::after { content: ""; position: absolute; width: 50%; aspect-ratio: 1; left: -10%; bottom: -40%; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--amarillo) 55%, transparent), transparent 65%); }
.cta-band__wave { position: absolute; left: 0; bottom: 0; width: 200%; height: clamp(50px, 9vw, 110px); z-index: -1; animation: wave-x 14s linear infinite; opacity: .35; }
.cta-band__wave--2 { animation-duration: 20s; animation-direction: reverse; opacity: .2; bottom: 6px; }
@keyframes wave-x { to { transform: translateX(-50%); } }
.cta-band__content { position: relative; max-width: 700px; }
.cta-band h2 { font-size: var(--fs-3xl); margin-top: 1rem; }
.cta-band p { margin-top: 1rem; max-width: 52ch; color: rgba(255,255,255,.86); font-size: var(--fs-lg); }
.cta-band .pill { color: #fff !important; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.cta-band__note { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: rgba(255,255,255,.8); }

/* --- 8. CABECERA DE PÁGINAS INTERNAS ---------------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4.5rem); overflow: clip; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(90% 120% at 12% 0%, color-mix(in oklab, var(--verde) 20%, var(--bg)), var(--bg) 70%); }
.page-hero::after { content: "89.6"; position: absolute; z-index: -1; right: -1%; bottom: -14%; font: 800 clamp(8rem, 26vw, 24rem)/.8 var(--font-display); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 2px var(--line-strong); opacity: .7; pointer-events: none; }
.page-hero__inner { display: grid; gap: 1rem; justify-items: start; }
.page-hero h1 { font-size: clamp(2.4rem, 1rem + 6vw, 5.6rem); max-width: 16ch; line-height: .94; }
.page-hero__desc { max-width: 56ch; font-size: var(--fs-lg); color: var(--text-soft); }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }

/* Sección de clasificados destacados pegada al hero */
.classified-carousel-section { padding-top: clamp(1rem, 3vw, 2rem); }

/* Mapa/colores de texto inline antiguos que aún aparecen en HTML estático */
.section > .container > .grid > .card + .card { margin-top: 0; }

/* --- 9. COMPOSICIONES ASIMÉTRICAS (inicio) ------------------------------------------------ */
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); align-items: start; }
.split__intro { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; justify-items: start; }
.split .svc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__intro { position: static; } }
.stats__unit { margin-left: .2em; font-size: .38em; letter-spacing: 0; }
.grid--bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--bento > :nth-child(1) { grid-column: span 7; grid-row: span 2; }
.grid--bento > :nth-child(2), .grid--bento > :nth-child(3) { grid-column: span 5; }
.grid--bento > .card:nth-child(1) .media { aspect-ratio: 4 / 3; }
.grid--bento > .card:nth-child(1) .card__title { font-size: var(--fs-2xl); }
.grid--bento > .card:nth-child(n+2) { flex-direction: row; }
.grid--bento > .card:nth-child(n+2) .card__media { flex: 0 0 40%; }
.grid--bento > .card:nth-child(n+2) .media { height: 100%; aspect-ratio: auto; }
.grid--bento > .card:nth-child(n+2) .card__text { -webkit-line-clamp: 2; }
.grid--bento > .empty-state { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .grid--bento > :nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
  .grid--bento > .card:nth-child(n+2) { flex-direction: column; }
  .grid--bento > .card:nth-child(n+2) .card__media { flex: none; }
  .grid--bento > .card:nth-child(n+2) .media { height: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  .hero__caption .pill, .hero__caption small, .hero__freq-round { display: none; }
  .hero__caption p { margin-top: 0; font-size: var(--fs-base); }
  .hero__badge { font-size: .68rem; }
  .viz { height: 44px; }
}
.hero__freq { min-width: 0; } .viz { flex: 1 1 0; min-width: 0; max-width: 420px; }
