@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fefae0;
  overflow: hidden;
}

#contenedor {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contenedor iframe {
  width: 100vw !important;
  height: 100vh !important;
  border: none;
  display: block;
}

/* Contenedor del timer (con o sin texto arriba/abajo) */
#pantalla-timer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5vw;
}

/* Timer */
#timer {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: 18vw;
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
  color: #fefae0;
  transition: color 0.3s ease, font-size 0.3s ease;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Cuando hay texto arriba y/o abajo, el timer cede espacio */
#pantalla-timer:has(.franja-texto.visible) #timer {
  font-size: 12vw;
}

/* Texto arriba / abajo del timer */
.franja-texto {
  display: none;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  font-size: 3.5vw;
  text-align: center;
  color: #fefae0;
  line-height: 1.25;
  width: 100%;
  padding: 0 3vw;
}

.franja-texto.visible {
  display: block;
}

.timer-warning {
  color: #f59e0b !important;
}

.timer-danger {
  color: #ef4444 !important;
  animation: blink 0.8s step-start infinite;
}

/* Tiempo negativo — sobretiempo */
.timer-negativo {
  color: #ff4444 !important;
  text-shadow: 0 0 60px rgba(255, 68, 68, 0.35);
  animation: pulso 1.8s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulso {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Pantalla de inicio */
#pantalla-inicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5vw;
  width: 100%;
  height: 100%;
}

.inicio-logo {
  width: clamp(120px, 18vw, 280px);
  opacity: 0.9;
  filter: brightness(1.1);
}

.inicio-subtitulo {
  font-size: clamp(1rem, 2.2vw, 2rem);
  color: #555;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

.inicio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  animation: dot-pulso 2s ease-in-out infinite;
}

@keyframes dot-pulso {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

/* Mensaje */
#mensaje {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 7vw;
  font-weight: 600;
  color: #ffdd57;
  text-align: center;
  width: 100%;
  padding: 4vw;
  line-height: 1.25;
  letter-spacing: -0.01em;
}