/* Variables de color y tipografía */
:root {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --card-bg: rgba(30, 41, 59, 0.7);
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.35);
  --accent: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Fondo decorativo con patrón sutil */
.background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  z-index: 1;
}

/* Contenedor principal */
.container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 540px;
  padding: 20px;
}

/* Tarjeta Glassmorphism */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 0 80px rgba(56, 189, 248, 0.1);
}

/* Animación de Engranajes y Cono */
.animation-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear {
  position: absolute;
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.gear-outer {
  width: 90px;
  height: 90px;
  top: 5px;
  left: 5px;
  animation: rotateClockwise 10s linear infinite;
}

.gear-inner {
  width: 55px;
  height: 55px;
  bottom: 10px;
  right: 10px;
  color: var(--accent);
  animation: rotateCounterClockwise 6s linear infinite;
}

.cone {
  position: absolute;
  width: 32px;
  height: 32px;
  color: #f97316;
  z-index: 3;
  animation: floatCone 3s ease-in-out infinite;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes floatCone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Badge indicativo */
.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Textos */
.title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Barra de progreso */
.progress-container {
  margin-bottom: 28px;
  text-align: left;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.percentage {
  color: var(--primary);
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 85%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, var(--primary));
  border-radius: 10px;
  position: relative;
  animation: pulseGlow 2s infinite ease-in-out;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px var(--primary)); }
}

/* Footer / Nota */
.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.footer-note a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-note a:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

/* Responsivo */
@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
  }
  .title {
    font-size: 1.5rem;
  }
}