/* ==========================================================================
   Expande — versión final (Figma 9b52zRyUknU4bCxGlM23fa · página Web 27:23)
   Home 218:53560 · Sobre Expande 218:63125
   ========================================================================== */

/* Lexend local (archivo entregado por diseño, variable 100–900) */
@font-face {
  font-family: "Lexend";
  src: url("../assets/fonts/Lexend-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-blue: #037afc;
  --c-blue-ink: #e8f3ff;
  --c-ink: #212121;
  --c-bg: #fcfcfc;
  --c-card: #fafdff;

  --c-tecnologia: #8c1fff;
  --c-literatura: #e05efc;
  --c-financiera: #87ff39;
  --c-catolica: #ffea2c;
  --c-bienestar: #ffa300;

  --grad-dark: linear-gradient(180deg, #0768cd 0%, #043467 25%, #202325 63%);

  /* Toda la tipografía es Lexend (decisión de marca) */
  --f-lexend: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-inter: var(--f-lexend);

  --gutter: clamp(16px, 5.5vw, 79px);
  --header-h: 73px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-inter);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.container {
  width: 100%;
  max-width: calc(1282px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.center { display: flex; justify-content: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 53px;
  padding: 0 32px;
  border-radius: 200px;
  font: 500 16px/21px var(--f-inter);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
.btn-primary { background: var(--c-blue); color: var(--c-blue-ink); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(3, 122, 252, .7); }
.btn-outline { border: 1px solid rgba(23, 47, 59, .7); background: transparent; }
.btn-light { background: var(--c-card); color: var(--c-ink); box-shadow: 0 6px 20px -8px rgba(0,0,0,.25); }
.text-gradient {
  background: linear-gradient(90deg, #212121 0%, #172f3b 42%, #037afc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-arrow {
  width: 22px; height: 22px; flex: none;
  background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23E8F3FF' stroke-width='1.5'%3E%3Cpath d='M10.84 7.81l3.52 3.13-3.52 3.14' stroke-linecap='square'/%3E%3Cpath d='M14 11H7'/%3E%3C/svg%3E");
}
.btn-arrow--dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23212121' stroke-width='1.5'%3E%3Cpath d='M10.84 7.81l3.52 3.13-3.52 3.14' stroke-linecap='square'/%3E%3Cpath d='M14 11H7'/%3E%3C/svg%3E");
}

/* ---------- Header + mega menú ----------
   Medidas: Figma 104:79843 (header) y 104:79781 (desplegable).
   Comportamiento y tiempos: como quakerschool.org
   (se abre con clic; cierra con clic afuera / Esc / otro clic; el fondo
   crece .6s ease-out; ítems escalonados 50ms; imagen con barrido .7s). */
:root {
  --ease-out: cubic-bezier(.5, .5, 0, 1);
  --nav-h: 73px;
  --mega-h: 441px; /* 514 − 73 */
}
.site-header {
  position: fixed;
  inset: 48px 0 auto 0;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
  transition: transform 1.2s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-150px); transition-duration: .6s; }
.nav {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  max-width: 1327px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 25px;
}
/* Fondo del header: crece hacia abajo cuando se abre el desplegable */
.nav::before {
  content: "";
  position: absolute; z-index: -1;
  inset: 0 0 auto;
  height: var(--nav-h);
  background: var(--c-bg);
  border-radius: 36.5px;
  box-shadow: 0 0 0 rgba(26, 26, 26, 0);
  transition: height .6s var(--ease-out), inset .6s var(--ease-out), border-radius .6s var(--ease-out), box-shadow .4s ease;
}
.site-header.is-scrolled .nav::before { box-shadow: 0 16px 60px rgba(26, 26, 26, .08); }
.nav.is-open::before {
  height: calc(var(--nav-h) + var(--mega-h));
  inset: -4px -8px auto;
  border-radius: 20px;
  box-shadow: 0 16px 92px rgba(26, 26, 26, .1);
}
.nav-logo img { width: 180px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 74px;
  margin: 0 auto 0 auto;
  padding-left: 20px;
  font: 400 16px/24px var(--f-lexend);
}
.nav-link {
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: inherit; color: #000; white-space: nowrap;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--c-blue); }
.nav-chevron { transition: transform .3s var(--ease-out); }
.has-menu.open .nav-chevron { transform: rotate(180deg); }
.nav-cta { height: 53px; width: 148px; padding: 0; margin-left: auto; }
.nav-toggle { display: none; }

/* Panel */
.mega {
  position: absolute; top: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + var(--mega-h));
  padding-top: var(--nav-h);
  visibility: hidden;
  pointer-events: none;
}
.nav.is-open .mega { visibility: visible; }
.mega-inner {
  position: relative;
  display: flex; justify-content: space-between;
  height: 100%;
  padding: 42px 57px 42px 83px;
  pointer-events: auto;
}
.mega-list { position: relative; width: 300px; margin: 0; padding: 0; list-style: none; }
/* Línea divisoria (degradado azul de Figma): se dibuja de arriba hacia abajo */
.mega-list::after {
  content: ""; position: absolute;
  left: 100%; top: 9px; width: 1px; height: 348px;
  background: linear-gradient(to top, #037afc 0%, #037afc 30%, #21d0fc 53%, rgba(240, 249, 255, 0) 100%);
  clip-path: inset(0 0 100%);
  transition: clip-path 1.2s ease;
}
.nav.is-open .mega-list::after { clip-path: inset(0); }
.mega-item { display: flex; }
.mega-link {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 19.75px 24px 19.75px 0;
  font: 400 18px/27px var(--f-lexend);
  color: #000;
  opacity: 0; transform: translateY(20px);
  transition: color .2s ease;
}
.mega-item:first-child .mega-link { padding-top: 15px; }
.nav.is-open .mega-link { opacity: 1; transform: none; }
.nav.is-open .mega-item:nth-child(1) .mega-link { transition: color .2s ease, opacity .35s ease-out .2s, transform .35s ease-out .2s; }
.nav.is-open .mega-item:nth-child(2) .mega-link { transition: color .2s ease, opacity .35s ease-out .25s, transform .35s ease-out .25s; }
.nav.is-open .mega-item:nth-child(3) .mega-link { transition: color .2s ease, opacity .35s ease-out .3s, transform .35s ease-out .3s; }
.nav.is-open .mega-item:nth-child(4) .mega-link { transition: color .2s ease, opacity .35s ease-out .35s, transform .35s ease-out .35s; }
.nav.is-open .mega-item:nth-child(5) .mega-link { transition: color .2s ease, opacity .35s ease-out .4s, transform .35s ease-out .4s; }
.mega-list.has-hover .mega-item:not(.hover) .mega-link { color: gray; }
.mega-icon {
  width: 22px; height: 22px; flex: none;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .2s ease, transform .2s ease;
}
.mega-item.hover > .mega-link .mega-icon,
.mega-sublink:hover .mega-icon { opacity: 1; transform: none; }

/* Segundo nivel: aparece en la columna central al pasar por un área */
.mega-sub {
  position: absolute; top: 0; left: calc(100% + 60px);
  width: 280px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease-out, visibility .35s ease-out;
}
.mega-sub ul { margin: 0; padding: 0; list-style: none; }
.mega-item.hover .mega-sub { opacity: 1; visibility: visible; }
.mega-sublink {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  padding: 15px 0 19.75px;
  opacity: 0; transform: translateY(10px);
}
.mega-item.hover .mega-sublink { opacity: 1; transform: none; transition: opacity .35s ease-out .1s, transform .35s ease-out .1s; }
.mega-subtitle { font: 400 18px/27px var(--f-lexend); color: #000; }
.mega-subdesc { grid-column: 1; margin-top: 6px; font: 400 14px/20px var(--f-lexend); color: #555; }
.mega-sublink .mega-icon { grid-column: 2; grid-row: 1; }
.mega-sublink:hover .mega-subtitle { color: var(--c-blue); }

/* Imagen: barrido de arriba hacia abajo + escala 1.2 → 1 */
.mega-media {
  position: relative; flex: none;
  width: 501px; height: 352px; margin-top: 5px;
  border-radius: 27px; overflow: hidden;
  background: #d9d9d9;
  clip-path: inset(0 0 100%);
  transition: clip-path .7s ease .1s;
}
.nav.is-open .mega-media { clip-path: inset(0%); }
.mega-media-inner { position: absolute; inset: 0; transform: scale(1.2); transition: transform .7s ease .1s; }
.nav.is-open .mega-media-inner { transform: scale(1); }
.mega-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease-out; }
.mega-img.is-active { opacity: 1; }

/* ---------- Footer (Figma 78:64287 · nodo 104:80124) ---------- */
.site-footer { background: #212426; color: #f0f9ff; }
.site-footer .container { max-width: calc(1280px + var(--gutter) * 2); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 48px;
  padding-top: 53px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.footer-logo { width: 180px; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 160px); column-gap: 80px; padding-top: 11px; }
.footer-cols h4 { margin: 0 0 16px; font: 500 14px/20px var(--f-lexend); letter-spacing: -0.01em; color: #6bb6fe; }
.footer-cols li + li { margin-top: 16px; }
.footer-cols a { font: 400 15px/24px var(--f-lexend); color: #f0f9ff; transition: color .2s; }
.footer-cols a:hover { color: #6bb6fe; }
.footer-cta { height: 48px; width: 180px; margin-top: 86px; font-size: 15px; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 32px; padding: 19px 0 70px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font: 400 13px/20px var(--f-lexend); color: #9fd6f7;
}
.footer-legal > * { opacity: .7; }
.footer-legal-links { display: flex; gap: 32px; }
.footer-legal a:hover { color: #fff; }


/* ---------- Botones extra ---------- */
.btn-ghost { border: 1px solid rgba(250, 253, 255, .7); color: #e8f3ff; background: transparent; }
.btn-ghost:hover { background: rgba(250, 253, 255, .08); }
.btn-light { background: #e8f3ff; color: var(--c-ink); }
.btn-area { background: var(--c); color: #e8f3ff; height: 53px; padding: 0 22px 0 31px; }
.btn-area:hover { box-shadow: 0 10px 24px -12px var(--c); }
.grad-text {
  background: linear-gradient(90deg, #21d0fc, #037afc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header sobre fondo oscuro ---------- */
.site-header[data-theme="dark"] .nav::before { background: rgba(29, 40, 46, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: none; }
.site-header[data-theme="dark"] .nav-link { color: #fafdff; }
.site-header[data-theme="dark"] .nav-link:hover { color: #6bb6fe; }
.site-header[data-theme="dark"] .nav.is-open::before { background: var(--c-bg); }
.site-header[data-theme="dark"] .nav.is-open .nav-link { color: #000; }
.site-header[data-theme="dark"].is-scrolled .nav:not(.is-open)::before { background: rgba(29, 40, 46, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav::before { transition: height .6s var(--ease-out), inset .6s var(--ease-out), border-radius .6s var(--ease-out), box-shadow .4s ease, background-color .4s ease; }

/* ==========================================================================
   Hero (oscuro) — Figma OP2 frames 0 → 6
   Coordenadas de diseño 1440 × 1024; --k escala la escena.
   ========================================================================== */
.dark {
  position: relative;
  background: #1e2529;
  color: #fafdff;
  overflow: hidden;
  --k: 1;
}
/* Fondo = degradado exacto de la "Section" de Figma (#212121 → #172f3b → #037afc) */
.dark { background: linear-gradient(54.6deg, #212121 31.9%, #172f3b 60.8%, #037afc 100.8%) #212121; }
/* "Rectangle 10" de Figma: niebla superior SOBRE la flor, suave y a todo el ancho */
.hero-fog {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none;
  height: max(260px, calc(383px * var(--k)));
  background: linear-gradient(180deg, #1d282e 0%, rgba(29, 40, 46, .83) 50%, rgba(29, 40, 46, 0) 100%);
}
.hstar { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #3597fd; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px; }
/* Arte del hero en coordenadas de diseño; JS lo escala/posiciona entero */
.hero-art { position: absolute; left: 0; top: 0; width: 1440px; height: 1024px; transform-origin: 0 0; pointer-events: none; }
/* Coordenadas = frame 2 de Figma (OP2). Centro de la flor: 1423.5, 536.5 */
.hero-art .petals { position: absolute; left: 423.5px; top: -463.5px; width: 2000px; height: 2000px; max-width: none; opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.hglow { position: absolute; left: 1165px; top: 57px; width: 955px; height: 1023px; border-radius: 50%; background: var(--glow, #037afc); opacity: 0; filter: blur(146px); }
.win { position: absolute; left: 704px; top: 372px; width: 658px; height: 395px; max-width: none; opacity: 0; will-change: opacity; }
.hchip {
  position: absolute; left: 0; top: 0; height: 44px; padding: 0 19px;
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--c); color: var(--ink); font: 400 14.8px/1 var(--f-lexend); white-space: nowrap;
  opacity: 0; will-change: transform, opacity, filter;
}

.hero-copy { position: absolute; left: 0; right: 0; top: calc(50% + (363 - 512) * var(--k) * 1px); z-index: 2; }
.hero-copy > * { opacity: 0; }
.hero-copy h1 {
  max-width: calc(600px * var(--k));
  font: 500 max(32px, calc(52px * var(--k)))/1.15 var(--f-lexend);
  letter-spacing: -0.02em; color: #fff;
}
.hero-sub { margin-top: calc(45px * var(--k)); font: 400 max(20px, calc(28px * var(--k)))/1.39 var(--f-lexend); color: #fff; }
.hero-sub strong { font-weight: 600; }
.hero-copy .hero-ctas { display: flex; gap: 16px; margin-top: calc(68px * var(--k)); }
.hero-copy .hero-ctas .btn-primary { width: 332px; }
.hero-copy .hero-ctas .btn-ghost { width: 153px; }

/* Habilidades */
.skills { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 150px; }
.skills h2 { font: 500 clamp(34px, 3.61vw, 52px)/1.15 var(--f-lexend); letter-spacing: -0.02em; color: #e8f3ff; }
.skills-sub { margin-top: 24px; font: 500 clamp(20px, 2.08vw, 30px)/1.3 var(--f-lexend); color: #e8f3ff; }
.skills-line {
  height: 4px; margin: 84px 0 40px; max-width: 1221px; border-radius: 38px;
  background: linear-gradient(90deg, #037afc 0%, #037afc 30%, #21d0fc 53%, rgba(240, 249, 255, .2) 100%);
  transform-origin: left center; transform: scaleX(0);
}
.skills .pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 286px)); justify-content: space-between; max-width: 1203px; padding-left: 29px; }
.skills .pillars h3 { font: 500 clamp(24px, 2.34vw, 33.7px)/1.21 var(--f-inter); letter-spacing: -0.02em; margin-bottom: 16px; color: #e8f3ff; }
.skills .pillars p { font: 400 16px/24px var(--f-inter); color: #e8f3ff; }
.skills { padding-bottom: 58px; }
.skills-cta { margin-top: 65px; }

/* ==========================================================================
   Áreas — pestañas + mazo (comportamiento como parentsquare.com)
   ========================================================================== */
.areas { padding: 120px 0 40px; background: #fff; }
.areas-head { text-align: center; }
.areas-head h2 { font: 500 clamp(34px, 3.61vw, 52px)/1.15 var(--f-lexend); letter-spacing: -0.02em; color: #000; }
.areas-head p { margin-top: 18px; font: 500 clamp(18px, 2.08vw, 30px)/1.3 var(--f-lexend); color: #000; }
/* Composición de Figma (Banner v2 218:65553): pestañas a 48 px, mazo centrado en x≈703,
   textos a 979 px. Detrás del mazo: flor del color del área → halo blanco → resplandor. */
.areas .container { max-width: 1440px; padding: 0 48px; }
.areas-head { position: relative; z-index: 2; }
.areas-body {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 420px) 470px minmax(0, 1fr); align-items: center;
  margin-top: 64px; min-height: 700px;
}
.tabs, .area-copies { position: relative; z-index: 2; }
.area-copies { padding-left: 41px; max-width: 341px; }
.tabs { display: flex; flex-direction: column; gap: 14px; }
.tab {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: 500 clamp(22px, 2.1vw, 30px)/1.25 var(--f-inter); letter-spacing: -0.02em;
  color: rgba(0, 0, 0, .6); max-width: 400px;
  transition: color .3s ease, transform .4s var(--ease-out);
}
.tab:hover { color: rgba(0, 0, 0, .85); }
.tab-dot {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--c) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M10.84 7.81l3.52 3.13-3.52 3.14' stroke-linecap='square'/%3E%3Cpath d='M14 11H7'/%3E%3C/svg%3E");
  transform: scale(0); width: 0; margin-right: -12px;
  transition: transform .4s var(--ease-out), width .4s var(--ease-out), margin .4s var(--ease-out);
}
.tab.is-active { color: #000; }
.tab.is-active .tab-dot { transform: scale(1); width: 22px; margin-right: 2px; }
.tab:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 4px; border-radius: 6px; }

/* foto y flor un poco más chicas (pedido de diseño) */
.deck { position: relative; z-index: 1; width: 470px; height: 590px; justify-self: center; transform: scale(.84); }
.deck-flower {
  position: absolute; left: -173px; top: -105px; width: 788px; height: 781px; pointer-events: none;
  background: var(--c); transition: background-color .6s ease;
  -webkit-mask: url("../assets/img/final/area-flower.svg") center / contain no-repeat;
          mask: url("../assets/img/final/area-flower.svg") center / contain no-repeat;
}
.deck-vignette {
  position: absolute; left: -119px; top: -148px; width: 682px; height: 835px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(248, 248, 248, .59) 47%, #fff 96%);
}
.deck-glow {
  position: absolute; left: 47px; top: 58px; width: 343px; height: 494px;
  border-radius: 50%; background: var(--c); opacity: .69; filter: blur(90px);
  transition: background-color .6s ease;
}
.deck-card {
  position: absolute; left: 28px; top: 30px; width: 414px; height: 522px;
  border-radius: 21px; overflow: hidden;
  background: #e9eef3;
  box-shadow: 0 30px 60px -30px rgba(10, 30, 60, .45);
  transform-origin: 50% 60%;
  will-change: transform, opacity;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }

.area-copy { display: flex; flex-direction: column; align-items: flex-start; }
.area-copy[hidden] { display: none; }
.area-copy h3 { font: 500 clamp(24px, 2.08vw, 30px)/1.3 var(--f-lexend); color: var(--t, var(--c-ink)); }
.area-copy p { margin-top: 18px; font: 400 18px/1.6 var(--f-lexend); color: var(--c-ink); }
.area-copy .btn { margin-top: 30px; }
/* nombres de área largos: el botón pasa a dos líneas antes que salirse */
.area-copy .btn-area { max-width: 100%; height: auto; min-height: 53px; padding-top: 10px; padding-bottom: 10px; white-space: normal; text-align: left; line-height: 1.25; }
.partner-logos { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 26px; }
.partner-logos img { width: auto; max-width: 100%; }

/* ==========================================================================
   Banner
   ========================================================================== */
.cta-banner { padding-top: 7px; padding-bottom: 150px; }
.banner {
  /* todo el banner escala con su propio ancho (Figma 1276 × 349) */
  container-type: inline-size;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1276 / 349; min-height: 300px;
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 0% 94%, #037afc 0%, #037afc 30%, #21d0fc 53%, rgba(240, 249, 255, 0) 100%),
    #f0f9ff;
}
.banner-copy {
  position: absolute; z-index: 3;
  left: calc(57 / 1276 * 100cqw); top: calc(55 / 1276 * 100cqw);
  width: calc(561 / 1276 * 100cqw);
  color: #fafdff;
}
.banner-copy h2 > span { display: block; white-space: nowrap; }  /* siempre en dos líneas */
.banner-copy h2 { max-width: none; font: 500 clamp(22px, calc(44.5 / 1276 * 100cqw), 44.5px)/1.15 var(--f-lexend); }
.banner-copy p { margin-top: calc(23 / 1276 * 100cqw); font: 500 clamp(14px, calc(25.7 / 1276 * 100cqw), 25.7px)/1.3 var(--f-lexend); }
.banner-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.banner-flower { position: absolute; left: calc(595 / 1276 * 100cqw); top: calc(-153 / 1276 * 100cqw); width: calc(857 / 1276 * 100cqw); max-width: none; height: auto; }
.banner-photo { position: absolute; left: calc(595 / 1276 * 100cqw); top: calc(-386 / 1276 * 100cqw); width: calc(685 / 1276 * 100cqw); max-width: none; height: auto; }
.banner .btn-light { position: absolute; z-index: 4; left: calc(998 / 1276 * 100cqw); top: calc(254 / 1276 * 100cqw); width: calc(213 / 1276 * 100cqw); min-width: 160px; padding: 0; height: clamp(40px, calc(53 / 1276 * 100cqw), 53px); font-size: clamp(13px, calc(16 / 1276 * 100cqw), 16px); }

/* ==========================================================================
   El orgullo — carrusel en arco
   ========================================================================== */
.pride { position: relative; padding-bottom: 80px; overflow-x: clip; }
.pride-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.pride-head h2 { font: 500 clamp(40px, 4.17vw, 60px)/1 var(--f-lexend); color: #000; }
.pride-kicker { margin-bottom: 16px; font: 500 clamp(17px, 1.39vw, 20px)/1.4 var(--f-lexend); color: #037afc; }
.pride-head > p { max-width: 404px; margin-top: 71px; font: 400 20px/1.44 var(--f-lexend); color: #000; }
.wheel { position: relative; height: 900px; margin-top: 30px; --R: 646px; overflow: hidden; }
.wheel-arc {
  position: absolute; left: 50%; top: 330px; width: calc(var(--R) * 2); height: calc(var(--R) * 2);
  margin-left: calc(var(--R) * -1);
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(180deg, #037afc 0%, #fff 36%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.wcard {
  position: absolute; left: 50%; top: 143px;
  width: 537px; height: 723px; margin-left: -268.5px;
  border-radius: 25px; overflow: hidden; isolation: isolate;
  background: var(--c-card);
  transform-origin: 50% 50%;
  cursor: pointer;
  box-shadow: 0 30px 80px -50px rgba(4, 52, 103, .45);
}
.wcard::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(130% 75% at 100% 100%, #037afc 0%, #037afc 30%, #21d0fc 53%, rgba(240, 249, 255, 0) 100%);
  opacity: var(--glow-o, 0); transition: opacity .6s ease;
}
.wcard > * { opacity: var(--content-o, .2); transition: opacity .6s ease; }
.wcard.is-active { --glow-o: 1; --content-o: 1; cursor: default; }
.wcard-text { position: relative; z-index: 3; padding: 64px 49px 0; max-width: 430px; }
.wcard h3 { font: 500 39.4px/1.3 var(--f-lexend); color: var(--c-ink); }
.wcard p { margin-top: 26px; max-width: 320px; font: 400 23.6px/1.6 var(--f-lexend); color: #000; }
.wcard-flower { position: absolute; z-index: 1; left: -8%; top: 41%; width: 180%; max-width: none; }
.wcard-person { position: absolute; z-index: 2; left: 5%; bottom: -1%; width: 95%; }

/* ==========================================================================
   FAQ (fondo claro)
   ========================================================================== */
.faq-zone {
  padding: 128px 0 140px;
  background:
    radial-gradient(90% 75% at 0% 100%, #21d0fc 0%, rgba(33, 208, 252, .55) 22%, rgba(240, 249, 255, 0) 60%),
    #f0f9ff;
}
.faq { display: grid; grid-template-columns: minmax(0, 444px) minmax(0, 713px); justify-content: space-between; gap: 48px; }
.faq-head h2 { font: 500 clamp(34px, 3.61vw, 52px)/1.15 var(--f-lexend); letter-spacing: -0.02em; color: #000; }
.faq-head p { margin-top: 16px; font: 400 clamp(17px, 1.39vw, 20px)/1.35 var(--f-lexend); color: var(--c-ink); }
.faq-list { padding-top: 130px; }
.faq-list details.is-empty summary { cursor: default; }
.faq-list summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; cursor: pointer;
  font: 400 clamp(19px, 1.67vw, 24px)/1.6 var(--f-lexend); color: var(--c-ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 30px; line-height: 1; font-weight: 300; color: #616161; }
.faq-list details[open] summary { font-size: clamp(22px, 2.1vw, 30px); }
.faq-list details[open] summary::after { content: "-"; color: var(--c-ink); }
.faq-list details p { max-width: 611px; padding-bottom: 20px; font: 400 clamp(16px, 1.4vw, 20px)/1.35 var(--f-lexend); color: var(--c-ink); }
.faq-cta { grid-column: 2; display: flex; justify-content: flex-end; margin-top: 28px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); }
body.no-motion .reveal, body.no-motion .hero-copy > * { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 36px; }
  .nav-logo img { width: 150px; }
  .areas .container { padding: 0 var(--gutter); }
  .areas-body { grid-template-columns: minmax(0, 1fr) 470px; row-gap: 24px; }
  .area-copies { grid-column: 1 / -1; max-width: 560px; padding-left: 0; }
  .deck { transform: scale(.76); }
}
@media (max-width: 860px) {
  .site-header { top: 16px; }
  .nav { height: 60px; padding: 0 6px 0 18px; --nav-h: 60px; }
  .nav::before { border-radius: 30px; }
  .nav-logo img { width: 128px; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 48px; height: 48px; margin-left: auto;
    border: 0; border-radius: 50%; background: var(--c-blue); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--c-bg); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px; margin: 0;
    background: var(--c-bg); border-radius: 24px;
    box-shadow: 0 24px 48px -20px rgba(0,0,0,.3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-link { width: 100%; padding: 14px 12px; justify-content: space-between; }
  /* En móvil el desplegable es una lista simple dentro del menú */
  .nav.is-open::before { height: var(--nav-h); inset: 0 0 auto; border-radius: 30px; }
  .mega { position: static; height: auto; padding: 0; display: none; visibility: visible; }
  .has-menu.open .mega { display: block; }
  .mega-inner { display: block; padding: 0 12px 8px; }
  .mega-list { width: auto; }
  .mega-list::after, .mega-sub, .mega-media { display: none; }
  .mega-link, .mega-item:first-child .mega-link { opacity: 1; transform: none; padding: 10px 0; font-size: 16px; }

  .hero { height: auto; min-height: 0; max-height: none; padding: 120px 0 0; display: flex; flex-direction: column; }
  .hero-copy { position: relative; top: 0; order: 1; }
  .hero-copy h1 { max-width: none; font-size: 34px; }
  .hero-sub { margin-top: 20px; font-size: 20px; }
  .hero-copy .hero-ctas { flex-direction: column; margin-top: 28px; }
  .hero-copy .hero-ctas .btn-primary, .hero-copy .hero-ctas .btn-ghost { width: 100%; }
  .hero { padding-bottom: 108vw; overflow: hidden; }
  .skills { padding-top: 20px; padding-bottom: 96px; }
  .skills-line { margin: 48px 0 32px; }
  .skills .pillars { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }

  .areas { padding: 96px 0 72px; }
  .areas-body { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; min-height: 0; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 18px; padding-bottom: 6px; scrollbar-width: none; }
  .tab { font-size: 18px; white-space: nowrap; }
  .deck { transform: scale(.56); transform-origin: 50% 0; margin-bottom: -260px; }

  .cta-banner { padding-bottom: 96px; }
  .banner { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 24px 0; min-height: 0; aspect-ratio: auto; }
  .banner-art { order: 3; align-self: stretch; }
  .banner-copy { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .banner-copy h2 { font-size: clamp(22px, 7vw, 28px); max-width: none; }
  .banner-copy h2 > span { display: inline; white-space: normal; }
  .banner-copy p { font-size: 17px; margin-top: 16px; }
  .banner .btn-light { position: relative; left: auto; top: auto; margin-top: 24px; height: 46px; font-size: 14px; width: auto; padding: 0 22px; }
  .banner-art { position: relative; inset: auto; height: 290px; margin: 12px -24px 0; }
  .banner-flower { left: 18%; top: -10%; width: 105%; }
  .banner-photo { left: 22%; top: -2%; width: 78%; }

  .pride-head { flex-direction: column; }
  .wheel { height: 560px; }
  .wcard { width: 300px; height: 404px; margin-left: -150px; top: 60px; }
  .wcard-text { padding: 32px 26px 0; }
  .wcard h3 { font-size: 24px; }
  .wcard p { font-size: 15px; margin-top: 12px; }
  .wheel-arc { top: 200px; --R: 360px; }

  .faq { grid-template-columns: 1fr; }
  .faq-list { padding-top: 0; }
  .faq-cta { grid-column: 1; justify-content: flex-start; }
  .footer-top { flex-direction: column; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; column-gap: 24px; padding-top: 0; }
  .footer-bottom { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .tab, .wcard { transition: none; }
}

/* ---------- Barra de progreso de lectura ---------- */
.read-progress {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: 3px; pointer-events: none;
  background: rgba(3, 122, 252, .12);
}
.read-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #037afc 0%, #21d0fc 100%);
  box-shadow: 0 0 10px rgba(33, 208, 252, .55);
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* Logo Santillana bajo el de Expande (Figma: x 84, 13 px bajo el logo, 124 × 36) */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-santillana { width: 124px; height: auto; }
/* fila inferior: "Hablemos" a la izquierda, logo de Santillana en la esquina derecha */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 86px; }
.footer-bottom .footer-cta { margin-top: 0; }

/* la flor tenue del mazo no debe generar scroll horizontal */
.areas { overflow-x: clip; }

/* ==========================================================================
   Cierre y formulario (Figma 218:55352 · 1440 × 890)
   ========================================================================== */
.contact { position: relative; overflow: hidden; isolation: isolate; background: #212121; color: #fff; }
.contact-art { position: absolute; left: max(0px, 50% - 720px); top: 0; width: 1440px; height: 890px; z-index: -1; pointer-events: none; }
.contact-art > * { position: absolute; max-width: none; }
.contact-iso { left: -716px; top: -305px; width: 2155px; height: 2050px; }
.contact-glow {
  /* centrado en el borde izquierdo del arte: se extiende hacia la izquierda para que en
     pantallas anchas se desvanezca parejo (sin corte vertical) */
  left: -911px; top: -17px; width: 1822px; height: 895px;
  background: radial-gradient(32% 56% at 50% 70%, #21d0fc 0%, #037afc 30%, rgba(3, 122, 252, .3) 58%, rgba(33, 33, 33, 0) 100%);
  opacity: .85;
}
.contact-petal { left: -63px; top: 470px; width: 897px; height: 790px; }
.contact-man { left: -114px; top: 184px; width: 849px; height: 706px; }
.contact-art .hstar { background: #3597fd; border-radius: 50%; }
.contact-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 676px); justify-content: space-between;
  align-items: start; padding-top: 121px; padding-bottom: 125px; min-height: 890px;
}
.contact-title { font: 500 clamp(30px, 2.94vw, 42.35px)/1.15 var(--f-lexend); color: #fff; max-width: 553px; }
.contact-title .grad-text { background-image: linear-gradient(90deg, #21d0fc, #037afc); }
.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px;
  margin-top: 3px; padding: 44px 43px 40px;
  border-radius: 24px; background: #212121;
  border: 3px solid transparent;
  background: linear-gradient(#212121, #212121) padding-box, linear-gradient(135deg, #21d0fc, #037afc) border-box;
}
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 14px/20px var(--f-inter); color: #e8f3ff; }
.field input, .field textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid rgba(33, 33, 33, .15); border-radius: 12px; background: #fff;
  font: 400 16px/1.4 var(--f-lexend); color: var(--c-ink);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.field textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a9099; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: #037afc; box-shadow: 0 0 0 3px rgba(33, 208, 252, .45); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .35); }
.field-error { min-height: 0; font: 400 13px/1.3 var(--f-lexend); color: #ff9d9d; }
.field-error:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 6px; }
.form-foot .btn { width: 149px; padding: 0; border: 0; cursor: pointer; }
.form-foot .btn:disabled { opacity: .6; cursor: progress; }
.form-status { margin-right: auto; font: 400 14px/1.4 var(--f-lexend); color: #e8f3ff; }
.form-status[data-kind="ok"] { color: #87ff39; }
.form-status[data-kind="error"] { color: #ff9d9d; }

/* Footer: pegado al cierre, sobre el mismo fondo oscuro */
.site-footer .footer-top { padding-top: 53px; }

@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-bottom: 96px; }
  .contact-form { max-width: 676px; }
  .contact-art { left: auto; right: -400px; opacity: .55; }
}
@media (max-width: 860px) {
  .contact-grid { padding-top: 88px; padding-bottom: 72px; }
  .contact-form { grid-template-columns: 1fr; padding: 28px 22px; }
  .contact-art { right: -760px; top: -120px; opacity: .35; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }
}

/* encuadre de las fotos del menú (verticales en un recuadro horizontal): cada una muestra las caras */
.mega-img[data-area="0"] { object-position: 50% 95%; }
.mega-img[data-area="1"] { object-position: 50% 22%; }
.mega-img[data-area="2"] { object-position: 50% 5%; }
.mega-img[data-area="3"] { object-position: 50% 34%; }
.mega-img[data-area="4"] { object-position: 50% 10%; }

/* nombre del área junto al logo en la barra superior (misma tipografía que el logo) */
.nav-logo { display: inline-flex; align-items: center; gap: 14px; }
.nav-area { padding-left: 14px; border-left: 1px solid currentColor; font: 400 17px/1.2 var(--f-lexend); letter-spacing: -0.01em; color: #212121; white-space: nowrap; opacity: .9; }
.site-header[data-theme="dark"] .nav-area { color: #fff; }
@media (max-width: 1100px) { .nav-area { font-size: 14px; padding-left: 10px; gap: 10px; } }
@media (max-width: 860px) { .nav-area { font-size: 12.5px; max-width: 120px; white-space: normal; line-height: 1.15; } }
