/* Capa de movimiento · Setenta y Cuatro
   GSAP + ScrollTrigger + Lenis. Sin JS o con movimiento reducido, todo queda visible. */

/* Hero: oculto solo mientras la intro está por correr (clase puesta por un script inline con fallback) */
html.m-intro #hero-title,
html.m-intro #hero-title + p,
html.m-intro #hero-title ~ div,
html.m-intro .m-hero-logo { visibility: hidden; }

/* Palabras partidas */
.m-split { display: inline; }
.m-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.m-word > span { display: inline-block; will-change: transform; }

/* Header: sombra al scrollear */
header.sticky { transition: box-shadow .35s ease, background-color .35s ease; }
header.sticky.m-scrolled { box-shadow: 0 8px 30px -12px rgba(46, 16, 101, .28); }

/* Logo del hero: profundidad con el puntero */
.m-hero-logo { will-change: transform; transform-origin: 50% 60%; }

/* Botones: microinteracción */
a[data-slot="button"], button[data-slot="button"] { transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s, color .2s, box-shadow .25s; }
a[data-slot="button"]:hover, button[data-slot="button"]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(102, 5, 178, .55); }
a[data-slot="button"]:active, button[data-slot="button"]:active { transform: translateY(0); box-shadow: none; }

/* Tarjetas de programas: zoom suave de la foto, recortado dentro de su recuadro */
main li > div.relative:has(> img[data-nimg="fill"]) { overflow: hidden; }
#inicio-lista > li, #programas li:has(> div img) { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
#inicio-lista > li img, main li img[data-nimg="fill"] { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
#inicio-lista > li:hover img, main li:hover img[data-nimg="fill"] { transform: scale(1.05); }

/* Foco visible siempre */
:focus-visible { outline: 3px solid #f5a300; outline-offset: 3px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  a[data-slot="button"], button[data-slot="button"], #inicio-lista > li img, main li img[data-nimg="fill"] { transition: none; }
  a[data-slot="button"]:hover, #inicio-lista > li:hover img, main li:hover img[data-nimg="fill"] { transform: none; }
}

/* ---------- Hero con foto ---------- */
section[aria-labelledby="hero-title"] > div { align-items: center; }
.hero-photo { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden; background: #2e1065; box-shadow: 0 30px 60px -30px rgba(46, 16, 101, .55); }
.hero-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(46, 16, 101, .45)); pointer-events: none; }
.hero-badge { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; width: 4.25rem; height: auto; padding: .55rem .6rem; background: #fff; border-radius: 1rem; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
@media (min-width: 900px) {
  .hero-photo { aspect-ratio: 4 / 5; max-height: 34rem; }
  .hero-badge { left: -1rem; bottom: 2rem; width: 5rem; }
  .hero-photo { overflow: visible; }
  .hero-photo > img:first-child { border-radius: 1.5rem; }
  .hero-photo::after { border-radius: 1.5rem; }
}

/* ---------- Tarjetas de programas simplificadas ---------- */
.pc-who { color: #ede9fe; font-size: .98rem; line-height: 1.45; }
.pc-foot { display: flex; align-items: center; gap: 1rem; }
.pc-foot > a { width: auto !important; flex: 1 1 auto; }
.pc-price { display: flex; flex-direction: column; line-height: 1.1; }
.pc-price span { font-weight: 800; font-size: 1.25rem; color: var(--brand-gold); }
.pc-price small { font-size: .75rem; color: rgba(237, 233, 254, .7); margin-top: .15rem; white-space: nowrap; }
#catalogo > li[hidden], #inicio-lista > li[hidden] { display: none !important; }

/* Inicio: aire entre los programas y el bloque de distribuidor */
#programas { padding-bottom: 5rem !important; }
section[aria-labelledby="invitacion"] { position: relative; z-index: 1; }

/* ---------- Distribuidores: sección del video ---------- */
.vd-sec { position: relative; overflow: hidden; padding: 4.5rem 1rem 5rem; text-align: center;
  background:
    radial-gradient(60% 55% at 50% 62%, color-mix(in srgb, var(--brand-violet) 16%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--brand-violet) 7%, white) 100%); }
.vd-sec::before { content: ""; position: absolute; left: 50%; top: 58%; width: min(70rem, 140%); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand-violet) 12%, transparent); box-shadow: 0 0 0 4rem color-mix(in srgb, var(--brand-violet) 3%, transparent); pointer-events: none; }
.vd-inner { position: relative; max-width: 56rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.vd-eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-orange); }
.vd-sec h2 { margin-top: .4rem; font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 800; line-height: 1.05; }
.vd-sub { margin-top: .8rem; max-width: 46ch; color: var(--muted-foreground, #5b5670); font-size: 1.05rem; line-height: 1.5; }
.vd-frame { position: relative; margin-top: 2.2rem; width: 100%; aspect-ratio: 16 / 9; border-radius: 1.25rem; padding: 6px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-violet) 55%, #2e1065);
  box-shadow: 0 40px 80px -40px rgba(46, 16, 101, .65), 0 0 0 1px rgba(46, 16, 101, .06); }
.vd-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; border-radius: calc(1.25rem - 6px); }
.vd-cta { margin-top: 2rem; }
@media (max-width: 640px) { .vd-sec { padding: 3.5rem 1rem 4rem; } .vd-frame { padding: 4px; border-radius: 1rem; } .vd-frame video { border-radius: calc(1rem - 4px); } }
