/* =========================================================
   Propuesta 02 · AURORA — luz, cercanía y experiencia premium
   ========================================================= */
@font-face { font-family: "Plus Jakarta Sans"; src: url("shared/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("shared/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("shared/fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("shared/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("shared/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0A1024;             /* azul noche */
  --bg-deep: #070B19;
  --panel: #111A3B;          /* superficie sólida (respaldo del vidrio) */
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #EEF2FF;
  --muted: #A7B1D0;          /* contraste 7.9:1 sobre --bg */
  --cyan: #20D5D8;           /* turquesa de la identidad */
  --violet: #9275FF;         /* violeta de la identidad */
  --grad: linear-gradient(115deg, #20D5D8 0%, #6F9BFF 50%, #9275FF 100%);

  --sans: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;   /* v2: titulares */
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1180px;
  --header-h: 90px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-padding-top: var(--header-h); }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--violet); color: #fff; }

/* ---------- Botones: píldoras; el degradado se desplaza al pasar el puntero (400 ms) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background-position 0.4s var(--ease), border-color 0.25s, background-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-primary { background: linear-gradient(110deg, #20D5D8 0%, #7C93FF 45%, #9275FF 70%, #20D5D8 100%); background-size: 220% 100%; background-position: 0 0; color: #08102A; }
.btn-primary:hover { background-position: 90% 0; box-shadow: 0 12px 32px -10px rgba(146, 117, 255, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15) inset; }
/* v2: botón secundario con borde degradado (turquesa → violeta); al pasar el puntero se ilumina por dentro. */
.btn-glass {
  position: relative; isolation: isolate; color: var(--text); border: 1px solid transparent;
  background: linear-gradient(rgba(12, 18, 42, 0.72), rgba(12, 18, 42, 0.72)) padding-box, var(--grad) border-box;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(110deg, rgba(32, 213, 216, 0.22), rgba(146, 117, 255, 0.3)); opacity: 0; transition: opacity 0.35s var(--ease); }
.btn-glass:hover::before { opacity: 1; }
.btn-glass:hover { box-shadow: 0 10px 30px -12px rgba(146, 117, 255, 0.7); }
.btn-wide { width: 100%; }

/* ---------- Encabezado flotante (vidrio) ---------- */
.site-header { position: fixed; inset: 14px 0 auto 0; z-index: 50; }
.header-inner {
  width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; height: 62px; display: flex; align-items: center; gap: 20px;
  padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 18, 42, 0.5); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.is-scrolled .header-inner { background: rgba(10, 16, 36, 0.82); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.7); }
.brand { display: block; width: 62px; height: 50px; flex: none; }
.brand img { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 54% 56% at 50% 50%, #000 76%, transparent 100%); mask-image: radial-gradient(ellipse 54% 56% at 50% 50%, #000 76%, transparent 100%); }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.main-nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-contact-mobile { display: none; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.lang button { background: none; border: 0; padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.2s, background-color 0.2s; }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.header-contact { min-height: 42px; padding: 0 18px; }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px); text-align: center; }

/* Luces de aurora: cuatro manchas de luz (degradados radiales) que se desplazan lento.
   Solo se anima transform, sin filtros de desenfoque, para que el celular no sufra.
   Velocidad: cambia los segundos de .b1 a .b4. Intensidad: cambia el último valor rgba. */
.aurora { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none; }
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 36, 0) 40%, var(--bg) 96%); }
.blob { position: absolute; display: block; border-radius: 50%; will-change: transform; animation: deriva-a 22s ease-in-out infinite alternate; }
.b1 { width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; left: -8%; top: 0; background: radial-gradient(closest-side, rgba(32, 213, 216, 0.42), rgba(32, 213, 216, 0) 100%); }
.b2 { width: 58vw; height: 58vw; max-width: 860px; max-height: 860px; right: -10%; top: -6%; background: radial-gradient(closest-side, rgba(146, 117, 255, 0.5), rgba(146, 117, 255, 0) 100%); animation-name: deriva-b; animation-duration: 26s; }
.b3 { width: 70vw; height: 40vw; max-width: 1000px; max-height: 560px; left: 18%; top: 34%; background: radial-gradient(closest-side, rgba(63, 98, 255, 0.38), rgba(63, 98, 255, 0) 100%); animation-duration: 19s; animation-direction: alternate-reverse; }
.b4 { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; left: 44%; top: 6%; background: radial-gradient(closest-side, rgba(120, 220, 255, 0.28), rgba(120, 220, 255, 0) 100%); animation-name: deriva-b; animation-duration: 18s; }
@keyframes deriva-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8%, 10%, 0) scale(1.12); } }
@keyframes deriva-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-10%, 8%, 0) scale(0.92); } }
.is-paused .blob, .is-paused .float { animation-play-state: paused; }
/* v2: partículas solo en la parte alta de la portada (detrás del titular), con fundido hacia abajo */
.hero .fx-canvas { height: 62%; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); }

/* v2 · al bajar, los títulos y paneles grandes aparecen "enfocándose": suben, crecen apenas y pierden el desenfoque (0.8 s). */
.js .section-head[data-reveal], .js .about-panel[data-reveal], .js .contact[data-reveal] {
  filter: blur(8px); transform: translateY(26px) scale(0.985);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.js .section-head[data-reveal].is-visible, .js .about-panel[data-reveal].is-visible, .js .contact[data-reveal].is-visible { filter: none; transform: none; }

.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-label {
  display: inline-flex; padding: 7px 16px; margin-bottom: 26px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(rgba(10, 16, 36, 0.8), rgba(10, 16, 36, 0.8)) padding-box, var(--grad) border-box;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #D6E4FF;
}
/* v2: titular serif muy grande. La última palabra (cursiva con degradado turquesa → violeta)
   se escribe sola (shared/fx.js); el cursor es una línea fina violeta. */
.hero-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.9rem, 7.6vw, 6.8rem); line-height: 0.98; letter-spacing: -0.015em; margin-bottom: 26px;
  background: linear-gradient(180deg, #FFFFFF 35%, #C8D0F8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title em { font-style: italic; padding: 0 0.08em 0.06em 0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .ht-b { min-height: 1em; }
.js .hero-title .ht-caret { width: 0.04em; height: 0.78em; margin-left: 0.02em; background: var(--violet); box-shadow: 0 0 14px var(--violet); vertical-align: -0.04em; }
.hero-text { max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #C3CCE6; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Tarjetas flotantes (vidrio): flotan 10 px arriba y abajo, cada una a su ritmo */
.stage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: clamp(56px, 8vw, 88px); text-align: left; }
.float {
  --y: 0px;
  padding: 14px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(36, 50, 104, 0.55), rgba(16, 24, 56, 0.55));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transform: translateY(var(--y)); animation: flotar 7s ease-in-out infinite alternate;
}
.f-app { --y: 26px; animation-duration: 8s; animation-delay: -2s; }
.f-lms { --y: 8px; animation-duration: 6.5s; animation-delay: -4s; }
.f-game { --y: 34px; animation-duration: 7.5s; animation-delay: -1s; }
@keyframes flotar { from { transform: translateY(var(--y)); } to { transform: translateY(calc(var(--y) - 10px)); } }
.float-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.78rem; font-weight: 600; color: #D3DBF5; line-height: 1.3; }
.tone { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.t-cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.t-violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.t-mix { background: var(--grad); box-shadow: 0 0 10px #6F9BFF; }
.mini-browser, .mini-phone, .mini-course, .mini-game { height: 116px; border-radius: 12px; background: rgba(7, 11, 25, 0.55); border: 1px solid rgba(255, 255, 255, 0.07); }
.mini-browser { display: grid; grid-template-rows: 6px 1fr 26px; gap: 8px; padding: 10px; }
.mini-browser b { width: 34%; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.mb-hero { border-radius: 8px; background: linear-gradient(120deg, rgba(32, 213, 216, 0.55), rgba(146, 117, 255, 0.45)); }
.mb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mb-row i { border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.mini-phone { display: grid; grid-template-rows: 1fr 6px 6px 16px; gap: 7px; width: 62%; margin-inline: auto; padding: 10px; border-radius: 16px; }
.mp-card { border-radius: 8px; background: linear-gradient(140deg, rgba(146, 117, 255, 0.6), rgba(146, 117, 255, 0.15)); }
.mp-line { border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.mp-line.short { width: 60%; }
.mp-btn { border-radius: 999px; background: var(--violet); }
.mini-course { list-style: none; margin: 0; padding: 12px; display: grid; align-content: space-between; }
.mini-course li { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; }
.mini-course li i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.mini-course li:first-child i { background: linear-gradient(140deg, var(--cyan), var(--violet)); }
.mini-course li span { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.mini-course li span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--grad); }
.mini-game { display: grid; place-items: center; align-content: center; gap: 12px; }
.mg-q { font: 500 1.15rem var(--mono); color: #fff; }
.mg-opts { display: flex; gap: 8px; }
.mg-opts i { display: grid; place-items: center; width: 32px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); font: 500 0.82rem var(--mono); font-style: normal; }
.mg-opts i.on { background: var(--cyan); color: #08102A; }

/* Cifras */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 96px); text-align: left;
  border-radius: 22px; border: 1px solid var(--line); background: rgba(14, 21, 48, 0.6);
}
.stat { display: flex; align-items: center; gap: 16px; padding: 22px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 1.1ch; }
.stat-label { color: var(--muted); font-size: 0.95rem; line-height: 1.35; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(88px, 11vw, 150px) 0; }
.section-soft { background: linear-gradient(180deg, rgba(146, 117, 255, 0) 0%, rgba(146, 117, 255, 0.05) 50%, rgba(146, 117, 255, 0) 100%); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .about-panel h2, .contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 16px; }
h2 em { font-style: italic; padding-right: 0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.0625rem; }

/* Tarjetas con borde de luz que sigue al puntero (--mx / --my vienen de core.js) */
.glow-card { position: relative; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s; }
.glow-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(146, 117, 255, 0.85), rgba(32, 213, 216, 0.35) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
}
.glow-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(70, 60, 200, 0.45); }
.glow-card:hover::before { opacity: 1; }

/* Servicios (bento) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile {
  grid-column: span 2; padding: clamp(24px, 3vw, 34px); border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(31, 44, 94, 0.7), rgba(14, 21, 48, 0.85));
}
.tile-wide { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; align-items: center; overflow: hidden; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 26px; border-radius: 14px; border: 1px solid; }
.icon svg { width: 24px; height: 24px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-cyan { background: rgba(32, 213, 216, 0.12); border-color: rgba(32, 213, 216, 0.35); stroke: var(--cyan); }
.i-violet { background: rgba(146, 117, 255, 0.14); border-color: rgba(146, 117, 255, 0.4); stroke: #B7A6FF; }
.i-mix { background: linear-gradient(140deg, rgba(32, 213, 216, 0.14), rgba(146, 117, 255, 0.18)); border-color: rgba(111, 155, 255, 0.4); stroke: #A9C2FF; }
.icon svg { stroke: inherit; }
.tile h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.tile p { color: var(--muted); margin-bottom: 22px; }
.tile-link { position: relative; font-size: 0.92rem; font-weight: 650; color: var(--text); text-decoration: none; padding-bottom: 3px; background: var(--grad) left bottom / 100% 1px no-repeat; transition: background-size 0.3s var(--ease), color 0.2s; }
.tile-link:hover { color: #fff; background-size: 100% 2px; }
.tile-art { position: relative; height: 100%; min-height: 190px; }
.art-web span { position: absolute; width: 74%; height: 62%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: linear-gradient(160deg, rgba(32, 213, 216, 0.22), rgba(16, 24, 56, 0.6)); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.art-web span::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.art-web span:nth-child(1) { left: 0; top: 4%; }
.art-web span:nth-child(2) { left: 14%; top: 20%; background: linear-gradient(160deg, rgba(111, 155, 255, 0.28), rgba(16, 24, 56, 0.7)); }
.art-web span:nth-child(3) { left: 28%; top: 36%; background: linear-gradient(160deg, rgba(146, 117, 255, 0.4), rgba(16, 24, 56, 0.8)); }
.art-game { display: grid; grid-template-columns: repeat(2, 64px); grid-template-rows: repeat(2, 64px); gap: 14px; place-content: center; transform: rotate(45deg); }
.art-game span { border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14); }
.art-game span:nth-child(1) { background: linear-gradient(140deg, rgba(32, 213, 216, 0.75), rgba(32, 213, 216, 0.2)); }
.art-game span:nth-child(2) { background: rgba(146, 117, 255, 0.28); }
.art-game span:nth-child(3) { background: rgba(111, 155, 255, 0.2); }
.art-game span:nth-child(4) { background: linear-gradient(140deg, rgba(146, 117, 255, 0.75), rgba(146, 117, 255, 0.2)); }

/* Soluciones: filtro y tarjetas */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-size: 0.92rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #08102A; }
.sol-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sol { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(25, 36, 78, 0.65), rgba(13, 19, 44, 0.8)); transition: border-color 0.3s, transform 0.35s var(--ease); }
.sol:hover { border-color: rgba(146, 117, 255, 0.45); transform: translateY(-3px); }
.sol[hidden] { display: none; }
.sol.is-entering { animation: entrar 0.4s var(--ease) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.aud { display: inline-block; margin-bottom: 18px; padding: 3px 10px; border-radius: 999px; font: 500 0.7rem/1.5 var(--mono); letter-spacing: 0.02em; }
.sol[data-aud="biz"] .aud { color: #8EEFF1; background: rgba(32, 213, 216, 0.12); }
.sol[data-aud="edu"] .aud { color: #C9BCFF; background: rgba(146, 117, 255, 0.16); }
.sol[data-aud="all"] .aud { color: #BFD0FF; background: rgba(111, 155, 255, 0.14); }
.sol h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px; }
.kind { font-size: 0.9rem; font-weight: 650; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sol p:not(.kind) { color: var(--muted); font-size: 0.93rem; margin-bottom: 20px; }
.sol .tile-link { margin-top: auto; }

/* Nosotros */
.about-panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 88px);
  padding: clamp(28px, 5.5vw, 72px); border-radius: 32px; border: 1px solid transparent;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(32, 213, 216, 0.12), transparent 70%) padding-box,
    radial-gradient(600px 340px at 100% 100%, rgba(146, 117, 255, 0.16), transparent 70%) padding-box,
    linear-gradient(#0E1532, #0E1532) padding-box,
    linear-gradient(130deg, rgba(32, 213, 216, 0.6), rgba(146, 117, 255, 0.55) 55%, rgba(255, 255, 255, 0.06)) border-box;
}
.about-statement { font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.4; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 18px; }
.about-body { color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: center; }
.values li { position: relative; padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); }
.values li:last-child { border-bottom: 0; }
.values li::before { content: ""; position: absolute; left: 0; top: 26px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(111, 155, 255, 0.7); }
.values h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.values p { color: var(--muted); font-size: 0.95rem; }

/* Proceso: línea horizontal; el degradado avanza con --p (de 0 a 1, lo calcula core.js) */
.steps { --p: 0; list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 21px; left: calc((100% - 80px) / 10); right: calc((100% - 80px) / 10); height: 2px; border-radius: 2px; }
.steps::before { background: rgba(255, 255, 255, 0.1); }
.steps::after { background: var(--grad); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 14px rgba(111, 155, 255, 0.6); }
.step { position: relative; text-align: center; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(255, 255, 255, 0.16); font: 500 1rem var(--mono); color: var(--muted);
  transition: background 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.step.is-reached .step-num { background: var(--grad); border-color: transparent; color: #08102A; box-shadow: 0 0 22px rgba(111, 155, 255, 0.55); }
.step h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* Proyectos: maquetas de dispositivos sobre luz */
.demos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.demo { padding: 16px 16px 28px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(25, 36, 78, 0.6), rgba(13, 19, 44, 0.85)); }
.demo h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; padding-inline: 10px; }
.demo > p:not(.badge) { color: var(--muted); font-size: 0.95rem; padding-inline: 10px; }
.badge { display: inline-block; margin: 20px 10px 10px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(146, 117, 255, 0.5); font: 500 0.72rem var(--mono); color: #CFC4FF; }
.device { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; }
.g1 { background: radial-gradient(120% 90% at 0% 0%, rgba(32, 213, 216, 0.55), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(146, 117, 255, 0.35), transparent 60%), #111A3B; }
.g2 { background: radial-gradient(110% 90% at 100% 0%, rgba(146, 117, 255, 0.6), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(32, 213, 216, 0.3), transparent 60%), #111A3B; }
.g3 { background: radial-gradient(100% 90% at 50% 0%, rgba(111, 155, 255, 0.5), transparent 65%), #111A3B; }
.g4 { background: radial-gradient(100% 90% at 0% 100%, rgba(146, 117, 255, 0.5), transparent 60%), radial-gradient(90% 80% at 100% 0%, rgba(32, 213, 216, 0.45), transparent 60%), #111A3B; }
.device .screen { position: absolute; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(9, 14, 34, 0.86); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); display: grid; gap: 8px; padding: 12px; }
.d-browser .screen { left: 10%; right: 10%; top: 14%; bottom: -2px; border-radius: 12px 12px 0 0; grid-template-rows: 6px 1fr 40px; }
.d-browser .bar { width: 30%; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.d-browser .hero-blk { border-radius: 8px; background: linear-gradient(120deg, rgba(32, 213, 216, 0.5), rgba(146, 117, 255, 0.4)); }
.d-browser .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-browser .row i { border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.d-phone .screen { left: 50%; top: 10%; bottom: -14px; width: 30%; min-width: 100px; transform: translateX(-50%); border-radius: 20px 20px 0 0; grid-template-rows: 10px repeat(3, 26px) 1fr; align-content: start; padding: 14px 12px; }
.d-phone .pill { width: 40%; justify-self: center; border-radius: 5px; background: rgba(255, 255, 255, 0.2); }
.d-phone .slot { border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.d-phone .slot.on { background: rgba(146, 117, 255, 0.55); }
.d-phone .cta { align-self: end; height: 22px; border-radius: 999px; background: var(--violet); }
.d-lms .screen { left: 8%; right: 8%; top: 12%; bottom: 12%; border-radius: 12px; grid-template-columns: 24% 1fr; }
.d-lms .side { border-radius: 8px; background: linear-gradient(180deg, rgba(111, 155, 255, 0.35), rgba(111, 155, 255, 0.08)); }
.d-lms .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.d-lms .cards i { border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.d-lms .cards i:first-child { background: rgba(32, 213, 216, 0.3); }
.d-game .screen { left: 14%; right: 14%; top: 14%; bottom: 14%; border-radius: 16px; place-items: center; align-content: center; gap: 14px; }
.d-game .q { font: 500 clamp(1.1rem, 2.4vw, 1.6rem) var(--mono); color: #fff; }
.d-game .opts { display: flex; gap: 8px; }
.d-game .opts i { display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); font: 500 0.85rem var(--mono); font-style: normal; color: var(--text); }
.d-game .opts i.on { background: var(--cyan); color: #08102A; }
.d-game .prog { width: 70%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.d-game .prog i { display: block; width: 60%; height: 100%; border-radius: 3px; background: var(--grad); }

/* Contacto */
.contact-section { overflow: hidden; isolation: isolate; }
.contact-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px 360px at 25% 55%, rgba(32, 213, 216, 0.16), transparent 70%), radial-gradient(560px 380px at 78% 45%, rgba(146, 117, 255, 0.2), transparent 70%); }
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start;
  padding: clamp(24px, 5vw, 60px); border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 21, 50, 0.62); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.channels { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.channels span { color: var(--muted); margin-right: 10px; }
.channels a { color: var(--cyan); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: #C9D2EC; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(7, 11, 25, 0.6); color: var(--text);
  font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: #0E1532; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(146, 117, 255, 0.22); }
.field [aria-invalid="true"] { border-color: #FF8FA8; }
.field-error { font-size: 0.85rem; color: #FFB1C1; }
.form-note { font: 400 0.75rem/1.5 var(--mono); color: var(--muted); }
.form-notice { padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(32, 213, 216, 0.45); background: rgba(32, 213, 216, 0.1); font-size: 0.95rem; }

/* Pie */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-line { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 0.9rem; }
.footer-nav a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-legal { font-size: 0.8rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-contact { display: none; }
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .f-app, .f-game { --y: 18px; }
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: span 3; }
  .tile-wide { grid-column: span 6; }
}
@media (max-width: 900px) {
  :root { --header-h: 80px; }
  .site-header { inset: 10px 0 auto 0; }
  .header-inner { height: 58px; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 0; cursor: pointer; }
  .main-nav {
    position: fixed; top: 78px; left: 12px; right: 12px; z-index: 49; margin: 0; padding: 12px 18px 20px; border-radius: 24px;
    background: #0E1532; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    display: flex; flex-direction: column; gap: 14px;
    visibility: hidden; opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top center;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .menu-open .main-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 12px 6px; border-radius: 12px; font-size: 1.15rem; color: var(--text); }
  .nav-contact-mobile { display: inline-flex; }
  .menu-open { overflow: hidden; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-wide { grid-column: auto; }
  .tile-wide { grid-template-columns: minmax(0, 1fr); }
  .tile-art { min-height: 150px; }
  .about-panel, .contact { grid-template-columns: minmax(0, 1fr); }
  .demos { grid-template-columns: minmax(0, 1fr); }
  /* Proceso en vertical */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 62px; }
  .steps::before, .steps::after { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--p)); }
  .step { text-align: left; }
  .step-num { position: absolute; left: -62px; top: 0; margin: 0; }
  .step h3 { padding-top: 10px; }
}
@media (max-width: 640px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stage { gap: 12px; }
  .float { padding: 10px; border-radius: 16px; }
  .float-head { font-size: 0.7rem; margin-bottom: 8px; }
  .mini-browser, .mini-phone, .mini-course, .mini-game { height: 92px; }
  .mini-phone { width: 70%; }
  .mg-opts i { width: 26px; height: 24px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .sol-grid { grid-template-columns: minmax(0, 1fr); }
  .tile-wide .tile-art { display: none; }
  .b1, .b2 { width: 130vw; height: 130vw; }
  .b3 { width: 140vw; height: 90vw; left: -20%; }
  .b4 { width: 80vw; height: 80vw; left: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .float { animation: none; }
  .js .section-head[data-reveal], .js .about-panel[data-reveal], .js .contact[data-reveal] { filter: none; transform: none; }
}
