/* ------------------------- */
/* Reset y estilos globales  */
/* ------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #f5f6fa; /* Fondo muy suave */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ------------------------- */
/* Contenedor principal       */
/* ------------------------- */
.container {
  text-align: center;
  animation: fadeIn 1s ease-in-out; /* Aparece con un fade-in */
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ------------------------- */
/* Logo                      */
/* ------------------------- */
.logo {
  max-width: 220px;
  width: 100%;
  margin-bottom: 20px; /* Más separación con la barra */
  animation: logoAppear 1s ease-in-out;
}

@keyframes logoAppear {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------- */
/* Contenedor de la barra     */
/* ------------------------- */
.progress-container {
  position: relative;
  width: 300px;              /* Ancho de la barra */
  height: 25px;              /* Altura de la barra */
  background-color: #e0e0e0; /* Gris claro */
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* ------------------------- */
/* Barra de progreso mejorada */
/* ------------------------- */
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(
    90deg,
    rgba(52, 152, 219, 1) 25%,
    rgba(41, 128, 185, 1) 50%,
    rgba(52, 152, 219, 1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  transition: width 0.2s ease-out;
}

/* Animación de “shimmer”: hace que el degradado se mueva */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ------------------------- */
/* Texto del porcentaje       */
/* ------------------------- */
#progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;             /* Blanco para sobre el degradado */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  pointer-events: none;       /* Que no interfiera con clics (aunque no sean necesarios) */
  animation: textPop 0.5s ease-out;
}

@keyframes textPop {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
