/* --- REGLA DE ORO PARA RESPONSIVE --- */
/* Esto evita que el relleno (padding) ensanche la tarjeta más de la cuenta */
* {
  box-sizing: border-box;
}

/* Configuración base */
body {
  margin: 0;
  padding: 20px; /* Agregamos espacio alrededor para que no toque los bordes en móvil */
  font-family: "Poppins", sans-serif;
  background-color: #f3f4f6;
  min-height: 100vh; /* Usamos min-height para que no se corte si el contenido es largo */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* La tarjeta verde */
.card-reddi {
  background-color: #04bd88;
  width: 100%; /* Ocupa todo el ancho disponible */
  max-width: 500px; /* Pero detente si llegas a 500px (tamaño escritorio) */
  border-radius: 30px;
  padding: 3rem 2.5rem; /* Relleno amplio en escritorio */
  text-align: center;
  color: white;
  position: relative;
  box-shadow: 0 20px 40px rgba(4, 189, 136, 0.25);
  overflow: hidden;

  /* Centrar la tarjeta si el body tiene flex */
  margin: 0 auto;
}

/* Decoración de fondo */
.decoration {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

/* Estilo del Logo (BLANCO) */
.logo-app {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1); /* Logo blanco */
  animation: bounce 2s infinite;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.95;
}

p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* La barra blanca */
.status-bar {
  background-color: white;
  border-radius: 12px;
  padding: 12px 15px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-bar span {
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left; /* Asegura que el texto no se centre raro en móvil */
  white-space: nowrap; /* Evita que el texto salte de línea */
  overflow: hidden;
  text-overflow: ellipsis; /* Pone "..." si el texto es muy largo */
}

.loader-icon svg {
  stroke: #04bd88;
  min-width: 20px; /* Evita que el icono se aplaste */
  animation: spin 1.5s linear infinite;
}

/* Animaciones */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- VISTA MÓVIL (Aquí está la solución a tu problema) --- */
@media (max-width: 480px) {
  .card-reddi {
    padding: 2.5rem 1.5rem; /* Reducimos el relleno lateral */
    border-radius: 20px; /* Bordes un poco menos redondos en móvil */
  }

  .logo-app {
    width: 80px; /* Logo un poco más pequeño */
  }

  h1 {
    font-size: 2rem; /* Título más pequeño */
  }

  h2 {
    font-size: 1rem;
  }

  p {
    font-size: 0.85rem;
  }
}
