/* ==========================================================================
   AMERIHACK · Innovation Hack UA 2026 — Landing
   Paleta oficial (KV): Azul acero #094383 · Naranja #FB7C0D
   Ámbar #FFB401 · Azul profundo #00234F · Blanco #FFFEFE
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --orange: #FB7C0D;
  --orange-2: #FF6B1A;
  --amber: #FFB401;
  --blue: #094383;
  --blue-deep: #00234F;
  --navy: #071a35;
  --ink: #0b1f3d;
  --white: #FFFEFE;
  --muted: #9fb2d1;
  --card: rgba(255, 255, 255, 0.04);
  --card-brd: rgba(159, 178, 209, 0.16);
  --glass: rgba(9, 25, 51, 0.72);
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.7);
  --shadow-orange: 0 16px 40px -12px rgba(251, 124, 13, 0.55);
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Global tech background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 85% -5%, rgba(251, 124, 13, 0.16), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(9, 67, 131, 0.55), transparent 55%),
    linear-gradient(180deg, #061633 0%, #071a35 40%, #05122a 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(159, 178, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 178, 209, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }

.section { padding: clamp(2.8rem, 5vw, 4.5rem) 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(255, 180, 1, 0.35);
  border-radius: 999px;
  background: rgba(255, 180, 1, 0.06);
}
.eyebrow::before { content: "</>"; font-family: var(--font-pixel); font-size: 0.6rem; color: var(--orange); }

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.1;
  margin: 1rem 0 0.9rem;
  letter-spacing: -0.5px;
}
.section-title .hl { color: var(--orange); }
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

.section-head { text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.92rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -12px rgba(251, 124, 13, 0.7); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--card-brd);
  color: var(--white);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--orange); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 0.9rem 0;
  background: var(--white);
}
.nav.scrolled {
  background: var(--white);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(11, 31, 61, 0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.9rem; }
.nav-menu > a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
}
.nav-menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s var(--ease);
}
.nav-menu > a:not(.btn):hover, .nav-menu > a.active { color: var(--blue); }
.nav-menu > a:not(.btn):hover::after, .nav-menu > a.active::after { width: 100%; }
/* botón de preinscribirme dentro del menú: oculto en desktop, visible en móvil */
.nav-menu .btn { display: none; }
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: clamp(7.5rem, 15vw, 10rem) 0 clamp(3rem, 7vw, 5rem); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 180, 1, 0.1);
  border: 1px solid rgba(255, 180, 1, 0.3);
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin-bottom: 1.1rem;
}
.hero-logo {
  display: block;
  width: clamp(20rem, 42vw, 32rem);
  height: auto;
  max-width: 100%;
  margin-inline: auto;
}
.hero-title .sub { display: block; font-size: clamp(1rem, 2.6vw, 1.6rem); font-weight: 600; color: var(--muted); letter-spacing: 0.5px; margin-top: 0.6rem; text-align: center; }
.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: #dbe6fa;
  max-width: 520px;
  margin-bottom: 1.7rem;
}
.hero-tagline b { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.hero-meta-item { display: flex; align-items: center; gap: 0.7rem; }
.hero-meta-item .ic {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(251, 124, 13, 0.14);
  border: 1px solid rgba(251, 124, 13, 0.3);
  color: var(--orange);
}
.hero-meta-item .ic svg { width: 20px; height: 20px; }
.hero-meta-item small { display: block; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-meta-item strong { font-size: 0.98rem; }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-glow {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 124, 13, 0.5), transparent 65%);
  filter: blur(28px);
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}
/* anillo orbital detrás del robot */
.hero-orbit {
  position: absolute;
  width: 96%; aspect-ratio: 1;
  border: 1px dashed rgba(159,178,209,0.28);
  border-radius: 50%;
  z-index: 1;
  animation: spin 26s linear infinite;
}
.hero-orbit::before {
  content: "";
  position: absolute; inset: 14%;
  border: 1px dashed rgba(251,124,13,0.28);
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-robot { position: relative; z-index: 3; width: min(100%, 420px); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Chips flotantes "llamativos" con dato/valor */
.hero-chip {
  position: absolute;
  z-index: 4;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.95rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  animation: float 4.5s ease-in-out infinite;
}
.hero-chip .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; }
.hero-chip .ic svg { width: 18px; height: 18px; }
.hero-chip .tx { line-height: 1.15; }
.hero-chip .tx b { display: block; font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; }
.hero-chip .tx small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hero-chip.c1 { top: 6%; left: -6%; }
.hero-chip.c1 .ic { background: linear-gradient(140deg,var(--amber),#ff9a00); color: var(--blue-deep); }
.hero-chip.c2 { top: 44%; right: -9%; animation-delay: 1s; }
.hero-chip.c2 .ic { background: linear-gradient(140deg,var(--orange),var(--orange-2)); }
.hero-chip.c3 { bottom: 4%; left: 2%; animation-delay: 2s; }
.hero-chip.c3 .ic { background: linear-gradient(140deg,var(--blue),#2f6fd0); }

/* Countdown */
.countdown { display: flex; gap: 0.7rem; margin-top: 1.8rem; }
.cd-box {
  min-width: 66px;
  text-align: center;
  padding: 0.7rem 0.4rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-brd);
}
.cd-box .num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--orange); line-height: 1; }
.cd-box .lbl { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-top: 0.35rem; }

/* ---------- Aliados strip ---------- */
.allies { padding: 2.2rem 0; border-block: 1px solid rgba(11,31,61,0.12); background: var(--white); }
.allies-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem); }
.allies span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.allies img { width: auto; opacity: 0.9; transition: opacity 0.3s; }
.allies .logo-americana { height: 45px; }
.allies .logo-edutainment { height: 30px; }
.allies img:hover { opacity: 1; }
.allies .divider { width: 1px; height: 30px; background: rgba(11,31,61,0.25); }

/* ==========================================================================
   CARDS grid genérico
   ========================================================================== */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.mobile-pre-cta { display: none; }

.card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 1.9rem;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(251,124,13,0.08), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(251,124,13,0.5); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .num-badge {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: var(--orange);
  background: rgba(251,124,13,0.12);
  border: 1px solid rgba(251,124,13,0.3);
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card .card-ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(251,124,13,0.2), rgba(9,67,131,0.2));
  border: 1px solid var(--card-brd);
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.card .card-ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- ¿Qué es? split ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-visual { position: relative; display: grid; place-items: center; }
.about-visual .blob { position: absolute; width: 80%; aspect-ratio: 1; background: radial-gradient(circle, rgba(9,67,131,0.6), transparent 65%); filter: blur(30px); }
.about-visual img { position: relative; z-index: 2; width: min(100%, 360px); animation: float 5.5s ease-in-out infinite; }
.about-text p { color: #cdd9ef; margin-bottom: 1.1rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.stat {
  text-align: center;
  padding: 1.1rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-brd);
}
.stat .k { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--orange); }
.stat .v { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 0.25rem; }

/* ---------- Líneas temáticas ---------- */
.line-card { padding-top: 2.4rem; }
.line-card .line-no {
  position: absolute; top: 1.2rem; right: 1.5rem;
  font-family: var(--font-pixel);
  font-size: 1.9rem;
  color: rgba(251,124,13,0.25);
}
.line-card .tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.7rem; }

/* ---------- Proceso (2 etapas) ---------- */
.etapas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-bottom: 1.4rem; }
.etapa { padding: 2rem; }
.etapa .step-lbl { font-family: var(--font-pixel); font-size: 0.8rem; color: var(--orange); margin-bottom: 0.9rem; }
.criterios-box {
  border: 1px dashed rgba(251,124,13,0.4);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem;
  background: rgba(251,124,13,0.05);
}
.criterios-box h4 { color: var(--amber); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { font-size: 0.85rem; padding: 0.45rem 0.95rem; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-brd); }

/* ---------- Cronograma / timeline ---------- */
.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.timeline { position: relative; max-width: 780px; margin-inline: auto; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--orange), var(--blue));
}
.tl-item { position: relative; padding: 0 0 1.8rem 60px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 11px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--orange);
  box-shadow: 0 0 0 4px rgba(251,124,13,0.15);
}
.tl-item.hl .tl-dot { background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.tl-date { font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: 1.02rem; }
.tl-title { color: #dbe6fa; font-size: 0.98rem; }
.timeline-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.timeline-visual-glow {
  position: absolute;
  width: 88%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 124, 13, 0.34), transparent 68%);
  filter: blur(22px);
}
.timeline-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.42));
  animation: float 5.5s ease-in-out infinite;
}

@media (max-width: 760px) {
  .timeline-layout { grid-template-columns: 1fr; gap: 2rem; }
  .timeline-visual { min-height: 260px; }
  .timeline-visual img { width: min(82%, 330px); }
}

/* ---------- Criterios de evaluación (bars) ---------- */
.eval-wrap { max-width: 760px; margin-inline: auto; }
.eval-row { margin-bottom: 1.25rem; }
.eval-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.eval-top span { font-weight: 600; font-size: 0.98rem; }
.eval-top b { font-family: var(--font-head); color: var(--orange); font-size: 1.05rem; }
.eval-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.eval-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--amber)); transition: width 1.2s var(--ease); }

/* ---------- IA / feature list ---------- */
.split-visual { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.split-visual .imgcol { position: relative; display: grid; place-items: center; }
.split-visual .imgcol .blob { position: absolute; width: 78%; aspect-ratio:1; background: radial-gradient(circle, rgba(251,124,13,0.35), transparent 65%); filter: blur(30px); }
.split-visual .imgcol img { position: relative; z-index: 2; width: min(100%, 320px); animation: float 5s ease-in-out infinite; }
.feat-list { display: grid; gap: 1rem; }
.feat {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-brd);
  transition: border-color 0.3s, transform 0.3s;
}
.feat:hover { border-color: rgba(251,124,13,0.5); transform: translateX(4px); }
.feat .fic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(251,124,13,0.14); color: var(--orange); border: 1px solid rgba(251,124,13,0.25); }
.feat .fic svg { width: 20px; height: 20px; }
.feat h4 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.feat p { color: var(--muted); font-size: 0.9rem; }
.ia-tools { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.ia-tools .chip { background: rgba(9,67,131,0.3); border-color: rgba(47,111,208,0.4); }

/* ---------- Premiación ---------- */
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.prize {
  text-align: center;
  padding: 2.2rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(9,67,131,0.35), rgba(6,17,37,0.4));
  border: 1px solid var(--card-brd);
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.prize:hover { transform: translateY(-6px); border-color: var(--amber); box-shadow: 0 20px 50px -20px rgba(255,180,1,0.5); }
.prize .star { font-size: 1.6rem; color: var(--amber); }
.prize .prize-line { font-size: 0.95rem; color: #dbe6fa; margin: 0.6rem 0 1rem; min-height: 3em; }
.prize .amount { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--orange); }
.prize .amount small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.rewards-banner {
  margin-top: 1.6rem;
  border-radius: var(--radius);
  padding: 1.8rem;
  background: rgba(255,180,1,0.06);
  border: 1px solid rgba(255,180,1,0.3);
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
}
.rewards-banner .rb-robot { width: 120px; }
.rewards-banner h4 { color: var(--amber); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.8rem; }
.rewards-banner .chips .chip { background: rgba(255,180,1,0.08); border-color: rgba(255,180,1,0.3); }
.rewards-banner .horas { margin-top: 1rem; font-weight: 600; color: #fff; }
.rewards-banner .horas b { color: var(--amber); }

/* ---------- Resumen / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.step-card { padding: 1.7rem; position: relative; }
.step-card .sc-no {
  font-family: var(--font-pixel); font-size: 1rem;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--orange), var(--orange-2));
  color: #fff; margin-bottom: 1rem;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item { border: 1px solid var(--card-brd); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(251,124,13,0.5); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: #fff; cursor: pointer; padding: 1.25rem 1.4rem; font-size: 1.02rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-body); }
.faq-q .plus { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--orange); border-radius: 2px; transition: transform 0.3s; }
.faq-q .plus::before { top: 12px; left: 4px; width: 18px; height: 2px; }
.faq-q .plus::after { left: 12px; top: 4px; width: 2px; height: 18px; }
.faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Mentorías ---------- */
.mentor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ==========================================================================
   FORMULARIO DE PREINSCRIPCIÓN
   ========================================================================== */
.form-wrap { max-width: 780px; margin-inline: auto; }
.form-downloads {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.btn-download {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(135deg, rgba(9,67,131,0.9), rgba(0,35,79,0.95));
  border-color: rgba(251,124,13,0.55);
  box-shadow: 0 12px 28px -18px rgba(251,124,13,0.9), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-download .download-ic {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--amber);
}
.btn-download::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}
.btn-download:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(9,67,131,1), rgba(251,124,13,0.28));
  box-shadow: 0 18px 34px -18px rgba(251,124,13,0.9);
}
.form-downloads .btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}
.form-downloads .btn {
  justify-content: center;
}
.pre-form {
  background: linear-gradient(180deg, rgba(9,67,131,0.28), rgba(6,17,37,0.4));
  border: 1px solid var(--card-brd);
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: #dbe6fa; }
.field label .req { color: var(--orange); }
.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-brd);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input::placeholder { color: #6f83a6; }
.field input:focus { outline: none; border-color: var(--orange); background: rgba(251,124,13,0.06); box-shadow: 0 0 0 3px rgba(251,124,13,0.15); }
.field input.invalid { border-color: #ff5a5a; box-shadow: 0 0 0 3px rgba(255,90,90,0.15); }
.field .err-msg { font-size: 0.78rem; color: #ff7676; min-height: 1em; }

/* Dropzone de archivos */
.dropzone {
  position: relative;
  border: 1.5px dashed rgba(251,124,13,0.45);
  border-radius: 16px;
  background: rgba(251,124,13,0.04);
  padding: 1.6rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--orange); background: rgba(251,124,13,0.1); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-ic { width: 46px; height: 46px; margin: 0 auto 0.6rem; display: grid; place-items: center; border-radius: 12px; background: rgba(251,124,13,0.15); color: var(--orange); }
.dropzone .dz-ic svg { width: 24px; height: 24px; }
.dropzone p { color: #dbe6fa; font-size: 0.95rem; margin-bottom: 0.2rem; }
.dropzone p b { color: var(--orange); }
.dropzone small { color: var(--muted); font-size: 0.78rem; }

.file-list { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.file-list li {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-brd);
  font-size: 0.88rem;
}
.file-list li .fl-ic { flex: none; color: var(--orange); display: grid; place-items: center; }
.file-list li .fl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li .fl-size { color: var(--muted); font-size: 0.78rem; flex: none; }
.file-list li .fl-del { flex: none; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 0.2rem; transition: color 0.2s; }
.file-list li .fl-del:hover { color: #ff5a5a; }

.form-foot { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.form-foot .btn { min-width: 220px; justify-content: center; }
.form-status { font-size: 0.92rem; font-weight: 600; }
.form-status.ok { color: #46d68a; }
.form-status.error { color: #ff7676; }
.form-status .spinner {
  display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.form-note { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }
.terms-field { margin-top: 0.4rem; }
.terms-label { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; color: #dbe6fa; font-size: 0.92rem; }
.terms-label input { width: 18px; height: 18px; flex: none; margin-top: 0.2rem; accent-color: var(--orange); cursor: pointer; }
.terms-field .err-msg { display: block; margin-left: 1.7rem; }

/* Mensaje de éxito */
.form-success {
  text-align: center;
  padding: clamp(2rem,5vw,3rem);
}
.form-success .fs-ic {
  width: 78px; height: 78px; margin: 0 auto 1.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(70,214,138,0.15); border: 2px solid #46d68a; color: #46d68a;
}
.form-success .fs-ic svg { width: 40px; height: 40px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); max-width: 440px; margin: 0 auto 1.4rem; }

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(130deg, var(--blue-deep), var(--blue));
  border: 1px solid rgba(251,124,13,0.3);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 10% 10%, rgba(251,124,13,0.3), transparent 60%),
    radial-gradient(600px 300px at 90% 90%, rgba(255,180,1,0.25), transparent 60%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.1; margin-bottom: 1rem; }
.cta p { color: #d7e3f8; max-width: 560px; margin: 0 auto 2rem; font-size: 1.08rem; }
.cta .hero-actions { justify-content: center; margin: 0; }
.cta-robot { position: absolute; right: 3%; bottom: -8%; width: 180px; z-index: 1; opacity: 0.9; }

/* ---------- Footer ---------- */
.footer { padding: 3.5rem 0 2rem; border-top: 1px solid rgba(11,31,61,0.12); margin-top: 4rem; background: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand img { height: 34px; margin-bottom: 1rem; }
.footer-brand p { color: #4a4a4a; font-size: 0.92rem; max-width: 320px; }
.footer-col h5 { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: #4a4a4a; margin-bottom: 1rem; }
.footer-col a, .footer-col li { display: block; color: #4a4a4a; font-size: 0.92rem; margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-allies { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-allies img { opacity: 0.85; }
.footer-allies .logo-americana { height: 45px; }
.footer-allies .logo-edutainment { height: 25px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid rgba(0,0,0,0.15); color: #4a4a4a; font-size: 0.85rem; }
.footer-bottom .socials { display: flex; gap: 0.7rem; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(0,0,0,0.25); color: #4a4a4a; transition: 0.25s; }
.footer-bottom .socials a:hover { color: var(--orange); border-color: var(--orange); transform: translateY(-3px); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(140deg, var(--orange), var(--orange-2));
  border: 0; cursor: pointer; color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-orange);
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: 0.3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   REVEAL ON SCROLL (efecto de aparición al bajar)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.98);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* variantes direccionales */
.reveal-left { opacity: 0; transform: translateX(-46px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(46px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal-right.in { opacity: 1; transform: none; }
/* stagger delays */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-robot { width: min(72%, 320px); }
  .hero-actions, .hero-meta, .countdown { justify-content: center; }
  .hero-tagline { margin-inline: auto; }
  .about-grid, .split-visual { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .split-visual .imgcol { order: 1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 64px 12px auto 12px;
    background: rgba(6,19,40,0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-brd);
    border-radius: 18px;
    padding: 1.2rem;
    flex-direction: column; gap: 0.3rem;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: 0.3s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > a:not(.btn) { padding: 0.75rem 0.6rem; border-radius: 10px; color: var(--white); }
  .nav-menu > a:not(.btn):hover { background: rgba(251,124,13,0.12); }
  .nav-menu .btn { display: inline-flex; margin-top: 0.6rem; justify-content: center; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .etapas, .prize-grid, .steps, .mentor-grid, .stat-row, .form-grid { grid-template-columns: 1fr; }
  .mobile-pre-cta { display: flex; justify-content: center; margin-top: 1.8rem; }
  .mobile-pre-cta .btn { padding: 0.68rem 1.15rem; font-size: 0.86rem; }
  .form-downloads { flex-direction: column; }
  .btn-download { width: 100%; }
  .rewards-banner { grid-template-columns: 1fr; text-align: center; }
  .rewards-banner .rb-robot { margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-robot { display: none; }
  .hero-visual { min-height: 250px; }
  .hero-robot { width: min(76%, 290px); }
  .hero-chip { display: none; }
  .about-visual img { width: min(72%, 280px); }
  .reveal-left, .reveal-right { transform: translateY(32px); }
}

@media (max-width: 420px) {
  .countdown { flex-wrap: wrap; }
  .cd-box { min-width: 60px; }
  .btn { width: 100%; justify-content: center; }
  .mobile-pre-cta .btn { width: auto; }
  .form-foot .btn { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001s !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
