/**
 * ===================================================================
 * inicio.css
 * Estilos para la página principal (Dashboard). 
 * Diseño de imagen a pantalla completa con efecto de lluvia y zoom.
 * ===================================================================
 */

/* ================= DISEÑO HERO FULL ================= */
.hero-full {
  position: relative;
  width: 100%;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* --- Capa de Fondo --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0b1b2980; /* Color base por si la imagen tarda */
}

/* Imagen con animación de respiración lenta */
.bg-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gentleZoom 20s ease-in-out infinite alternate;
  object-position: center 20%;
}

@keyframes gentleZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Filtro oscuro estilo viñeta para resaltar la foto al centro y oscurecer las orillas */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11,27,41,0.3) 0%, rgba(11,27,41,0.75) 100%);
  z-index: 1;
}

/* --- Capa de Texto --- */
.hero-content {
  position: relative;
  z-index: 3; /* Asegura que el texto esté por encima de la lluvia */
  text-align: center;
  max-width: 850px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 12px; 
  font-weight: 600;
  color: #ffffff; 
  background: rgba(11, 27, 41, 0.45); 
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2); 
  padding: 8px 16px; 
  border-radius: 100px; 
  margin-bottom: 24px; 
}

.hero-tag .dot { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: var(--verde); 
  animation: blink 2s ease-in-out infinite; 
}

.hero-content h1 { 
  font-family: 'Fraunces', serif; 
  font-weight: 700; 
  font-size: clamp(38px, 5vw, 64px); 
  line-height: 1.15; 
  margin: 0;
  color: #ffffff;
  /* Sombra elegante y fuerte para que se lea siempre */
  text-shadow: 0px 4px 15px rgba(0,0,0,0.85), 0px 0px 6px rgba(0,0,0,0.6);
}

.hero-content h1 em { 
  font-style: normal; 
  color: #a8c7fa; 
}

.hero-content p { 
  font-size: 18px; 
  color: #ffffff; 
  max-width: 700px; 
  margin-top: 24px; 
  line-height: 1.6; 
  font-weight: 500;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.9);
}

/* --- Botones --- */
.hero-cta { 
  display: flex; 
  justify-content: center;
  gap: 16px; 
  margin-top: 36px; 
  flex-wrap: wrap; 
}

.btn { 
  padding: 14px 24px; 
  border-radius: 12px; 
  font-size: 15px; 
  font-weight: 600; 
  cursor: pointer; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  transition: all 0.3s ease;
}

.btn-primary { 
  background: var(--brand); 
  color: #fff; 
  border: 1px solid var(--brand);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.btn-glass { 
  background: rgba(11, 27, 41, 0.4); 
  border: 1px solid rgba(255, 255, 255, 0.3); 
  color: #ffffff; 
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- ESTILOS DE LA LLUVIA GENERADA POR JS --- */
.raindrop {
  position: absolute;
  bottom: 100%; 
  width: 2px;
  height: 80px;
  /* Gradiente blanco semi-transparente para parecer agua */
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.5));
  animation: fall linear infinite;
  z-index: 2; /* Arriba del overlay oscuro, abajo del texto */
}

@keyframes fall {
  to { transform: translateY(700px); }
}

/* ================= TARJETAS DE ESTADÍSTICAS ================= */
.stat-strip { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 16px; 
  margin-top: 40px; 
}

.stat { 
  background: var(--bg-elev); 
  border: 1px solid var(--line);
  padding: 24px; 
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat:hover { transform: translateY(-5px); border-color: var(--brand); }
.stat-icon { width: 32px; height: 32px; color: var(--brand); margin-bottom: 8px; }
.stat .n { font-family: 'IBM Plex Mono', monospace; font-size: 32px; font-weight: 600; color: var(--text-hi); line-height: 1; }
.stat .k { font-size: 13px; color: var(--text-mid); font-weight: 500; }
.stat.alert-card .stat-icon { color: var(--roja); }
.stat.alert-card .n.danger { color: var(--roja); }

/* ================= ANIMACIONES DE ENTRADA ================= */
@keyframes blink { 
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--verde); } 
  50% { opacity: .3; box-shadow: 0 0 0px var(--verde); } 
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }