/* =============================================================
   ICEDA Business School · styles.css
   Azul marino profundo + blanco diploma + oro de laurel.
   Cada sección es oscura por defecto; .theme-light la vuelve blanca.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Paleta */
  --navy-950: #070e1d;
  --navy-900: #0a1428;
  --navy-850: #0d1a33;
  --navy-800: #11213f;
  --navy-700: #1a3156;
  --gold: #c9a55a;
  --gold-2: #e3c98f;
  --gold-3: #9c7a36;
  --gold-ink: #8a6a2b;
  --ivory: #f3ede1;
  --ivory-2: #cdc6b8;
  --white: #ffffff;
  --paper: #f7f4ee;
  --ink: #0b1630;
  --ink-2: #3d4659;
  --ink-mute: #687184;

  /* Semánticos: tema oscuro (por defecto) */
  --bg: var(--navy-950);
  --fg: var(--ivory);
  --fg-2: var(--ivory-2);
  --fg-mute: #98a1b3;
  --accent: var(--gold);
  --accent-em: var(--gold-2);
  --line: rgba(243, 237, 225, 0.12);
  --line-2: rgba(243, 237, 225, 0.2);
  --gold-line: rgba(201, 165, 90, 0.32);
  --card-bg: linear-gradient(180deg, var(--navy-850), var(--navy-900));
  --tint-bg: rgba(7, 14, 29, 0.35);
  --field-bg: rgba(7, 14, 29, 0.6);
  --guilloche: var(--gold);
  --card-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.7);

  --serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(16px, 4.2vw, 48px);
  --maxw: 1240px;
  --nav-h: 72px;
  --radius: 20px;
  --section-y: clamp(84px, 11vw, 148px);
}

/* Secciones blancas: misma estructura, otra luz */
.theme-light {
  --bg: var(--white);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-mute: var(--ink-mute);
  --accent: var(--gold-ink);
  --accent-em: #9a7432;
  --line: rgba(11, 22, 48, 0.11);
  --line-2: rgba(11, 22, 48, 0.2);
  --gold-line: rgba(160, 122, 50, 0.38);
  --card-bg: var(--white);
  --tint-bg: var(--paper);
  --field-bg: var(--white);
  --guilloche: #b8913f;
  --card-shadow: 0 30px 60px -32px rgba(11, 22, 48, 0.28);
  background-color: var(--bg);
  color: var(--fg-2);
}
.theme-light.is-paper { --bg: var(--paper); --card-bg: var(--white); --tint-bg: var(--white); }

/* Bloques oscuros dentro de secciones blancas */
.theme-dark, .dates, .form-card:not(.form-card--light) {
  --fg: var(--ivory);
  --fg-2: var(--ivory-2);
  --fg-mute: #98a1b3;
  --accent: var(--gold);
  --accent-em: var(--gold-2);
  --line: rgba(243, 237, 225, 0.12);
  --line-2: rgba(243, 237, 225, 0.2);
  --gold-line: rgba(201, 165, 90, 0.32);
  --tint-bg: rgba(7, 14, 29, 0.35);
  --field-bg: rgba(7, 14, 29, 0.6);
  --guilloche: var(--gold);
  color: var(--fg-2);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
  background: var(--navy-950);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-2);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
dd { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--gold); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.sr-only, .hp-field {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 1000;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ivory); color: var(--navy-950); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.i { width: 1.15em; height: 1.15em; flex: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5;
  color: var(--accent);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 165, 90, 0.16);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem);
  line-height: 1.02;
  margin-top: 18px;
  max-width: 21ch;
}
.section-lead {
  margin-top: 20px; max-width: 58ch;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem);
}
h1 em, h2 em, h3 em, h4 em, .statement em {
  font-style: italic; font-weight: 500; color: var(--accent-em);
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.1;
  white-space: nowrap; text-align: center;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn .i { width: 18px; height: 18px; }
.btn small { font-size: 12px; font-weight: 500; opacity: 0.72; }
.btn-gold {
  color: #0b1426;
  background: linear-gradient(135deg, #e2c27e 0%, #c9a55a 50%, #a8843e 100%);
  box-shadow: 0 10px 30px -12px rgba(201, 165, 90, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-ghost { color: var(--fg); border: 1px solid var(--line-2); background: transparent; }
.btn-ghost .i { color: var(--accent); }
.btn-ghost--light { color: var(--ivory); border-color: rgba(243, 237, 225, 0.35); background: rgba(7, 14, 29, 0.25); }
.btn-ghost--light .i { color: var(--gold); }
.btn-navy {
  color: var(--ivory); background: var(--navy-850);
  box-shadow: 0 14px 30px -16px rgba(11, 22, 48, 0.6);
}
.btn-navy .i { color: var(--gold); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(201, 165, 90, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
  .btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold-line); background: rgba(201, 165, 90, 0.08); }
  .btn-navy:hover { transform: translateY(-2px); background: var(--navy-700); }
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.65; pointer-events: none; }

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--fg-2);
  transition: color 0.3s;
}
.link-quiet .i { color: var(--accent); width: 17px; height: 17px; }
.link-quiet:hover { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips--col { flex-direction: column; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14.5px; font-weight: 600; color: var(--fg);
  transition: border-color 0.3s, background-color 0.3s, transform 0.45s var(--ease-out);
}
.chip .i { color: var(--accent); width: 18px; height: 18px; }
@media (hover: hover) {
  .chip:hover { border-color: var(--gold-line); background: rgba(201, 165, 90, 0.08); transform: translateY(-2px); }
}

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-emblem { width: 52px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: 0.1em; color: var(--ivory); }
.brand-sub { margin-top: 4px; font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
  view-transition-name: site-nav;
}
.nav.is-scrolled, .menu-open .nav { background: rgba(7, 14, 29, 0.94); border-bottom-color: rgba(243, 237, 225, 0.12); }
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .nav.is-scrolled {
    background: rgba(7, 14, 29, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: none; }
.nav-toggle {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(243, 237, 225, 0.25);
  display: grid; place-items: center; transition: border-color 0.3s;
}
.nav-toggle:hover { border-color: rgba(201, 165, 90, 0.5); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.5px; border-radius: 2px; background: var(--ivory);
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); background: var(--ivory); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); background: var(--ivory); }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav-cta { display: inline-flex; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 99;
  padding-top: var(--nav-h); overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(40, 80, 112, 0.35), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(201, 165, 90, 0.1), transparent 70%),
    var(--navy-950);
  opacity: 0; transition: opacity 0.35s ease;
}
.menu.is-open { opacity: 1; }
.menu-inner {
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  padding-block: 24px 36px;
}
.menu-links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-weight: 600; line-height: 1.1;
  font-size: clamp(2.1rem, 8.5vw, 3.2rem); color: var(--ivory);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
  transition-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu-links a:hover { color: var(--gold-2); }
.menu-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--gold); font-weight: 400; }
.menu-foot { display: grid; gap: 16px; }
.menu-mail { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ivory-2); }
.menu-mail .i { color: var(--gold); }
body.menu-open { overflow: hidden; }

/* Guilloché (sello de certificación) */
[data-guilloche] { color: var(--guilloche); }
[data-guilloche] svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.g-static circle { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.32; vector-effect: non-scaling-stroke; }
.g-layer { will-change: transform; }
.g-layer path {
  fill: none; stroke: currentColor; stroke-width: var(--gw, 1.6); stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.is-on .g-layer path { animation: gDraw 3.4s var(--ease-out) var(--gd, 0s) forwards; }
.g-spin-a { animation: gSpin 240s linear infinite; }
.g-spin-b { animation: gSpin 170s linear infinite reverse; }
.g-spin-c { animation: gSpin 300s linear infinite; }

/* Sello: anillos guilloché + escudo */
.seal { position: relative; width: 100%; aspect-ratio: 1; }
.seal-rings { position: absolute; inset: 0; transform: rotate(calc(var(--sp, 0) * 40deg)); }
.seal-emblem {
  position: absolute; left: 50%; top: 50%; width: 46%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 34px rgba(11, 22, 48, 0.35));
}

/* Reveal on scroll (solo con JS; sin JS todo se ve) */
.js .reveal {
  opacity: 0; translate: 0 26px;
  transition: opacity 0.9s var(--ease-out) var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; translate: none; }
.reveal[data-split] { opacity: 1; transform: none; translate: none; }
/* Red de seguridad: si main.js no arranca, todo aparece igual a los 2,5 s */
html.js:not(.is-ready) .reveal { animation: revealSafety 0.01s 2.5s forwards; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { position: relative; padding-block: var(--section-y); background-color: var(--bg); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--split { max-width: none; display: grid; gap: 22px; }

/* ---------- Hero con video ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 0 32px;
  background: var(--navy-950);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 55% at 76% 44%, rgba(40, 80, 112, 0.42), transparent 70%),
    radial-gradient(45% 45% at 6% 100%, rgba(201, 165, 90, 0.1), transparent 70%),
    linear-gradient(180deg, #081128 0%, var(--navy-950) 100%);
}
.hero--video { justify-content: flex-end; }
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background: var(--navy-950) url("assets/img/portada-iceda.webp") center / cover no-repeat;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 1.2s ease both; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 14, 29, 0.55) 0%, rgba(7, 14, 29, 0.45) 30%, rgba(7, 14, 29, 0.82) 62%, rgba(7, 14, 29, 0.96) 100%);
}
.hero-inner { position: relative; }
.hero-copy { max-width: 760px; }
.hero-kicker { color: var(--gold); animation: fadeUp 0.9s var(--ease-out) 0.1s both; }
.hero-kicker .dot { animation: pulse 2.6s ease-in-out infinite; }
.hero-title {
  margin-top: 16px; color: var(--ivory);
  font-family: var(--serif); font-weight: 600;
  /* La línea más larga ("Lo que aprendes") mide ~6,1 veces el tamaño de letra */
  font-size: clamp(2.5rem, 13.6vw, 5.6rem);
  line-height: 0.94; letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(7, 14, 29, 0.45);
}
.hero-title em { color: var(--gold-2); }
.hero-title .line { display: block; overflow: hidden; padding: 0.05em 0 0.12em; margin-bottom: -0.12em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1.15s var(--ease-out) both; }
.hero-title .line:nth-child(1) > span { animation-delay: 0.22s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.34s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.46s; }
.hero-sub {
  margin-top: 22px; max-width: 50ch; color: #ddd6c8;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  animation: fadeUp 1s var(--ease-out) 0.7s both;
}
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; animation: fadeUp 1s var(--ease-out) 0.85s both; }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-top: 40px; animation: fadeIn 1.2s ease 1.1s both;
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.hero-facts li { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #b9c0cd; }
.hero-facts strong {
  display: block; margin-bottom: 2px;
  font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1;
  letter-spacing: 0; text-transform: none; color: var(--ivory);
}
.hero-foot-right { display: flex; align-items: flex-end; gap: 28px; }
.video-toggle {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(243, 237, 225, 0.28); background: rgba(7, 14, 29, 0.35);
  font-size: 12.5px; font-weight: 600; color: var(--ivory); transition: border-color 0.3s;
}
.video-toggle:hover { border-color: rgba(201, 165, 90, 0.6); }
.video-toggle span { display: inline-flex; align-items: center; gap: 8px; }
.video-toggle .i { width: 14px; height: 14px; color: var(--gold); }
.video-toggle .vt-play, .video-toggle[aria-pressed="true"] .vt-pause { display: none; }
.video-toggle[aria-pressed="true"] .vt-play { display: inline-flex; }
html:not(.js) .video-toggle { display: none; }
@media (max-width: 539px) {
  /* En teléfono, solo el icono (el texto sigue disponible para lectores de pantalla) */
  .video-toggle { width: 40px; padding: 0; justify-content: center; }
  .video-toggle span { font-size: 0; gap: 0; }
  .hero-facts { gap: 12px 22px; }
}
.scroll-cue { display: none; }
.scroll-line {
  width: 1px; height: 54px; transform-origin: top;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.6s var(--ease-out) infinite;
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; padding: 18px 0; background-color: var(--navy-950);
  border-block: 1px solid rgba(201, 165, 90, 0.32);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-weight: 500; line-height: 1.2;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); color: var(--ivory);
}
.i-star { width: 11px; height: 11px; color: var(--gold); }

/* ---------- Quiénes somos (blanco) ---------- */
.about-grid { display: grid; gap: 34px; align-items: center; }
.about-seal { justify-self: center; width: min(76vw, 340px); }
.statement {
  margin-top: 18px; font-family: var(--serif); font-weight: 500; color: var(--fg);
  font-size: clamp(1.9rem, 1.15rem + 2.5vw, 3.1rem); line-height: 1.12; max-width: 28ch;
}
.about-cols { display: grid; gap: 18px; margin-top: 30px; }
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 48px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 24px 16px 4px 0; }
.stat dd {
  font-family: var(--serif); font-weight: 600; line-height: 1; color: var(--accent-em);
  font-size: clamp(3rem, 2rem + 3.4vw, 4.8rem); font-variant-numeric: lining-nums tabular-nums;
}
.stat dt { font-size: 13.5px; line-height: 1.45; color: var(--fg-mute); max-width: 22ch; }

/* ---------- Programas ---------- */
.programs-block + .programs-block { margin-top: clamp(64px, 8vw, 104px); }
.block-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px;
  padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.block-title { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem); }
.block-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }

.pcards { display: grid; gap: 22px; }
.pcard {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--line);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
}
.theme-light .pcard { box-shadow: var(--card-shadow); }
.js .pcard.reveal {
  transition: opacity 0.9s var(--ease-out) var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s),
              border-color 0.4s, box-shadow 0.5s var(--ease-out);
}
.pcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx) var(--my), rgba(201, 165, 90, 0.15), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.pcard-link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; overflow: hidden; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter 0.6s; }
.pcard-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 20, 40, 0.6) 100%);
}
.pcard-badges {
  position: absolute; left: 14px; top: 14px; right: 14px; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.pcard-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0b1426; background: linear-gradient(135deg, #e2c27e, #c9a55a);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
.pcard-badge .i { width: 15px; height: 15px; flex: none; }
/* La fecha, cuando arriba va la insignia "La más vendida" */
.pcard-badge--soft { color: var(--ivory); background: rgba(7, 14, 29, 0.74); border: 1px solid rgba(243, 237, 225, 0.2); }
.pcard-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; }
.pcard-kind, .prow-kind, .person-role {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; color: var(--accent);
}
.pcard-title { font-family: var(--serif); font-size: clamp(1.75rem, 1.45rem + 0.8vw, 2.15rem); line-height: 1.04; }
.pcard-text { font-size: 15px; line-height: 1.6; }
.pcard-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.5; color: var(--fg-mute);
}
.pcard-meta span + span::before { content: "·"; margin-right: 14px; color: var(--gold-3); }
.pcard-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fg); }
.pcard-cta .i { color: var(--accent); transition: transform 0.4s var(--ease-out); }
@media (hover: hover) {
  .pcard:hover { border-color: var(--gold-line); box-shadow: var(--card-shadow); }
  .pcard:hover::after { opacity: 1; }
  .pcard:hover .pcard-media img { transform: scale(1.06); filter: saturate(1.1); }
  .pcard:hover .pcard-cta .i { transform: translateX(5px); }
}

.prows { border-top: 1px solid var(--line); }
.prow-item { border-bottom: 1px solid var(--line); }
.prow {
  position: relative; isolation: isolate;
  display: grid; align-items: center; gap: 4px 16px;
  grid-template-columns: 76px minmax(0, 1fr) 24px;
  grid-template-areas: "thumb main arrow" "thumb meta arrow";
  padding: 22px 0;
}
.prow::before {
  content: ""; position: absolute; inset: 0 -14px; z-index: -1; border-radius: 14px;
  background: linear-gradient(90deg, rgba(201, 165, 90, 0.09), rgba(201, 165, 90, 0) 75%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.prow-num { display: none; }
.prow-thumb { grid-area: thumb; width: 76px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--navy-800); align-self: start; }
.prow-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.prow-thumb--icon {
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 30% 20%, rgba(201, 165, 90, 0.18), transparent 60%), var(--navy-800);
  border: 1px solid var(--gold-line);
}
.prow-thumb--icon .i { width: 30px; height: 30px; }
.prow-main { grid-area: main; }
.prow-title {
  margin-top: 4px; font-family: var(--serif); line-height: 1.08;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.95rem);
  transition: color 0.3s, transform 0.5s var(--ease-out);
}
.prow-text { display: none; }
.prow-meta { grid-area: meta; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; color: var(--fg-mute); }
.prow-arrow { grid-area: arrow; color: var(--accent); transition: transform 0.45s var(--ease-out); }
.prow-arrow .i { width: 22px; height: 22px; }
@media (hover: hover) {
  .prow:hover::before { transform: scaleX(1); }
  .prow:hover .prow-title { color: var(--accent-em); transform: translateX(6px); }
  .prow:hover .prow-arrow { transform: translateX(6px); }
  .prow:hover .prow-thumb img { transform: scale(1.08); }
}

/* ---------- Galería (papel) ---------- */
.gallery-grid { display: grid; gap: 16px; }
.gitem { position: relative; margin: 0; }
.gitem-link {
  position: relative; display: block; overflow: hidden; border-radius: 18px;
  background: var(--paper); box-shadow: var(--card-shadow);
}
.gitem img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 1.1s var(--ease-out); }
.gitem.g-b img { aspect-ratio: 4 / 5; }
.gitem-zoom {
  position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory); background: rgba(7, 14, 29, 0.55);
  opacity: 0; transform: scale(0.85); transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.gitem-zoom .i { width: 17px; height: 17px; }
.gitem figcaption {
  margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-mute);
}
@media (hover: hover) {
  .gitem-link:hover img { transform: scale(1.04); }
  .gitem-link:hover .gitem-zoom { opacity: 1; transform: none; }
}

.lightbox {
  width: min(96vw, 1200px); max-height: 92vh; padding: 0; border: 0; border-radius: 16px;
  background: var(--navy-950); color: var(--ivory); overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 8, 18, 0.88); }
.lightbox img { width: 100%; max-height: calc(92vh - 60px); object-fit: contain; background: #04070f; }
.lightbox-cap { padding: 14px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.lightbox-close {
  position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border-radius: 50%;
  font-size: 26px; line-height: 1; color: var(--ivory); background: rgba(7, 14, 29, 0.7);
}

/* ---------- Método ---------- */
.method { background-color: var(--navy-900); }
.method-grid { display: grid; gap: 48px; }
.method-figure {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; background: var(--navy-800);
}
.method-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method-figure::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 14, 29, 0.8) 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 90, 0.3);
}
.method-figure figcaption {
  position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory);
}
.pillars { margin-top: 40px; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pillar-num { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 32px; line-height: 1; color: var(--accent); }
.pillar h3 { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }
.pillar p { margin-top: 6px; font-size: 15.5px; }

/* ---------- Testimonios (blanco) ---------- */
.tgrid { display: grid; gap: 34px 26px; }
.tcard { display: flex; flex-direction: column; }
.tvideo {
  position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5;
  background: var(--navy-900); box-shadow: var(--card-shadow);
}
.tvideo video { width: 100%; height: 100%; object-fit: cover; background: var(--navy-900); }
.tplay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px; color: var(--ivory);
  background: linear-gradient(180deg, rgba(7, 14, 29, 0) 45%, rgba(7, 14, 29, 0.78) 100%);
  transition: opacity 0.35s;
}
.tplay-icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  color: #0b1426; background: linear-gradient(135deg, #e2c27e, #c9a55a);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.45s var(--ease-out);
}
.tplay-icon .i { width: 24px; height: 24px; margin-left: 3px; }
.tplay-dur {
  padding: 6px 10px; border-radius: 999px; background: rgba(7, 14, 29, 0.6);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
}
.tplay:hover .tplay-icon { transform: scale(1.08); }
.tcard.is-playing .tplay { opacity: 0; pointer-events: none; }
html:not(.js) .tplay { display: none; }
.tquote { margin: 22px 0 0; }
.tquote p {
  font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--fg);
  font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.65rem); line-height: 1.22;
}
.tcard-name { margin-top: 16px; font-weight: 700; color: var(--fg); font-size: 15.5px; }
.tcard-role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.tcard-with { margin-top: 6px; font-size: 13.5px; color: var(--fg-mute); }

/* ---------- Equipo ---------- */
.team-lead, .team-grid { display: grid; gap: 22px; }
.team-grid { margin-top: 22px; }
.person {
  display: grid; overflow: hidden; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--line);
}
.person-plate {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: radial-gradient(120% 95% at 50% 12%, #f7f0e2 0%, #e8dbc1 65%, #d6c39f 100%);
}
.person-plate img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05);
  transition: filter 0.8s var(--ease-out), transform 1.1s var(--ease-out);
}
.person-plate--mono { display: grid; place-items: center; }
.mono-rings { position: absolute; inset: 8%; width: 84%; height: 84%; }
.mono-rings circle { fill: none; stroke: #b8913f; stroke-width: 2; opacity: 0.6; }
.mono-rings circle + circle { stroke-width: 1.2; opacity: 0.45; }
.mono-letters {
  position: relative; font-family: var(--serif); font-weight: 600; letter-spacing: 0.04em;
  font-size: clamp(4.2rem, 3rem + 4vw, 6.4rem); line-height: 1; color: var(--navy-850);
}
.person-body { padding: 22px 22px 26px; }
.person-name { margin-top: 8px; font-family: var(--serif); font-size: clamp(1.7rem, 1.5rem + 0.6vw, 2.05rem); }
.person-bio { margin-top: 10px; font-size: 15px; line-height: 1.65; }
.person-creds { margin-top: 12px; display: grid; gap: 7px; font-size: 15px; line-height: 1.55; }
.person-creds li { position: relative; padding-left: 20px; }
.person-creds li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 1px; background: var(--gold); }
.person-link { margin-top: 12px; }
.person-link a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fg); }
.person-link .i { color: var(--accent); width: 17px; height: 17px; }
.person-link a:hover { color: var(--accent); }
.person-teaches { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--fg-mute); }
.person-teaches span {
  display: block; margin-bottom: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.person-teaches a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; transition: color 0.3s; }
.person-teaches a:hover { color: var(--accent-em); }
@media (hover: hover) {
  .person:hover .person-plate img { filter: grayscale(0) contrast(1); transform: scale(1.03); }
}

/* ---------- InCompany (blanco) ---------- */
.incompany-grid { display: grid; gap: 44px; align-items: start; }
.svc-list { display: grid; gap: 14px; margin-top: 34px; }
.svc {
  position: relative; padding: 22px 22px 22px 70px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--tint-bg);
}
.svc-num { position: absolute; left: 22px; top: 22px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 26px; line-height: 1; color: var(--accent); }
.svc-title { font-family: var(--serif); font-size: 1.55rem; }
.svc p { margin-top: 4px; font-size: 15px; line-height: 1.55; }
.svc-more { margin-top: 18px; font-size: 15px; color: var(--fg-mute); }
.incompany-figure { margin: 26px 0 0; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 9; box-shadow: var(--card-shadow); }
.incompany-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Sedes ---------- */
.calendar-note {
  border: 1px solid var(--gold-line); border-radius: 16px;
  padding: 20px 22px; background: rgba(201, 165, 90, 0.06);
  font-size: 15px; line-height: 1.6;
}
.calendar-note a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.calendar-title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.calendar-note .dot { animation: pulse 2.6s ease-in-out infinite; }
.sedes-grid { display: grid; gap: 22px; }
.sede {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card-bg);
}
.sede::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.sede-code { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.sede-city { margin-top: 14px; font-family: var(--serif); font-size: clamp(1.9rem, 1.5rem + 1vw, 2.4rem); }
.sede-country { margin-top: 2px; font-size: 14px; color: var(--fg-mute); }
.sede-addr { flex: 1; margin-top: 18px; font-size: 15px; line-height: 1.6; }
.sede-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Preguntas (papel) ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 600; line-height: 1.2;
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); color: var(--fg); transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-em); }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color 0.3s, transform 0.5s var(--ease-out); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: var(--accent); transform: translate(-50%, -50%); transition: transform 0.45s var(--ease-out);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { border-color: var(--gold-line); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-body { padding-bottom: 24px; max-width: 62ch; font-size: 16px; }
.faq-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formularios ---------- */
.contact { background: radial-gradient(60% 70% at 0% 100%, rgba(201, 165, 90, 0.08), transparent 70%), var(--navy-900); }
.contact-grid { display: grid; gap: 44px; align-items: start; }
.channels { margin-top: 32px; display: grid; gap: 10px; }
.channels a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); transition: border-color 0.3s, background-color 0.3s; }
.channels a:hover { border-color: var(--gold-line); background: rgba(201, 165, 90, 0.06); }
.channels .i { width: 22px; height: 22px; color: var(--accent); }
.channels span { display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.channels strong { color: var(--fg); font-weight: 600; }

.form-card {
  position: relative; padding: clamp(22px, 3.6vw, 40px); border-radius: 26px;
  border: 1px solid rgba(243, 237, 225, 0.2);
  background: linear-gradient(180deg, rgba(17, 33, 63, 0.92), rgba(13, 26, 51, 0.92));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.75);
}
.form-card--light { background: var(--white); border-color: var(--line); box-shadow: 0 40px 90px -40px rgba(11, 22, 48, 0.35); }
.form-title { font-family: var(--serif); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); }
.form-intro { margin: 8px 0 22px; font-size: 15px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--fg-mute); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--field-bg);
  font-size: 16px; line-height: 1.4; color: var(--fg);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a55a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { background: var(--white); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 165, 90, 0.18);
}
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { position: relative; display: inline-flex; cursor: pointer; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--fg);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.check input:checked + span { background: var(--navy-850); border-color: var(--navy-850); color: var(--ivory); }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-error { display: none; font-size: 13px; color: #c2412b; }
.form-card:not(.form-card--light) .field-error { color: #f2a493; }
.field.has-error input { border-color: #d9654f; }
.field.has-error .field-error { display: block; }
.form-error { display: grid; gap: 12px; font-size: 14px; }
.form-error > p { color: #c2412b; }
.form-note { font-size: 13px; line-height: 1.5; text-align: center; color: var(--fg-mute); }
.form-note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }

.form-success { display: grid; justify-items: center; gap: 14px; padding: 26px 6px; text-align: center; }
.form-success:focus { outline: none; }
.success-check { width: 76px; height: 76px; }
.success-check circle, .success-check path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.success-check path { stroke-dasharray: 36; stroke-dashoffset: 36; stroke-width: 2.6; }
.form-success.is-shown .success-check circle { animation: strokeIn 0.9s var(--ease-out) forwards; }
.form-success.is-shown .success-check path { animation: strokeIn 0.6s var(--ease-out) 0.55s forwards; }
.success-title { font-family: var(--serif); font-size: 2rem; }
.form-success p { max-width: 40ch; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(64px, 8vw, 96px); border-top: 1px solid rgba(201, 165, 90, 0.32); background: var(--navy-950); }
.footer-grid { display: grid; gap: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; }
.footer-escudo { width: 86px; height: auto; }
.footer-wordmark { width: 170px; height: auto; }
.footer-tag { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.social {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--ivory-2);
  transition: color 0.3s, border-color 0.3s, transform 0.45s var(--ease-out);
}
.social .i { width: 18px; height: 18px; }
.social:hover { color: var(--gold-2); border-color: var(--gold-line); transform: translateY(-2px); }
.footer-title { margin-bottom: 16px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { display: grid; gap: 10px; font-size: 15px; line-height: 1.45; }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact a span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  margin-top: 64px; padding-block: 26px 34px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg-mute);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a:hover { color: var(--gold-2); }

/* ---------- Página de programa ---------- */
.phero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px); background: var(--navy-950); }
.phero-grid { display: grid; gap: 44px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 13px; color: var(--fg-mute); }
.crumbs a { transition: color 0.3s; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs [aria-current] { color: var(--fg-2); }
.phero-title { margin-top: 16px; font-family: var(--serif); line-height: 0.98; font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5.4rem); animation: fadeUp 1s var(--ease-out) 0.15s both; }
.phero-subtitle { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); color: var(--gold-2); animation: fadeUp 1s var(--ease-out) 0.22s both; }
.phero-flag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: rgba(201, 165, 90, 0.1);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); animation: fadeUp 0.9s var(--ease-out) 0.12s both;
}
.phero-flag .i { width: 17px; height: 17px; flex: none; }
.phero-lead { margin-top: 20px; max-width: 54ch; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); animation: fadeUp 1s var(--ease-out) 0.3s both; }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px;
  margin-top: 30px; border-top: 1px solid var(--line); animation: fadeUp 1s var(--ease-out) 0.42s both;
}
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt, .dates-list dt, .struct dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); line-height: 1.5; }
.facts dd { margin-top: 6px; font-size: 15.5px; font-weight: 500; line-height: 1.4; color: var(--fg); }
.page-program .hero-actions, .page-legal .hero-actions { animation-delay: 0.52s; }
.phero-visual { position: relative; justify-self: center; width: min(100%, 460px); }
.phero-mark { position: absolute; z-index: -1; width: 150%; aspect-ratio: 1; left: 50%; top: 48%; transform: translate(-50%, -50%); opacity: 0.5; pointer-events: none; }
.arch {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 26px 26px; background: var(--navy-800);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8);
  animation: archIn 1.2s var(--ease-out) 0.2s both;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(7, 14, 29, 0.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 90, 0.35);
}

.psec--alt { background-color: var(--navy-900); }
.psec-grid { display: grid; gap: 28px; }
.psec-title { margin-top: 14px; font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.psec-note { margin-top: 12px; font-size: 14px; color: var(--fg-mute); }
.prose p { max-width: 64ch; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem); line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }
.audience { margin-top: 30px; padding: 22px 24px; border-left: 2px solid var(--gold); background: var(--tint-bg); border-radius: 0 14px 14px 0; }
.audience-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.audience p:last-child { color: var(--fg); }
.pquote { margin: 40px 0 0; padding-top: 30px; border-top: 1px solid var(--gold-line); }
.pquote blockquote { margin: 0; }
.pquote blockquote p { max-width: 30ch; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; color: var(--fg); }
.pquote figcaption { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.benefits-intro { max-width: 64ch; font-size: 1.08rem; color: var(--fg); }
.benefits { margin-top: 24px; display: grid; gap: 12px; }
.benefits li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--tint-bg); font-size: 15.5px; line-height: 1.5; color: var(--fg); }
.benefits .i { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.extra { margin-top: 44px; }
.extra-title { font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.8rem); }
.extra-list { margin-top: 14px; display: grid; gap: 8px; }
.extra-list li { position: relative; padding-left: 22px; }
.extra-list li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.extra-text { margin-top: 12px; max-width: 62ch; }
.struct { margin-top: 16px; display: grid; gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.struct-cell { padding: 16px 18px; background: var(--navy-900); }
.struct dd { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--fg); font-weight: 500; }

.bars { margin-top: 44px; display: grid; gap: 22px; }
.bar-head { display: flex; align-items: baseline; gap: 14px; }
.bar-num { min-width: 3.1ch; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--accent-em); }
.bar-label { font-weight: 600; color: var(--fg); }
.bar-track { margin-top: 10px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; transform-origin: left; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.js .bars .bar-fill { transform: scaleX(0); transition: transform 1.5s var(--ease-out) 0.25s; }
.js .bars.is-in .bar-fill { transform: scaleX(1); }
html.js:not(.is-ready) .bars .bar-fill { animation: barSafety 0.01s 2.5s forwards; }
.bar-text { margin-top: 8px; font-size: 14.5px; color: var(--fg-mute); }

.modules { border-top: 1px solid var(--line); }
.module { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.module-num { display: flex; flex-direction: column; font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1; color: var(--accent); }
.module-num small { margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); }
.module-title { padding-top: 16px; font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; }
.module-obj { margin-top: 10px; font-size: 15.5px; line-height: 1.6; max-width: 62ch; }
.module-items { margin-top: 12px; display: grid; gap: 7px; font-size: 15px; line-height: 1.55; }
.module-items li { position: relative; padding-left: 20px; }
.module-items li::before { content: ""; position: absolute; left: 3px; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-3); }
.module-more { margin-top: 14px; }
.module-more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
}
.module-more summary::-webkit-details-marker { display: none; }
.module-more summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform 0.35s var(--ease-out); }
.module-more[open] summary::after { transform: rotate(45deg); }
.module-practice { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--tint-bg); font-size: 14.5px; line-height: 1.55; }
.module-practice span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.module-quote { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; color: var(--accent-em); }

.ptema { display: grid; gap: 22px; }

.dates {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 34px; padding: clamp(26px, 5vw, 56px); border-radius: 28px;
  border: 1px solid rgba(201, 165, 90, 0.32);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(40, 80, 112, 0.45), transparent 60%),
    linear-gradient(180deg, var(--navy-850), var(--navy-900));
  box-shadow: 0 40px 90px -40px rgba(11, 22, 48, 0.55);
}
.dates-mark { position: absolute; z-index: -1; width: 640px; aspect-ratio: 1; right: -260px; top: -260px; opacity: 0.4; pointer-events: none; }
.dates-title { margin-top: 14px; font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); color: var(--ivory); }
.dates-lead { margin-top: 14px; max-width: 52ch; }
.dates-list { margin-top: 26px; display: grid; gap: 14px; }
.dates-list dd { margin-top: 2px; font-size: 15.5px; line-height: 1.5; color: var(--ivory); }
.dates-actions { display: grid; gap: 16px; align-content: center; }
.dates-actions .chip { width: 100%; }

.related { background-color: var(--navy-900); }

/* Seminarios de marketing */
.mseminars { display: grid; gap: 22px; }
.mseminar {
  display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card-bg); box-shadow: var(--card-shadow);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.mseminar-top { display: flex; align-items: center; justify-content: space-between; }
.mseminar-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--gold); background: var(--navy-850); }
.mseminar-icon .i { width: 26px; height: 26px; }
.mseminar-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.mseminar-title { font-family: var(--serif); font-size: clamp(1.55rem, 1.35rem + 0.7vw, 1.95rem); line-height: 1.12; }
.mseminar-desc { font-size: 15.5px; line-height: 1.65; flex: 1; }
.mseminar-cta { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; color: var(--fg); }

/* ---------- Páginas legales ---------- */
.phero--legal { padding-bottom: 40px; }
.legal { padding-top: clamp(56px, 7vw, 88px); }
.legal-body { max-width: 780px; }
.legal-sec + .legal-sec { margin-top: 40px; }
.legal-sec h2 { font-family: var(--serif); font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem); }
.legal-sec p, .legal-sec ul { margin-top: 12px; }
.legal-sec li { position: relative; margin-top: 10px; padding-left: 22px; }
.legal-sec li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal-sec a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin-top: 48px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--fg-mute); }

/* ---------- 404 y gracias ---------- */
.hero--simple { justify-content: center; }
.notfound { display: grid; justify-items: center; text-align: center; }
.seal--small { width: min(62vw, 280px); margin-bottom: 26px; }
.notfound .phero-lead { margin-inline: auto; }
.notfound .hero-actions { justify-content: center; }

/* =============================================================
   7. Effects (keyframes + page transitions)
   ============================================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lineUp { from { transform: translateY(112%); } to { transform: none; } }
@keyframes archIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes gDraw { to { stroke-dashoffset: 0; } }
@keyframes gSpin { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(201, 165, 90, 0.18); } 50% { box-shadow: 0 0 0 9px rgba(201, 165, 90, 0); } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes strokeIn { to { stroke-dashoffset: 0; } }
@keyframes revealSafety { to { opacity: 1; translate: none; } }
@keyframes barSafety { to { transform: scaleX(1); } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: var(--ease-out); }
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .nav-cta { display: inline-flex; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person--lead { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .person--lead .person-plate { aspect-ratio: auto; min-height: 100%; }
  .ptema .person:only-child { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .ptema .person:only-child .person-plate { aspect-ratio: auto; min-height: 100%; }
  .struct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .about-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pcards > :last-child:nth-child(odd) .pcard-media { aspect-ratio: 16 / 7; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptema { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .module { grid-template-columns: 96px minmax(0, 1fr); }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tgrid > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gitem.g-a { grid-column: 1 / -1; }
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mseminars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  :root { --nav-h: 80px; }
  .nav-links { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
  .nav-links a { position: relative; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--ivory-2); transition: color 0.3s; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
  }
  .nav-links a:hover, .nav-links a[aria-current] { color: var(--ivory); }
  .nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
  .nav-toggle { display: none; }

  .hero--video { justify-content: center; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 14, 29, 0.92) 0%, rgba(7, 14, 29, 0.78) 34%, rgba(7, 14, 29, 0.3) 68%, rgba(7, 14, 29, 0.18) 100%),
      linear-gradient(0deg, rgba(7, 14, 29, 0.85) 0%, rgba(7, 14, 29, 0) 32%);
  }
  .hero-title { font-size: clamp(3rem, 7.2vw - 8px, 6.6rem); }
  .hero-inner { padding-top: 6vh; }
  .scroll-cue {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #b9c0cd;
    transition: color 0.3s;
  }
  .scroll-cue:hover { color: var(--gold-2); }

  .about-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
  .about-seal { width: min(100%, 470px); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }

  .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcards > :last-child:nth-child(odd) { grid-column: auto; }
  .pcards > :last-child:nth-child(odd) .pcard-media { aspect-ratio: 4 / 3; }

  .prow { grid-template-columns: 44px 112px minmax(0, 1fr) 220px 30px; grid-template-areas: "num thumb main meta arrow"; gap: 26px; padding: 26px 0; }
  .prow-num { display: block; grid-area: num; font-family: var(--mono); font-size: 13px; color: var(--fg-mute); }
  .prow-thumb { width: 112px; aspect-ratio: 4 / 3; align-self: center; }
  .prow-text { display: block; margin-top: 6px; max-width: 60ch; font-size: 14.5px; line-height: 1.55; }
  .prow-meta { gap: 4px; font-size: 13.5px; }

  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; }
  .gallery-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto; gap: 18px; }
  .gitem.g-a { grid-column: 1 / span 7; grid-row: 1; }
  .gitem.g-b { grid-column: 8 / span 5; grid-row: 1 / span 2; }
  .gitem.g-c { grid-column: 1 / span 7; grid-row: 2; }
  .gitem.g-d { grid-column: 1 / span 6; grid-row: 3; }
  .gitem.g-e { grid-column: 7 / span 6; grid-row: 3; }
  .gitem.g-b .gitem-link { height: calc(100% - 30px); }
  .gitem.g-b img { aspect-ratio: auto; height: 100%; }
  .gitem.g-d img, .gitem.g-e img { aspect-ratio: 2 / 1; }

  .method-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 6vw, 96px); align-items: stretch; }
  .method-figure { aspect-ratio: auto; min-height: 560px; }

  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tgrid > :last-child:nth-child(odd) { grid-column: auto; max-width: none; justify-self: stretch; }

  .team-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .incompany-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(40px, 5vw, 80px); }
  .incompany-grid .form-card { position: sticky; top: calc(var(--nav-h) + 24px); }

  .sedes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .faq-grid > header { position: sticky; top: calc(var(--nav-h) + 40px); }

  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 0.9fr 1.15fr; gap: 48px; }

  .phero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .phero-visual { justify-self: end; }
  .psec-grid { grid-template-columns: 290px minmax(0, 1fr); gap: 64px; }
  .psec-head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .struct { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dates { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: center; }
}

@media (min-width: 1280px) {
  .ptema { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-line, .hero-kicker .dot, .calendar-note .dot { animation: none; }
  /* El video de portada arranca en pausa (main.js); el botón "Reproducir video" lo inicia */
  .seal-rings { transform: none; }
  .ticker-track { animation-duration: 120s; }
}
