.hero-section.page-header {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(24, 20, 14, 0.66), rgba(24, 20, 14, 0.35)),
    url('../../img/Heroabuelos.png') center / cover no-repeat;
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}
/*animacion de palpitacion para el hero*/
@keyframes heroPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}
.hero-section .hero-highlight-card {
  max-width: 380px;
  border-radius: 0;
  background: #BFB636;
  color: #5e807d;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 20px 40px rgba(24, 18, 9, 0.3);
  animation: heroFadeIn 0.9s ease;

  position: relative;
  overflow: visible; /* ⭐ permite salir */
   animation: heroPulse 6s ease-in-out infinite;
}

/* ===== TITULO QUE ROMPE EL CUADRO ===== */

.hero-title {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;       /* más ancho que el cuadro */
  max-width: 90vw;

  margin-top: 1.5rem;
  margin-bottom: 1rem;

  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

/* ===== SUBTEXTO TAMBIÉN SE SALE ===== */

.hero-subtitle {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  max-width: 85vw;
  font-weight: 600;
}

.hero-section .hero-highlight-card h1 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
}

.hero-section .hero-highlight-card p {
  line-height: 1.6;
}

.hero-section .hero-badge {
  display: inline-grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.hero-section .hero-action {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-section .hero-action:hover,
.hero-section .hero-action:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(94, 128, 125, 0.18);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@media (max-width: 991px) {
  .hero-section.page-header {
    min-height: 84vh;
  }
}
