/* ============================================================
   AREA v2 — Editorial cinema dark
   Token architecture: primitive → semantic → component
   (design-system skill, three-layer structure)
   ============================================================ */

/* ---------- 1. Primitive tokens ---------- */
:root {
  /* Ink scale (never pure #000 — OLED smear) */
  --ink-950: #050506;
  --ink-900: #0c0c0d;
  --ink-850: #111113;
  --ink-800: #18181b;
  --ink-700: #232326;

  /* Neutrals */
  --slate-50: #f8fafc;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;

  /* Cinema red */
  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --rose-400: #fb7185;

  /* Hairlines */
  --white-a08: rgba(255, 255, 255, 0.08);
  --white-a14: rgba(255, 255, 255, 0.14);
  --white-a24: rgba(255, 255, 255, 0.24);
  --rose-a15: rgba(225, 29, 72, 0.15);

  /* Typography — Sora (headlines), Inter (body/UI), Playfair (quotes), JetBrains Mono (labels/stats) */
  --font-display: "Inter", system-ui, sans-serif;
  --font-headline: "Sora", "Inter", system-ui, sans-serif;
  --font-quote: "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type scale: 12 label / 16 body / 22 sub / 32 section / 40 H2 / 56 H1 / hero */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-hero: clamp(2.75rem, 7.5vw, 5rem);

  /* Spacing (4pt rhythm) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radius — sharp editorial */
  --radius-sm: 3px;
  --radius-md: 6px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-entrance: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;
  --dur-entrance: 650ms;
}

/* ---------- 2. Semantic tokens ---------- */
:root {
  color-scheme: dark;

  --color-bg: var(--ink-900);
  --color-bg-deep: var(--ink-950);
  --color-surface: var(--ink-850);
  --color-surface-raised: var(--ink-800);

  --color-text: var(--slate-50);
  --color-text-soft: var(--slate-300);
  --color-text-muted: var(--slate-400);

  --color-accent: var(--rose-600);          /* surfaces / buttons (white text ≥ 4.5:1) */
  --color-accent-text: var(--rose-400);     /* red text on dark (≥ 4.5:1) */
  --color-on-accent: #ffffff;

  --color-border: var(--white-a08);
  --color-border-strong: var(--white-a14);
  --color-ring: var(--rose-400);
  --color-error: var(--rose-400);
}

/* ---------- 3. Component tokens ---------- */
:root {
  --btn-radius: var(--radius-sm);
  --btn-pad: 0.85rem 1.75rem;

  --card-bg: var(--color-surface);
  --card-border: var(--color-border);
  --card-border-hover: var(--white-a24);
  --card-radius: var(--radius-md);

  --input-bg: var(--ink-900);
  --input-border: var(--color-border-strong);
  --input-radius: var(--radius-sm);

  --header-h: 4.5rem;
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #09090b;
}

body {
  margin: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto evita que los atributos width/height del HTML deformen la
   imagen cuando el contenedor es más estrecho. Las imágenes colocadas en
   absoluto (tarjetas, galería, héroes) fijan su propia altura y ganan por
   especificidad, así que no se ven afectadas. */
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

::selection { background: var(--rose-600); color: #fff; }

.container {
  width: min(72rem, 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Typography helpers ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--color-accent);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 42rem;
}

.accent-italic {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-accent-text);
}

/* ============================================================
   Cinematic animated background
   Fixed layer behind all content: charcoal base + slow aurora
   drift (amber/teal) + floating bokeh + light sweep. Film grain
   is a separate fixed overlay above content at 4% opacity.
   Transform/opacity only; static fallback under reduced motion.
   ============================================================ */
.cinematic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120vmax 80vmax at 50% 120%, rgba(0, 0, 0, 0.55), transparent 60%),
    linear-gradient(180deg, #0c0c10 0%, #0a0a0d 45%, #09090b 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.aurora-1 {
  width: 62vmax; height: 62vmax;
  left: -18vmax; top: -24vmax;
  background: radial-gradient(circle at 42% 42%, rgba(217, 119, 6, 0.15), transparent 65%);
  animation: aurora-drift-1 55s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 54vmax; height: 54vmax;
  right: -16vmax; top: 4vmax;
  background: radial-gradient(circle at 58% 42%, rgba(20, 184, 166, 0.11), transparent 65%);
  animation: aurora-drift-2 70s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 50vmax; height: 50vmax;
  left: 18vmax; bottom: -28vmax;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.09), transparent 65%);
  animation: aurora-drift-3 62s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vmax, 6vmax, 0) scale(1.12); }
}
@keyframes aurora-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-8vmax, 9vmax, 0) scale(1); }
}
@keyframes aurora-drift-3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vmax, -7vmax, 0) scale(1.15); }
}

/* Bokeh — soft out-of-focus set lights drifting like dust in a beam */
.bokeh span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20), transparent 70%);
  animation: bokeh-float var(--bd, 40s) ease-in-out var(--bde, 0s) infinite alternate;
  will-change: transform, opacity;
}
.bokeh span:nth-child(1) { width: 9rem;   height: 9rem;   left: 8%;  top: 22%; --bd: 46s; }
.bokeh span:nth-child(2) { width: 4rem;   height: 4rem;   left: 26%; top: 64%; --bd: 38s; --bde: -12s;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16), transparent 70%); }
.bokeh span:nth-child(3) { width: 6rem;   height: 6rem;   left: 62%; top: 18%; --bd: 52s; --bde: -25s;
  background: radial-gradient(circle, rgba(255, 240, 214, 0.10), transparent 70%); }
.bokeh span:nth-child(4) { width: 3rem;   height: 3rem;   left: 78%; top: 48%; --bd: 34s; --bde: -8s; }
.bokeh span:nth-child(5) { width: 7rem;   height: 7rem;   left: 88%; top: 74%; --bd: 58s; --bde: -30s;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12), transparent 70%); }
.bokeh span:nth-child(6) { width: 2.2rem; height: 2.2rem; left: 44%; top: 84%; --bd: 30s; --bde: -18s;
  background: radial-gradient(circle, rgba(255, 240, 214, 0.12), transparent 70%); }
.bokeh span:nth-child(7) { width: 5rem;   height: 5rem;   left: 14%; top: 88%; --bd: 44s; --bde: -22s; }
.bokeh span:nth-child(8) { width: 2.6rem; height: 2.6rem; left: 70%; top: 8%;  --bd: 36s; --bde: -5s;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14), transparent 70%); }

@keyframes bokeh-float {
  0%   { transform: translate3d(0, 0, 0) scale(1);        opacity: 0.55; }
  50%  { opacity: 1; }
  100% { transform: translate3d(4vmax, -6vmax, 0) scale(1.15); opacity: 0.6; }
}

/* Light sweep — slow projector pass, mostly resting */
.light-sweep {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -45vw;
  width: 38vw;
  background: linear-gradient(90deg, transparent, rgba(255, 219, 158, 0.05), transparent);
  transform: rotate(12deg);
  animation: light-sweep 28s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes light-sweep {
  0%        { transform: translateX(0) rotate(12deg);      opacity: 0; }
  6%        { opacity: 0.9; }
  24%       { opacity: 0.9; }
  32%, 100% { transform: translateX(200vw) rotate(12deg);  opacity: 0; }
}

/* Film grain — fixed overlay above content, 4% opacity */
.grain-overlay {
  position: fixed;
  inset: -100%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.04;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  animation: grain-shift 9s steps(1, end) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(-6%, -9%); }
  25%  { transform: translate(-13%, 4%); }
  37%  { transform: translate(6%, -14%); }
  50%  { transform: translate(-4%, 12%); }
  62%  { transform: translate(-14%, -6%); }
  75%  { transform: translate(10%, 8%); }
  87%  { transform: translate(-8%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover { background: var(--rose-500); }

.btn-ghost {
  border-color: var(--color-border-strong);
  color: var(--color-text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--white-a24); background: var(--white-a08); }

.btn-dark {
  background: var(--ink-950);
  color: var(--color-text);
}
.btn-dark:hover { background: var(--ink-800); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}
.brand svg { height: 1.75rem; width: auto; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.5;
  border-left: 1px solid var(--color-border-strong);
  padding-left: var(--space-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--color-text); }
.nav-links a[aria-current="page"] {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(60rem 32rem at 25% 55%, rgba(5, 5, 6, 0.45), transparent 70%),
    radial-gradient(50rem 30rem at 85% -10%, var(--rose-a15), transparent 60%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.hero::after {
  /* frame guide — vertical hairline, editorial */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 18%;
  width: 1px;
  background: var(--color-border);
  pointer-events: none;
}

.hero-inner {
  padding: clamp(5rem, 12vh, 8.5rem) 0 var(--space-24);
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.03em;
  margin: var(--space-6) 0;
  max-width: 16ch;
}
.hero h1 .accent-italic { font-size: 0.98em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* Stats band */
.stats-band {
  border-top: 1px solid var(--color-border);
  background: rgba(5, 5, 6, 0.55);
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--space-8) var(--space-6);
  border-left: 1px solid var(--color-border);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
}
.stat .label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: var(--space-24) 0; }
.section-deep {
  background: rgba(5, 5, 6, 0.55);
  border-block: 1px solid var(--color-border);
}

.section-head { max-width: 46rem; margin-bottom: var(--space-16); }
.section-head h2 {
  font-size: var(--text-3xl);
  margin: var(--space-4) 0;
}
.section-head .lead { margin-top: var(--space-4); }

/* Page hero (interior pages) */
.page-hero {
  background: radial-gradient(40rem 22rem at 90% -30%, var(--rose-a15), transparent 60%);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(4rem, 9vh, 6.5rem) 0;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, var(--text-4xl));
  letter-spacing: -0.03em;
  margin: var(--space-4) 0;
}
.page-hero .lead { margin-top: var(--space-2); }

/* ============================================================
   Program cards
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.program-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.program-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
}

.card-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.card-media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  gap: var(--space-2);
  background:
    radial-gradient(20rem 12rem at 70% 20%, var(--rose-a15), transparent 70%),
    var(--ink-800);
  border-bottom: 1px solid var(--card-border);
  color: var(--color-text-muted);
  position: relative;
}
.card-media svg { width: 3rem; height: 3rem; opacity: 0.7; }
.card-media img,
.faculty-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-note {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
}

.card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.card-body h3 { font-size: var(--text-xl); letter-spacing: -0.01em; }
.card-body p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; flex: 1; }

.card-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--dur-fast) var(--ease-out);
}
.card-link:hover { color: var(--rose-500); }

/* ============================================================
   Feature list (Por qué AREA) — editorial numbered columns
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8) var(--space-6);
}
.feature {
  border-top: 1px solid var(--color-border-strong);
  padding-top: var(--space-6);
}
.feature .index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-accent-text);
}
.feature h3 { font-size: var(--text-lg); margin: var(--space-3) 0; }
.feature p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; }

/* ============================================================
   Misión / Visión — editorial quotes
   ============================================================ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.mv-card {
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  padding: var(--space-8);
}
.mv-card h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-4);
}
.mv-card p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.55;
  color: var(--color-text-soft);
}

/* ============================================================
   Values
   ============================================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  transition: border-color var(--dur-base) var(--ease-out);
}
.value-card:hover { border-color: var(--card-border-hover); }
.value-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.value-card p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; }

/* ============================================================
   Program detail (programas.html)
   ============================================================ */
.program-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: center;
}
.program-detail.flip > div:first-child { order: 2; }
.program-detail h2 { font-size: var(--text-3xl); margin-top: var(--space-4); }
.detail-media { border: 1px solid var(--card-border); border-radius: var(--card-radius); }

/* Full-poster media (portrait afiches, no crop) */
.poster-media {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.poster-media img { display: block; width: 100%; height: auto; }

/* Poster teaser inside 16:9 card media: show the title area */
.card-media.media-poster img { object-position: 50% 12%; }

.skill-list {
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-6);
}
.skill-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}
.skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.85rem;
  height: 1px;
  background: var(--color-accent);
}

.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-6) 0; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
}

/* ============================================================
   Faculty
   ============================================================ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.faculty-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.faculty-card:hover { border-color: var(--card-border-hover); }
.faculty-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--ink-800);
  border-bottom: 1px solid var(--card-border);
  color: var(--color-text-muted);
}
.faculty-photo svg { width: 3rem; height: 3rem; opacity: 0.6; }
.faculty-card h3 { font-size: var(--text-base); padding: var(--space-4) var(--space-4) 0; }
.faculty-card p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4) var(--space-4);
  line-height: 1.6;
}

/* ============================================================
   Steps (admisión)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8) var(--space-6);
}
.step {
  border-top: 1px solid var(--color-border-strong);
  padding-top: var(--space-6);
  counter-increment: step;
}
.step .index {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent-text);
}
.step h3 { font-size: var(--text-lg); margin: var(--space-3) 0; }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; }

/* ============================================================
   Contact + form
   ============================================================ */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info { display: grid; gap: var(--space-6); }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-item .icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-accent-text);
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: var(--text-sm); }
.contact-item span { color: var(--color-text-muted); font-size: var(--text-sm); }

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-8);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-ring);
}

.field .error {
  display: none;
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}
.field.invalid .error { display: block; }
.field.invalid input,
.field.invalid select { border-color: var(--color-error); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-6);
}
.form-success.show { display: block; }
.form-success .icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent-text);
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  background: var(--color-accent);
  border-radius: var(--card-radius);
  padding: var(--space-12);
  color: var(--color-on-accent);
}
.cta-banner h2 { font-size: var(--text-2xl); max-width: 22ch; }
.cta-banner p { margin-top: var(--space-3); opacity: 0.9; max-width: 40rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: rgba(5, 5, 6, 0.7);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}
.footer-brand svg { height: 1.6rem; width: auto; color: var(--color-text); }
.footer-brand p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 26rem;
  line-height: 1.7;
}
.site-footer h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.site-footer ul a, .site-footer ul li {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.site-footer ul a:hover { color: var(--color-text); }

.footer-bottom {
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* ============================================================
   Entrance animations (hero, on page load) — staggered fade-up
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up,
.animate-fade-up-1,
.animate-fade-up-2,
.animate-fade-up-3,
.animate-fade-up-4 {
  animation: fade-up var(--dur-entrance) var(--ease-entrance) both;
}
.animate-fade-up-1 { animation-delay: 0.12s; }
.animate-fade-up-2 { animation-delay: 0.24s; }
.animate-fade-up-3 { animation-delay: 0.36s; }
.animate-fade-up-4 { animation-delay: 0.48s; }

/* ---- Cinematic hero entrance: rack-focus line reveal ---- */
.hero-title .hero-line {
  display: block;
  animation: hero-line-reveal 0.75s var(--ease-entrance) both;
  will-change: transform, opacity, filter;
}
.hero-title .hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .hero-line:nth-child(2) { animation-delay: 0.22s; }

@keyframes hero-line-reveal {
  0% {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(7px) brightness(0.35);
  }
  55% {
    opacity: 1;
    filter: blur(2.5px) brightness(0.85) drop-shadow(0 0 26px rgba(245, 158, 11, 0.28));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0) brightness(1) drop-shadow(0 0 18px rgba(245, 158, 11, 0.12));
  }
}

/* Subheadline and CTAs follow once the headline settles */
.hero-fade,
.hero-fade-late,
.hero-fade-stats {
  animation: hero-soft-fade 0.7s var(--ease-entrance) both;
}
.hero-fade       { animation-delay: 0.5s; }
.hero-fade-late  { animation-delay: 0.62s; }
.hero-fade-stats { animation-delay: 0.74s; }

@keyframes hero-soft-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA hover: gentle lift + warm/brand glow */
.hero-actions .btn {
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.hero-actions .btn:hover { transform: translateY(-1px) scale(1.02); }
.hero-actions .btn:active { transform: scale(0.97); }
.hero-actions .btn-primary:hover { box-shadow: 0 0 28px rgba(225, 29, 72, 0.35); }
.hero-actions .btn-ghost:hover { box-shadow: 0 0 22px rgba(245, 158, 11, 0.16); }

/* ============================================================
   Reveal animation (scroll-triggered, IntersectionObserver adds
   .in once per element; stagger applied via JS transition-delay)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-entrance) var(--ease-entrance),
              transform var(--dur-entrance) var(--ease-entrance);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Static cinematic backdrop: aurora/bokeh/grain frozen, sweep hidden */
  .aurora, .bokeh span, .grain-overlay { animation: none; }
  .light-sweep { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-fade-up,
  .animate-fade-up-1,
  .animate-fade-up-2,
  .animate-fade-up-3,
  .animate-fade-up-4 { animation: none; opacity: 1; transform: none; }
  .hero-title .hero-line,
  .hero-fade,
  .hero-fade-late,
  .hero-fade-stats { animation: none; opacity: 1; transform: none; filter: none; }
  .hero-actions .btn:hover { transform: none; box-shadow: none; }
  .btn, .program-card, .value-card, .faculty-card { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 64rem) {
  .card-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .steps, .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .program-detail { grid-template-columns: 1fr; gap: var(--space-8); }
  .program-detail.flip > div:first-child { order: 0; }
  .form-wrap { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero::after { display: none; }
}

@media (max-width: 48rem) {
  .section { padding: var(--space-16) 0; }

  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-950);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6) var(--space-6);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--color-border); }
  .nav-links li:last-child { border-bottom: none; padding-top: var(--space-4); }
  .nav-links a:not(.btn) { display: block; padding: var(--space-4) 0; }
  .nav-links a[aria-current="page"] { border-bottom: none; color: var(--color-accent-text); }
  .nav-cta .btn { width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--color-border); padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: none; }

  .card-grid, .value-grid, .feature-grid, .steps, .faculty-grid,
  .mv-grid, .form-grid, .skill-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .cta-banner { padding: var(--space-8); }
  .brand-tag { display: none; }
}

/* ============================================================
   ============  CINEMATIC REBUILD (GSAP + Lenis)  ============
   Motion-gated: elements only hide when <html class="js-motion">
   is present, so a JS failure or no-JS still renders everything.
   ============================================================ */

/* ---- Motion primitives driven by GSAP ---- */
.js-motion .m-fade   { opacity: 0; }
.js-motion .m-up     { opacity: 0; transform: translateY(38px); }
.js-motion .m-mask   { clip-path: inset(100% 0 0 0); }
.js-motion .m-scale  { opacity: 0; transform: scale(0.94); }
.js-motion .m-line   { opacity: 0; transform: translateY(28px); filter: blur(6px); }

@media (prefers-reduced-motion: reduce) {
  .js-motion .m-fade,
  .js-motion .m-up,
  .js-motion .m-mask,
  .js-motion .m-scale,
  .js-motion .m-line {
    opacity: 1; transform: none; filter: none; clip-path: none;
  }
}

/* ============================================================
   Cinematic loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: #09090b;
}
.loader__inner { text-align: center; }
.loader__logo {
  width: clamp(9rem, 22vw, 15rem);
  height: auto;
  color: var(--color-text);
  filter: blur(14px) brightness(0.3);
  opacity: 0;
}
.loader__tag {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0;
}
.loader__bar {
  margin: var(--space-8) auto 0;
  width: min(16rem, 45vw);
  height: 1px;
  background: var(--white-a14);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
}
.loader.is-done { pointer-events: none; }

/* ============================================================
   Showreel hero — full-bleed video
   ============================================================ */
.reel-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.reel-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.reel-hero__media video,
.reel-hero__media .reel-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.reel-hero__media::after {
  /* Grade + scrim: keeps headline contrast over any footage */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 9, 11, 0.78) 0%, rgba(9, 9, 11, 0.52) 30%, rgba(9, 9, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(9, 9, 11, 0.88) 0%, rgba(9, 9, 11, 0.45) 55%, rgba(9, 9, 11, 0.15) 100%),
    radial-gradient(70rem 45rem at 20% 65%, rgba(9, 9, 11, 0.6), transparent 72%);
}
.reel-hero__inner {
  position: relative;
  z-index: 1;
  width: min(72rem, 100% - 3rem);
  margin-inline: auto;
  padding: clamp(6rem, 16vh, 11rem) 0 clamp(3rem, 8vh, 5rem);
}
.reel-hero h1 {
  font-size: clamp(3rem, 8.6vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: var(--space-6) 0 0;
  max-width: 15ch;
}
.reel-hero h1 .l { display: block; }
.reel-hero .lead {
  margin-top: var(--space-8);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 34rem;
  color: var(--color-text-soft);
}
.reel-hero .hero-actions { margin-top: var(--space-8); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--white-a24), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i { animation: cue-slide 2.4s ease-in-out infinite; transform-origin: top; }
  @keyframes cue-slide {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50%      { transform: scaleY(1);   opacity: 1; }
  }
}

/* ============================================================
   Marquee — course names / credits
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0;
  border-block: 1px solid var(--color-border);
  background: rgba(5, 5, 6, 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding-right: var(--space-12);
  flex-shrink: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.marquee__item.is-ghost {
  color: transparent;
  -webkit-text-stroke: 1px var(--white-a24);
}

/* ============================================================
   Big stat counters
   ============================================================ */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.counter { border-top: 1px solid var(--color-border-strong); padding-top: var(--space-6); }
.counter__num {
  font-family: var(--font-headline);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.counter__num .suffix { color: var(--color-accent-text); }
.counter__label {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   Student-work gallery
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}
.work {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--ink-800);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.work--wide  { grid-column: span 4; aspect-ratio: 16 / 9; }
.work--tall  { grid-column: span 2; aspect-ratio: 3 / 4; }
.work--half  { grid-column: span 3; aspect-ratio: 16 / 10; }
.work--third { grid-column: span 2; aspect-ratio: 4 / 3; }

.work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
  filter: saturate(0.85) brightness(0.82);
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 6, 0.85));
  opacity: 0.9;
  transition: opacity var(--dur-base) var(--ease-out);
}
.work__meta {
  position: absolute;
  left: var(--space-6);
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 1;
  transform: translateY(6px);
  transition: transform var(--dur-base) var(--ease-out);
}
.work__meta .tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.work__meta h3 {
  margin-top: var(--space-2);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.work:hover {
  border-color: var(--white-a24);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), 0 0 32px rgba(245, 158, 11, 0.10);
}
.work:hover img { transform: scale(1.12); filter: saturate(1) brightness(1); }
.work:hover::after { opacity: 0.7; }
.work:hover .work__meta { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .work, .work img, .work::after, .work__meta { transition: none; }
  .work:hover { transform: none; }
  .work:hover img { transform: scale(1.06); }
}

/* ============================================================
   Glowing hover states — buttons and links
   ============================================================ */
.btn-primary { position: relative; }
.btn-primary:hover { box-shadow: 0 0 30px rgba(225, 29, 72, 0.38); }
.btn-ghost:hover  { box-shadow: 0 0 24px rgba(245, 158, 11, 0.16); }
.btn-dark:hover   { box-shadow: 0 0 26px rgba(0, 0, 0, 0.6); }

.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.card-link { position: relative; }
.card-link:hover { text-shadow: 0 0 18px rgba(251, 113, 133, 0.45); }

@media (prefers-reduced-motion: reduce) {
  .nav-links a:not(.btn)::after { transition: none; }
  .btn-primary:hover, .btn-ghost:hover, .btn-dark:hover { box-shadow: none; }
}

/* ============================================================
   Generous section rhythm for the rebuilt page
   ============================================================ */
.section--xl { padding: clamp(6rem, 16vh, 11rem) 0; }
.section-head--xl { max-width: 52rem; margin-bottom: clamp(3rem, 8vh, 5rem); }
.section-head--xl h2 {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 64rem) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .work--wide, .work--half { grid-column: span 6; }
  .work--tall, .work--third { grid-column: span 3; }
}
@media (max-width: 48rem) {
  .counters { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .work-grid { gap: var(--space-3); }
  .work--wide, .work--half, .work--tall, .work--third { grid-column: span 6; aspect-ratio: 16 / 10; }
  .reel-hero { min-height: calc(92svh - var(--header-h)); }
}

/* ============================================================
   Lenis integration
   Lenis drives scrolling itself, so native smooth-scroll must
   be off or the two fight each other.
   ============================================================ */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Parallax media needs headroom so the drift never exposes an edge */
.card-media[data-parallax-scope] { position: relative; overflow: hidden; }
.card-media[data-parallax-scope] img[data-parallax] {
  top: -12%;
  height: 124%;
}

/* ============================================================
   Interior pages — cinematic treatment
   Reuses the reel-hero, reveal and hover systems from the home
   page at a slightly quieter scale.
   ============================================================ */

/* ---- Shorter reel hero ---- */
.reel-hero--page { min-height: min(70svh, 44rem); }
.reel-hero--page h1 {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  max-width: 18ch;
}
.reel-hero--page .reel-hero__inner {
  padding: clamp(5rem, 13vh, 8rem) 0 clamp(3rem, 7vh, 4.5rem);
}

/* ---- Program detail blocks ---- */
.program-detail--xl {
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.program-detail--xl h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-top: var(--space-4);
}
.detail-media[data-parallax-scope] {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--ink-800);
}
.detail-media[data-parallax-scope] img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
}

/* ---- Skill lists ---- */
.skill-list li { padding-block: var(--space-1); }

/* ---- Tags ---- */
.tag { transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.tag:hover { border-color: var(--white-a24); color: var(--color-text-soft); }

/* ---- Faculty cards: lift + colour on hover ---- */
.faculty-card {
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.faculty-photo img {
  filter: saturate(0.8) brightness(0.85);
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}
.faculty-card:hover {
  transform: translateY(-6px);
  border-color: var(--white-a24);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9), 0 0 28px rgba(245, 158, 11, 0.10);
}
.faculty-card:hover .faculty-photo img { transform: scale(1.06); filter: saturate(1) brightness(1); }

/* ---- Admission steps: outlined cinema numerals ---- */
.step--xl { border-top: 1px solid var(--color-border-strong); padding-top: var(--space-6); }
.step--xl .index {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-accent-text);
}
.step--xl h3 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-lg); }

/* ---- Mission / vision + value cards ---- */
.mv-card, .value-card {
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.mv-card:hover, .value-card:hover {
  border-color: var(--white-a24);
  transform: translateY(-4px);
}

/* ---- Editorial intro paragraph ---- */
.prose-xl {
  max-width: 46rem;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.7;
  color: var(--color-text-soft);
}
.prose-xl + .prose-xl { margin-top: var(--space-6); }

/* ---- Contact panel on admisión ---- */
.form-wrap--xl { gap: clamp(3rem, 7vw, 6rem); }

@media (prefers-reduced-motion: reduce) {
  .faculty-card, .faculty-photo img, .mv-card, .value-card, .tag { transition: none; }
  .faculty-card:hover, .mv-card:hover, .value-card:hover { transform: none; box-shadow: none; }
  .faculty-card:hover .faculty-photo img { transform: none; }
}

@media (max-width: 64rem) {
  .program-detail--xl { grid-template-columns: 1fr; }
  .program-detail--xl.flip > div:first-child { order: 0; }
}

/* ============================================================
   Poster grid — "Próximos talleres y proyectos"
   Portrait 2:3 cards. Add more by copying one .poster-card
   block in the HTML; the grid reflows on its own.
   ============================================================ */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.poster-card { display: flex; flex-direction: column; }

.poster-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--ink-800);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.poster-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
  filter: saturate(0.9) brightness(0.9);
}
.poster-card:hover .poster-card__media {
  transform: translateY(-6px);
  border-color: var(--white-a24);
  box-shadow: 0 24px 60px -26px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.12);
}
.poster-card:hover .poster-card__media img { transform: scale(1.05); filter: saturate(1) brightness(1); }

/* Placeholder state when no image file has been dropped in yet */
.poster-card__media--empty {
  display: grid;
  place-items: center;
  gap: var(--space-3);
  border-style: dashed;
  border-color: var(--color-border-strong);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-6);
}
.poster-card__media--empty .hint {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.8;
}

.poster-card__body { padding-top: var(--space-4); }
.poster-card__date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.poster-card__body h3 {
  margin-top: var(--space-2);
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.poster-card__meta {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .poster-card__media, .poster-card__media img { transition: none; }
  .poster-card:hover .poster-card__media { transform: none; box-shadow: none; }
  .poster-card:hover .poster-card__media img { transform: none; }
}

@media (max-width: 64rem) {
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 48rem) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

/* ============================================================
   Formulario — honeypot y mensajes de envío
   ============================================================ */

/* Honeypot: invisible pero sin display:none, para que los bots
   que ignoran estilos igual lo rellenen. Fuera de tabulación. */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  border: 0; overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-alert {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-error);
  border-radius: var(--input-radius);
  background: rgba(225, 29, 72, 0.08);
  color: var(--color-error);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.form-alert[hidden] { display: none; }

/* Botón en estado "Enviando…" */
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn:disabled { cursor: not-allowed; }

.form-success:focus { outline: none; }

/* Datos de contacto clicables (correo / teléfono) en la sección de admisión */
.contact-item span a {
  color: inherit;
  transition: color var(--dur-fast) var(--ease-out),
              text-shadow var(--dur-fast) var(--ease-out);
}
.contact-item span a:hover {
  color: var(--color-accent-text);
  text-shadow: 0 0 18px rgba(251, 113, 133, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .contact-item span a { transition: none; }
  .contact-item span a:hover { text-shadow: none; }
}

/* ============================================================
   FAQ — acordeón accesible
   El panel se abre animando la pista del grid (0fr → 1fr) porque
   un acordeón necesita cambiar de alto por definición; el resto
   del movimiento es transform/opacity. `visibility` saca el
   contenido cerrado del árbol de accesibilidad.
   ============================================================ */
.faq-list {
  border-top: 1px solid var(--color-border-strong);
  max-width: 56rem;
}

.faq { border-bottom: 1px solid var(--color-border-strong); }

.faq__q { margin: 0; }

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
  font-family: var(--font-headline);
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__trigger:hover { color: var(--color-accent-text); }
.faq__trigger:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 4px;
}

/* Icono +/− construido con dos barras; sólo se anima transform */
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--color-accent-text);
  transition: transform var(--dur-base) var(--ease-entrance);
}
.faq__icon::after { transform: rotate(90deg); }
.faq[data-open="true"] .faq__icon::after { transform: rotate(0deg); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-entrance);
}
.faq[data-open="true"] .faq__panel { grid-template-rows: 1fr; }

.faq__inner {
  overflow: hidden;
  visibility: hidden;
  /* Se oculta del lector de pantalla sólo al terminar el cierre */
  transition: visibility 0s linear 0.55s;
}
.faq[data-open="true"] .faq__inner {
  visibility: visible;
  transition-delay: 0s;
}

.faq__answer {
  padding-bottom: var(--space-6);
  max-width: 46rem;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-entrance) 0.1s,
              transform 0.45s var(--ease-entrance) 0.1s;
}
.faq[data-open="true"] .faq__answer { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .faq__panel,
  .faq__inner,
  .faq__answer,
  .faq__icon::before,
  .faq__icon::after,
  .faq__trigger { transition: none; }
}

/* ============================================================
   Páginas legales (privacidad / términos)
   Tipografía de lectura larga sobre el mismo fondo cinematográfico.
   ============================================================ */
.legal { max-width: 46rem; }

.legal h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  margin: var(--space-12) 0 var(--space-4);
}
.legal > h2:first-child { margin-top: 0; }
.legal h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-3); }

.legal p,
.legal li {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}
.legal p + p { margin-top: var(--space-4); }
.legal strong { color: var(--color-text-soft); font-weight: 600; }

.legal ul {
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.legal li { position: relative; padding-left: var(--space-6); }
.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.85rem;
  height: 1px;
  background: var(--color-accent);
}

.legal a { color: var(--color-accent-text); }
.legal a:hover { text-shadow: 0 0 18px rgba(251, 113, 133, 0.4); }

/* Aviso: contenido inicial pendiente de revisión legal */
.legal-notice {
  border: 1px solid var(--color-border-strong);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: rgba(225, 29, 72, 0.06);
  padding: var(--space-6);
  margin-bottom: var(--space-12);
}
.legal-notice p { color: var(--color-text-soft); font-size: var(--text-sm); margin: 0; }
.legal-notice strong { color: var(--color-text); }

.legal-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

/* Enlaces legales en el pie */
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-legal a { color: var(--color-text-muted); transition: color var(--dur-fast) var(--ease-out); }
.footer-legal a:hover { color: var(--color-text); }

@media (prefers-reduced-motion: reduce) {
  .footer-legal a { transition: none; }
  .legal a:hover { text-shadow: none; }
}

/* ============================================================
   Casilla de consentimiento del formulario
   Los estilos de .field input (alto 48px, ancho 100%, borde…)
   están pensados para campos de texto: aquí se anulan.
   ============================================================ */
.field label.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  /* anula el label en mayúsculas/mono del resto de campos */
  font-family: var(--font-display);
  font-size: var(--text-sm);
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-bottom: 0;
  /* toda la etiqueta es zona pulsable, no sólo la casilla */
  padding: var(--space-2) 0;
}

.field label.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.field label.consent a { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 2px; }
.field label.consent a:hover { text-shadow: 0 0 18px rgba(251, 113, 133, 0.4); }

/* Estado de error: sin cambiar la altura de la fila */
.field.invalid label.consent { color: var(--color-text-soft); }
.field.invalid label.consent input[type="checkbox"] {
  outline: 2px solid var(--color-error);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .field label.consent a:hover { text-shadow: none; }
}
