/* =========================================================================
   Asociación Española de Startups — rediseño continuo, moderno y fresco.
   Fondo CLARO que fluye (aurora azul/cian continua), paneles redondeados
   flotantes en vez de bloques duros. El triángulo 3D recorre la web y el
   texto le abre paso. Tipografía única: Roboto (manual de identidad AES).
   ========================================================================= */
:root {
  --bg: #ffffff;           /* fondo principal BLANCO (Design System 4.1) */
  --bg-alt: #f3f5fb;       /* fondos alternos gris claro */
  --ink: #0a0d16;          /* titulares (negro) */
  --text: #3a3f4c;         /* texto cuerpo (gris oscuro) */
  --blue: #0026e9;
  --blue-2: #3a63ff;
  --cyan: #19e3c8;
  --cyan-2: #5cffe6;
  --muted: #5c6072;
  --muted-light: rgba(255,255,255,.80);
  --line: rgba(8,10,22,.10);
  --line-light: rgba(255,255,255,.16);
  --panel: linear-gradient(145deg, #0b1438 0%, #0a2bd6 55%, #08123a 100%);
  --maxw: 1280px;          /* contenedor máximo (Design System 4.1) */
  --rad-btn: 14px;         /* radios del sistema: botones 14 / cards 20 / inputs 12 */
  --rad-card: 20px;
  --rad-input: 12px;
  --gap-section: clamp(64px, 8vw, 120px);  /* 120 desktop / 80 tablet / 64 móvil */
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { background: var(--bg); color: var(--text); font-family: "Roboto", system-ui, sans-serif; font-size: 18px; line-height: 1.6; overflow-x: hidden; position: relative; }
/* AURORA continua de fondo (fresca, fluye por toda la web) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 26% at 12% 8%, rgba(58,99,255,.20), transparent 62%),
    radial-gradient(34% 24% at 88% 22%, rgba(25,227,200,.20), transparent 62%),
    radial-gradient(40% 26% at 50% 52%, rgba(58,99,255,.13), transparent 62%),
    radial-gradient(36% 26% at 84% 78%, rgba(25,227,200,.16), transparent 62%),
    radial-gradient(34% 24% at 16% 92%, rgba(58,99,255,.15), transparent 62%);
}
img, svg { display: block; max-width: 100%; }
/* Cursor personalizado: el triángulo "play" del isotipo */
* { cursor: url('img/cursor-arrow.png') 2 2, auto; }
a, button, .btn, [role="button"], .dir-chip, .dash-nav button { cursor: url('img/cursor-arrow.png') 2 2, pointer; }
input, textarea, select { cursor: auto; }
/* Cabeceras de página y de noticias: centradas */
.page-head { text-align: center; }
.page-head .lead { margin-left: auto; margin-right: auto; }
.news-head { text-align: center; }
a { color: inherit; text-decoration: none; }
/* Titulares en negro (Design System 4.1: negro=titulares, gris oscuro=texto) */
h1, h2, h3, h4, h5, h6 { color: var(--ink); }
.section-cta .cta-title, .form-aside h3, .leader-card h3, .profile-id h1 { color: #fff; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

.display, .hero-title, .cta-title { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; line-height: .98; letter-spacing: -.02em; }
.display { font-size: clamp(2rem, 4.5vw, 3.4rem); }   /* H2 ~32→54 (ENTREGA 4.4) */

/* ---- Botones (frescos: degradado que fluye + flecha) ---- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .55em; font-weight: 600; font-size: .96rem; padding: 16px 28px; border-radius: var(--rad-btn); border: 1px solid transparent; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s, color .3s, background-position .5s var(--ease); will-change: transform; }
.btn::after { content: ""; width: 0; height: 0; border-left: .56em solid currentColor; border-top: .34em solid transparent; border-bottom: .34em solid transparent; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn:hover::after { transform: translateX(5px); }
.btn-primary { color: #fff; background: linear-gradient(115deg, var(--blue) 0%, var(--blue-2) 55%, var(--cyan) 100%); background-size: 200% 100%; background-position: 0% 0%; box-shadow: 0 14px 34px -14px rgba(0,38,233,.6); }
.btn-primary:hover { background-position: 100% 0%; box-shadow: 0 22px 50px -16px rgba(25,227,200,.55); }
.btn-line { background: rgba(255,255,255,.05); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.section-dark .btn-line, .section-cta .btn-line { color: #fff; border-color: var(--line-light); }
.section-dark .btn-line:hover, .section-cta .btn-line:hover { color: var(--cyan-2); border-color: var(--cyan-2); }
.btn-lg { padding: 20px 44px; font-size: 1.05rem; }

/* =========================================================================
   HERO — la Tierra (IMAGEN REAL, foto NASA/DSCOVR) sobre el espacio.
   Sin WebGL ni interacción: solo un parallax suave de la imagen al bajar.
   ========================================================================= */
.hero { position: relative; z-index: 2; min-height: 95vh; display: flex; align-items: center; padding: 96px 0 56px; overflow: hidden; color: #fff; background: #01030a; }   /* 95/90/85vh (ENTREGA 4.4) */
@media (max-width: 1023px) { .hero { min-height: 90vh; } }
@media (max-width: 767px) { .hero { min-height: 85vh; } }
/* La Tierra: UNA imagen estática a sangre (cover) */
.hero-bg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.02); transform-origin: 30% 35%; user-select: none; pointer-events: none; }
/* Viñeta para legibilidad del titular (oscurece la izquierda y los bordes) */
.hero-vig { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1,4,12,.86) 0%, rgba(1,4,12,.5) 32%, rgba(1,4,12,0) 60%),
    radial-gradient(130% 130% at 64% 42%, transparent 54%, rgba(1,3,10,.55) 100%); }

/* ---- NAV ---- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 27px 40px; transition: padding .4s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }   /* ~88px alto (Design System 4.2) */
.nav.scrolled { padding: 19px 40px; background: rgba(255,255,255,.94); backdrop-filter: saturate(140%) blur(8px); border-bottom-color: var(--line); }   /* ~72px al hacer scroll */
.nav.on-dark:not(.scrolled) { color: #fff; text-shadow: 0 2px 14px rgba(0,4,16,.55); }
.nav.on-dark:not(.scrolled) .nav-cta { text-shadow: none; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: .96rem; }
.nav-links a { opacity: .82; transition: opacity .25s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { background: var(--blue); color: #fff !important; padding: 11px 22px; border-radius: var(--rad-btn); opacity: 1 !important; transition: transform .3s var(--ease), background .3s; }
.nav-cta:hover { transform: translateY(-2px); background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.nav-cta::after { display: none; }
.nav-ghost { padding: 11px 0; }
.nav-login { padding: 9px 16px; border: 1.5px solid currentColor; border-radius: var(--rad-btn); opacity: .8; margin-left: 2px; transition: opacity .3s, transform .3s var(--ease); }
.nav-login:hover { opacity: 1; transform: translateY(-2px); }
.nav-login::after { display: none !important; }
/* Hover: subrayado azul 2px en los enlaces del menú (Design System 4.2) */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav.on-dark:not(.scrolled) .nav-links a:not(.nav-cta)::after { background: var(--cyan-2); }
/* Botón hamburguesa (oculto en desktop) */
.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Contenido del hero: titular + CTA sobre el espacio ---- */
.hero-inner { position: relative; z-index: 5; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; width: 100%; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); max-width: 19ch; margin-bottom: 28px; color: #fff; text-shadow: 0 6px 40px rgba(0,8,30,.6); }   /* H1 40→64 (ENTREGA 4.4) */
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.34rem); max-width: 52ch; color: #fff; font-weight: 600; margin-bottom: 38px; line-height: 1.55; opacity: 0; transform: translateY(20px); text-shadow: 0 2px 22px rgba(0,8,30,.7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; transform: translateY(20px); }
.btn-ghost-light { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: var(--cyan-2); color: var(--cyan-2); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 6; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--cyan); border-radius: 4px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%,0);} 30% {opacity:1;} 100% {opacity:0; transform: translate(-50%,16px);} }

/* ---- SECCIONES (sin bloques duros: fluyen sobre el fondo claro) ---- */
.section { position: relative; z-index: 3; padding: var(--gap-section) 0; }   /* 120 desktop / 80 tablet / 64 móvil (Design System 4.1) */
/* (sin fondos opacos: las secciones son transparentes y la aurora fluye sin costuras) */
.kicker { display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 22px; background: linear-gradient(90deg, var(--blue), #0d9a87); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker.light { background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 92px); align-items: center; }
.grid-2.reverse .col-visual { order: -1; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--muted); max-width: 46ch; margin: 24px 0 38px; line-height: 1.55; }
.lead.light { color: var(--muted-light); }
.display.light, h3.light { color: #fff; }
.overline { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin: 8px 0 20px; font-weight: 600; }

/* PANELES redondeados flotantes (sustituyen los bloques oscuros) */
.section-dark, .section-cta { background: var(--panel); color: #fff; border-radius: 40px; margin: 28px 20px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(0,38,233,.55); }
.section-cta { text-align: center; }
.section-dark { background: linear-gradient(158deg, #070b22 0%, #0c1c5e 50%, #081234 100%); }
.mesh { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(36% 48% at 16% 20%, rgba(58,99,255,.42), transparent 60%),
  radial-gradient(44% 56% at 88% 72%, rgba(25,227,200,.3), transparent 62%); }

/* Composición glass-UI de la sección "Impulsa" (dirección de arte premium) */
.impulsa-stage { position: relative; height: 470px; }
.ui-bubble { position: absolute; will-change: transform; }
.ui-bubble.b1 { top: 1%; right: 1%; z-index: 3; animation: floaty 7s ease-in-out infinite; }
.ui-bubble.b2 { top: 19%; left: 0; width: 62%; z-index: 1; animation: floaty 8.5s ease-in-out infinite; animation-delay: -2.5s; }
.ui-bubble.b3 { bottom: 1%; right: 0; width: 47%; z-index: 2; animation: floaty 6.5s ease-in-out infinite; animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* Entrada: cada burbuja aparece una a una al entrar en pantalla */
.impulsa-stage .ui-card { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.impulsa-stage:not(.in) .ui-card { opacity: 0; transform: translateY(20px) scale(.9); }
.b1 .ui-card { transition-delay: .10s; }
.b2 .ui-card { transition-delay: .38s; }
.b3 .ui-card { transition-delay: .66s; }
@media (prefers-reduced-motion: reduce) { .ui-bubble { animation: none; } .impulsa-stage:not(.in) .ui-card { opacity: 1; transform: none; } }
.ui-card { position: relative; width: 100%; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); box-shadow: 0 44px 90px -44px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.14); color: #fff; }
.ui-main { padding: 22px 24px; }
.ui-head { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.7); font-weight: 600; }
.ui-logo { width: 28px; height: 28px; display: grid; place-items: center; background: rgba(255,255,255,.1); border-radius: 9px; flex: none; }
.ui-logo img { width: 19px; height: 19px; }
.ui-big { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.7rem); margin: 14px 0 18px; letter-spacing: -.02em; }
.ui-big span { color: var(--cyan-2); }
.ui-bars { display: flex; align-items: flex-end; gap: 8px; height: 66px; }
.ui-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--cyan-2), rgba(58,99,255,.55)); }
.ui-comm { padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; }
.ui-avatars { display: flex; margin-bottom: 8px; }
.ui-avatars span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; margin-left: -9px; border: 2px solid #0c1c5e; background: linear-gradient(135deg, #0a2bd6, #19e3c8); }
.ui-avatars span:first-child { margin-left: 0; }
.ui-comm strong { font-family: "Roboto", system-ui, sans-serif; font-size: 1.22rem; font-weight: 600; }
.ui-mut { color: rgba(255,255,255,.6); font-size: .85rem; }
.ui-tag { padding: 11px 16px; display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.ui-check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); position: relative; }
.ui-check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #04261f; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 26px 0 34px; }
.check-list li { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.88); font-size: 1.02rem; }
.check-list .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, rgba(92,255,230,.22), rgba(58,99,255,.3)); border: 1px solid rgba(255,255,255,.14); position: relative; }
.check-list .ck::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 10px; border: solid var(--cyan-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (max-width: 880px) {
  .impulsa-stage { height: 380px; max-width: 460px; margin: 0 auto; }
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 22px; margin: 0 0 38px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature.solo { margin: 0 0 34px; }
.feature-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,38,233,.12), rgba(25,227,200,.16)); color: var(--blue); }
.feature-icon.light { background: linear-gradient(135deg, rgba(92,255,230,.2), rgba(58,99,255,.24)); color: var(--cyan-2); }
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 1rem; }
.feature p.light-mut { color: var(--muted-light); }

/* ---- Visuales generativos ---- */
.col-visual { position: relative; min-height: 380px; }
.glass-stack { position: relative; height: 420px; }
.glass-card { position: absolute; border-radius: 20px; padding: 18px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 30px 60px -28px rgba(0,38,233,.3); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 9px; }
.glass-card i { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, rgba(0,38,233,.2), rgba(25,227,200,.22)); }
.glass-card i:nth-child(2){ width:80%; } .glass-card i:nth-child(3){ width:60%; } .glass-card i:nth-child(4){ width:70%; } .glass-card i:nth-child(5){ width:45%; }
.glass-card .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); }
.glass-card .dot.cyan { background: var(--cyan); }
.gc-1 { width: 60%; top: 6%; left: 2%; }
.gc-2 { width: 46%; top: 40%; right: 4%; background: linear-gradient(150deg, rgba(10,20,60,.9), rgba(10,43,214,.85)); border-color: rgba(255,255,255,.14); }
.gc-2 i { background: linear-gradient(90deg, rgba(92,255,230,.5), rgba(255,255,255,.25)); }
.gc-2 .dot { box-shadow: 0 0 18px var(--cyan); }
.gc-3 { width: 54%; bottom: 2%; left: 14%; }
.tri-accent { position: absolute; width: 96px; height: auto; top: 22%; right: 28%; filter: drop-shadow(0 16px 30px rgba(25,227,200,.5)); }
.orb-visual { position: relative; height: 420px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 30px; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 36px 80px -46px rgba(0,0,0,.55); overflow: hidden; }
.orb { width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, var(--cyan-2), var(--blue) 52%, #081246 100%); box-shadow: 0 0 100px rgba(58,99,255,.55), inset 0 0 60px rgba(0,0,0,.35); }
.orb-visual::before { content: ""; position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(92,255,230,.5) 0%, rgba(70,140,255,.22) 42%, transparent 66%); filter: blur(24px); pointer-events: none; }
.orb-visual::after { content: ""; position: absolute; top: 15%; right: 14%; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(92,255,230,.45); box-shadow: 0 0 24px rgba(92,255,230,.22); }
.tri-big { position: relative; width: clamp(210px, 24vw, 300px); height: auto; filter: drop-shadow(0 20px 44px rgba(0,8,40,.6)) drop-shadow(0 0 38px rgba(45,224,210,.6)); will-change: transform; }
.ring { position: absolute; width: 364px; height: 364px; border-radius: 50%; border: 1px solid rgba(92,255,230,.45); }
.tri-accent.big { width: 122px; top: 14%; left: 16%; }

/* ---- NOTICIAS ---- */
.news-head { margin-bottom: 56px; }
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-row.is-hidden { display: none; }
.news-row a { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding-left .45s var(--ease); position: relative; }
.news-row a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(var(--blue), var(--cyan)); transition: width .45s var(--ease); }
.news-row a:hover { padding-left: 24px; }
.news-row a:hover::before { width: 4px; }
.news-row h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.18; letter-spacing: -.01em; max-width: 42ch; transition: color .3s; }
.news-row a:hover h3 { color: var(--blue); }
.news-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.news-date { font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; font-weight: 700; }
.news-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.news-more::after { content: ""; width: 0; height: 0; border-left: .52em solid currentColor; border-top: .3em solid transparent; border-bottom: .3em solid transparent; transition: transform .35s var(--ease); }
.news-row a:hover .news-more::after { transform: translateX(6px); }
.news-foot { margin-top: 48px; text-align: center; }

/* ---- CTA ---- */
.cta-wrap { display: flex; flex-direction: column; align-items: center; }
.cta-title { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 16ch; margin-bottom: 24px; }
.cta-sub { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted-light); margin-bottom: 40px; max-width: 44ch; }

/* ---- FOOTER (panel redondeado de cierre) ---- */
.footer { background: var(--panel); color: #fff; padding: 64px 0 54px; position: relative; z-index: 2; border-radius: 40px 40px 0 0; margin: 28px 20px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.footer-brand .brand-name { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: .95rem; }
.footer-links a { color: var(--muted-light); transition: color .25s; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,.45); font-size: .88rem; padding-top: 26px; border-top: 1px solid var(--line-light); }

/* ---- MOTION base ---- */
.aw { display: block; will-change: transform; }
[data-reveal] { opacity: 0; transform: translateY(20px); }   /* motion discreto: fade + 20px (Design System 4.3) */

/* =========================================================================
   PÁGINAS INTERNAS (Directorio, Únete, Acceder) — maqueta del rediseño
   ========================================================================= */
.page-head { position: relative; z-index: 2; padding: clamp(124px, 17vh, 210px) 0 clamp(34px, 5vw, 60px); }
.page-head .kicker { margin-bottom: 18px; }
.page-head .display { max-width: 20ch; margin-left: auto; margin-right: auto; }
.page-head .lead { margin: 20px auto 0; max-width: 60ch; text-wrap: balance; }
.page-section { position: relative; z-index: 2; padding: 0 0 clamp(80px, 11vw, 140px); }

/* ---- Directorio: barra de filtros + rejilla de socios ---- */
.directory-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 24px 54px -34px rgba(0,38,233,.32); backdrop-filter: blur(10px); }
.dir-search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; padding: 11px 18px; background: #fff; border: 1px solid var(--line); border-radius: 100px; }
.dir-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.dir-search input { border: none; outline: none; font: inherit; font-size: .98rem; width: 100%; background: transparent; color: var(--ink); }
.dir-chip { padding: 11px 18px; border-radius: 100px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.dir-chip.is-active, .dir-chip:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,38,233,.05); }
.dir-meta { margin: 26px 2px 0; color: var(--muted); font-size: .95rem; font-weight: 600; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 20px; margin-top: 16px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 26px 52px -36px rgba(0,38,233,.28); transition: transform .35s var(--ease), box-shadow .35s; }
.member-card:hover { transform: translateY(-2px); box-shadow: 0 36px 64px -32px rgba(0,38,233,.42); }
.member-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 16px; }
.member-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.16rem; letter-spacing: -.01em; margin-bottom: 6px; }
.member-loc { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.member-loc svg { width: 14px; height: 14px; }
.member-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; background: linear-gradient(135deg, rgba(0,38,233,.10), rgba(25,227,200,.15)); color: var(--blue); }
.dir-note { margin-top: 40px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---- Formularios (Únete / Acceder) ---- */
.form-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 44px 86px -52px rgba(0,38,233,.4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: .98rem; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; color: var(--ink); outline: none; transition: border-color .25s, box-shadow .25s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,38,233,.10); }
.field textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.form-check input { margin-top: 3px; accent-color: var(--blue); }
.form-foot { margin-top: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-aside { background: var(--panel); color: #fff; border-radius: 24px; padding: clamp(26px, 3.4vw, 40px); box-shadow: 0 44px 86px -52px rgba(0,38,233,.5); }
.form-aside h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.4rem; margin-bottom: 20px; }
.aside-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.aside-list li { display: flex; gap: 13px; align-items: flex-start; }
.aside-list .ai { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(92,255,230,.22), rgba(58,99,255,.26)); color: var(--cyan-2); }
.aside-list .ai svg { width: 16px; height: 16px; }
.aside-list b { display: block; font-weight: 600; }
.aside-list p { color: var(--muted-light); font-size: .94rem; margin-top: 2px; }

/* Acceder: tarjeta centrada y estrecha */
.auth-narrow { max-width: 460px; margin: 0 auto; }
.auth-narrow .form-grid { grid-template-columns: 1fr; }
.auth-alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: .94rem; }
.auth-alt a { color: var(--blue); font-weight: 600; }

@media (max-width: 880px) {
  .form-layout { grid-template-columns: 1fr; } .form-aside { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PANEL DE SOCIO (perfil.html) — dashboard con barra lateral
   ========================================================================= */
.profile-header { display: flex; align-items: center; gap: 20px; background: var(--panel); color: #fff; border-radius: 22px; padding: 22px 26px; box-shadow: 0 40px 80px -50px rgba(0,38,233,.5); }
.profile-avatar { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, #0a2bd6, #3a63ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.profile-id h1 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.6rem; line-height: 1; }
.profile-id p { color: var(--muted-light); font-size: .95rem; margin-top: 6px; }
.chip-active { margin-left: auto; align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--cyan-2); background: rgba(25,227,200,.14); border: 1px solid rgba(25,227,200,.4); padding: 6px 14px; border-radius: 100px; }

.dash { display: grid; grid-template-columns: 248px 1fr; gap: 28px; align-items: start; }
.dash-side { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: 0 26px 52px -38px rgba(0,38,233,.28); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; font: inherit; font-weight: 600; font-size: .96rem; color: var(--muted); background: none; border: none; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: background .2s, color .2s; }
.dash-nav button .di { width: 22px; height: 22px; display: grid; place-items: center; opacity: .9; }
.dash-nav button .di svg { width: 19px; height: 19px; }
.dash-nav button.is-active .di { color: var(--blue); }
.dash-nav button:hover { background: rgba(0,38,233,.05); color: var(--ink); }
.dash-nav button.is-active { background: linear-gradient(135deg, rgba(0,38,233,.1), rgba(25,227,200,.12)); color: var(--blue); }
.dash-logout { display: block; margin-top: 10px; padding: 12px 14px; font-weight: 600; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }
.dash-logout:hover { color: var(--blue); }

.dash-main { min-width: 0; }
.dash-h { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; }
.dash-sub { color: var(--muted); margin: 8px 0 26px; }
.dash-h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.2rem; margin: 30px 0 14px; }
.muted { color: var(--muted); font-size: .92rem; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 24px 50px -38px rgba(0,38,233,.25); margin-top: 18px; }
.dash-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.2rem; margin-bottom: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 22px 46px -38px rgba(0,38,233,.25); }
.stat-n { display: block; font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.6rem; color: var(--blue); }
.stat-l { color: var(--muted); font-size: .9rem; }
.progress { height: 9px; border-radius: 100px; background: rgba(8,10,22,.08); overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.ficha-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: start; }
.preview-card { margin-top: 18px; }

.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 18px; }
.benefit-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 50px -38px rgba(0,38,233,.25); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.benefit-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,38,233,.12), rgba(25,227,200,.16)); color: var(--blue); }
.benefit-ico svg { width: 24px; height: 24px; }
.benefit-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.1rem; }
.benefit-card .btn { margin-top: 8px; padding: 10px 20px; font-size: .88rem; }

.event-list, .resource-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.event-list li, .resource-list li { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 44px -40px rgba(0,38,233,.22); }
.event-date { flex: none; width: 54px; text-align: center; line-height: 1; color: var(--blue); font-weight: 700; font-size: .72rem; }
.event-date b { display: block; font-family: "Roboto", system-ui, sans-serif; font-size: 1.5rem; }
.event-list h4, .resource-list h4 { font-weight: 600; font-size: 1.02rem; }
.event-list .btn { margin-left: auto; }
.res-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,38,233,.1), rgba(25,227,200,.14)); color: var(--blue); flex: none; }
.res-ico svg { width: 22px; height: 22px; }
.res-dl { margin-left: auto; font-weight: 600; color: var(--blue); white-space: nowrap; }

@media (max-width: 880px) {
  .dash { grid-template-columns: 1fr; } .dash-side { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; } .dash-logout { border-top: none; }
  .ficha-layout { grid-template-columns: 1fr; }
  .profile-header { flex-wrap: wrap; } .chip-active { margin-left: 0; }
}

/* =========================================================================
   SECCIONES NUEVAS de la home (Comunidad+mapa, Servicios, Partners, Equipo)
   ========================================================================= */
.nav-links { gap: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* Comunidad + mapa de España */
.chip-count { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem; color: var(--blue); background: rgba(0,38,233,.07); border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px; margin-bottom: 22px; }
.dot-blue { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0,38,233,.15); }
.spain-map { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1 / 1; }
.spain-map img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,38,233,.3)); }
.pin { position: absolute; width: 16px; height: 16px; transform: translate(-50%, -100%) rotate(-45deg); border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, var(--cyan-2), var(--cyan)); box-shadow: 0 6px 14px rgba(25,227,200,.5); }
.pin::after { content: ""; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }

/* Cabecera de sección centrada */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(34px, 5vw, 54px); }
.sec-head .kicker { display: inline-block; }
.sec-head .display { font-size: clamp(1.9rem, 4vw, 3rem); }

/* Servicios */
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 22px; }
.serv-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 26px 54px -40px rgba(0,38,233,.26); transition: transform .35s var(--ease), box-shadow .35s; }
.serv-card:hover { transform: translateY(-2px); box-shadow: 0 38px 66px -34px rgba(0,38,233,.4); }
.serv-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(135deg, rgba(0,38,233,.12), rgba(25,227,200,.16)); color: var(--blue); margin-bottom: 18px; }
.serv-ico svg { width: 26px; height: 26px; }
.serv-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.22rem; margin-bottom: 8px; }
.serv-card p { color: var(--muted); font-size: .98rem; }

/* Partners */
.section-partners { padding-top: 0; }
.partners-title { text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; }
.partners-title b { color: var(--ink); }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 58px); }
.partner { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted); opacity: .7; transition: opacity .3s, color .3s; }
.partner:hover { opacity: 1; color: var(--blue); }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; text-align: center; box-shadow: 0 26px 54px -40px rgba(0,38,233,.26); }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; }
.team-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.1rem; margin-bottom: 5px; }
.team-card p { color: var(--muted); font-size: .92rem; }

/* ---- Página "¿Qué eres?" (tipo.html) ---- */
.tipo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.tipo-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 38px 24px; box-shadow: 0 26px 54px -40px rgba(0,38,233,.26); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.tipo-card:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 40px 72px -34px rgba(0,38,233,.45); }
.tipo-ico { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, rgba(0,38,233,.12), rgba(25,227,200,.16)); color: var(--blue); margin-bottom: 10px; }
.tipo-ico svg { width: 30px; height: 30px; }
.tipo-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.25rem; }
.tipo-card p { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .tipo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .tipo-grid { grid-template-columns: 1fr; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 880px) {
  .nav-links { gap: 16px; font-size: .9rem; } .nav-ghost { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 48px; } .grid-2.reverse .col-visual { order: 0; }
  .col-visual { min-height: 320px; }
  .section-dark, .section-cta { margin: 16px 12px; border-radius: 28px; }
  .news-row a { grid-template-columns: 1fr; gap: 12px; }
  .news-meta { flex-direction: row; align-items: center; gap: 16px; }
  .hero-earth { width: 128vw; left: 64%; opacity: .9; }
  .hero { align-items: flex-start; padding-top: 22vh; }
  .wrap, .hero-inner, .nav { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-sub, .hero-actions { opacity: 1 !important; transform: none !important; }
  .scroll-cue span { animation: none; }
}

/* =========================================================================
   PULIDO PREMIUM 2026 — grano, glows, micro-interacciones, refinado
   ========================================================================= */
::selection { background: rgba(25,227,200,.30); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Grano de cine MUY sutil (textura premium) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Botones: glow vivo al hover (los leads caen solos) */
.btn-primary:hover { box-shadow: 0 24px 56px -16px rgba(25,227,200,.6), inset 0 0 0 1px rgba(255,255,255,.12); }
.btn-line:hover { box-shadow: 0 14px 34px -16px rgba(0,38,233,.4); }

/* Nav: enlace activo con subrayado degradado */
.nav-links a[aria-current="page"] { color: var(--blue); position: relative; opacity: 1; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.nav.on-dark:not(.scrolled) .nav-links a[aria-current="page"] { color: #fff; }
.nav.scrolled { box-shadow: 0 10px 40px -24px rgba(0,38,233,.4); }

/* Tarjetas: línea de luz superior (acabado de cristal) */
.serv-card::before, .member-card::before, .benefit-card::before, .stat-card::before, .tipo-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(120,160,255,.5), transparent); opacity: 0; transition: opacity .35s; }
.serv-card:hover::before, .member-card:hover::before, .benefit-card:hover::before, .tipo-card:hover::before { opacity: 1; }

/* Reveal un punto más sofisticado */
[data-reveal] { transition: none; }

/* Kicker: micro-brillo */
.kicker { filter: saturate(1.1); }

/* ---- Banda de métricas (contadores animados) ---- */
.stats-band { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 30px 36px; border-radius: 24px; background: linear-gradient(120deg, rgba(255,255,255,.72), rgba(255,255,255,.48)); border: 1px solid var(--line); box-shadow: 0 34px 74px -46px rgba(0,38,233,.32); backdrop-filter: blur(8px); }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 16%; bottom: 16%; width: 1px; background: var(--line); }
.stat-num { display: block; font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.02em; background: linear-gradient(120deg, var(--blue), #0d9a87); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-cap { color: var(--muted); font-size: .92rem; margin-top: 4px; display: block; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; } .stat:nth-child(2n)::after { display: none; } }

/* ---- CTA flotante (conversión) ---- */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: inline-flex; align-items: center; gap: .5em; padding: 14px 26px; border-radius: 100px; font-weight: 600; color: #fff; background: linear-gradient(115deg, var(--blue), var(--blue-2) 58%, var(--cyan)); background-size: 180% 100%; box-shadow: 0 18px 44px -14px rgba(0,38,233,.7); opacity: 0; transform: translateY(18px) scale(.96); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background-position .55s var(--ease); }
.float-cta::after { content: ""; width: 0; height: 0; border-left: .5em solid currentColor; border-top: .32em solid transparent; border-bottom: .32em solid transparent; transition: transform .4s var(--ease); }
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 26px 56px -14px rgba(25,227,200,.7); }
.float-cta:hover::after { transform: translateX(4px); }
@media (max-width: 600px) { .float-cta { right: 14px; bottom: 14px; padding: 12px 20px; font-size: .92rem; } }

/* ---- Logros AES ---- */
.logros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 20px; }
.logro-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 26px 54px -40px rgba(0,38,233,.26); transition: transform .35s var(--ease), box-shadow .35s; position: relative; }
.logro-card:hover { transform: translateY(-2px); box-shadow: 0 38px 66px -34px rgba(0,38,233,.4); }
.logro-badge { display: inline-flex; align-items: center; gap: 8px; font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1rem; color: var(--blue); background: linear-gradient(135deg, rgba(0,38,233,.1), rgba(25,227,200,.14)); padding: 7px 15px; border-radius: 100px; margin-bottom: 16px; }
.logro-badge svg { width: 18px; height: 18px; flex: none; }
.logro-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.logro-card p { color: var(--muted); font-size: .98rem; }

/* Nav más ceñido para que quepa "Logros" */
.nav-links { gap: 18px; }
@media (max-width: 1200px) { .nav-links { gap: 13px; font-size: .9rem; } }

/* =========================================================================
   HOME AES — ENTREGA 1 (PRD): oportunidad → problema → AES → impacto →
   participación. Bloques nuevos que reutilizan el sistema de diseño.
   ========================================================================= */

/* Métricas del hero a 5 columnas */
.stats-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .stats-grid.cols-5 { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .stats-grid.cols-5 .stat:nth-child(3)::after { display: none; }
}
@media (max-width: 600px) {
  .stats-grid.cols-5 { grid-template-columns: 1fr 1fr; }
  .stats-grid.cols-5 .stat::after { display: none; }
}

/* Barra de confianza: un punto de aire arriba */
.trust-band { padding-top: clamp(10px, 2vw, 24px); }

/* El problema: cierre enfático */
.problem-close { text-align: center; max-width: 26ch; margin: clamp(34px, 5vw, 50px) auto 0; font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; }
.problem-close b { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* La visión: 5 pilares */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pillar { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 18px; box-shadow: 0 26px 54px -40px rgba(0,38,233,.26); transition: transform .35s var(--ease), box-shadow .35s; position: relative; }
.pillar:hover { transform: translateY(-2px); box-shadow: 0 38px 66px -34px rgba(0,38,233,.4); }
.pillar-ico { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,38,233,.12), rgba(25,227,200,.16)); color: var(--blue); }
.pillar-ico svg { width: 28px; height: 28px; }
.pillar h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.14rem; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(120,160,255,.5), transparent); opacity: 0; transition: opacity .35s; }
.pillar:hover::before { opacity: 1; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr 1fr; } }

/* Recorridos por perfil */
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); gap: 18px; }
.path-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; box-shadow: 0 26px 54px -40px rgba(0,38,233,.26); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; position: relative; }
.path-card:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 38px 66px -34px rgba(0,38,233,.4); }
.path-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,38,233,.12), rgba(25,227,200,.16)); color: var(--blue); margin-bottom: 6px; }
.path-ico svg { width: 24px; height: 24px; }
.path-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.18rem; }
.path-card p { color: var(--muted); font-size: .92rem; flex: 1; line-height: 1.45; }
.path-more { font-weight: 600; color: var(--blue); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.path-more::after { content: ""; width: 0; height: 0; border-left: .5em solid currentColor; border-top: .3em solid transparent; border-bottom: .3em solid transparent; transition: transform .35s var(--ease); }
.path-card:hover .path-more::after { transform: translateX(5px); }

/* Servicios por objetivos */
.obj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.obj-col { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 26px 54px -40px rgba(0,38,233,.26); height: 100%; }
.obj-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.obj-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,38,233,.12), rgba(25,227,200,.16)); color: var(--blue); }
.obj-ico svg { width: 22px; height: 22px; }
.obj-head h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.1rem; line-height: 1.08; }
.obj-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.obj-list li b { display: block; font-weight: 600; font-size: 1rem; }
.obj-list li span { color: var(--muted); font-size: .9rem; }
@media (max-width: 980px) { .obj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .obj-grid { grid-template-columns: 1fr; } }

/* Casos de impacto */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 22px; }
.case-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 26px 54px -40px rgba(0,38,233,.26); transition: transform .35s var(--ease), box-shadow .35s; position: relative; }
.case-card:hover { transform: translateY(-2px); box-shadow: 0 38px 66px -34px rgba(0,38,233,.4); }
.case-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(120,160,255,.5), transparent); opacity: 0; transition: opacity .35s; }
.case-card:hover::before { opacity: 1; }
.case-kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.case-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.24rem; line-height: 1.16; letter-spacing: -.01em; }
.case-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.case-more { font-weight: 600; color: var(--blue); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.case-more::after { content: ""; width: 0; height: 0; border-left: .5em solid currentColor; border-top: .3em solid transparent; border-bottom: .3em solid transparent; transition: transform .35s var(--ease); }
.case-card:hover .case-more::after { transform: translateX(5px); }

/* Liderazgo (Carlos Mateo) */
.leader-card { background: var(--panel); color: #fff; border-radius: 26px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 44px 86px -52px rgba(0,38,233,.5); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.leader-avatar { width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: 2.4rem; color: #fff; background: linear-gradient(135deg, #0a2bd6, #19e3c8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.leader-card h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.55rem; }
.leader-role { color: var(--cyan-2); font-weight: 600; font-size: .96rem; }
.leader-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.leader-list li { display: flex; gap: 13px; align-items: flex-start; }
.leader-list .li-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,38,233,.1), rgba(25,227,200,.14)); color: var(--blue); }
.leader-list .li-ico svg { width: 17px; height: 17px; }
.leader-list b { display: block; color: var(--ink); font-weight: 600; }
.leader-list span { color: var(--muted); font-size: .92rem; }

/* CTA final con dos botones */
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- Sección "Impulsa": proceso de 3 pasos (sin recuadros) ---- */
.impulsa-lead { color: var(--muted-light); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 50ch; margin: 18px auto 0; text-align: center; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); position: relative; max-width: 1000px; margin: clamp(40px, 5vw, 60px) auto 0; }
.step { text-align: center; position: relative; }
.step-num { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, rgba(58,99,255,.4), rgba(25,227,200,.32)); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 0 34px rgba(58,99,255,.45), inset 0 1px 0 rgba(255,255,255,.25); margin-bottom: 22px; position: relative; z-index: 2; }
.step h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.3rem; color: #fff; margin-bottom: 9px; }
.step p { color: var(--muted-light); font-size: 1rem; max-width: 30ch; margin: 0 auto; }
/* línea conectora entre los pasos */
.step:not(:last-child)::after { content: ""; position: absolute; top: 33px; left: calc(50% + 44px); right: calc(-50% + 44px); height: 2px; background: linear-gradient(90deg, rgba(92,255,230,.5), rgba(92,255,230,.12)); z-index: 1; }
.impulsa-cta { text-align: center; margin-top: clamp(40px, 5vw, 60px); }
@media (max-width: 760px) { .steps-row { grid-template-columns: 1fr; gap: 34px; } .step:not(:last-child)::after { display: none; } }

/* =========================================================================
   ENTREGA 2/3/4 — ARQUITECTURA + DESIGN SYSTEM: navegación IA, footer 4-col,
   páginas internas (page-hero, KPIs, qué hacemos, comunidad, conocimiento,
   actualidad, contacto, liderazgo, landings de perfil). Reutiliza el sistema.
   ========================================================================= */

/* ---- Menú hamburguesa (móvil/tablet) — umbral 1150 para dar aire al nav completo (10 ítems) ---- */
@media (max-width: 1150px) {
  .nav-toggle { display: flex; color: inherit; }
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(84vw, 350px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; padding: 100px 28px 32px; background: #0b1438; color: #fff; box-shadow: -30px 0 90px -20px rgba(0,0,0,.55); transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; z-index: 60; }
  .nav.menu-open .nav-links { transform: none; }
  .nav-links a { font-size: 1.08rem; opacity: 1; color: #fff !important; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a::after { display: none; }
  .nav-ghost { display: block; }
  .nav-cta { margin-top: 16px; align-self: stretch; text-align: center; justify-content: center; border-bottom: none !important; }
  .nav.menu-open { color: #fff; }
}

/* ---- Footer de 4 columnas (Design System 4.2) ---- */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-col h4 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2); margin-bottom: 4px; }
.footer-col a { color: var(--muted-light); font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-tag { color: var(--muted-light); font-size: .95rem; line-height: 1.5; max-width: 34ch; margin: 4px 0 8px; }
.footer-brand-col .brand-name { font-size: 1.02rem; }
.footer-bottom { margin-top: clamp(34px, 4vw, 50px); padding-top: 24px; border-top: 1px solid var(--line-light); }
.footer-bottom .footer-copy { padding: 0; border: none; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand-col { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Cabecera/hero de página interna (page-hero) ---- */
.page-hero { position: relative; z-index: 2; text-align: center; padding: clamp(132px, 20vh, 210px) 0 clamp(40px, 6vw, 72px); }
.page-hero .kicker { display: inline-block; }
.page-hero .display { max-width: 22ch; margin: 0 auto; }
.page-hero .lead { max-width: 62ch; margin: 22px auto 0; text-align: center; text-wrap: balance; }
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.eyebrow-path { color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.eyebrow-path a { color: var(--blue); }

/* Fondo alterno gris claro (Design System 4.1) */
.section.alt { background: var(--bg-alt); border-radius: 40px; margin: 0 20px; }
@media (max-width: 880px) { .section.alt { margin: 0 12px; border-radius: 28px; } }
.caption { font-size: .875rem; color: var(--muted); }

/* ---- KPIs (Design System 4.2): reaprovecha stats, máx 6 por sección ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.kpi { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--rad-card); padding: 30px 20px; box-shadow: 0 26px 54px -42px rgba(0,38,233,.26); }
.kpi-num { display: block; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.02em; background: linear-gradient(120deg, var(--blue), #0d9a87); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-label { color: var(--muted); font-size: 1rem; margin-top: 6px; display: block; }

/* ---- "Qué hacemos": filas alternas ---- */
.what-row + .what-row { margin-top: clamp(40px, 6vw, 80px); }
.mini-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.mini-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.mini-list .mk { flex: none; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, rgba(0,38,233,.12), rgba(25,227,200,.16)); position: relative; }
.mini-list .mk::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---- Testimonios (prueba social) ---- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--rad-card); padding: 30px; box-shadow: 0 26px 54px -42px rgba(0,38,233,.26); display: flex; flex-direction: column; gap: 18px; }
.testi-card p { font-size: 1.06rem; line-height: 1.5; color: var(--ink); }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0a2bd6, #19e3c8); flex: none; }
.testi-who b { display: block; font-size: .98rem; }
.testi-who span { color: var(--muted); font-size: .88rem; }

/* ---- Acordeón / FAQ (un panel a la vez) ---- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--rad-input); overflow: hidden; }
.faq-q { width: 100%; text-align: left; font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--ink); background: none; border: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq-item.open .faq-q::after { transform: rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--text); }

/* ---- Selector de motivo (contacto) ---- */
.motive-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.motive { padding: 12px 22px; border-radius: var(--rad-btn); border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.motive.is-active, .motive:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,38,233,.05); }

/* ---- Liderazgo (página Carlos Mateo): medios/artículos + retrato ---- */
.media-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.media-list li { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad-input); padding: 16px 20px; box-shadow: 0 20px 44px -42px rgba(0,38,233,.22); }
.media-list .tagm { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: rgba(0,38,233,.08); padding: 5px 11px; border-radius: 100px; }
.media-list a { margin-left: auto; color: var(--blue); font-weight: 600; white-space: nowrap; }
.bio-portrait { width: 100%; aspect-ratio: 4/5; border-radius: var(--rad-card); background: linear-gradient(150deg, #0b1438, #0a2bd6 60%, #08123a); display: grid; place-items: center; color: #fff; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: 4rem; box-shadow: 0 44px 86px -52px rgba(0,38,233,.5); }

/* ---- Landings de perfil: tarjetas de problema/beneficio ---- */
.prob-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 20px; }
.prob-card { background: #fff; border: 1px solid var(--line); border-radius: var(--rad-card); padding: 28px; box-shadow: 0 26px 54px -42px rgba(0,38,233,.26); }
.prob-card .pq { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.12rem; margin-bottom: 8px; color: var(--ink); }
.prob-card p { color: var(--muted); font-size: .96rem; }

/* CTA secundario tipo "ghost" (texto azul sin borde) */
.btn-ghost { background: none; border-color: transparent; color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--blue-2); }

/* =========================================================================
   ENTREGA 4.4 (responsive/QA) + ENTREGA 5 (Web Bible Home): tipografía
   responsive, menú móvil a pantalla completa, timeline del problema,
   tarjetas de impacto sobre azul, tarjeta "qué es AES" con CTA.
   ========================================================================= */

/* Tipografía responsive (H1 64/52/40 · H2 48/40/32 · body 18/18/16) */
.page-hero .display { font-size: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 767px) {
  body { font-size: 16px; }
  .display { font-size: clamp(1.9rem, 7vw, 2rem); }
  .hero-title { font-size: clamp(2.2rem, 9vw, 2.5rem); }
  .hero-scroll-note { display: none; }   /* evita solape con los CTA apilados en móvil */
}

/* Menú móvil a pantalla completa, con "Hazte socio" fijo al final (4.4) */
@media (max-width: 767px) {
  .nav-links { width: 100vw; max-width: 100vw; padding: 92px 22px 28px; }
}

/* El problema: timeline simple (situación actual → AES → futuro) */
.timeline-simple { display: flex; align-items: flex-start; justify-content: center; gap: clamp(10px, 3vw, 28px); max-width: 820px; margin: clamp(34px, 5vw, 52px) auto 0; }
.tl-step { text-align: center; flex: 1 1 0; max-width: 220px; }
.tl-dot { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.tl-dot svg { width: 26px; height: 26px; }
.tl-dot.now { background: rgba(8,10,22,.06); color: var(--muted); border: 1px solid var(--line); }
.tl-dot.aes { background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 14px 32px -12px rgba(0,38,233,.55); }
.tl-dot.fut { background: rgba(0,38,233,.10); color: var(--blue); border: 1px solid rgba(0,38,233,.2); }
.tl-step h4 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.tl-step p { color: var(--muted); font-size: .9rem; }
.tl-arrow { flex: 0 0 auto; align-self: center; margin-top: 12px; color: var(--blue); opacity: .5; font-size: 1.4rem; }
@media (max-width: 620px) { .timeline-simple { flex-direction: column; align-items: center; } .tl-arrow { transform: rotate(90deg); } .tl-step { max-width: 280px; } }

/* Home · Impacto sobre azul oscuro: grid 3x2 de tarjetas */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.impact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--rad-card); padding: 28px; color: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.impact-card:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.impact-num { display: block; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; background: linear-gradient(120deg, var(--cyan-2), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.impact-card h3 { color: #fff; font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.14rem; margin: 8px 0 8px; }
.impact-card p { color: rgba(255,255,255,.72); font-size: .94rem; margin-bottom: 14px; }
.imp-link { color: var(--cyan-2); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.imp-link::after { content: ""; width: 0; height: 0; border-left: .5em solid currentColor; border-top: .3em solid transparent; border-bottom: .3em solid transparent; transition: transform .3s var(--ease); }
.impact-card:hover .imp-link::after { transform: translateX(4px); }
@media (max-width: 980px) { .impact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .impact-grid { grid-template-columns: 1fr; } }

/* Tarjeta con CTA (Qué es AES): reusa path-card; CTA azul */
.card-cta { color: var(--blue); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }
.card-cta::after { content: ""; width: 0; height: 0; border-left: .5em solid currentColor; border-top: .3em solid transparent; border-bottom: .3em solid transparent; transition: transform .3s var(--ease); }
.path-card:hover .card-cta::after { transform: translateX(4px); }

/* =========================================================================
   HOME NARRATIVA (brief "siguiente nivel", 2026-07-11) — la web como relato:
   hero dinámico con motivos del isotipo, cadena del reto, MANIFIESTO oscuro,
   sistema AES editorial (sin cards), autoridad, comunidad viva, perfiles
   aspiracionales, "CÓMO CAMBIA UN PAÍS" (scroll narrativo) y CTA de cierre.
   ========================================================================= */

/* ---- HERO: composición dinámica (Ken Burns + triángulos flotantes) ---- */
.hero-bg.kenburns { animation: kenburns 36s ease-in-out infinite alternate; }
@keyframes kenburns { 0% { transform: scale(1.02); } 100% { transform: scale(1.09) translate(0.6%, -0.4%); } }
.hero-tris { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hero-tris svg { position: absolute; opacity: .5; filter: drop-shadow(0 10px 30px rgba(25,227,200,.35)); }
.hero-tris .t1 { width: 110px; right: 12%; top: 20%; animation: trifloat 9s ease-in-out infinite; }
.hero-tris .t2 { width: 64px; right: 30%; bottom: 24%; opacity: .3; animation: trifloat 12s ease-in-out infinite reverse; }
.hero-tris .t3 { width: 42px; left: 8%; bottom: 16%; opacity: .25; animation: trifloat 10s ease-in-out infinite; animation-delay: -4s; }
@keyframes trifloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .hero-bg.kenburns, .hero-tris svg { animation: none; } }

/* Barra de impacto: 6 métricas */
.stats-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.stats-grid.cols-6 .stat-cap { font-size: .84rem; }
@media (max-width: 1100px) { .stats-grid.cols-6 { grid-template-columns: repeat(3, 1fr); row-gap: 24px; } .stats-grid.cols-6 .stat:nth-child(3)::after { display: none; } }
@media (max-width: 600px) { .stats-grid.cols-6 { grid-template-columns: 1fr 1fr; } .stats-grid.cols-6 .stat::after { display: none; } }

/* ---- Cadena del reto (vertical, respirada) ---- */
.chain { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: clamp(30px, 4vw, 46px) auto 0; }
.chain-item { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: -.01em; color: var(--ink); padding: 10px 26px; border: 1px solid var(--line); border-radius: 100px; background: #fff; }
.chain-arrow { color: var(--blue); opacity: .45; font-size: 1.25rem; line-height: 1; }
/* Refrán de marca ("Para/Por eso existe AES.") */
.refrain { text-align: center; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.8rem); letter-spacing: -.02em; margin: clamp(34px, 5vw, 54px) auto 0; background: linear-gradient(90deg, var(--blue), #0d9a87); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 18ch; }

/* ---- MANIFIESTO (editorial oscuro, texto grande) ---- */
.manifesto { background: linear-gradient(158deg, #06091c 0%, #0b1a4e 55%, #071030 100%); color: #fff; border-radius: 40px; margin: 28px 20px; overflow: hidden; position: relative; }
.manifesto .mesh { opacity: .8; }
.mani-lines { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(26px, 4vw, 44px); }
.mani-line { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.22; letter-spacing: -.015em; color: rgba(255,255,255,.94); }
.mani-line b { background: linear-gradient(90deg, var(--cyan-2), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.manifesto .refrain { background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 880px) { .manifesto { margin: 16px 12px; border-radius: 28px; } }

/* ---- SISTEMA AES: bloques editoriales grandes (sin cards) ---- */
.sys-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 84px); align-items: center; }
.sys-row + .sys-row { margin-top: clamp(56px, 8vw, 110px); }
.sys-row.reverse .sys-visual { order: -1; }
.sys-num { font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .14em; color: var(--blue); display: block; margin-bottom: 14px; }
.sys-row h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.015em; line-height: 1.05; margin-bottom: 14px; }
.sys-row p { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text); max-width: 44ch; margin-bottom: 22px; }
/* composición visual del bloque (lista para sustituir por FOTO real) */
.sys-visual { position: relative; aspect-ratio: 4 / 3; border-radius: var(--rad-card); overflow: hidden; box-shadow: 0 44px 86px -52px rgba(0,38,233,.45); }
.sys-visual .sv-bg { position: absolute; inset: 0; }
.sys-visual .sv-tri { position: absolute; width: 34%; opacity: .85; filter: drop-shadow(0 14px 30px rgba(0,10,40,.4)); }
.sys-visual .sv-tri.small { width: 18%; opacity: .6; }
.sys-visual .sv-idx { position: absolute; right: 22px; bottom: 8px; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: clamp(4rem, 8vw, 7rem); letter-spacing: -.04em; color: rgba(255,255,255,.16); line-height: 1; }
@media (max-width: 880px) { .sys-row { grid-template-columns: 1fr; gap: 26px; } .sys-row.reverse .sys-visual { order: 0; } }

/* ---- Autoridad: hitos editoriales (filas, no cards) ---- */
.auth-list { list-style: none; border-top: 1px solid var(--line); max-width: 980px; margin: 0 auto; }
.auth-list li a { display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.auth-list li a:hover { padding-left: 18px; }
.auth-year { font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--blue); }
.auth-list h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: -.01em; line-height: 1.15; }
.auth-list h3 span { display: block; font-family: "Roboto", system-ui, sans-serif; font-weight: 400; font-size: .92rem; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.auth-more { color: var(--blue); font-weight: 600; font-size: .9rem; white-space: nowrap; }
@media (max-width: 640px) { .auth-list li a { grid-template-columns: 1fr; gap: 6px; } }

/* "Ahora en AES": contenido vivo */
.now-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(30px, 4vw, 44px); }
.now-item { border-left: 2px solid var(--blue); padding: 4px 0 4px 16px; }
.now-item .now-date { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 6px; }
.now-item a { font-weight: 600; font-size: .95rem; line-height: 1.35; display: block; color: var(--ink); transition: color .25s; }
.now-item a:hover { color: var(--blue); }
@media (max-width: 980px) { .now-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .now-strip { grid-template-columns: 1fr; } }

/* ---- Comunidad viva: mosaico de miembros + portavoz ---- */
.members-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: 880px; margin: clamp(26px, 4vw, 40px) auto 0; }
.member-tile { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-family: "Roboto", system-ui, sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; opacity: .92; }
@media (max-width: 700px) { .members-mosaic { grid-template-columns: repeat(4, 1fr); } }
.voice-strip { display: flex; align-items: center; gap: 22px; background: var(--panel); color: #fff; border-radius: var(--rad-card); padding: clamp(22px, 3vw, 34px); margin-top: clamp(40px, 6vw, 64px); flex-wrap: wrap; }
.voice-strip .testi-av { width: 62px; height: 62px; font-size: 1.4rem; border-radius: 18px; }
.voice-strip h3 { color: #fff; font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: 1.3rem; }
.voice-strip .voice-role { color: var(--cyan-2); font-size: .9rem; font-weight: 600; }
.voice-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; font-size: .94rem; }
.voice-links a { color: rgba(255,255,255,.85); transition: color .25s; }
.voice-links a:hover { color: var(--cyan-2); }
@media (max-width: 760px) { .voice-links { margin-left: 0; } }

/* ---- Encuentra tu lugar: filas aspiracionales (editorial, no cards) ---- */
.place-list { list-style: none; border-top: 1px solid var(--line); }
.place-list li a { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: baseline; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); position: relative; }
.place-list li a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(var(--blue), var(--cyan)); transition: width .4s var(--ease); }
.place-list li a:hover { padding-left: 26px; }
.place-list li a:hover::before { width: 4px; }
.place-who { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -.02em; color: var(--ink); display: block; line-height: 1.05; }
.place-what { display: block; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); margin-top: 6px; }
.place-list li a:hover .place-who { color: var(--blue); }
.place-arrow { color: var(--blue); font-weight: 600; font-size: 1.5rem; transition: transform .35s var(--ease); }
.place-list li a:hover .place-arrow { transform: translateX(8px); }

/* ---- CÓMO CAMBIA UN PAÍS: scroll narrativo (sección firma) ---- */
.pais { background: linear-gradient(170deg, #05081a 0%, #0a1c58 60%, #060d2c 100%); color: #fff; border-radius: 40px; margin: 28px 20px; overflow: hidden; position: relative; }
.pais .kicker { display: block; text-align: center; }
.pais-steps { position: relative; max-width: 720px; margin: clamp(40px, 6vw, 70px) auto 0; padding-left: 0; display: flex; flex-direction: column; gap: clamp(44px, 7vw, 80px); }
.pais-steps::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%) scaleY(var(--line-p, 1)); background: linear-gradient(rgba(92,255,230,.55), rgba(58,99,255,.25)); transform-origin: top; }
.pais-step { position: relative; text-align: center; font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.15; color: rgba(255,255,255,.95); background: transparent; }
.pais-step span { display: inline-block; padding: 8px 22px; background: rgba(5,9,28,.88); border-radius: 14px; }
.pais-step b { font-weight: 600; background: linear-gradient(90deg, var(--cyan-2), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pais .refrain { background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(2rem, 4.6vw, 3.4rem); padding-bottom: 8px; }
@media (max-width: 880px) { .pais { margin: 16px 12px; border-radius: 28px; } }

.col-text { min-width: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }

/* CTA final narrativo */
.cta-narrative .cta-title { max-width: 22ch; }
.cta-kicker { font-family: "Roboto", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--cyan-2); margin-bottom: 18px; }

.vert-resp { margin-top: 10px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.vert-resp span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
/* Portada: texto a la derecha para dejar en primer plano al ponente de la izquierda (decisión Carlos 21-ago) */
@media (min-width: 900px) {
  .hero-inner { text-align: right; }
  .hero-title, .hero-sub { margin-left: auto; }
  .hero-actions { justify-content: flex-end; }
  .hero-vig { transform: scaleX(-1); }
}

/* Startup School (conocimiento.html) */
.school-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 0 0 26px; }
.school-filters .chip { border: 1px solid var(--line, #d8ddf5); background: #fff; color: var(--ink, #0a0e2e); border-radius: 999px; padding: 8px 14px; font-size: .86rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.school-filters .chip.is-active, .school-filters .chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.school-sep { width: 1px; height: 22px; background: var(--line, #d8ddf5); margin: 0 6px; }
.school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.school-card { background: #fff; border: 1px solid var(--line, #e3e6f2); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.school-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(3, 31, 255, .10); }
.school-card.is-featured { border-color: var(--blue); }
.school-card img, .school-ph { width: 100%; height: 150px; object-fit: cover; display: grid; place-items: center; font-size: 2.4rem; background: linear-gradient(135deg, #eef1ff, #e6fbfa); }
.school-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.school-body h3 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.school-ent { margin: 0; font-size: .85rem; font-weight: 700; color: var(--blue); }
.school-desc { margin: 0; font-size: .9rem; color: var(--ink-2, #556); }
.school-price { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.school-price.gratis { color: #0a7a4b; } .school-price.pago { color: #a86b00; } .school-price em { font-style: normal; font-weight: 700; text-transform: none; letter-spacing: 0; }
.school-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.school-tags span { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: #f1f3fb; color: #445; }
.school-body .btn { align-self: flex-start; margin-top: 8px; }
.school-empty { grid-column: 1 / -1; text-align: center; padding: 36px 20px; border: 1px dashed var(--line, #d8ddf5); border-radius: 16px; color: var(--ink-2, #556); }
.school-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; text-align: center; }
.school-cta p { width: 100%; margin: 0 0 4px; color: var(--ink-2, #556); }

/* Fotos reales en secciones (sustituyen a los orbes/iconos) */
.what-photo { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(3, 31, 255, .14); aspect-ratio: 4 / 3; position: relative; }
.what-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.what-photo figcaption, .photo-band figcaption, .photo-duo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 12px; font-size: .8rem; font-weight: 600; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 8, 30, .72)); }
.photo-band { margin: 0; border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 21 / 9; box-shadow: 0 24px 60px rgba(3, 31, 255, .12); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 28px; }
.photo-duo figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; }
.photo-duo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .photo-duo { grid-template-columns: 1fr; } .photo-band { aspect-ratio: 16 / 10; } }

/* Galería de hitos / trayectoria (fotos de archivo) */
.hitos-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: clamp(28px, 4vw, 44px) auto 0; max-width: 1100px; }
.hitos-gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 16px 40px rgba(3, 31, 255, .10); }
.hitos-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease, ease); }
.hitos-gallery figure:hover img { transform: scale(1.04); }
.hitos-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 11px; font-size: .78rem; font-weight: 600; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 8, 30, .75)); }

/* Inicio · bloques 01-05 con foto real (numeración conservada) */
.sys-visual .sv-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease, ease); }
.sys-visual:hover .sv-photo { transform: scale(1.04); }
.sys-visual .sv-shade { position: absolute; inset: 0; background: linear-gradient(165deg, rgba(3, 31, 255, .28) 0%, rgba(0, 8, 30, .15) 45%, rgba(0, 8, 30, .55) 100%); }

.photo-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 28px; }
@media (max-width: 860px) { .photo-trio { grid-template-columns: 1fr; } }
