/* ===== HERO ===== */
.hero-saluda {
  position: relative;
  height: 60vh;
  background: url('../images/hero/2201403guevejar1.2e16d0ba.fill-2500x1300-c100.jpg') center center / cover no-repeat;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: fadeInHero 1.2s ease forwards;
}

.hero-saluda .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
  animation: overlayPulse 8s ease-in-out infinite alternate;
}

.hero-saluda h1 {
  color: #ffffff;
  font-size: 2.8rem;
  text-shadow: 0 4px 18px rgba(173, 216, 230, 0.5);
  animation: fadeInDown 1.2s ease forwards;
}

.hero-saluda p {
  font-size: 1.15rem;
  color: #dbefff;
  opacity: 0.95;
  animation: fadeInUp 1.4s ease forwards;
}

/* ===== SECCIÓN PRINCIPAL ===== */
.saluda-section {
  background: linear-gradient(180deg, #0e0e0e 0%, #1b1b1b 60%, #222 100%);
  color: #f5f5f5;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
  animation: fadeIn 1.2s ease forwards;
}

/* Luz ambiental blanca–celeste animada */
.saluda-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 15%, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(173, 216, 230, 0.08) 30%, 
    transparent 80%
  );
  animation: lightMove 10s ease-in-out infinite alternate;
  z-index: 0;
}

/* ===== IMAGEN ALCALDESA ===== */
.foto-alcaldesa-elegante {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.imagen-con-degrade-oscuro {
  position: relative;
  display: inline-block;
}

.imagen-con-degrade-oscuro img.sin-fondo {
  max-width: 100%;
  height: auto;
  display: block;
  animation: floatUpDown 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.6));
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* ☁️ Bruma blanca con leve tono celeste */
.imagen-con-degrade-oscuro::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -10%;
  right: -10%;
  height: 160px;
  background: radial-gradient(
    circle at 50% 100%, 
    rgba(230, 245, 255, 0.6) 0%, 
    rgba(173, 216, 230, 0.3) 40%, 
    rgba(0, 0, 0, 0) 85%
  );
  filter: blur(40px);
  animation: fogWave 8s ease-in-out infinite alternate;
  z-index: 1;
}

/* ===== TARJETA DE SALUDO ===== */
.saluda-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(173, 216, 230, 0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  z-index: 2;
  transition: all 0.3s ease;
  animation: fadeInUp 1.5s ease forwards;
}

.saluda-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 45px rgba(173, 216, 230, 0.35);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInHero {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Luz que se mueve lentamente */
@keyframes lightMove {
  0% { background-position: 50% 15%; opacity: 0.8; }
  100% { background-position: 55% 25%; opacity: 1; }
}

/* Bruma que respira */
@keyframes fogWave {
  0% { transform: translateY(0); opacity: 0.9; }
  100% { transform: translateY(-10px); opacity: 0.7; }
}

/* Movimiento suave de la imagen */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Overlay del hero con pulso leve */
@keyframes overlayPulse {
  0% { opacity: 0.6; }
  100% { opacity: 0.75; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-saluda {
    height: 45vh;
  }
  .saluda-card {
    padding: 1.5rem;
  }
  .saluda-sign {
    text-align: center;
  }
}
