/* ==========================================
   Estilos Generales y Reset
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #f4f6f9;
  color: #1d3557; /* Azul oscuro corporativo */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* ==========================================
   Contenedor Principal (Tarjeta)
   ========================================== */
.maintenance-container {
  background-color: #ffffff;
  max-width: 620px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(29, 53, 87, 0.1);
  padding: 45px 35px;
  text-align: center;
  border-top: 6px solid #e63946; /* Rojo del Logo */
}

/* Encabezado y Logo */
.logo-header {
  margin-bottom: 35px;
}

.logo {
  max-width: 100%;
  height: auto;
  max-height: 30px;
  object-fit: contain;
}

/* Icono Animado de Mantenimiento */
.icon-container {
  margin-bottom: 25px;
}

.maintenance-icon {
  width: 70px;
  height: 70px;
  fill: #e63946; /* Rojo */
  animation: rotateGear 4s infinite linear;
}

@keyframes rotateGear {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Textos Principales */
h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 30px;
}

/* ==========================================
   Bloque de Contacto de Emergencia
   ========================================== */
.contact-box {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 25px 20px;
  border: 1px solid #e2e8f0;
}

.contact-box h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 10px;
}

.contact-box p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #64748b;
}

/* Grid de Botones Responsivo */
.buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Estilo Base de Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  fill: currentColor;
}

/* Botón WhatsApp */
.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1ebd54;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Botón Teléfono */
.btn-phone {
  background-color: #1d3557;
  color: #ffffff;
}

.btn-phone:hover {
  background-color: #112237;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 53, 87, 0.3);
}

/* ==========================================
   Pie de Página
   ========================================== */
.footer {
  margin-top: 40px;
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================
   Media Queries para Dispositivos Móviles
   ========================================== */
@media (max-width: 520px) {
  .maintenance-container {
    padding: 35px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .buttons-grid {
    grid-template-columns: 1fr; /* Una columna en celulares */
    gap: 12px;
  }

  .btn {
    padding: 14px 20px; /* Botones más grandes para pantallas táctiles */
  }
}
