/* ============================================================
   Web pública de Cerevia — estilos.
   Tokens del Design System en uso (ver pausa/DISENO.md y los :root de
   los panel.html): Space Grotesk 700 en títulos, DM Sans en texto,
   texto #1A1A2E / #6B6690, fondo lavanda #F7F5FF, borde #E7DEFA,
   radios 18 (tarjeta) / 12 (botón) / 999 (chips), sombras con el color
   de identidad. Fuentes autoalojadas: sin Google Fonts ni CDN.
   ============================================================ */
@font-face { font-family: "Space Grotesk"; src: url("fuentes/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fuentes/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F7F5FF; --panel: #FFFFFF; --text: #1A1A2E; --text2: #6B6690; --border: #E7DEFA;
  /* Marca Cerevia: degradado de Convive+/Core (la suite nació ahí). */
  --marca: linear-gradient(135deg, #00BFFF 0%, #7B2FBE 55%, #FF1F8F 100%);
  --marca-rgb: 123,47,190; --marca-oscuro: #6A2FD1;
  --r-tarjeta: 18px; --r-boton: 12px;
  --sombra: 0 2px 14px rgba(var(--marca-rgb), .06);
  --sombra-hover: 0 6px 22px rgba(var(--marca-rgb), .12);
  --ancho: 1160px;
  --cubo-tam: 230px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, .marca-nombre { font-family: "Space Grotesk", -apple-system, sans-serif; font-weight: 700; line-height: 1.15; margin: 0; }
a { color: var(--marca-oscuro); }
img, svg { display: block; }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-boton); text-decoration: none; }
.saltar:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--marca-oscuro); outline-offset: 3px; }

/* Fondo de puntos: lienzo fijo detrás de todo (como en Smart). */
#fondo-puntos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.manchas { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.manchas::before, .manchas::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.manchas::before { width: 520px; height: 520px; left: -160px; top: -140px; background: radial-gradient(circle, rgba(0,191,255,.22), transparent 70%); }
.manchas::after { width: 600px; height: 600px; right: -200px; top: 30vh; background: radial-gradient(circle, rgba(255,31,143,.14), transparent 70%); }
.pagina { position: relative; z-index: 1; }

/* ---------- Encabezado ---------- */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(247,245,255,.78); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease; }
.cabecera.con-sombra { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(var(--marca-rgb), .06); }
.cabecera .contenedor { display: flex; align-items: center; gap: 20px; height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo { width: 38px; height: 36px; background: var(--marca);
  -webkit-mask: url("img/cerebro.svg") center / contain no-repeat; mask: url("img/cerebro.svg") center / contain no-repeat; }
.marca-nombre { font-size: 22px; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text2); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(var(--marca-rgb), .07); }
.boton-menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--border); background: var(--panel); border-radius: var(--r-boton); cursor: pointer; align-items: center; justify-content: center; }
.boton-menu span, .boton-menu span::before, .boton-menu span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
.boton-menu span::before { position: absolute; top: -6px; } .boton-menu span::after { position: absolute; top: 6px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border-radius: var(--r-boton); font-family: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn-primario { background: var(--marca); color: #fff; box-shadow: 0 6px 18px rgba(var(--marca-rgb), .28); }
.btn-primario:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(var(--marca-rgb), .34); }
.btn-secundario { background: var(--panel); color: var(--marca-oscuro); border: 1.5px solid var(--border); }
.btn-secundario:hover { border-color: rgba(var(--marca-rgb), .45); }

/* Menú Ingresar */
.ingreso { position: relative; flex: none; }
.ingreso summary { list-style: none; }
.ingreso summary::-webkit-details-marker { display: none; }
.ingreso summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.ingreso[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lista-ingreso { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: 0 20px 60px rgba(var(--marca-rgb), .18); animation: bajar .18s ease; }
@keyframes bajar { from { opacity: 0; transform: translateY(-6px); } }
.lista-ingreso a { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.lista-ingreso a small { grid-column: 2; font-weight: 500; color: var(--text2); font-size: 12.5px; line-height: 1.3; }
.lista-ingreso a:hover { background: #F4F0FF; }
.mini-cubo { grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.lista-nota { margin: 6px 10px 4px; font-size: 12px; color: var(--text2); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .contenedor { display: grid; grid-template-columns: .9fr 1.3fr; align-items: center; gap: 28px; }
.cubo-col { padding: 0 calc(var(--cubo-tam) * .26); }
.sobretitulo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--marca-oscuro); background: rgba(var(--marca-rgb), .08); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.sobretitulo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--marca); }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.02em; }
.degradado-texto { background: var(--marca); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-bajada { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--text2); margin: 20px 0 28px; max-width: 34em; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cubo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cubo-y-detalle { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; width: 100%; }
.cubo-leyenda { text-align: center; font-size: 13px; color: var(--text2); margin: 4px 0 0; }
.controles-cubo { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.flecha { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; transition: border-color .2s, transform .15s; }
.flecha:hover { border-color: rgba(var(--marca-rgb), .45); transform: scale(1.06); }
.puntos-cubo { display: flex; gap: 8px; }
.punto-mod { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: var(--grad); cursor: pointer; padding: 0; box-shadow: 0 0 0 1px var(--border); transition: transform .2s, box-shadow .2s; position: relative; }
.punto-mod span { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.punto-mod:hover span, .punto-mod:focus-visible span { opacity: 1; }
.punto-mod[aria-pressed="true"] { transform: scale(1.35); box-shadow: 0 0 0 2px rgba(var(--marca-rgb), .35); }

/* Tarjeta "Estás mirando" */
.detalle { position: relative; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--r-tarjeta); padding: 22px 24px; box-shadow: var(--sombra); overflow: hidden; min-height: 250px; }
.detalle::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad, var(--marca)); }
.detalle.cambio > * { animation: entrar .35s ease both; }
.detalle.cambio > *:nth-child(2) { animation-delay: .03s; } .detalle.cambio > *:nth-child(3) { animation-delay: .06s; } .detalle.cambio > *:nth-child(4) { animation-delay: .09s; } .detalle.cambio > *:nth-child(5) { animation-delay: .12s; }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } }
.detalle-etiqueta { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.detalle-nombre { font-size: 26px; }
.detalle-tipo { margin: 2px 0 10px; font-weight: 700; color: var(--acento); font-size: 14px; }
.detalle-desc { margin: 0 0 14px; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
.detalle-link { font-weight: 700; color: var(--acento); text-decoration: none; font-size: 14.5px; }
.detalle-link:hover { text-decoration: underline; }

/* ---------- Cubo 3D (de CereviaSmart/panel/panel.html, adaptado) ---------- */
.cubo3d-flotar { padding: calc(var(--cubo-tam) * .24) 0 6px; animation: cuboFlotar 5s ease-in-out infinite; }
@keyframes cuboFlotar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.cubo3d-escena { position: relative; width: var(--cubo-tam); height: var(--cubo-tam); margin: 0 auto; perspective: calc(var(--cubo-tam) * 6); touch-action: none; }
.cubo3d-escena::before { content: ""; position: absolute; inset: calc(var(--cubo-tam) * -.3); z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--marca-rgb), .22) 0%, rgba(0,191,255,.08) 45%, transparent 70%); }
.cubo3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; cursor: grab; transform: rotateX(-18deg); }
.cubo3d.arrastrando { cursor: grabbing; }
.cubo3d-orbita { position: absolute; left: 50%; top: 50%; width: calc(var(--cubo-tam) * 1.55); height: calc(var(--cubo-tam) * .52); transform: translate(-50%, -30%) rotate(-8deg); border-radius: 50%; pointer-events: none; z-index: -1;
  border: 1.5px solid rgba(var(--marca-rgb), .26); box-shadow: 0 0 18px rgba(var(--marca-rgb), .16), inset 0 0 12px rgba(var(--marca-rgb), .1); }
.cubo3d-orbita::after { content: ""; position: absolute; right: 6%; top: 72%; width: 9px; height: 9px; border-radius: 50%; background: #FF1F8F; box-shadow: 0 0 10px 3px rgba(255,31,143,.5); animation: orbitaPulso 2.4s ease-in-out infinite; }
@keyframes orbitaPulso { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.cubo3d-cara { position: absolute; inset: 0; width: var(--cubo-tam); height: var(--cubo-tam); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center;
  transform: rotateY(var(--giro)) translateZ(calc(var(--cubo-tam) / 2));
  border-radius: calc(var(--cubo-tam) * .05); color: #fff; cursor: pointer; font-family: "Space Grotesk", sans-serif; font-weight: 700; line-height: 1.25;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.35), inset 0 -18px 28px rgba(0,0,0,.18); overflow: hidden; transition: box-shadow .25s ease; user-select: none; -webkit-user-select: none; }
.cubo3d-cara.texto-oscuro { color: #1A1A2E; }
.cubo3d-cara::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(155deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 36%, transparent 55%); }
.cubo3d-cara::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 60%); }
.cubo3d-cara.cara-hover::before { opacity: 1; }
.cubo3d-cara.cara-hover { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 0 0 1.5px rgba(255,255,255,.35), inset 0 -18px 28px rgba(0,0,0,.14); }
.cubo3d-cara span, .cubo3d-cara svg { position: relative; z-index: 1; }
.cubo3d-cara svg { width: calc(var(--cubo-tam) * .19); height: calc(var(--cubo-tam) * .19); flex: none; }
.cubo3d-cara .cara-titulo { font-size: calc(var(--cubo-tam) * .1); letter-spacing: .01em; }
.cubo3d-cara .cara-sub { font-family: "DM Sans", sans-serif; font-size: calc(var(--cubo-tam) * .056); font-weight: 600; opacity: .85; }
.cubo3d-cara:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }
.cubo3d-cara.texto-oscuro:focus-visible { outline-color: #1A1A2E; }
.cubo3d-tapa { position: absolute; inset: 0; width: var(--cubo-tam); height: var(--cubo-tam); border-radius: calc(var(--cubo-tam) * .05); pointer-events: none;
  transform: rotateX(90deg) translateZ(calc(var(--cubo-tam) / 2));
  background: radial-gradient(circle at 35% 35%, #9B5CE0 0%, #6A2FD1 55%, #3D1580 100%); border: 1px solid rgba(255,255,255,.16); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cubo3d-sombra { width: calc(var(--cubo-tam) * .9); height: 20px; margin: calc(var(--cubo-tam) * .14) auto 0; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(61,21,128,.28) 0%, rgba(61,21,128,.1) 50%, transparent 75%); animation: cuboSombra 5s ease-in-out infinite; }
@keyframes cuboSombra { 0%,100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .72; } }

/* ---------- Secciones ---------- */
.seccion { padding: 72px 0; }
.seccion-cabeza { max-width: 680px; margin-bottom: 36px; }
.seccion-cabeza h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.015em; }
.seccion-cabeza p { color: var(--text2); font-size: 17px; margin: 12px 0 0; }

/* Tarjetas de módulos */
.grilla-modulos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modulo { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-tarjeta); padding: 22px 24px; box-shadow: 0 2px 14px rgba(var(--rgb), .06); overflow: hidden; isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .6s ease; }
.modulo::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--rgb), .13), transparent 60%); }
.modulo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.modulo:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(var(--rgb), .14); border-color: rgba(var(--rgb), .35); }
.modulo:hover::before { opacity: 1; }
.modulo.destacada { animation: destacar 1.6s ease; }
@keyframes destacar { 0% { box-shadow: 0 0 0 0 rgba(var(--rgb), .55); } 40% { box-shadow: 0 0 0 10px rgba(var(--rgb), .0), 0 6px 22px rgba(var(--rgb), .2); } 100% { box-shadow: 0 2px 14px rgba(var(--rgb), .06); } }
.modulo-cabeza { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.modulo-icono { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px rgba(var(--rgb), .28); }
.modulo-icono svg { width: 25px; height: 25px; }
.modulo-tipo { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--acento); }
.modulo h3 { font-size: 24px; }
.modulo-desc { margin: 0 0 12px; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
.modulo-puntos { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.modulo-puntos li { position: relative; padding-left: 24px; line-height: 1.45; }
.modulo-puntos li::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, #fff 0 2.6px, transparent 3px), var(--grad); }
.modulo-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(var(--rgb), .1); color: var(--acento); }
.btn-cubo { border: 1.5px solid var(--border); background: var(--panel); color: var(--acento); font-family: inherit; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 10px; cursor: pointer; transition: border-color .2s; }
.btn-cubo:hover { border-color: rgba(var(--rgb), .5); }
a.btn-cubo { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
a.btn-cubo span { transition: transform .2s ease; }
a.btn-cubo:hover span { transform: translateX(3px); }
/* «Ver más» de las tarjetas: botón lleno con el color del módulo (acento: texto blanco
   legible), halo que late y un pequeño «tiritón» con brillo cada pocos segundos,
   desfasado entre tarjetas. Quieto fuera de pantalla y con menos movimiento. */
.modulo a.btn-cubo { position: relative; overflow: hidden; border: 0; color: #fff; font-size: 15px; padding: 11px 20px; border-radius: 12px; gap: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 60%), var(--acento);
  box-shadow: 0 4px 14px rgba(var(--rgb), .38);
  animation: verMasHalo 2.4s ease-out infinite, verMasTirita 4.8s ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.modulo a.btn-cubo::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  animation: verMasBrillo 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.modulo a.btn-cubo span { font-size: 18px; line-height: 1; }
.modulo a.btn-cubo:focus-visible { outline: 3px solid rgba(var(--rgb), .7); outline-offset: 3px; }
html:not(.tactil) .modulo a.btn-cubo:hover { animation: verMasHalo 1.2s ease-out infinite; transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 24px rgba(var(--rgb), .55); filter: saturate(1.2) brightness(1.06); }
.grilla-modulos .modulo:nth-child(2) { --d: .8s; }
.grilla-modulos .modulo:nth-child(3) { --d: 1.6s; }
.grilla-modulos .modulo:nth-child(4) { --d: 2.4s; }
.grilla-modulos .modulo:nth-child(5) { --d: 3.2s; }
.grilla-modulos .modulo:nth-child(6) { --d: 4s; }
.modulo.mt-quieta a.btn-cubo, .modulo.mt-quieta a.btn-cubo::before { animation-play-state: paused; }
@keyframes verMasHalo { 0% { box-shadow: 0 4px 14px rgba(var(--rgb), .38), 0 0 0 0 rgba(var(--rgb), .6); } 70%, 100% { box-shadow: 0 4px 14px rgba(var(--rgb), .38), 0 0 0 13px rgba(var(--rgb), 0); } }
@keyframes verMasTirita { 0%, 76%, 100% { transform: none; } 79% { transform: rotate(-4deg) scale(1.07); } 82% { transform: rotate(4deg) scale(1.07); } 85% { transform: rotate(-3deg) scale(1.06); } 88% { transform: rotate(2deg) scale(1.03); } 91% { transform: none; } }
@keyframes verMasBrillo { 0%, 76% { left: -60%; } 92%, 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .modulo a.btn-cubo, .modulo a.btn-cubo::before { animation: none; } .modulo a.btn-cubo::before { display: none; } }

/* Cómo funciona */
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pilar { background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: var(--r-tarjeta); padding: 24px; box-shadow: var(--sombra); transition: opacity .6s ease, transform .6s ease; }
.pilar-icono { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--marca-rgb), .09); margin-bottom: 14px; }
.pilar-icono svg { width: 21px; height: 21px; }
.pilar h3 { font-size: 19px; margin-bottom: 6px; }
.pilar p { margin: 0; color: var(--text2); font-size: 14.5px; }
.normativa { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.normativa > span:first-child { font-weight: 700; font-size: 14px; color: var(--text2); margin-right: 4px; }
.norma { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--border); color: var(--text); }

/* Quiénes somos + contacto */
.equipo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.tarjeta { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-tarjeta); padding: 28px; box-shadow: var(--sombra); transition: opacity .6s ease, transform .6s ease; }
.tarjeta h3 { font-size: 22px; margin-bottom: 10px; }
.tarjeta p { color: var(--text2); margin: 0 0 12px; }
.contacto { position: relative; overflow: hidden; color: #fff; background: var(--marca); border: none; box-shadow: 0 20px 60px rgba(var(--marca-rgb), .22); }
.contacto::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; bottom: -90px; background: #fff; opacity: .1; -webkit-mask: url("img/cerebro.svg") center / contain no-repeat; mask: url("img/cerebro.svg") center / contain no-repeat; }
.contacto h3 { color: #fff; }
.contacto p { color: rgba(255,255,255,.9); }
.contacto .btn { background: #fff; color: var(--marca-oscuro); position: relative; z-index: 1; }
.contacto .btn:hover { transform: translateY(-1px); }

/* Pie */
.pie { position: relative; z-index: 1; padding: 34px 0 40px; border-top: 1px solid var(--border); margin-top: 40px; background: rgba(247,245,255,.7); }
.pie .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--text2); }
.pie .marca-nombre { font-size: 18px; }
.pie .logo { width: 28px; height: 27px; }
.pie a { color: var(--text2); }

/* ---------- Franja «Recreo en el patio» (acuarela animada, escena-patio.js) ---------- */
.franja-patio { position: relative; z-index: 1; padding: 12px 0 8px; }
.patio-marco { position: relative; max-width: 1600px; margin: 0 auto; background: #F8F1E2; touch-action: pan-y; }
.patio-marco svg { display: block; width: 100%; height: auto; }
.patio-grano { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .22; background-size: 220px 220px; }
.patio-pausa { position: absolute; left: 3.2%; bottom: 7%; z-index: 2; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 12px; font: 700 12.5px "DM Sans", sans-serif; color: var(--text); background: rgba(255,255,255,.82); box-shadow: 0 2px 10px rgba(61,46,36,.15); cursor: pointer; }
.patio-pausa:hover { background: #fff; }
.patio-pausa::before { content: ""; width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.patio-pausa[aria-pressed="true"]::before { width: 0; height: 0; border-left: 9px solid currentColor; border-right: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.patio-pie { max-width: var(--ancho); margin: 6px auto 0; padding: 0 24px; font-size: 12.5px; color: var(--text2); text-align: center; }

/* ---------- Micro-animación de las tarjetas de módulos (aprobada 2026-10-29) ---------- */
.mt { --ciclo: 7.2s; }
.mt-cabeza { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mt-estado { flex: none; display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--acento); background: rgba(var(--rgb), .09); white-space: nowrap; }
.mt-punto { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); }
.mt-punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--acento); animation: mtPulso 1.5s ease-out infinite; }
@keyframes mtPulso { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.mt-areas { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 6px; margin: 2px 0 14px; padding: 0; list-style: none; }
.mt-area { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 3px 7px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; color: var(--text2);
  transition: border-color .45s ease, color .45s ease, box-shadow .45s ease, transform .45s ease; }
.mt-area .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--rgb), .1); color: var(--acento); }
.mt-area svg { width: 18px; height: 18px; }
.mt-area .ico.color { background: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.mt-area.foco { border-color: rgba(var(--rgb), .55); color: var(--acento); box-shadow: 0 6px 16px rgba(var(--rgb), .2); transform: translateY(-2px); }
.mt .modulo-puntos li { opacity: 0; transform: translateX(-8px); }
.mt.mt-visible .modulo-puntos li { animation: mtEntra .45s ease-out both; animation-delay: calc(var(--i) * .18s); }
@keyframes mtEntra { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.pronto { display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--acento); background: rgba(var(--rgb), .1); white-space: nowrap; vertical-align: 1px; }
.mt-carga { position: relative; margin: auto 0 16px; padding: 10px 12px 12px; border-radius: 12px; background: rgba(var(--rgb), .06); }
.mt-carga-txt { position: relative; height: 18px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.mt-carga-txt span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.mt-t1 { animation: mtTexto1 var(--ciclo) ease infinite; }
.mt-t2 { color: var(--acento); opacity: 0; animation: mtTexto2 var(--ciclo) ease infinite; }
.mt-pista { height: 6px; margin-top: 7px; border-radius: 999px; background: rgba(var(--rgb), .14); overflow: hidden; }
.mt-relleno { height: 100%; border-radius: inherit; background: var(--grad); transform-origin: left center; transform: scaleX(0); animation: mtLlena var(--ciclo) cubic-bezier(.45, .05, .3, 1) infinite; }
.mt-remate { position: absolute; right: 10px; top: -11px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(var(--rgb), .3); opacity: 0; transform: scale(.6); animation: mtRemate var(--ciclo) ease infinite; }
.mt-remate svg { width: 13px; height: 13px; }
.mt-oscuro .mt-remate { color: #1A1A2E; }
@keyframes mtLlena { 0%, 8% { transform: scaleX(0); opacity: 1; } 50% { transform: scaleX(1); opacity: 1; } 90% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes mtRemate { 0%, 51% { opacity: 0; transform: scale(.6); } 56% { opacity: 1; transform: scale(1.1); } 60%, 88% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes mtTexto1 { 0%, 50% { opacity: 1; } 54%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes mtTexto2 { 0%, 50% { opacity: 0; } 54%, 88% { opacity: 1; } 93%, 100% { opacity: 0; } }
.mt-escena { position: relative; margin: auto 0 16px; padding: 11px 12px 12px; border-radius: 12px; background: rgba(var(--rgb), .08); font-size: 12.5px; }
.mt-escena .quien { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--acento); margin: 0 0 4px; }
.mt-escena .globo { display: inline-block; background: #fff; border-radius: 12px 12px 12px 3px; padding: 6px 10px; font-weight: 600; box-shadow: 0 2px 8px rgba(var(--rgb), .15); margin-bottom: 8px; }
.mt-escena .pregunta { font-weight: 800; margin: 0 0 6px; }
.mt-op { display: block; width: 100%; margin-top: 5px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font-weight: 600; color: var(--text); opacity: 0; animation: mtOpcion var(--ciclo) ease infinite; }
.mt-op.b { animation-name: mtOpcionB; }
.mt-escena .mt-remate { top: auto; bottom: -10px; }
@keyframes mtOpcion { 0%, 10% { opacity: 0; transform: translateY(4px); } 16%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes mtOpcionB { 0%, 14% { opacity: 0; transform: translateY(4px); } 20%, 38% { opacity: 1; transform: none; border-color: var(--border); background: #fff; } 44%, 88% { opacity: 1; transform: none; border-color: var(--acento); background: rgba(var(--rgb), .14); } 94%, 100% { opacity: 0; } }
.mt-respira { display: flex; align-items: center; gap: 14px; margin: auto 0 16px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--rgb), .07); }
.mt-respira .circ { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); opacity: .85; transform: scale(.6); animation: mtRespira 8s ease-in-out infinite; flex: none; }
.mt-respira .txt { position: relative; height: 18px; flex: 1; font-size: 12.5px; font-weight: 700; color: var(--acento); }
.mt-respira .txt span { position: absolute; left: 0; top: 0; }
.mt-respira .in { animation: mtIn 8s ease infinite; } .mt-respira .out { opacity: 0; animation: mtOut 8s ease infinite; }
@keyframes mtRespira { 0%, 100% { transform: scale(.6); } 45%, 55% { transform: scale(1); } }
@keyframes mtIn { 0%, 42% { opacity: 1; } 48%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mtOut { 0%, 44% { opacity: 0; } 50%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
.mt .modulo-pie { margin-top: 0; }
.mt.mt-quieta *, .mt.mt-quieta *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .mt *, .mt *::after { animation: none !important; transition: none !important; }
  .mt .modulo-puntos li, .mt .mt-op { opacity: 1; transform: none; }
  .mt .mt-relleno { transform: scaleX(1); } .mt .mt-t1 { opacity: 0; } .mt .mt-t2 { opacity: 1; } .mt .mt-remate { opacity: 1; transform: none; }
  .mt .mt-op.b { border-color: var(--acento); background: rgba(var(--rgb), .14); }
  .mt .mt-respira .circ { transform: scale(.85); } .mt .mt-respira .in { opacity: 1; } .mt .mt-respira .out { opacity: 0; }
}

/* ---------- Smart y la normativa del libro de clases ---------- */
.normativa-smart { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 34px; box-shadow: 0 20px 60px rgba(46,139,154,.12); position: relative; overflow: hidden; transition: opacity .6s ease, transform .6s ease; }
.normativa-smart::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg,#2E8B9A,#1E6B7A,#103F49); }
.normativa-smart h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.ns-texto > p:not(.sobretitulo) { color: var(--text2); margin: 0 0 20px; }
.ns-texto .sobretitulo { color: #1E6B7A; background: rgba(46,139,154,.1); }
.ns-texto .sobretitulo::before { background: linear-gradient(135deg,#2E8B9A,#103F49); }
.ns-tit { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }
.ns-checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ns-checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: #FBFEFE; font-weight: 600; font-size: 14.5px; transition: border-color .25s ease, transform .25s ease; }
.ns-checks li:hover { border-color: rgba(46,139,154,.45); transform: translateY(-1px); }
.ns-ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg,#2E8B9A,#103F49); transform: scale(0); }
.ns-ok svg { width: 14px; height: 14px; }
.normativa-smart.visible .ns-ok { animation: nsCheck .45s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(.25s + var(--i) * .14s); }
@keyframes nsCheck { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.ns-mas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ns-mas li { padding: 7px 12px; border-radius: 999px; background: rgba(46,139,154,.1); color: #1E6B7A; font-weight: 700; font-size: 14px; --acento: #1E6B7A; --rgb: 46,139,154; }

/* ---------- Módulo a medida ---------- */
.a-medida { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 28px 30px; border-radius: 24px; background: var(--panel); border: 1.5px dashed rgba(var(--marca-rgb), .35); box-shadow: var(--sombra); transition: opacity .6s ease, transform .6s ease, border-color .3s ease; }
.a-medida:hover { border-color: rgba(var(--marca-rgb), .6); }
.a-medida h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.a-medida p { margin: 0; color: var(--text2); max-width: 44em; }
.am-piezas { width: 64px; height: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.am-piezas i { border-radius: 9px; background: var(--marca); opacity: .9; }
.am-piezas i:nth-child(2) { background: linear-gradient(135deg,#1DC8A0,#00BFFF); }
.am-piezas i:nth-child(3) { background: linear-gradient(135deg,#F0A500,#FFD166); }
.am-piezas i:nth-child(4) { background: transparent; border: 2px dashed rgba(var(--marca-rgb), .5); animation: amPieza 2.4s ease-in-out infinite; }
@keyframes amPieza { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, -3px); } }
@media (max-width: 820px) {
  .normativa-smart { grid-template-columns: 1fr; padding: 26px 22px; }
  .a-medida { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 480px) { .ns-checks { grid-template-columns: 1fr; } }
.tactil .ns-checks li:hover { transform: none; border-color: var(--border); }
@media (prefers-reduced-motion: reduce) {
  .ns-ok { transform: none; }
  .normativa-smart.visible .ns-ok, .am-piezas i { animation: none !important; }
}

/* ---------- Noticias (noticias.js lee noticias.json) ---------- */
.noticias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.noticia { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-tarjeta); padding: 20px 22px; box-shadow: var(--sombra); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .6s ease; }
.noticia::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--marca); transform: scaleX(.25); transform-origin: left; transition: transform .35s ease; }
.noticia:hover { transform: translateY(-3px); box-shadow: var(--sombra-hover); border-color: rgba(var(--marca-rgb), .3); }
.noticia:hover::before { transform: scaleX(1); }
.noticia-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text2); }
.noticia-tema { font-size: 11.5px; font-weight: 800; color: var(--marca-oscuro); background: rgba(var(--marca-rgb), .08); padding: 3px 10px; border-radius: 999px; }
.noticia h3 { font-size: 17px; line-height: 1.3; }
.noticia h3 a { color: var(--text); text-decoration: none; }
.noticia h3 a:hover, .noticia h3 a:focus-visible { color: var(--marca-oscuro); text-decoration: underline; }
.noticia p { margin: 0; color: var(--text2); font-size: 14px; }
.noticia .noticia-fuente { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.noticia-fuente span { font-weight: 500; color: var(--text2); }
.noticia-flecha { display: inline-block; transition: transform .2s ease; }
.noticia:hover .noticia-flecha { transform: translate(2px, -2px); }
@media (max-width: 1080px) { .noticias { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .noticias { grid-template-columns: 1fr; } }
.tactil .noticia:hover { transform: none; box-shadow: var(--sombra); border-color: var(--border); }
@media (prefers-reduced-motion: reduce) { .noticia, .noticia::before, .noticia-flecha { transition: none; } }

/* ---------- Preguntas frecuentes (acordeón con <details>, sin JS) ----------
   La columna izquierda queda fija al bajar en escritorio. Donde el navegador
   lo permite (::details-content) la respuesta se despliega con altura animada;
   en el resto solo aparece con un fundido. */
.faq { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 40px; align-items: start; interpolate-size: allow-keywords; }
.faq-lado { position: sticky; top: 96px; }
.faq-lado .seccion-cabeza { margin-bottom: 22px; }
.faq-ayuda { padding: 20px; border-radius: var(--r-tarjeta); background: var(--panel); border: 1px solid var(--border); box-shadow: var(--sombra); transition: opacity .6s ease, transform .6s ease; }
.faq-ayuda p { margin: 0 0 14px; color: var(--text2); font-size: 15px; }
.faq-ayuda strong { color: var(--text); }
.faq-grupos { display: grid; gap: 30px; }
.faq-grupo { transition: opacity .6s ease, transform .6s ease; }
.faq-grupo h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 12px; }
.faq-num { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; font-size: 14px; background: var(--marca); }
.faq details { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease; }
.faq details::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--marca); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.faq details[open] { border-color: rgba(var(--marca-rgb), .35); box-shadow: var(--sombra-hover); }
.faq details[open]::before { transform: scaleY(1); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px 16px 20px; font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--text); border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background:
    linear-gradient(var(--marca-oscuro), var(--marca-oscuro)) center / 12px 2px no-repeat,
    linear-gradient(var(--marca-oscuro), var(--marca-oscuro)) center / 2px 12px no-repeat,
    rgba(var(--marca-rgb), .09);
  transition: transform .3s ease, background-color .3s ease; }
.faq details[open] > summary::after { transform: rotate(135deg); background-color: rgba(var(--marca-rgb), .16); }
.faq summary:hover { color: var(--marca-oscuro); }
.faq summary:focus-visible { outline: 3px solid var(--marca-oscuro); outline-offset: -3px; }
.faq-resp { padding: 0 20px 18px; color: var(--text2); font-size: 15px; line-height: 1.6; }
.faq-resp p { margin: 0 0 8px; }
.faq-resp p:last-child { margin-bottom: 0; }
.faq-resp ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq-resp strong { color: var(--text); }
.faq details[open] .faq-resp { animation: faqAbre .35s ease; }
@keyframes faqAbre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .32s ease, content-visibility .32s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.tactil .faq summary:hover { color: var(--text); }
@media (max-width: 820px) {
  .faq { grid-template-columns: 1fr; gap: 8px; }
  .faq-lado { display: contents; }
  .faq-grupos { order: 1; }
  .faq-ayuda { order: 2; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq details, .faq details::before, .faq summary::after { transition: none; }
  .faq details[open] .faq-resp { animation: none; }
  .faq details::details-content { transition: none; }
}

/* ---------- Pantallas táctiles (clase .tactil la pone sitio.js) ----------
   En táctil el «hover» queda pegado después de tocar: se anulan los
   levantes y luces que dependen del mouse. */
.tactil .modulo:hover { transform: none; box-shadow: 0 2px 14px rgba(var(--rgb), .06); border-color: var(--border); }
.tactil .modulo:hover::before { opacity: 0; }
.tactil .btn-primario:hover, .tactil .contacto .btn:hover, .tactil .flecha:hover { transform: none; }
.tactil .punto-mod:hover span { opacity: 0; }

/* Aparición al hacer scroll */
.revelar { opacity: 0; transform: translateY(18px); }
.revelar.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grilla-modulos { grid-template-columns: repeat(2, 1fr); }
  .hero .contenedor { grid-template-columns: 1fr; text-align: center; }
  .hero-bajada { margin-left: auto; margin-right: auto; }
  .hero-botones { justify-content: center; }
  .cubo-y-detalle { max-width: 720px; margin: 0 auto; text-align: left; }
}
@media (max-width: 820px) {
  :root { --cubo-tam: 190px; }
  .boton-menu { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; background: rgba(247,245,255,.97); border-bottom: 1px solid var(--border); box-shadow: 0 14px 30px rgba(var(--marca-rgb), .1); }
  .nav.abierto { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .cabecera .contenedor { gap: 10px; }
  .ingreso { order: 3; }
  .cubo-y-detalle { grid-template-columns: 1fr; }
  .pilares, .equipo { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .contenedor { padding: 0 16px; }
  .grilla-modulos { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .seccion { padding: 52px 0; }
  .marca-nombre { font-size: 19px; }
  .ingreso summary { padding: 10px 14px; }
  .lista-ingreso { right: -56px; width: min(290px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .cubo3d-flotar, .cubo3d-sombra, .cubo3d-orbita::after, .detalle.cambio > *, .modulo.destacada, .lista-ingreso { animation: none !important; }
  .revelar { opacity: 1; transform: none; }
}

/* ---- Módulos en camino (2026-11-06): tarjetas compactas, color del sistema de diseño ---- */
.grilla-nuevos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nuevo { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; align-items: start; padding: 18px 18px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 14px rgba(40,30,90,.06); text-decoration: none; color: inherit; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.nuevo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.nuevo:hover, .nuevo:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--rgb), .2); border-color: rgba(var(--rgb), .55); }
.nuevo-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px rgba(var(--rgb), .25); }
.nuevo-ico svg { width: 26px; height: 26px; }
.nuevo-txt { display: grid; gap: 2px; min-width: 0; }
.nuevo-tipo { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--acento); }
.nuevo-txt b { font: 700 19px "Space Grotesk", "DM Sans", sans-serif; color: var(--text); }
.nuevo-corto { font-size: 14px; line-height: 1.45; color: var(--text2); }
.nuevo .pronto { grid-column: 2; justify-self: start; margin-left: 0; margin-top: 4px; }
@media (max-width: 1080px) { .grilla-nuevos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grilla-nuevos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nuevo { transition: none; } .nuevo:hover { transform: none; } }

/* ---- Grupos de módulos por familia Sinapsis (2026-11-08) ---- */
.grupo-nuevos + .grupo-nuevos { margin-top: 34px; }
.grupo-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; font: 700 20px "Space Grotesk", "DM Sans", sans-serif; color: var(--text); }
.grupo-t small { font: 600 13.5px "DM Sans", sans-serif; color: var(--text2); }
.grupo-punto { align-self: center; width: 12px; height: 12px; border-radius: 50%; background: var(--gc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gc) 18%, transparent); }

/* ---- Todo en uno (2026-11-09): mensaje del hero y «Hoy vs. con Cerevia» ---- */
.hero-piloto { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; font: 800 14.5px "DM Sans", sans-serif; color: var(--marca-oscuro); background: #fff; border: 1.5px solid rgba(var(--marca-rgb), .35); box-shadow: 0 6px 18px rgba(var(--marca-rgb), .12); }
.hero-piloto-punto { width: 9px; height: 9px; border-radius: 50%; background: var(--marca); }
.hoy-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hoy-col { padding: 26px 28px; border-radius: 20px; border: 1px solid var(--border); background: #fff; box-shadow: 0 2px 14px rgba(40,30,90,.06); }
.hoy-col h3 { margin: 0 0 14px; font: 700 22px "Space Grotesk", "DM Sans", sans-serif; }
.hoy-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hoy-col li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.5; color: var(--text2); }
.hoy-col li b { color: var(--text); }
.hoy-col li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; }
.hoy-col.hoy { background: #FAF7F7; }
.hoy-col.hoy h3 { color: #8A3B3B; }
.hoy-col.hoy li::before { content: "✕"; color: #8A3B3B; background: #F5E1E1; }
.hoy-col.con { border-color: rgba(var(--marca-rgb), .4); box-shadow: 0 14px 34px rgba(var(--marca-rgb), .16); }
.hoy-col.con h3 { background: var(--marca); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hoy-col.con li::before { content: "✓"; color: #fff; background: var(--marca); }
.hoy-cierre { margin: 20px 0 0; text-align: center; font: 700 17px "DM Sans", sans-serif; color: var(--text); }
@media (max-width: 820px) { .hoy-vs { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .hero-piloto { font-size: 13.5px; } .hoy-col { padding: 22px 20px; } }

/* ---- Tarjetas cortas de módulo en la portada (2026-11-09): ícono, nombre, una frase y «Ver más» ---- */
.grilla-mc { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.mc { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 20px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 14px rgba(40,30,90,.06); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.mc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.mc::after { content: ""; position: absolute; right: -46px; top: -46px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--rgb), .22), transparent 70%); transition: transform .45s; pointer-events: none; }
.mc:hover, .mc:focus-within { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(var(--rgb), .22); border-color: rgba(var(--rgb), .5); }
.mc:hover::after { transform: scale(1.9); }
.mc-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: linear-gradient(135deg, var(--acento), color-mix(in srgb, var(--acento) 58%, #000)); box-shadow: 0 10px 22px rgba(var(--rgb), .32); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.mc-ico svg { width: 27px; height: 27px; }
.mc:hover .mc-ico { transform: rotate(-8deg) scale(1.1); }
.mc-nombre { margin: 6px 0 0; font: 700 21px "Space Grotesk", "DM Sans", sans-serif; color: var(--text); }
.mc-frase { margin: 0; min-height: 2.9em; font-size: 15px; line-height: 1.45; color: var(--text2); }
.mc-ver { position: static; justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 0 18px; border-radius: 999px; font: 800 14.5px "DM Sans", sans-serif; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--acento), color-mix(in srgb, var(--acento) 60%, #000)); box-shadow: 0 8px 18px rgba(var(--rgb), .3); transition: transform .2s, box-shadow .2s; }
.mc-ver::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* toda la tarjeta es el enlace */
.mc-ver:hover { transform: translateX(3px); }
.mc-ver:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
@media (max-width: 620px) { .grilla-mc { grid-template-columns: 1fr 1fr; gap: 12px; } .mc { padding: 18px 14px 14px; } .mc-nombre { font-size: 18px; } .mc-frase { font-size: 14px; } .mc-ver { padding: 0 14px; } }
@media (max-width: 400px) { .grilla-mc { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mc, .mc-ico, .mc::after, .mc-ver { transition: none; } .mc:hover { transform: none; } }

@media (min-width: 1100px) { .grilla-mc[data-n="5"] { grid-template-columns: repeat(5, 1fr); } .grilla-mc[data-n="8"] { grid-template-columns: repeat(4, 1fr); } .grilla-mc[data-n="2"], .grilla-mc[data-n="1"] { grid-template-columns: repeat(4, 1fr); } .grilla-mc[data-n="5"] .mc-nombre { font-size: 19px; } }

/* ---- «Lo que nos hace distintos» (2026-11-11): tarjetas grandes con movimiento suave ---- */
#distintos { background: linear-gradient(180deg, transparent, rgba(var(--marca-rgb), .05) 30%, transparent); }
.dx-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dx { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 24px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 14px rgba(40,30,90,.06); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.dx::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--marca); }
.dx::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--marca-rgb), .16), transparent 70%); transition: transform .5s; pointer-events: none; }
.dx:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(var(--marca-rgb), .2); border-color: rgba(var(--marca-rgb), .45); }
.dx:hover::after { transform: scale(1.8); }
.dx-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--marca); box-shadow: 0 10px 24px rgba(var(--marca-rgb), .32); animation: dxFlota 5s ease-in-out infinite; }
.dx:nth-child(2n) .dx-ico { animation-delay: -1.4s; } .dx:nth-child(3n) .dx-ico { animation-delay: -2.6s; }
.dx-ico svg { width: 28px; height: 28px; }
@keyframes dxFlota { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.dx h3 { margin: 6px 0 0; font: 700 21px "Space Grotesk", "DM Sans", sans-serif; color: var(--text); }
.dx p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text2); }
.dx-grande { grid-column: span 2; background: linear-gradient(135deg, #fff 0%, #F4EEFF 100%); }
.dx-grande h3 { font-size: 26px; }
.dx-flujo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.dx-nodo { padding: 10px 14px; border-radius: 14px; font: 800 14px "DM Sans", sans-serif; color: #fff; background: var(--marca); box-shadow: 0 8px 18px rgba(var(--marca-rgb), .3); animation: dxLatido 6s ease-in-out infinite; }
.dx-nodo.n2 { animation-delay: -2s; } .dx-nodo.n3 { animation-delay: -4s; }
.dx-flujo i { position: relative; flex: 1 1 24px; min-width: 24px; height: 3px; border-radius: 3px; background: rgba(var(--marca-rgb), .25); overflow: hidden; }
.dx-flujo i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--marca); animation: dxViaja 2.4s linear infinite; }
@keyframes dxLatido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes dxViaja { from { left: -45%; } to { left: 105%; } }
.dx-etq { justify-self: start; margin-top: 4px; padding: 5px 12px; border-radius: 999px; font: 800 12.5px "DM Sans", sans-serif; }
.dx-etq.ok { color: #0D6B52; background: #E1F5EE; }
.dx-etq.prep { color: #8A5A00; background: #FFF3D6; }
@media (max-width: 980px) { .dx-grilla { grid-template-columns: 1fr 1fr; } .dx-grande { grid-column: span 2; } }
@media (max-width: 620px) { .dx-grilla { grid-template-columns: 1fr; } .dx-grande { grid-column: auto; } .dx h3, .dx-grande h3 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .dx, .dx::after { transition: none; } .dx:hover { transform: none; } .dx-ico, .dx-nodo, .dx-flujo i::after { animation: none; } }

/* ---- «Lo que nos hace distintos» v2 (2026-11-11): color por módulo, brillo al pasar, fondo sutil ---- */
#distintos { position: relative; isolation: isolate; overflow: hidden; }
.dx-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dx-fondo i { position: absolute; width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; border-radius: 50%; filter: blur(70px); opacity: .22; animation: dxDeriva 26s ease-in-out infinite alternate; }
.dx-fondo .b1 { left: -8%; top: 4%; background: #00BFFF; } .dx-fondo .b2 { right: -10%; top: 30%; background: #FF1F8F; animation-duration: 32s; } .dx-fondo .b3 { left: 30%; bottom: -12%; background: #7B2FBE; animation-duration: 38s; }
@keyframes dxDeriva { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, -4vh, 0) scale(1.15); } }
.dx::before { background: var(--grad); }
.dx::after { background: radial-gradient(circle, rgba(var(--rgb), .2), transparent 70%); }
.dx { --mx: 50%; --my: 0%; }
.dx > * { position: relative; z-index: 1; }
.dx:hover, .dx:active, .dx:focus-within { border-color: rgba(var(--rgb), .55); box-shadow: 0 24px 48px rgba(var(--rgb), .26); background-image: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--rgb), .13), transparent 70%); }
.dx-ico { background: linear-gradient(135deg, var(--acento), color-mix(in srgb, var(--acento) 58%, #000)); box-shadow: 0 10px 24px rgba(var(--rgb), .34); }
.dx:hover .dx-ico, .dx:active .dx-ico { animation: dxGira .9s cubic-bezier(.34, 1.56, .64, 1) 1; }
@keyframes dxGira { from { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.15); } to { transform: rotate(360deg) scale(1); } }
.dx-kicker { margin: 4px 0 0 !important; font: 800 12.5px "DM Sans", sans-serif !important; letter-spacing: .06em; text-transform: uppercase; color: var(--acento) !important; }
.dx h3 { margin-top: 0; font-size: 20px; line-height: 1.25; }
.dx-grande h3 { font-size: 24px; }
.dx-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.dx-pie:empty { display: none; }
.dx-pie .dx-etq { margin-top: 0; }
.dx-link { display: inline-flex; align-items: center; min-height: 44px; font: 800 14.5px "DM Sans", sans-serif; color: var(--acento); text-decoration: none; }
.dx-link:hover { text-decoration: underline; }
.dx-link:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
.dx-nodo { background: linear-gradient(135deg, #00BFFF, #7B2FBE 55%, #FF1F8F); }
@media (prefers-reduced-motion: reduce) { .dx-fondo i { animation: none; } .dx:hover .dx-ico, .dx:active .dx-ico { animation: none; } .dx:hover, .dx:active { background-image: none; } }

.dx-link span { margin-left: 6px; }

/* ---- Más tarjetas, chips de Gestión, cumplimiento normativo y cierre (2026-11-11) ---- */
.dx-pie .dx-etq { line-height: 1.3; }
.dx-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; }
.dx-chips li { padding: 8px 14px; border-radius: 999px; font: 800 14px "DM Sans", sans-serif; color: var(--acento); background: rgba(var(--rgb), .1); border: 1px solid rgba(var(--rgb), .25); transition: transform .2s, background .2s; }
.dx-chips li small { font-weight: 600; color: var(--text2); }
.dx-chips li:hover { transform: translateY(-3px); background: rgba(var(--rgb), .18); }
.nm-bloque { margin-top: 46px; }
.nm-titulo { margin: 0; font: 700 clamp(26px, 3.4vw, 34px) "Space Grotesk", "DM Sans", sans-serif; }
.nm-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nm { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 14px rgba(40,30,90,.06); transition: transform .25s, box-shadow .25s; }
.nm:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(var(--marca-rgb), .18); }
.nm-sello { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--marca); box-shadow: 0 0 0 5px rgba(var(--marca-rgb), .12); animation: dxFlota 6s ease-in-out infinite; }
.nm-sello svg { width: 26px; height: 26px; }
.nm b { display: block; font: 700 17px "Space Grotesk", "DM Sans", sans-serif; }
.nm small { display: block; margin: 1px 0 4px; font: 800 12px "DM Sans", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--marca-oscuro); }
.nm p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text2); }
.nm-nota { margin: 14px 4px 0; font-size: 13.5px; color: var(--text2); }
.dx-cierre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding: 26px 30px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #00BFFF 0%, #7B2FBE 55%, #FF1F8F 100%); box-shadow: 0 22px 50px rgba(var(--marca-rgb), .3); }
.dx-cierre b { display: block; font: 700 clamp(22px, 3vw, 30px) "Space Grotesk", "DM Sans", sans-serif; }
.dx-cierre span { display: block; margin-top: 4px; opacity: .95; }
.dx-cierre .btn { background: #fff; color: #5B2EA6; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
@media (max-width: 980px) { .nm-grilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .nm-grilla { grid-template-columns: 1fr; } .dx-cierre { padding: 22px 20px; } .dx-cierre .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .nm-sello { animation: none; } .nm, .dx-chips li { transition: none; } .nm:hover, .dx-chips li:hover { transform: none; } }

/* ---- Razones numeradas (2026-11-11) ---- */
.dx-total { display: inline-block; margin-right: 6px; font-size: 1.25em; background: var(--marca); -webkit-background-clip: text; background-clip: text; color: transparent; animation: dxLatido 5s ease-in-out infinite; }
.dx-num { position: absolute; top: 14px; right: 18px; z-index: 0; font: 700 56px/1 "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .28; transform-origin: right top; transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.dx.visible .dx-num { animation: dxNum .9s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: .15s; }
.dx:hover .dx-num, .dx:active .dx-num { opacity: .7; transform: scale(1.12) rotate(-3deg); }
@keyframes dxNum { from { opacity: 0; transform: scale(.5) translateY(10px); } to { opacity: .28; transform: none; } }
.dx-grande .dx-num { font-size: 72px; }
@media (max-width: 620px) { .dx-num { font-size: 44px; top: 12px; right: 14px; } .dx-grande .dx-num { font-size: 52px; } }
@media (prefers-reduced-motion: reduce) { .dx-total { animation: none; } .dx.visible .dx-num { animation: none; } .dx-num { transition: none; } .dx:hover .dx-num { transform: none; } }

/* ---- Una etiqueta para lo disponible; lo que está en preparación, en una segunda línea (2026-11-13) ---- */
.dx-prep { flex-basis: 100%; margin: 4px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; color: #6B4A00; background: #FFF8E6; border: 1px dashed #E9C46A; }
.dx-prep b { color: #8A5A00; }

/* ---- «Entrena tu mente»: novedad de la web pública (2026-11-13) ---- */
.nav-nuevo { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font: 800 10.5px "DM Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--marca); vertical-align: 2px; }
.ent { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; padding: 44px 44px 44px; border-radius: 34px; color: #fff; background: linear-gradient(135deg, #1B1464 0%, #5B2EA6 48%, #D6336C 100%); box-shadow: 0 30px 70px rgba(91, 46, 166, .38); isolation: isolate; }
.ent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 92% 12%, rgba(255,255,255,.22), transparent 62%), radial-gradient(40% 60% at 4% 100%, rgba(0,191,255,.3), transparent 65%); }
.ent-cinta { position: absolute; top: 18px; left: 44px; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; font: 800 13px "DM Sans", sans-serif; color: #1B1464; background: #FFE08A; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.ent-cinta span { width: 8px; height: 8px; border-radius: 50%; background: #D6336C; animation: mtPulso 1.6s ease-out infinite; }
.ent-txt { padding-top: 22px; }
.ent h2 { margin: 0 0 12px; font: 700 clamp(32px, 4.6vw, 52px)/1.05 "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.02em; color: #fff; }
.ent-bajada { margin: 0 0 16px; max-width: 32em; font-size: clamp(16.5px, 1.7vw, 19px); line-height: 1.5; color: rgba(255,255,255,.95); }
.ent-puntos { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.ent-puntos li { position: relative; padding-left: 30px; line-height: 1.45; color: rgba(255,255,255,.96); }
.ent-puntos li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #1B1464; background: #FFE08A; }
.ent-botones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ent .ent-jugar { min-height: 52px; padding: 0 28px; font-size: 17px; color: #1B1464; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.3); animation: dxLatido 3.2s ease-in-out infinite; }
.ent .ent-jugar:hover, .ent .ent-jugar:focus-visible { transform: translateY(-3px) scale(1.04); }
.ent .ent-jugar:focus-visible { outline: 3px solid #FFE08A; outline-offset: 3px; }
.ent-aviso { font-size: 13.5px; color: rgba(255,255,255,.85); }
.ent-vis { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.ent-halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 68%); animation: entRespira 5s ease-in-out infinite; }
.ent-cerebro { position: relative; width: 62%; aspect-ratio: 1; background: linear-gradient(120deg, #FFE08A 0%, #fff 40%, #7DE3FF 60%, #FFE08A 100%); background-size: 240% 100%; -webkit-mask: url(img/cerebro.svg) center / contain no-repeat; mask: url(img/cerebro.svg) center / contain no-repeat; filter: drop-shadow(0 14px 26px rgba(0,0,0,.35)); animation: entBrilla 6s linear infinite, dxFlota 6s ease-in-out infinite; }
.ent-o { position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; animation: entOrbita 14s linear infinite; }
.ent-o::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; box-shadow: 0 0 22px currentColor; }
.ent-o.o1 { background: #FFE08A; color: #FFE08A; } .ent-o.o2 { background: #7DE3FF; color: #7DE3FF; animation-delay: -2.8s; } .ent-o.o3 { background: #FF8FB8; color: #FF8FB8; animation-delay: -5.6s; }
.ent-o.o4 { background: #B7F5C8; color: #B7F5C8; animation-delay: -8.4s; } .ent-o.o5 { background: #C9B6FF; color: #C9B6FF; animation-delay: -11.2s; }
.ent-o { width: 11%; }
@keyframes entOrbita { from { transform: rotate(0) translateX(min(30vw, 150px)) rotate(0); } to { transform: rotate(360deg) translateX(min(30vw, 150px)) rotate(-360deg); } }
@keyframes entBrilla { to { background-position: -240% 0; } }
@keyframes entRespira { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
@media (max-width: 900px) { .ent { grid-template-columns: 1fr; padding: 40px 26px 34px; } .ent-vis { order: -1; width: min(100%, 260px); } .ent-cinta { left: 26px; } .ent-txt { padding-top: 6px; } .ent-vis + .ent-txt { padding-top: 6px; } }
@media (max-width: 620px) { @keyframes entOrbita { from { transform: rotate(0) translateX(100px) rotate(0); } to { transform: rotate(360deg) translateX(100px) rotate(-360deg); } } .ent .ent-jugar { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ent-cinta span, .ent .ent-jugar, .ent-halo, .ent-cerebro, .ent-o { animation: none !important; } .ent-o { display: none; } }

/* ---- Sinapsis interactiva en la portada (2026-11-15): los puntos reaccionan con suavidad al puntero ---- */
html[data-sinapsis] .hero > .cst-modulos { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
html[data-sinapsis] .hero > .cst-modulos circle { transform-box: fill-box; transform-origin: center; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) { html[data-sinapsis] .hero > .cst-modulos, html[data-sinapsis] .hero > .cst-modulos circle { transition: none; } }
