/* Liceo El Encuentro · Estilos del sitio (home y páginas internas)
   Dirección visual según el brief: contemporánea, fondos claros, pocos colores,
   tipografía protagonista, animaciones visibles pero elegantes y bloques de texto breves. */

:root {
  /* Paleta de marca (DESIGN.md). Usar solo mediante variables. */
  --color-primary: #991F1E;
  --color-primary-dark: #6B1416;
  --color-primary-light: #C13B38;
  --color-primary-soft: #E3ABA9;
  --color-primary-tint: #F8EAEA;
  --color-secondary: #1D2B53;
  --color-secondary-dark: #121B38;
  --color-secondary-mid: #3D4E80;
  --color-secondary-tint: #E3E8F3;
  --color-gray: #6D6E70;
  --color-gray-uniform: #A7ABB3;
  --color-gray-tint: #E9EAEC;
  --color-white: #FFFFFF;
  --color-text: #2B2F3A;
  --color-dark: #2B2D42;        /* azul oscuro para fondos, footer y títulos */
  --color-gray-light: #F4F8FF;  /* fondo gris azulado claro */
  --color-soft: #F4F8FF;        /* gris azulado claro para fondos */
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-gray-tint);
  --color-bg-accent: var(--color-gray-light);
  --color-bg-dark: var(--color-dark);
  --color-text-muted: var(--color-gray);
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-primary-dark);
  --color-border: var(--color-gray-uniform);
  --color-on-primary: var(--color-white);
  --color-on-dark: var(--color-white);

  /* Alias de componentes */
  --ink: var(--color-dark);               /* títulos y elementos de peso */
  --ink-2: #3A3B40;
  --muted: var(--color-text-muted);
  --paper: var(--color-bg);               /* fondo base: blanco */
  --white: var(--color-white);
  --cream: var(--color-gray-tint);        /* hovers y rellenos neutros */
  --mist: var(--color-gray-light);
  --gold: var(--color-primary);           /* acento principal */
  --gold-soft: var(--color-gray-light);
  --accent: var(--color-primary);
  --on-photo: var(--color-primary-soft);  /* acento legible sobre fotos oscurecidas */
  --line: rgba(43, 45, 66, .12);
  --shadow: 0 30px 60px -34px rgba(43, 45, 66, .35);
  --pad: clamp(20px, 5.5vw, 96px);
  --max: 1320px;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 112px;
  --f-display: 'Figtree', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--color-text); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, ul, ol, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--f-display); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
h1 { font-size: clamp(46px, 7.4vw, 112px); letter-spacing: -.055em; line-height: .98; }
h2 { font-size: clamp(36px, 4.8vw, 72px); line-height: 1.08; padding-bottom: .06em; }
h3 { font-size: clamp(21px, 1.8vw, 28px); letter-spacing: -.025em; line-height: 1.15; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { color: var(--accent); }
h1 em, h2 em, h3 em, .welcome-text em, .footer-claim em { font-size: 1.17em; line-height: .9; letter-spacing: -.015em; }
address { font-style: normal; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 300; background: var(--ink); color: var(--color-white); padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; z-index: 220; pointer-events: none; }
.wrap { max-width: var(--max); margin: 0 auto; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; color: var(--accent); }
.eyebrow > span:empty { width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }

/* ---------- Botones ---------- */
.btn { --bg: transparent; --fg: var(--ink); --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 26px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 1px solid var(--bd); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn span[aria-hidden] { transition: transform .35s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-ink { --bg: var(--color-primary); --fg: var(--color-on-primary); }
.btn-ink:hover { --bg: var(--color-primary-dark); box-shadow: 0 14px 30px -14px rgba(107, 20, 22, .6); }
.btn-dark { --bg: var(--color-dark); --fg: var(--color-on-dark); }
.btn-dark:hover { --bg: var(--color-dark); }
.btn-gold { --bg: var(--color-primary); --fg: var(--color-on-primary); }
.btn-gold:hover { --bg: var(--color-primary-dark); }
.btn-outline { --bd: var(--color-primary); --bg: var(--white); --fg: var(--color-primary); border-width: 1.5px; }
.btn-outline:hover { --bd: var(--color-primary); --bg: var(--color-gray-light); --fg: var(--color-primary-dark); }
.btn-light { --bg: var(--color-white); --fg: var(--color-primary); }
.btn-light:hover { --bg: var(--color-primary); --fg: var(--color-on-primary); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn-ghost-light { --bd: rgba(255, 255, 255, .7); --fg: var(--color-white); border-width: 1.5px; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { --bd: var(--color-white); --bg: rgba(255, 255, 255, .14); }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-lg { padding: 20px 32px; font-size: 16px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--color-link); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease), color .2s; }
.text-link:hover { background-size: 0 2px; color: var(--color-link-hover); background-position: 100% 100%; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; font-size: 18px; transition: background .3s, color .3s, border-color .3s; }
.round-btn:hover { background: var(--ink); color: var(--color-white); border-color: var(--ink); }
.close-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 28px; line-height: 1; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.close-btn:hover { transform: rotate(90deg); background: var(--cream); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .5s var(--ease), background .4s, box-shadow .4s; }
.utility-bar { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--pad); font-size: 13px; background: var(--color-dark); color: rgba(255, 255, 255, .9); transition: height .4s var(--ease), opacity .3s; overflow: hidden; }
.utility-bar nav { display: flex; gap: 22px; align-items: center; }
.utility-bar a:hover { color: var(--color-primary-soft); }
.utility-bar .access { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 600; }
.utility-bar .access:hover { background: var(--color-primary); color: var(--color-on-primary); }
.header-main { height: 72px; display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s; }
.is-scrolled .header-main { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(43, 45, 66, .4); }
.is-scrolled .utility-bar { height: 0; opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: var(--color-white); box-shadow: 0 0 0 1px var(--line); }
.brand > span { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; line-height: 1.1; }
.brand small { display: block; font-family: var(--f-body); font-weight: 600; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.header-nav { margin-left: auto; }
.header-nav > ul { display: flex; gap: 2px; }
.header-nav > ul > li { position: relative; }
.header-nav > ul > li > a { display: block; padding: 11px 13px; font-size: 15px; white-space: nowrap; font-weight: 500; border-radius: 999px; transition: background .25s, color .25s; }
.header-nav > ul > li:hover > a, .header-nav > ul > li:focus-within > a { background: var(--cream); }
.header-nav > ul > li > a[aria-current] { color: var(--accent); }
.header-nav > ul > li > a[aria-current]::after { content: ''; display: block; height: 2px; margin-top: 3px; background: var(--gold); border-radius: 2px; }
.header-nav { position: relative; }
.header-nav > ul > li { position: static; }
.drop { position: absolute; top: calc(100% + 14px); right: -12px; width: min(720px, calc(100vw - 2 * var(--pad))); display: grid; grid-template-columns: 250px 1fr; gap: 10px; padding: 10px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s; }
.drop::before { content: ''; position: absolute; inset: -18px 0 auto; height: 18px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; transition-delay: .06s; }
.drop-media { position: relative; border-radius: 16px; overflow: hidden; min-height: 230px; isolation: isolate; }
.drop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.has-drop:hover .drop-media img { transform: scale(1); }
.drop-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 45, 66, .88), rgba(43, 45, 66, .1) 70%); }
.drop-media figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1.45; }
.drop-media strong { display: block; font: 700 19px/1.15 var(--f-display); letter-spacing: -.02em; color: var(--color-white); margin-bottom: 6px; }
.drop ul { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 2px 14px; padding: 10px 12px; }
.drop li { border-bottom: 1px solid var(--line); }
.drop a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 8px; font-size: 15px; font-weight: 500; line-height: 1.3; border-radius: 8px; transition: color .2s, padding .3s var(--ease); }
.drop a::after { content: '→'; opacity: 0; transform: translateX(-6px); color: var(--accent); transition: opacity .2s, transform .3s var(--ease); }
.drop a:hover, .drop a[aria-current] { color: var(--accent); padding-left: 12px; }
.drop a:hover::after, .drop a[aria-current]::after { opacity: 1; transform: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-nav + .header-actions { margin-left: 10px; }
.icon-btn { height: 46px; min-width: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); transition: background .3s, border-color .3s; }
.icon-btn:hover { background: var(--cream); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-trigger { padding: 0 16px; }
.menu-word { font-size: 14px; font-weight: 600; }
.burger { display: grid; gap: 5px; width: 20px; }
.burger i { height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.burger i:last-child { width: 70%; justify-self: end; }
.menu-trigger:hover .burger i:last-child { transform: scaleX(1.43); transform-origin: right; }
html:not(.js) .menu-trigger, html:not(.js) .search-trigger { display: none; }

/* ---------- Overlays: búsqueda y menú (claros) ---------- */
.search-panel, .site-menu { position: fixed; inset: 0; z-index: 250; background: var(--paper); color: var(--ink); overflow-y: auto; }
.search-panel:not([hidden]), .site-menu:not([hidden]) { animation: overlayIn .55s var(--ease) both; }
@keyframes overlayIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.search-inner { max-width: 980px; margin: 0 auto; padding: 120px var(--pad) 60px; position: relative; }
.search-inner .close-btn { position: absolute; top: 28px; right: var(--pad); }
.search-inner label { margin-bottom: 18px; }
.search-inner input { width: 100%; background: none; border: 0; border-bottom: 2px solid var(--line); font: 600 clamp(28px, 5vw, 60px)/1.2 var(--f-display); letter-spacing: -.03em; padding: 12px 0; outline: none; transition: border-color .3s; }
.search-inner input:focus { border-color: var(--gold); }
.search-inner input::placeholder { color: rgba(43, 45, 66, .28); }
.search-inner input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-hint { margin-top: 20px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-hint button { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13px; }
.search-hint button:hover { background: var(--ink); color: var(--color-white); }
.search-results { margin-top: 36px; }
.search-results a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 20px; transition: padding .3s var(--ease), color .2s; }
.search-results a small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: center; }
.search-results a:hover, .search-results a:focus-visible { padding-left: 14px; color: var(--accent); }
.search-results .empty { color: var(--muted); padding: 18px 0; }

.menu-inner { min-height: 100%; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto 1fr; gap: 40px 6vw; padding: 26px var(--pad) 48px; }
.menu-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.menu-top .brand { margin-right: auto; }
.menu-main { position: relative; align-self: start; display: grid; gap: 2px; padding-top: 8px; }
.menu-group > button { display: flex; align-items: baseline; gap: 16px; width: 100%; text-align: left; font: 600 clamp(30px, 3.6vw, 54px)/1.15 var(--f-display); letter-spacing: -.035em; padding: 8px 0; color: rgba(43, 45, 66, .38); transition: color .3s, transform .4s var(--ease); }
.menu-group > button[aria-expanded="true"], .menu-group > button:hover { color: var(--ink); }
.menu-group > button[aria-expanded="true"] { transform: translateX(10px); }
.menu-group ul { display: none; }
.menu-group ul a { display: inline-block; padding: 9px 0; font-size: 19px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.menu-group ul a:hover { background-size: 100% 2px; }
.menu-aside { align-self: end; border-top: 1px solid var(--line); padding-top: 26px; }
.menu-aside .eyebrow { margin-bottom: 14px; }
.quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.quicklinks a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; transition: color .2s; }
.quicklinks a:hover { color: var(--accent); }
.quicklinks svg, .tile-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.menu-contact { margin-top: 24px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.menu-contact a:hover { color: var(--ink); }
@media (min-width: 981px) {
  .menu-group ul { position: absolute; top: 14px; left: calc(100% + 6vw); width: min(380px, 32vw); }
  .menu-group button[aria-expanded="true"] + ul { display: grid; }
  .menu-group button[aria-expanded="true"] + ul li { animation: subIn .5s var(--ease) both; }
  .menu-group ul li:nth-child(2) { animation-delay: .05s !important; } .menu-group ul li:nth-child(3) { animation-delay: .1s !important; } .menu-group ul li:nth-child(4) { animation-delay: .15s !important; }
  .menu-aside { grid-column: 2; grid-row: 2; margin-top: 300px; }
}
@keyframes subIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Revelado general ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 150px) var(--pad); }
.section.tight { padding-top: clamp(50px, 6vw, 90px); padding-bottom: clamp(50px, 6vw, 90px); }
/* Fondos de sección. Cada fondo de color entra y sale con un gradiente hacia
   el blanco para dar continuidad al desplazamiento. */
.bg-cream, .bg-mist, .bg-dark, .bg-soft { --fade: clamp(110px, 13vw, 210px); position: relative; isolation: isolate; background: var(--bg); padding-top: calc(var(--fade) + clamp(16px, 3vw, 48px)); padding-bottom: calc(var(--fade) + clamp(16px, 3vw, 48px)); }
.bg-cream::before, .bg-mist::before, .bg-dark::before, .bg-soft::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.987) 8.1%, rgba(255, 255, 255, 0.951) 15.5%, rgba(255, 255, 255, 0.896) 22.5%, rgba(255, 255, 255, 0.825) 29%, rgba(255, 255, 255, 0.741) 35.3%, rgba(255, 255, 255, 0.648) 41.2%, rgba(255, 255, 255, 0.55) 47.1%, rgba(255, 255, 255, 0.45) 52.9%, rgba(255, 255, 255, 0.352) 58.8%, rgba(255, 255, 255, 0.259) 64.7%, rgba(255, 255, 255, 0.175) 71%, rgba(255, 255, 255, 0.104) 77.5%, rgba(255, 255, 255, 0.049) 84.5%, rgba(255, 255, 255, 0.013) 91.9%, rgba(255, 255, 255, 0) 100%) top / 100% var(--fade) no-repeat,
              linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.987) 8.1%, rgba(255, 255, 255, 0.951) 15.5%, rgba(255, 255, 255, 0.896) 22.5%, rgba(255, 255, 255, 0.825) 29%, rgba(255, 255, 255, 0.741) 35.3%, rgba(255, 255, 255, 0.648) 41.2%, rgba(255, 255, 255, 0.55) 47.1%, rgba(255, 255, 255, 0.45) 52.9%, rgba(255, 255, 255, 0.352) 58.8%, rgba(255, 255, 255, 0.259) 64.7%, rgba(255, 255, 255, 0.175) 71%, rgba(255, 255, 255, 0.104) 77.5%, rgba(255, 255, 255, 0.049) 84.5%, rgba(255, 255, 255, 0.013) 91.9%, rgba(255, 255, 255, 0) 100%) bottom / 100% var(--fade) no-repeat; }
/* Foto de fondo dentro de secciones de color: se integra con el tono de la sección */
.has-photo:is(.bg-cream, .bg-mist, .bg-dark, .bg-soft)::after { content: none; }
.bg-dark .section-photo img { opacity: .14; filter: grayscale(1) contrast(1.1); }
.bg-cream .section-photo img, .bg-mist .section-photo img, .bg-soft .section-photo img { opacity: .2; filter: grayscale(1); }
.bg-cream, .bg-mist { --bg: var(--color-gray-light); }
.bg-dark { --bg: var(--color-dark); }
.bg-soft { --bg: var(--color-soft); }
.bg-dark { color: var(--color-on-dark); }
.bg-dark h2, .bg-dark h3 { color: var(--color-on-dark); }
.bg-dark h2 em, .bg-dark .eyebrow { color: var(--color-primary-soft); }
.bg-dark .lead { color: rgba(255, 255, 255, .82); }
.bg-dark .btn-outline { --bd: rgba(255, 255, 255, .6); --bg: transparent; --fg: var(--color-on-dark); }
.bg-dark .btn-outline:hover { --bd: var(--color-white); --bg: var(--color-white); --fg: var(--color-dark); }
.bg-dark .text-link { color: var(--color-on-dark); background-image: linear-gradient(var(--color-primary-soft), var(--color-primary-soft)); }
.bg-cream .chips li, .bg-soft .chips li, .bg-white .chips li { background: var(--color-white); }
.bg-soft .steps.is-in .step-num { box-shadow: 0 0 0 6px var(--color-soft); }
.bg-cream .steps.is-in .step-num, .bg-mist .steps.is-in .step-num { box-shadow: 0 0 0 6px var(--color-gray-light); }
.bg-mist .quote, .bg-cream .quote, .bg-soft .quote, .bg-cream .cta-band, .bg-mist .cta-band { background: var(--color-white); }
.bg-mist .tile-icon, .bg-cream .tile-icon, .bg-soft .tile-icon, .cta-band .tile-icon { background: var(--color-white); }
.bg-white { background: var(--white); }
.section-head { max-width: var(--max); margin: 0 auto clamp(60px, 6.5vw, 104px); display: grid; gap: 22px; }
.section-head h2 { max-width: 16ch; }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.head-split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 28px 6vw; }
.section-head.head-split .eyebrow { margin-bottom: 20px; }
.section-head.head-split > .btn { justify-self: end; }
.head-side { display: grid; gap: 26px; justify-items: start; padding-bottom: 6px; }
.head-side:empty { display: none; }
.section-foot { max-width: var(--max); margin: clamp(56px, 6vw, 88px) auto 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Divisor con insignia ---------- */
.divider { display: flex; align-items: center; gap: 22px; max-width: 420px; margin: 0 auto; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.divider::before { transform-origin: right; } .divider::after { transform-origin: left; background: linear-gradient(90deg, var(--gold), transparent); }
.divider img { width: 46px; height: 46px; border-radius: 50%; background: var(--color-white); box-shadow: 0 0 0 1px var(--line); }
.is-in .divider::before, .is-in .divider::after, html:not(.js) .divider::before, html:not(.js) .divider::after { transform: scaleX(1); }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero { padding: var(--header-h) clamp(8px, 1.2vw, 18px) 0; position: relative; }
.hero-frame { position: relative; isolation: isolate; min-height: clamp(500px, 76vh, 780px); display: flex; align-items: flex-end; border-radius: var(--radius); overflow: hidden; background: var(--color-dark); }
.hero-frame::before { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(27, 28, 40, .86) 0%, rgba(27, 28, 40, .5) 38%, rgba(27, 28, 40, .08) 72%), linear-gradient(90deg, rgba(27, 28, 40, .45), transparent 65%); }
.hero-frame::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--color-dark), var(--color-primary) 55%, var(--color-primary-light)); }
.js .hero-frame { clip-path: inset(6% 4% 0 4% round var(--radius)); animation: unveil 1.4s var(--ease) .1s forwards; }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round var(--radius)); } }
.page-hero .hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease), transform 7s linear; }
.hero-slides img.is-active, html:not(.js) .hero-slides img:first-child { opacity: 1; transform: scale(1); }
.page-hero-inner { position: relative; z-index: 3; width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) clamp(54px, 7vw, 96px); color: var(--color-white); }
.page-hero .crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .78); margin-bottom: 20px; }
.page-hero .crumbs a:hover { color: var(--color-white); text-decoration: underline; text-underline-offset: 4px; }
.page-hero .crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.page-hero .eyebrow { color: var(--color-primary-soft); }
.page-hero h1 { margin-top: 16px; max-width: 18ch; color: var(--color-white); font-size: clamp(40px, 5.6vw, 84px); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.page-hero h1 em { color: var(--color-primary-soft); }
.page-hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.page-hero h1 .line > span { display: inline-block; }
.js .page-hero h1 .line > span { transform: translateY(105%); animation: lineUp 1.1s var(--ease) .35s forwards; }
.js .page-hero h1 .line:nth-child(2) > span { animation-delay: .47s; }
@keyframes lineUp { to { transform: none; } }
.page-hero .lead { margin-top: 20px; max-width: 54ch; color: rgba(255, 255, 255, .88); }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-hero .slides-pause { right: clamp(16px, 2vw, 28px); bottom: 26px; z-index: 4; }
.page-hero .slides-dots { left: auto; right: calc(clamp(16px, 2vw, 28px) + 118px); bottom: 44px; z-index: 4; }
.subnav { position: relative; border-bottom: 1px solid var(--line); }
.subnav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; justify-content: center; gap: clamp(18px, 3vw, 44px); overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; position: relative; padding: 22px 2px 20px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .25s; }
.subnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-primary); transform: scaleX(0); transition: transform .4s var(--ease); }
.subnav a:hover { color: var(--ink); }
.subnav a:hover::after { transform: scaleX(.4); }
.subnav a[aria-current] { color: var(--ink); font-weight: 700; }
.subnav a[aria-current]::after { transform: scaleX(1); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.slides-pause { position: absolute; z-index: 2; right: 18px; bottom: 18px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.slides-dots { position: absolute; z-index: 2; left: 22px; bottom: 26px; display: flex; gap: 8px; }
.slides-dots i { width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .55); overflow: hidden; position: relative; }
.slides-dots i.is-active::after { content: ''; position: absolute; inset: 0; background: var(--color-white); transform-origin: left; animation: dotFill var(--dur, 5s) linear forwards; }
.is-paused .slides-dots i.is-active::after { animation-play-state: paused; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Títulos más contenidos en las páginas internas */
.page-inner h2 { font-size: clamp(30px, 3.5vw, 54px); }
.page-inner .intro h2 { max-width: 22ch; }
.page-inner .split-card h2, .page-inner .form-side h2, .page-inner .slider h2 { font-size: clamp(28px, 2.9vw, 44px); }

/* ---------- Introducción centrada ---------- */
.intro { text-align: center; }
.intro h2 { max-width: 20ch; margin: 40px auto 0; }
.intro .lead { margin: 22px auto 0; }

/* ---------- Bloque dividido: galería + tarjeta ---------- */
.split { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.15fr; }
.split.reverse .gallery { order: 2; }
.gallery { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease), transform 6s linear; transform: scale(1.06); }
.gallery img.is-active, html:not(.js) .gallery img:first-child { opacity: 1; transform: scale(1); }
.split-card { position: relative; z-index: 2; background: var(--white); border-radius: var(--radius); padding: clamp(28px, 3.6vw, 56px); box-shadow: var(--shadow); margin-left: -12%; display: grid; gap: 18px; }
.split.reverse .split-card { margin-left: 0; margin-right: -12%; }
.split-card h2 { font-size: clamp(32px, 3.4vw, 52px); }
.split-card .btn, .split-card .text-link { justify-self: start; margin-top: 6px; }

/* ---------- Cita / mensaje destacado ---------- */
.quote { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: linear-gradient(120deg, var(--color-gray-light), var(--color-gray-light)); }
.quote figure { position: relative; min-height: 360px; }
.quote figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote blockquote { padding: clamp(32px, 5vw, 80px); display: grid; gap: 22px; align-content: center; }
.quote blockquote p { font: 500 clamp(24px, 2.6vw, 38px)/1.3 var(--f-display); letter-spacing: -.025em; }
.quote blockquote p::before { content: '“'; display: block; font: italic 400 90px/.6 var(--f-serif); color: var(--accent); margin-bottom: 10px; }
.quote cite { font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Tarjetas con imagen (con ventana opcional) ---------- */
.cards { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(14px, 1.6vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover figure img { transform: scale(1.06); }
.card-body { padding: 24px 26px 28px; display: grid; gap: 10px; align-content: start; flex: 1; }
.card-body .tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.card-body p { color: var(--muted); font-size: 16px; }
.card-more { margin-top: 6px; font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.card-more i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); transition: background .3s, transform .3s var(--ease); }
.card:hover .card-more i { background: var(--gold); color: var(--color-on-primary); transform: rotate(-45deg); }
.card.no-img .card-body { padding-top: 30px; }
.card .card-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--mist); display: grid; place-items: center; margin-bottom: 6px; }
.card .card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pasos / línea de tiempo ---------- */
.steps { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 0; position: relative; counter-reset: step; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.steps::after { content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.steps.is-in::after, html:not(.js) .steps::after { transform: scaleX(1); }
.step { position: relative; padding-right: 28px; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--line); display: grid; place-items: center; transition: background .5s var(--ease), box-shadow .5s; transition-delay: calc(var(--i) * .3s + .3s); }
.step-num svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step-num.is-dot i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); transition: background .5s; }
.steps.is-in .step-num svg, html:not(.js) .step-num svg { stroke: var(--color-on-primary); transition: stroke .5s; transition-delay: calc(var(--i) * .3s + .3s); }
.steps.is-in .step-num.is-dot i { background: var(--color-on-primary); }
.steps.is-in .step-num, html:not(.js) .step-num { background: var(--gold); box-shadow: 0 0 0 6px var(--paper); }
.step h3 { margin-top: 24px; font-size: clamp(20px, 1.6vw, 25px); }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.step .text-link { margin-top: 14px; font-size: 14px; }
.steps.vertical { grid-template-columns: 1fr; gap: 34px; max-width: 820px; }
.steps.vertical::before, .steps.vertical::after { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; }
.steps.vertical::after { transform: scaleY(0); }
.steps.vertical.is-in::after { transform: scaleY(1); }
.steps.vertical .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 28px; padding: 0; }
.steps.vertical .step > :not(.step-num) { grid-column: 2; }
.steps.vertical .step h3 { margin-top: 12px; }
.step .year { font: italic 400 26px var(--f-serif); color: var(--accent); grid-column: 2; margin-top: 10px; }

/* ---------- Acordeón ---------- */
.accordion { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font-size: clamp(19px, 1.6vw, 23px); }
.acc-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: left; font: inherit; letter-spacing: inherit; }
.acc-item button i { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 20px; transition: transform .4s var(--ease), background .3s; }
.acc-item button[aria-expanded="true"] i { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: var(--color-on-primary); }
.acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease); }
.js .acc-panel { grid-template-rows: 0fr; }
.js .acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { color: var(--muted); padding: 0 60px 24px 0; }

/* ---------- Cifras ---------- */
.facts { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 14px; }
.fact { padding: 30px 26px; border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.fact strong { display: block; font: 700 clamp(48px, 5vw, 76px)/1 var(--f-display); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact strong small { font-size: .45em; letter-spacing: -.02em; color: var(--accent); }
.fact p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Accesos (tiles) ---------- */
.tiles { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 14px; }
.tile-link { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s; }
.tile-link:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.tile-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 8px; transition: background .3s, transform .5s var(--ease); }
.tile-link:hover .tile-icon { background: var(--gold); transform: rotate(-6deg); }
.tile-link:hover .tile-icon svg { stroke: var(--color-on-primary); }
.tile-link h3 { font-size: 21px; }
.tile-link p { color: var(--muted); font-size: 15px; }
.tile-link .badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--color-gray-tint); color: var(--ink); }
.tile-link::after { content: '↗'; position: absolute; right: 24px; bottom: 22px; color: var(--accent); font-weight: 700; transition: transform .3s var(--ease); }
.tile-link:hover::after { transform: translate(3px, -3px); }
.tile-link[aria-disabled="true"] { cursor: default; opacity: .78; }
.tile-link[aria-disabled="true"]::after { content: ''; }

/* ---------- Tabla ---------- */
.table-wrap { max-width: var(--max); margin: 0 auto; overflow-x: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); background: var(--white); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-wrap caption { text-align: left; padding: 22px 26px 6px; font-weight: 700; }
.table-wrap th, .table-wrap td { padding: 16px 26px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table-wrap thead th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.table-wrap tbody tr { transition: background .2s; }
.table-wrap tbody tr:hover { background: var(--paper); }
.table-wrap tbody th { font-weight: 600; }
.table-wrap tr.group th { background: var(--color-gray-tint); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--color-gray-light); color: var(--ink); font-size: 14px; font-weight: 600; }
.bg-white .chips li { background: var(--paper); }

/* ---------- Deslizador de perfiles ---------- */
.slider { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.slider-viewport { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.slider-track { display: flex; transition: transform .8s var(--ease); }
.slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.slide figure { position: relative; } .slide figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-text { padding: clamp(26px, 3.4vw, 48px); display: grid; gap: 14px; align-content: center; }
.slide-text p { color: var(--muted); }
.slider-nav { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.slider-dots { display: flex; gap: 8px; padding: 0 6px; }
.slider-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .4s var(--ease), background .4s; }
.slider-dots i.is-active { width: 28px; background: var(--gold); }

/* ---------- Pestañas ---------- */
.tabs { max-width: var(--max); margin: 0 auto; }
.tab-list { position: relative; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line); width: max-content; max-width: 100%; margin: 0 auto 44px; overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] { position: relative; z-index: 1; padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--muted); transition: color .35s; }
.tab-list [role="tab"][aria-selected="true"] { color: var(--color-white); }
html:not(.js) .tab-list [role="tab"][aria-selected="true"] { background: var(--ink); }
.tab-ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
html:not(.js) .tab-panel + .tab-panel { margin-top: 30px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering > * > * { animation: tileIn .8s var(--ease) both; }
.tab-panel.is-entering > * > *:nth-child(2) { animation-delay: .08s; }
.tab-panel.is-entering > * > *:nth-child(3) { animation-delay: .16s; }
@keyframes tileIn { from { opacity: 0; transform: translateY(26px); } }

/* ---------- Formularios (prototipo) ---------- */
.form-card { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.form-side { padding: clamp(28px, 4vw, 60px); background: linear-gradient(160deg, var(--color-gray-light), var(--color-gray-light)); display: grid; gap: 18px; align-content: start; }
.form-side h2 { font-size: clamp(32px, 3.2vw, 50px); }
.form-side .contact-list { margin-top: 10px; }
.form { padding: clamp(28px, 4vw, 60px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, box-shadow .3s, background .3s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--color-white); box-shadow: 0 0 0 4px rgba(193, 59, 56, .35); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex-shrink: 0; }
.form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: 15px; padding: 14px 18px; border-radius: 14px; background: var(--mist); }
.form-status:empty { display: none; }

/* ---------- Lista de contacto ---------- */
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; overflow-wrap: anywhere; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 14px; background: var(--white); display: grid; place-items: center; }
.contact-list .ci svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list a:hover { color: var(--accent); }

/* ---------- Invitación final: foto que se expande con el scroll ---------- */
.cta-hero { --p: 1; position: relative; isolation: isolate; min-height: clamp(560px, 96vh, 940px); display: grid; place-items: center; padding: clamp(80px, 10vw, 140px) var(--pad); text-align: center; color: var(--color-white); overflow: hidden; }
.js .cta-hero { --p: 0; }
.cta-hero-frame { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: var(--color-dark);
  clip-path: inset(calc((1 - var(--p)) * 9%) calc((1 - var(--p)) * 7%) round calc((1 - var(--p)) * 40px)); }
.cta-hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--p) * .18)); }
.cta-hero-frame::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(27, 28, 40, .38), rgba(27, 28, 40, .72) 75%), linear-gradient(0deg, rgba(27, 28, 40, .55), transparent 45%); }
.cta-hero::before, .cta-hero::after { content: ''; position: absolute; z-index: 1; width: clamp(5px, .5vw, 8px); background: var(--color-primary); transition: none; }
.cta-hero::before { left: 0; bottom: 0; height: calc(var(--p) * 62%); }
.cta-hero::after { right: 0; top: 0; height: calc(var(--p) * 44%); }
.cta-hero-content { max-width: 980px; display: grid; justify-items: center; gap: 22px; opacity: calc(.2 + var(--p) * .8); transform: translateY(calc((1 - var(--p)) * 40px)); }
.cta-hero .eyebrow { color: var(--color-primary-soft); }
.cta-hero h2 { color: var(--color-white); display: grid; justify-items: center; gap: 4px; font-size: inherit; }
.cta-kicker { font: italic 500 clamp(30px, 3.6vw, 56px)/1.1 var(--f-serif); letter-spacing: -.01em; color: rgba(255, 255, 255, .94); }
.cta-words { position: relative; display: grid; font: 800 clamp(48px, 8.4vw, 132px)/1 var(--f-display); letter-spacing: -.035em; text-transform: uppercase; }
.cta-words span { grid-area: 1 / 1; opacity: 0; transform: translateY(50%); filter: blur(8px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.cta-words span.is-active { opacity: 1; transform: none; filter: none; }
.cta-words span.is-leaving { opacity: 0; transform: translateY(-50%); filter: blur(8px); }
html:not(.js) .cta-words span:not(:first-child) { display: none; }
.cta-text { font-size: clamp(17px, 1.35vw, 20px); color: rgba(255, 255, 255, .86); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Ventana modal ---------- */
.modal { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); overflow: hidden; display: none; }
.modal[open] { display: grid; grid-template-columns: 1fr 1fr; animation: dialogIn .5s var(--ease); }
.modal::backdrop { background: rgba(43, 45, 66, .45); backdrop-filter: blur(5px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal figure img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.modal-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.modal-body h3 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; }
.modal-body p { color: var(--muted); font-size: 17px; }
.modal-body .btn { align-self: flex-start; }
.modal .close-btn { position: absolute; top: 14px; right: 14px; z-index: 2; }

/* ---------- Tarjetas relacionadas ---------- */
.related { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.rel-card { position: relative; display: flex; align-items: flex-end; min-height: clamp(320px, 30vw, 420px); padding: 26px; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: var(--color-white); }
.rel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.rel-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43, 45, 66, 0) 35%, rgba(43, 45, 66, .82)); }
.rel-card:hover img { transform: scale(1.06); }
.rel-card div { display: grid; gap: 8px; }
.triad-body h3, .rel-card h3 { color: var(--color-on-dark); }
.rel-card h3 { font-size: clamp(24px, 2.2vw, 32px); }
.rel-card p { font-size: 15px; opacity: .9; max-width: 32ch; }
.rel-card span { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; margin-top: 4px; color: var(--on-photo); }
.rel-card span i { font-style: normal; transition: transform .3s var(--ease); }
.rel-card:hover span i { transform: translateX(5px); }

/* ---------- Cinta de palabras ---------- */
.ticker { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: ticker 42s linear infinite; }
.ticker span { font: italic 400 clamp(30px, 3.4vw, 50px)/1 var(--f-serif); white-space: nowrap; }
.ticker span { color: var(--ink); }
.ticker b { color: var(--gold); font-weight: 400; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Footer (gris claro) ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--color-gray-light); color: var(--color-text); padding: clamp(150px, 15vw, 230px) var(--pad) 28px; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.987) 8.1%, rgba(255, 255, 255, 0.951) 15.5%, rgba(255, 255, 255, 0.896) 22.5%, rgba(255, 255, 255, 0.825) 29%, rgba(255, 255, 255, 0.741) 35.3%, rgba(255, 255, 255, 0.648) 41.2%, rgba(255, 255, 255, 0.55) 47.1%, rgba(255, 255, 255, 0.45) 52.9%, rgba(255, 255, 255, 0.352) 58.8%, rgba(255, 255, 255, 0.259) 64.7%, rgba(255, 255, 255, 0.175) 71%, rgba(255, 255, 255, 0.104) 77.5%, rgba(255, 255, 255, 0.049) 84.5%, rgba(255, 255, 255, 0.013) 91.9%, rgba(255, 255, 255, 0) 100%) top / 100% clamp(110px, 13vw, 210px) no-repeat; }
.footer-top, .footer-grid, .footer-legal, .footer-meta { max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding: 0 0 34px; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer-claim { font: 700 clamp(32px, 4vw, 58px)/1.05 var(--f-display); letter-spacing: -.04em; color: var(--ink); }
.footer-claim em { color: var(--accent); }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 40px 30px; padding: 50px 0; }
.footer-brand { display: grid; gap: 22px; align-content: start; }
.footer-brand address { font-size: 15px; line-height: 1.9; color: var(--muted); }
.footer-brand address a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--color-white); box-shadow: 0 0 0 1px var(--line); transition: background .3s, transform .3s var(--ease); }
.social a:hover { background: var(--color-primary); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: var(--ink); transition: fill .3s; }
.social a:hover svg { fill: var(--color-on-primary); }
.footer-grid nav { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.footer-grid nav a { color: var(--muted); justify-self: start; transition: color .2s, transform .3s var(--ease); }
.footer-grid nav a:hover { color: var(--ink); transform: translateX(4px); }
.footer-orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.footer-orgs p { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.org-card { display: grid; place-items: center; height: 68px; padding: 12px 22px; border-radius: 16px; background: var(--color-white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.org-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(43, 45, 66, .45), 0 0 0 1px var(--line); }
.org-card img { height: 38px; width: auto; }
.footer-about { font-size: 14px; color: var(--muted); max-width: 560px; flex: 1 1 360px; }
.footer-legal { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-legal nav { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--ink); }
.back-top { display: inline-flex; gap: 8px; align-items: center; }
.back-top span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--color-white); box-shadow: 0 0 0 1px var(--line); transition: background .3s, color .3s, transform .3s var(--ease); }
.back-top:hover span { background: var(--color-primary); color: var(--color-on-primary); transform: translateY(-3px); }

/* =====================================================================
   HOME
   ===================================================================== */
/* Hero que se expande con el scroll: fotos alrededor y un video central
   que crece hasta ocupar la pantalla. Sin JS (o con movimiento reducido)
   se muestra como una composición estática. */
.xhero { position: relative; }
.xh-sticky { position: relative; padding: calc(var(--header-h) + 4vh) var(--pad) 0; }
.xh-head { position: relative; z-index: 3; text-align: center; }
.xh-head .eyebrow { justify-content: center; }
.xh-title { font-size: clamp(44px, 6.6vw, 112px); line-height: .98; letter-spacing: -.055em; margin-top: 14px; }
.xh-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.xh-title .line > span { display: inline-block; }
.js .xh-title .line > span { transform: translateY(105%); animation: lineUp 1.2s var(--ease) forwards; }
.xh-col { display: none; }
.xh-media { position: relative; margin: 5vh auto 0; max-width: var(--max); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.xh-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.xh-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; color: var(--color-white); background: linear-gradient(transparent, rgba(43, 45, 66, .55)); }
.xh-caption p { font: 600 clamp(16px, 1.4vw, 20px) var(--f-display); letter-spacing: -.01em; }
.xh-chip { display: inline-flex; gap: 10px; align-items: center; padding: 11px 20px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.xh-chip i { font-style: normal; } .xh-chip b { color: var(--accent); }
.xh-pause { position: absolute; z-index: 3; top: 18px; right: 18px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.xh-cue { display: none; }

/* Modo animado (lo activa site.js) */
.xhero.is-live { height: 290vh; }
.xhero.is-live .xh-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 0; }
.xhero.is-live .xh-head { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 5vh); padding: 0 var(--pad); will-change: transform, opacity; }
.xhero.is-live .xh-media { position: absolute; inset: 0; margin: 0; max-width: none; aspect-ratio: auto; border-radius: 0; clip-path: inset(var(--t, 50%) var(--l, 30%) 0 var(--l, 30%) round var(--r, 22px)); background: transparent; z-index: 2; }
.xhero.is-live .xh-video { transform: scale(var(--s, 1.12)); transform-origin: 50% 60%; }
@media (max-width: 759px) {
  .xhero.is-live .xh-media {
    inset: auto;
    left: var(--l, 26%);
    top: var(--t, 50%);
    width: calc(100% - var(--l, 26%) - var(--l, 26%));
    height: calc(100% - var(--t, 50%) - var(--b, 18%));
    border-radius: var(--r, 22px);
    clip-path: none;
  }
  .xhero.is-live .xh-video {
    object-position: 38% 50%;
    transform: none;
  }
  .xhero.is-live .xh-sticky .xh-cue {
    bottom: calc(var(--hero-bottom, 0px) + 22px);
  }
}
.xhero.is-live .xh-caption { opacity: var(--cap, 0); transform: translateY(calc((1 - var(--cap, 0)) * 20px)); padding: 30px var(--pad) 120px; }
.xhero.is-live .xh-pause { top: auto; bottom: 130px; right: var(--pad); opacity: var(--cap, 0); }
.xhero.is-live .xh-col { display: grid; gap: 1.6vw; position: absolute; z-index: 1; will-change: transform; }
.xhero.is-live .xh-col figure { border-radius: 18px; overflow: hidden; aspect-ratio: 6 / 5; background: var(--cream); }
.xhero.is-live .xh-col img { width: 100%; height: 100%; object-fit: cover; }
.js .xhero.is-live .xh-col figure { animation: rise 1.3s var(--ease) both; }
.js .xhero.is-live .xh-left figure, .js .xhero.is-live .xh-right figure { animation-delay: .25s; }
.js .xhero.is-live .xh-outer-left figure, .js .xhero.is-live .xh-outer-right figure { animation-delay: .4s; }
.xhero.is-live .xh-cue { display: block; position: absolute; z-index: 4; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .9); opacity: calc(1 - var(--cap, 0)); box-shadow: 0 6px 20px rgba(43, 45, 66, .25); }
.xh-cue i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--color-white); animation: cueDot 1.8s var(--ease) infinite; }
@keyframes cueDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(60px); } }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Accesos rápidos bajo el hero */
.quickbar { position: relative; z-index: 4; max-width: var(--max); margin: -72px auto 0; padding: 0 var(--pad); }
.quickbar ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quickbar a { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; gap: 0 12px; height: 100%; padding: 22px 22px 24px; border-radius: 20px; background: var(--color-white); box-shadow: 0 22px 44px -28px rgba(43, 45, 66, .45), 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.quickbar a::before { content: ''; position: absolute; z-index: -1; inset: auto 0 0 0; height: 3px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.quickbar a:hover, .quickbar a:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(43, 45, 66, .55), 0 0 0 1px var(--color-primary-soft); }
.quickbar a:hover::before, .quickbar a:focus-visible::before { transform: scaleX(1); }
.quickbar .tile-icon { grid-column: 1; grid-row: 1; margin: 0 0 16px; width: 48px; height: 48px; border-radius: 14px; background: var(--color-gray-light); transition: background .35s, transform .5s var(--ease); }
.quickbar .tile-icon svg { transition: stroke .35s; }
.quickbar a:hover .tile-icon, .quickbar a:focus-visible .tile-icon { background: var(--color-primary); transform: rotate(-6deg); }
.quickbar a:hover .tile-icon svg, .quickbar a:focus-visible .tile-icon svg { stroke: var(--color-on-primary); }
.quickbar .qb-arrow { grid-column: 2; grid-row: 1; align-self: start; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--color-primary); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), background .3s, color .3s; }
.quickbar a:hover .qb-arrow, .quickbar a:focus-visible .qb-arrow { transform: rotate(-45deg); background: var(--color-gray-light); }
.quickbar strong { grid-column: 1 / -1; font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); line-height: 1.2; }
.quickbar small { grid-column: 1 / -1; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Palabras reveladas */
.welcome { padding: clamp(100px, 13vw, 190px) var(--pad); }
.welcome-text { max-width: 1160px; margin: 0 auto; text-align: center; font: 600 clamp(32px, 4.8vw, 72px)/1.12 var(--f-display); letter-spacing: -.04em; }
.welcome-text em { color: var(--accent); }
.js .welcome-text .w { opacity: .14; transition: opacity .35s linear; }
.js .welcome-text .w.on { opacity: 1; }

/* Promesa con resaltados */
.has-photo { position: relative; overflow: hidden; isolation: isolate; }
.section-photo { position: absolute; z-index: -2; inset: -22% 0; will-change: transform; }
.section-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: saturate(.85); }
.has-photo::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .8) 25%, rgba(255, 255, 255, .38) 75%), linear-gradient(var(--color-white), transparent 18%, transparent 82%, var(--color-white)); }
.has-photo.photo-strong .section-photo img { opacity: .42; filter: saturate(.9); }
.has-photo.photo-strong::after { background: radial-gradient(ellipse at center, rgba(255, 255, 255, .72) 20%, rgba(255, 255, 255, .25) 72%), linear-gradient(var(--color-white), transparent 16%, transparent 84%, var(--color-white)); }
.promise { padding: clamp(110px, 13vw, 190px) var(--pad); text-align: center; background: var(--color-white); }
.promise-inner { position: relative; }
.promise .divider { margin-bottom: 44px; }
.divider-lg { max-width: 640px; gap: 30px; }
.divider-lg img { width: clamp(110px, 12vw, 150px); height: auto; box-shadow: 0 18px 40px -20px rgba(43, 45, 66, .45); background: var(--color-white); border-radius: 50%; }
.promise-text { position: relative; max-width: 1080px; margin: 0 auto; font: 500 clamp(26px, 3.1vw, 46px)/1.34 var(--f-display); letter-spacing: -.025em; }
.hl { background: none; color: var(--color-text); font-weight: 700; background-image: linear-gradient(var(--hl), var(--hl)); background-repeat: no-repeat; background-position: 0 88%; background-size: 0 .34em; transition: background-size 1.2s var(--ease); transition-delay: var(--hd, .3s); padding: 0 .04em; }
.hl-1 { --hl: rgba(193, 59, 56, .55); } .hl-2 { --hl: rgba(167, 171, 179, .75); --hd: .7s; } .hl-3 { --hl: rgba(193, 59, 56, .55); --hd: 1.1s; }
.is-in .hl, html:not(.js) .hl { background-size: 100% .34em; }

/* Lo que nos distingue (imagen fija) */
.distinct-layout { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 6vw; }
.distinct-sticky { position: sticky; top: 110px; height: calc(100vh - 150px); max-height: 740px; display: grid; grid-template-rows: 1fr auto; gap: 18px; }
.distinct-stack { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.distinct-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); clip-path: inset(0 0 0 100%); transition: opacity .9s var(--ease), transform 1.4s var(--ease), clip-path 1s var(--ease); }
.distinct-stack img.is-active { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); z-index: 1; }
.distinct-index { display: flex; gap: 10px; }
.distinct-index li { flex: 1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 12px; border-top: 2px solid var(--line); transition: color .4s, border-color .4s; }
.distinct-index li.is-active { color: var(--color-primary); border-color: var(--gold); }
.distinct-item { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; border-top: 1px solid var(--line); opacity: .3; transition: opacity .6s var(--ease); }
.distinct-item:first-child { border-top: 0; }
.distinct-item.is-active { opacity: 1; }
.distinct-item figure { display: none; }
.item-icon, .slide-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 20px; }
.item-icon svg, .slide-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slide-icon { width: 48px; height: 48px; margin-bottom: 4px; } .slide-icon svg { width: 22px; height: 22px; }
.distinct-item h3 { font-size: clamp(30px, 3vw, 46px); letter-spacing: -.035em; max-width: 15ch; }
.distinct-item p { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 44ch; }
.distinct-item .chips { margin-top: 22px; }

/* Aprender · Creer · Servir */
.triad { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.triad-card { position: relative; display: block; min-height: clamp(440px, 40vw, 600px); border-radius: var(--radius); overflow: hidden; isolation: isolate; color: var(--color-white); }
.triad-card:nth-child(2) { margin-top: 64px; }
.triad-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.triad-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43, 45, 66, 0) 38%, rgba(43, 45, 66, .86)); }
.triad-body { position: absolute; inset: auto 0 0; padding: clamp(24px, 2.4vw, 36px); }
.triad-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; margin-bottom: 10px; }
.triad-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.triad-body h3 { font-size: clamp(40px, 4vw, 62px); letter-spacing: -.045em; margin-top: 4px; }
.triad-body p { margin-top: 12px; max-width: 32ch; opacity: .92; }
.triad-body .more { display: inline-flex; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--on-photo); }
@media (hover: hover) {
  .triad-body p, .triad-body .more { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .7s var(--ease), opacity .5s var(--ease), margin .5s var(--ease); }
  .triad-card:hover p, .triad-card:focus-visible p { max-height: 160px; opacity: .92; margin-top: 12px; }
  .triad-card:hover .more, .triad-card:focus-visible .more { max-height: 40px; opacity: 1; margin-top: 16px; }
  .triad-card:hover img { transform: scale(1.07); }
}

/* Embudo de admisiones */
.admit { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 60px); align-items: start; }
.admit-card { position: sticky; top: 110px; padding: 32px; border-radius: var(--radius); background: linear-gradient(160deg, var(--color-gray-light), var(--color-gray-light)); display: grid; gap: 16px; }
.admit-card h3 { font-size: 28px; }
.admit-card p { color: var(--ink-2); font-size: 15px; }
.admit .steps { --cols: 2; gap: 40px 0; }
.admit .steps::before, .admit .steps::after { display: none; }

/* Etapas en pestañas */
.stage { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.stage-tile { position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 30vw, 460px); border-radius: var(--radius); overflow: hidden; isolation: isolate; padding: 26px; color: var(--color-white); }
.stage-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.stage-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 45%, rgba(43, 45, 66, .8)); }
.stage-tile span { font: 600 23px/1.15 var(--f-display); letter-spacing: -.02em; display: flex; gap: 10px; align-items: center; }
.stage-tile span::after { content: '↗'; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-size: 16px; transition: background .3s, color .3s; }
.stage-tile:hover img { transform: scale(1.06); }
.stage-tile:hover span::after { background: var(--gold); color: var(--color-on-primary); }
.stage-text { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.stage-text h3 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.035em; }
.stage-text p { color: var(--muted); }
.stage-text .btn { align-self: flex-start; }

/* Carrusel */
.carousel-section { padding-right: 0; overflow: hidden; }
.carousel-section .section-head { padding-right: var(--pad); }
.carousel-track { display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--pad) 6px 0; cursor: grab; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-track.is-dragging > * { pointer-events: none; }
.story-card { position: relative; flex: 0 0 clamp(270px, 26vw, 390px); aspect-ratio: 3 / 4.1; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; text-align: left; color: var(--color-white); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.story-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(43, 45, 66, .86)); }
.story-card:hover img { transform: scale(1.06); }
.story-tag { font: italic 500 23px var(--f-serif); color: var(--on-photo); }
.story-title { font: 600 clamp(22px, 2vw, 27px)/1.15 var(--f-display); letter-spacing: -.025em; margin-top: 4px; max-width: 16ch; }
.story-open { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; font-size: 26px; transition: background .3s, transform .5s var(--ease); }
.story-card:hover .story-open { background: var(--gold); color: var(--color-on-primary); transform: rotate(90deg); }
.carousel-controls { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-right: var(--pad); max-width: calc(var(--max) + var(--pad)); }
.carousel-progress { flex: 1; height: 2px; background: var(--line); margin-right: 18px; position: relative; overflow: hidden; }
.carousel-progress i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--ink); transition: transform .3s; }

/* Fundación + cifras */
.foundation { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.foundation-media { position: relative; }
.foundation-media figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; }
.foundation-media figure img { width: 100%; height: 100%; object-fit: cover; }
.foundation-media .badge-round { position: absolute; right: -24px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%; background: var(--gold); color: var(--color-on-primary); display: grid; place-items: center; text-align: center; font: 700 13px/1.25 var(--f-body); letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow); }
.foundation-media .badge-round b { display: block; font: 700 42px/1 var(--f-display); letter-spacing: -.04em; }
.foundation-copy { display: grid; gap: 22px; }
.foundation-copy .facts { --cols: 2; margin-top: 10px; }

/* Explora (rejilla editorial) */
.explore-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.explore-card { display: grid; gap: 12px; align-content: start; }
.explore-card--wide { grid-row: span 2; }
.explore-card figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.explore-card--wide figure { aspect-ratio: 4 / 4.4; }
.explore-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.explore-card:hover img { transform: scale(1.05); }
.explore-card .tag { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.explore-card h3 { justify-self: start; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.explore-card:hover h3 { background-size: 100% 2px; }
.explore-card--wide h3 { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.035em; }
.explore-card p { color: var(--muted); }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (min-width: 1181px) {
  .menu-word { display: none; }
  .menu-trigger { padding: 0 12px; }
}
@media (min-width: 1181px) and (max-width: 1439px) {
  .header-cta { display: none; }
}
@media (max-width: 1180px) {
  .header-nav { display: none; }
  .header-nav + .header-actions { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .quickbar ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 112px; }
  .menu-inner { grid-template-columns: 1fr; }
  .menu-group ul { display: grid; max-height: 0; overflow: hidden; padding-left: 4px; transition: max-height .5s var(--ease); }
  .menu-group button[aria-expanded="true"] + ul { max-height: 320px; padding-bottom: 12px; }
  .menu-group > button[aria-expanded="true"] { transform: none; }
  .menu-aside { align-self: start; }
  .section-head.head-split { grid-template-columns: 1fr; }
  .drop-media { display: none; }
  .section-head.head-split > .btn { justify-self: start; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .gallery { order: 0; }
  .split-card, .split.reverse .split-card { margin: -60px 16px 0; }
  .quote, .form-card, .slider { grid-template-columns: 1fr; }
  .quote figure { min-height: 280px; }
  .cards, .tiles { --cols: 2 !important; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps::before, .steps::after { display: none; }
  .facts { --cols: 2 !important; }
  .related { grid-template-columns: 1fr 1fr; }
  .modal[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .modal figure img { min-height: 0; aspect-ratio: 16 / 10; }
  .distinct-layout { grid-template-columns: 1fr; }
  .distinct-sticky { display: none; }
  .distinct-items { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding-inline: var(--pad); }
  .distinct-items::-webkit-scrollbar { display: none; }
  .distinct-item { flex: 0 0 min(82vw, 440px); min-height: 0; opacity: 1; border: 0; padding: 0; justify-content: flex-start; scroll-snap-align: start; }
  .distinct-item figure { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 20px; }
  .distinct-item figure img { width: 100%; height: 100%; object-fit: cover; }
  .item-icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .distinct-item p { font-size: 17px; }
  .triad { grid-template-columns: 1fr; }
  .triad-card { min-height: 420px; }
  .triad-card:nth-child(2) { margin-top: 0; }
  .admit { grid-template-columns: 1fr; }
  .admit-card { position: static; }
  .stage { grid-template-columns: 1fr 1fr; }
  .stage .stage-text { grid-column: 1 / -1; order: -1; }
  .tab-list { margin-left: 0; }
  .foundation { grid-template-columns: 1fr; }
  .foundation-media .badge-round { right: 16px; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .explore-card--wide { grid-column: 1 / -1; grid-row: auto; }
  .explore-card--wide figure { aspect-ratio: 16 / 10; }
  .slide { grid-template-columns: 1fr; }
  .slide figure { min-height: 240px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .utility-bar { justify-content: center; }
  .utility-bar > p { display: none; }
  .utility-bar nav { gap: 14px; font-size: 12px; }
  .utility-bar .hide-sm { display: none; }
  .header-main { height: 68px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand > span { font-size: 15px; }
  .brand small { display: none; }
  .header-cta { display: none; }
  .menu-word { display: none; }
  .menu-trigger { padding: 0 13px; }
  .quicklinks { grid-template-columns: 1fr; }
  .menu-group > button { font-size: 30px; }
  .page-hero { padding-left: 8px; padding-right: 8px; }
  .hero-frame { min-height: 520px; border-radius: 16px; }
  .page-hero .lead { font-size: 16px; }
  .page-hero .slides-dots { display: none; }
  .page-hero .slides-pause { top: 14px; bottom: auto; right: 14px; }
  .subnav-inner { justify-content: flex-start; }
  .cta-hero::before, .cta-hero::after { display: none; }
  .floating-actions { gap: 10px; }
  .to-top { width: 46px; height: 46px; }
  .chat-bubble { width: 54px; height: 54px; }
  .cards, .tiles, .related, .facts { grid-template-columns: 1fr !important; }
  .steps { grid-template-columns: 1fr; }
  .split-card, .split.reverse .split-card { margin: -40px 10px 0; }
  .form { grid-template-columns: 1fr; }
  .acc-panel p { padding-right: 0; }
  .table-wrap table { min-width: 0; }
  .table-wrap th, .table-wrap td { padding: 13px 14px; font-size: 15px; }
  .table-wrap caption { padding: 18px 14px 6px; }
  .quickbar { margin-top: -40px; }
  .quickbar ul { grid-template-columns: 1fr; gap: 10px; }
  .quickbar a { grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto; gap: 2px 14px; padding: 16px 18px; align-items: center; }
  .quickbar .tile-icon { grid-row: 1 / 3; margin: 0; }
  .quickbar .qb-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .quickbar strong, .quickbar small { grid-column: 2; margin: 0; }
  .story-card { flex-basis: 78vw; }
  .tab-list { border-radius: 18px; width: auto; }
  .stage { grid-template-columns: 1fr; }
  .stage-tile { min-height: 280px; }
  .explore-grid { grid-template-columns: 1fr; }
  .admit .steps { --cols: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .btn-lg { padding: 18px 26px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .xh-title .line > span, .js .page-hero h1 .line > span { opacity: 1; transform: none; }
  .js .hero-frame { clip-path: none; }
  .js .cta-hero { --p: 1; }
  .js .welcome-text .w { opacity: 1; }
  .ticker-track { animation: none; }
}
.footer-legal .credit { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-primary-soft); text-underline-offset: 3px; }
.pay-strip { display: grid; justify-items: center; gap: 16px; text-align: center; }
.pay-strip img { width: min(360px, 90%); height: auto; }

/* ---------- Acciones flotantes: volver arriba y chat ---------- */
.floating-actions { position: fixed; z-index: 90; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); display: grid; justify-items: end; gap: 12px; }
.to-top { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); box-shadow: 0 14px 30px -16px rgba(43, 45, 66, .55), 0 0 0 1px var(--line); color: var(--ink); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s, background .3s, color .3s; }
.to-top.is-visible, html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--color-primary); color: var(--color-white); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.to-top-ring circle { stroke: var(--line); }
.to-top-ring .to-top-progress { stroke: var(--color-primary); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--scroll, 0) * 100); stroke-linecap: round; transition: stroke .3s; }
.to-top:hover .to-top-progress { stroke: var(--color-white); }
.to-top-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.to-top:hover .to-top-arrow { transform: translateY(-3px); }
.chat-demo { position: relative; }
.chat-bubble { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--color-primary); color: var(--color-white); cursor: pointer; box-shadow: 0 18px 36px -14px rgba(107, 20, 22, .7); transition: transform .4s var(--ease), background .3s; }
.chat-bubble:hover { transform: scale(1.07); background: var(--color-primary-dark); }
.chat-bubble svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 3px var(--color-white); }
.chat-bubble[aria-expanded="true"] .chat-dot { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 74px; width: min(340px, calc(100vw - 28px)); border-radius: 20px; background: var(--white); box-shadow: 0 30px 60px -24px rgba(43, 45, 66, .5), 0 0 0 1px var(--line); overflow: hidden; transform-origin: bottom right; }
.chat-panel:not([hidden]) { animation: chatIn .45s var(--ease); }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--color-dark); color: var(--color-white); }
.chat-head img { border-radius: 50%; background: var(--color-white); }
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { font-size: 12px; color: rgba(255, 255, 255, .72); }
.chat-body { padding: 18px; background: var(--color-gray-light); }
.chat-msg { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--white); font-size: 14px; line-height: 1.5; box-shadow: 0 0 0 1px var(--line); }
.chat-actions { display: grid; gap: 8px; padding: 14px 18px 18px; }
.chat-actions .btn { width: 100%; }
html:not(.js) .chat-demo { display: none; }
