.hero-home {
  min-height: 100vh; /* Ocupa el 100% de la altura de la pantalla */
  display: flex;
  align-items: center;
  padding-top: 80px; /* Espacio para que el texto no choque con el menú */
  background-color: var(--bg-color); /* Fondo base blanco */
  overflow: hidden;
  position: relative;
}

.hero-grid div:first-child {
  opacity: 0;
  transform: translateX(-30px);
  animation: textFadeIn 1s ease-out forwards;
  animation-delay: 1.5s;
}

.hero-home h1{
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height:.95;
  color:#3a0e21;
  margin-bottom:18px;
  text-shadow:0 4px 10px rgba(0,0,0,.08);
}

.hero-home p{
  font-size:1.08rem;
  color:#6c7784;
  max-width:660px;
  margin-bottom:32px;
}

.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.hero-image {
  /* Imagen de fondo (asegúrate de que tenga una imagen) */
  background-image: url('img/foto_inicio.png'); 
  background-size: cover;
  background-position: center;
  
  /* Estado inicial: Pantalla completa */
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  border-radius: 0;
  
  /* Aplicamos la animación */
  animation: heroIntroPro 1.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 0.3s;
}

/* 2. El bloque de texto (H1, P y Botones) */
.hero-grid > div:first-child {
  opacity: 0; /* Invisible al inicio */
  transform: translateY(20px);
  
  /* ANIMACIÓN DEL TEXTO */
  animation: textFadeIn 1s ease-out forwards;
  
  /* CRUCIAL: El delay debe ser mayor a la duración de la imagen (1.8s + 0.3s) 
     Lo ponemos en 2.1s para que aparezca justo cuando la imagen se acomoda */
  animation-delay: 2.1s; 
}

@keyframes heroIntroPro {
  0% {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  100% {
    /* Estado final según tu diseño */
    position: relative;
    top: auto;
    left: auto;
    width: 100%; 
    height: 100%; /* Se adapta al contenedor del grid */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  }
}

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

/* Ajuste para que el grid no se rompa durante la animación */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 80vh; /* Altura mínima para mantener el espacio */
}

.page-hero{
  background:#f4f6f7;
  padding:88px 0;
  text-align:center;
}

.page-hero h1{
  font-family: Georgia, "Times New Roman", serif;
  color:#151b23;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height:1.1;
  margin-bottom:10px;
}

.breadcrumb{
  color:#788392;
  font-size:.95rem;
}

.breadcrumb span{
  color:var(--primary);
}

/* ================================================
   HERO ANIMATIONS — Agregar al final de style.css
   ================================================ */
   
/* === HERO HOME – Texto más compacto === */
.hero-home .hero-badge {
  font-size: 0.75rem;      /* antes ~1rem */
}

.hero-home h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);  /* reducido desde ~3.2rem */
  line-height: 1.15;
}

.hero-home .hero-line span {
  font-size: inherit;
}

.hero-home .hero-accent {
  font-size: inherit;
}

.hero-home .hero-tagline {
  font-size: 1rem;         /* antes 1.15rem */
}

.hero-home ul li {
  font-size: 0.9rem;       /* antes 0.98rem */
}

.hero-home .btn {
  font-size: 0.9rem;       /* ligeramente más pequeño */
  padding: 10px 22px;      /* algo menos de espacio */
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(188, 17, 97, 0.1);
  border: 1px solid rgba(188, 17, 97, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #bc1161;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #bc1161;
  border-radius: 50%;
  animation: heroPulseDot 2s ease-in-out 3s infinite;
}

/* H1 líneas reveladas */
.hero-home h1 .hero-line {
  display: block;
  overflow: hidden;
}

.hero-home h1 .hero-line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: heroRevealLine 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-home h1 .hero-line:nth-child(1) span { animation-delay: 2.3s; }
.hero-home h1 .hero-line:nth-child(2) span { animation-delay: 2.48s; }
.hero-home h1 .hero-line:nth-child(3) span { animation-delay: 2.64s; }

/* Palabra destacada con subrayado */
.hero-accent {
  color: var(--primary);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #bc1161, #ff5ba9);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: heroUnderlineReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) 3.1s forwards;
}

/* Tagline */
.hero-tagline {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.8s forwards;
}

/* Bullets */
.hero-home ul li {
  opacity: 0;
  transform: translateX(-16px);
  animation: heroFadeSlideRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-home ul li:nth-child(1) { animation-delay: 2.95s; }
.hero-home ul li:nth-child(2) { animation-delay: 3.1s; }
.hero-home ul li:nth-child(3) { animation-delay: 3.25s; }

/* Botones */
.hero-actions {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 3.4s forwards;
}

/* Shimmer en btn-primary */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-110%) skewX(-15deg);
  transition: transform 0.45s ease;
}

.btn-primary:hover::after {
  transform: translateX(150%) skewX(-15deg);
}

/* Orbe decorativo */
.hero-orb {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: heroOrbFloat 7s ease-in-out infinite;
  z-index: 0;
}

/* Keyframes */
@keyframes heroFadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeSlideRight {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes heroRevealLine {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroUnderlineReveal {
  to { transform: scaleX(1); }
}
@keyframes heroPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}
@keyframes heroOrbFloat {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%       { transform: translateY(calc(-50% - 22px)) scale(1.04); }
}