:root {
  --fondo: #1e1b2e;
  --fondo-tarjeta: #2a2640;
  --texto: #f2f0fa;
  --texto-suave: #b8b3d1;
  --acento: #f5b301;
  --acento-oscuro: #d99a00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #2f2a4a, var(--fondo) 70%);
  color: var(--texto);
  text-align: center;
}

.contenedor {
  width: 100%;
  max-width: 520px;
  padding: 48px 32px;
  background: var(--fondo-tarjeta);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Cinta de advertencia animada */
.icono {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--acento);
  display: flex;
  align-items: center;
}

.barra {
  display: block;
  width: 200%;
  height: 32px;
  background: repeating-linear-gradient(
    -45deg,
    var(--acento) 0 14px,
    #1a1a1a 14px 28px
  );
  animation: desplazar 1.5s linear infinite;
}

@keyframes desplazar {
  from { transform: translateX(-39.6px); }
  to   { transform: translateX(0); }
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 12px;
}

.subtitulo {
  font-size: 1.15rem;
  color: var(--acento);
  margin-bottom: 8px;
}

p {
  color: var(--texto-suave);
  line-height: 1.6;
}

.progreso {
  width: 100%;
  height: 12px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progreso-barra {
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, var(--acento-oscuro), var(--acento));
  border-radius: 999px;
}

.progreso-texto {
  margin-top: 8px;
  font-size: 0.9rem;
}

.boton {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 28px;
  background: var(--acento);
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.boton:hover,
.boton:focus-visible {
  background: var(--acento-oscuro);
  transform: translateY(-2px);
}

footer {
  margin-top: 24px;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .barra { animation: none; }
}

@media (max-width: 480px) {
  .contenedor { padding: 36px 20px; }
}
