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

/* ── Colors (BLUE THEME) ── */
:root {
  --bg: #0C0F14;
  --surface: #141A22;
  --accent: #4DA3FF;   /* navegación */
  --accent-dim: #102A4A;
  --road: #1A2430;
  --border: #223042;
  --text: #F2F6FF;
  --muted: #7D8CA3;
}



@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.7s ease-out both;
}




/* ── Base ── */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  position: relative;
}

/* ── Map background ── */
#map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.45;
}

#map-bg svg {
  width: 100%;
  height: 100%;
}

/* ── Content ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.6s ease-out both;
}

.logo-icon {
  width: 44px;
  height: 44px;
}

.logo-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.1;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ── Badge ── */
.badge {
    display: inline-block;

    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: rgba(77, 163, 255, 0.10);
    padding: 5px 14px;
    border-radius: 999px;

    border: 1px solid rgba(77, 163, 255, 0.45);

    animation: pulseGlow 2.8s ease-in-out infinite;
    will-change: transform, box-shadow, filter;
    animation: fadeUp 0.7s ease-out both;
}

/* glow más limpio + contraste con texto blanco */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(77, 163, 255, 0.25);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.015);
        box-shadow:
            0 0 10px rgba(77, 163, 255, 0.35),
            0 0 22px rgba(77, 163, 255, 0.18),
            0 0 38px rgba(77, 163, 255, 0.08);
        
        filter: brightness(1.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(77, 163, 255, 0);
        filter: brightness(1);
    }
}

/* ── Headline ── */
.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text);
  animation: fadeUp 0.9s ease-out both;
}

.headline em {
   
  font-style: normal;
  color: #4DA3FF;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 4px rgba(77,163,255,0.25);
}

/* ── Subhead ── */
.subhead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 400px;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1.1s ease-out both;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--nav); /* azul navegación */
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 76px;
}

.countdown-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent); /* azul navegación para número */
  line-height: 1;
  letter-spacing: -1px;
}

.countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted); /* gris suave */
  margin-top: 6px;
}

/* ── Divider dot ── */
.countdown-sep {
  font-size: 32px;
  color: var(--muted);
  align-self: center;
  opacity: 0.4;
}

/* ── Form ── */
.form-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.form-row input[type="email"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 0 16px;
  height: 48px;
  outline: none;
  transition: border-color 0.2s;
}

.form-row input[type="email"]::placeholder { color: var(--muted); }
.form-row input[type="email"]:focus { border-color: var(--accent); }

.form-row button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 0 22px;
  height: 48px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s;
}

.form-row button:hover { opacity: 0.88; }
.form-row button:active { transform: scale(0.97); }

/* ── Success ── */
.success-msg {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  padding: 12px 20px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.success-msg.visible { display: flex; }

/* ── Features ── */
.features {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}



@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Route animation (BLUE) ── */
.route-line {
  animation: dash 2s linear infinite;
  transform-origin: center;
}

@keyframes dash {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: -32; }
  100% { stroke-dashoffset: -64; }
}

/* ── Ping ── */
.ping {
  transform-origin: center;
  animation: ping 2.5s ease-out infinite;
}

.ping:nth-child(2) { animation-delay: 0.9s; }
.ping:nth-child(3) { animation-delay: 1.7s; }

@keyframes ping {
  0% { opacity: 0.7; transform: scale(1); }
  80% { opacity: 0; transform: scale(2.4); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* ── Character ── */
.character-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem; /* separación con el logo */
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 3;
}

 
/* ── Responsive ── */
@media (max-width: 500px) {
  .countdown-sep { display: none; }
  .form-row { flex-direction: column; }
  .form-row button { height: 44px; border-radius: 10px; }
  /*.character-wrap { display: none; } */
}

@media (prefers-reduced-motion: reduce) {
  .route-line, .ping ,  .character-wrap { animation: true; } 
}