:root {
--bg: #1801e8;
--fg: #e6feff;
--accent: #00aeff; /* aqua-ish caret */
--muted: #a2beff;
}


html, body { height: 100%; }


body {
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 100svh;
    background-color: var(--bg);
    color: var(--fg);
    text-shadow: 0 0 12px color-mix(in srgb, var(--fg) 30%, transparent);
    background: radial-gradient(1200px 800px at 50% -20%, #1c051d 20%, var(--bg) 55%); 
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


.wrap { 
    text-align: center; 
}


h1 {
margin: 0;
font-size: clamp(2rem, 6vw, 4rem);
font-weight: 700;
letter-spacing: 0.5px;
line-height: 1.25;
filter: drop-shadow(0 2px 12px rgba(127, 255, 212, 0.08));
white-space: pre-wrap; /* respetar saltos de línea */
}


.subtle { 
    color: var(--muted); font-weight: 600; 
    text-shadow: 0 0 12px color-mix(in srgb, var(--muted) 30%, transparent);

}

.not-subtle{
    color: var(--fg) !important;
    text-shadow: 0 0 12px color-mix(in srgb, var(--fg) 60%, transparent) !important;
}


/* Caret */
.caret {
display: inline-block;
width: 0.6ch;
translate: 0 0.1em;
border-bottom: 0.12em solid var(--accent);
animation: blink 1s steps(1, end) infinite;
}


@keyframes blink { 50% { opacity: 0; } }


@media (prefers-reduced-motion: reduce) { .caret { animation: none; } 


}


/* Suaviza el scroll en navegadores que lo soportan */
html { scroll-behavior: smooth; }

/* Contenedor hero debe ocupar toda la altura para que la flecha quede al borde */
.hero {
  min-height: 100svh; /* usa 100vh si prefieres */
  display: grid;
  place-items: center;
  position: relative;
  padding: 2rem;
}

/* Flecha fija en la parte baja del hero */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  border: none;
  background: rgba(0,0,0,0.35); /* ajusta si tienes fondo claro/oscuro */
  color: #fff;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
  opacity: 0.9;
}

/* Animación de “bote” suave */
@keyframes bounceY {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}
.scroll-down { animation: bounceY 1.8s ease-in-out infinite; }

.scroll-down:hover { background: rgba(0,0,0,0.5); }
.scroll-down:active { transform: translateX(-50%) scale(0.96); }

/* Respeta preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .scroll-down { animation: none; }
  html { scroll-behavior: auto; }
}
/* ===== Scroll tipo Apple (pantalla completa por sección) ===== */

/* Hace que el scroll encaje “pantalla a pantalla” */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Cada bloque ocupa toda la altura de la ventana */
.wrap,
section {
    min-height: 100svh;             /* pantalla completa */
    display: grid;
    place-items: center;            /* centra vertical y horizontal */
    scroll-snap-align: start;       /* encaje al inicio de cada sección */
    scroll-snap-stop: always;       /* se detiene exactamente ahí */
  
}


/* ===== Contador (pantalla 2) ===== */
#next {
  background: var(--bg);
  background: radial-gradient(1200px 800px at 50% -20%, #1c051d 20%, var(--bg) 55%) !important; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: var(--fg);
  text-align: center;
}

#next h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0;
}

.countdown {
  display: flex;
  gap: 1.5rem;
  font-family: monospace;
}

.countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(1.2rem, 4vw, 2rem);
}

.countdown span {
  font-weight: bold;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.countdown small {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}



/* ===== Countdown flip (versión con tus colores) ===== */
#next {
  background: var(--bg);
  display: flex;
  place-items: center;
  gap: 6rem;
  color: var(--fg);
  text-align: center;
}

#next h2 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 0;
  color: var(--accent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}

.countdown {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 1.4rem);
  align-items: flex-start;
}

.countdown .unit {
  display: grid;
  justify-items: center;
  gap: .6rem;
}

/* ----- Flip container ----- */
.flip {
  position: relative;
  width: clamp(70px, 12vw, 120px);
  height: clamp(90px, 14vw, 150px);
  perspective: 800px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 80%, var(--accent) 10%);
  box-shadow:
    0 0 25px color-mix(in srgb, var(--accent) 25%, transparent),
    0 10px 30px rgba(0,0,0,.4) inset,
    0 6px 28px rgba(0,0,0,.35);
}

/* Caras del flip */
.flip .front,
.flip .back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  letter-spacing: .04em;
  color: var(--fg);
  backface-visibility: hidden;
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Frente visible */
.flip .front {
  transform: rotateX(0deg);
}

/* Cara trasera preparada para el giro */
.flip .back {
  transform: rotateX(180deg);
}

/* Animación del flip */
.flip.animate .front {
  animation: flipFront 600ms ease forwards;
}
.flip.animate .back {
  animation: flipBack 600ms ease forwards;
}

/* Sutileza: fade si el número no cambia */
.flip.fade {
  animation: softFade 300ms ease;
}

/* ===== Animaciones ===== */
@keyframes flipFront {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(-180deg); }
}
@keyframes flipBack {
  0%   { transform: rotateX(180deg); }
  100% { transform: rotateX(0deg); }
}
@keyframes softFade {
  from { opacity: .6; filter: blur(2px); }
  to   { opacity: 1;  filter: blur(0); }
}

/* Etiquetas Days/Hours/... */
.countdown small {
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 0 8px color-mix(in srgb, var(--muted) 50%, transparent);
}

/* ===== Variante opuesta a .subtle ===== */
/* .not-subtle {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 10px color-mix(in srgb, var(--accent) 60%, transparent),
    0 0 25px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.not-subtle:hover {
  text-shadow:
    0 0 14px color-mix(in srgb, var(--accent) 80%, transparent),
    0 0 45px color-mix(in srgb, var(--accent) 60%, transparent);
  transform: scale(1.04);
} */

#third {
  min-height: 100svh;            /* ocupa pantalla completa */
  display: flex;
  flex-direction: column;        /* 🔹 coloca los hijos (h2, p, etc) uno debajo del otro */
  align-items: center;           /* 🔹 centra horizontalmente */
  justify-content: center;       /* 🔹 centra verticalmente */
  gap: 3rem;                   /* espacio entre h2 y p */
  text-align: center;
  background: radial-gradient(1000px 800px at 50% -20%, #210521 0%, var(--bg) 60%);
  color: var(--fg);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#third h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0;
}

#third p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  max-width: 55ch;
  margin-inline: auto;
  opacity: 0.9;
}

