/* ========================================
   HERO ANIVERSARIO SLIDER - SEPTIEMBRE 2024
   SIN INDICADORES NI BARRA DE PROGRESO
   ======================================== */

/* Hero Container */
.hero-anniversary {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8f9fa;
  margin-bottom: 0;
}

/* Slider Container - ASPECT RATIO 16:9 PARA TODOS */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  line-height: 0;
  font-size: 0;
}

/* Fallback para navegadores antiguos */
@supports not (aspect-ratio: 16 / 9) {
  .hero-slider::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 9/16 = 0.5625 */
  }
  
  .hero-slider {
    position: relative;
  }
  
  .hero-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

/* Slides */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Slide Images - COVER PARA LLENAR TODO */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  vertical-align: top;
}

/* Content Overlay - CENTRADO EN LA PARTE INFERIOR */
.hero-anniversary-content {
  position: absolute;
  bottom: 250px !important; /* Más espacio sin indicadores */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 800px;
  padding: 20px;
}

/* CTA Button */
.hero-anniversary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #B8860B, #D4A574);
  color: white;
  padding: 18px 45px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
  animation: pulse 2s infinite;
}

/* HOVER MANTENIENDO TEXTO BLANCO */
.hero-anniversary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(184, 134, 11, 0.5);
  background: linear-gradient(135deg, #D4A574, #B8860B);
  color: white !important;
}

/* Texto responsive del botón */
.btn-text-mobile {
  display: none;
}

.btn-text-desktop {
  display: inline;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Navigation Arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: white;
  font-size: 20px;
}

.hero-nav:hover {
  background: rgba(184, 134, 11, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
  left: 30px;
}

.hero-nav.next {
  right: 30px;
}

.hero-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ajuste para navbar fijo */
.hero-anniversary {
  padding-top: var(--navbar-height, 0);
}

@media (max-width: 768px) {
  .hero-anniversary {
    padding-top: var(--navbar-height-mobile, 0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Mantener aspect ratio 16:9 en móvil */
  .hero-slider {
    aspect-ratio: 16 / 9;
  }
  
  .hero-slide img {
    object-fit: cover;
  }
  
  /* Ajustar botón CTA en móvil */
  .hero-anniversary-content {
    bottom: 60px !important; /* Centrado sin indicadores */
    width: 95%;
    padding: 15px;
  }
  
  .hero-anniversary-btn {
    padding: 14px 28px;
    font-size: 14px;
  }
  
  /* TEXTO RESPONSIVE EN MÓVIL */
  .btn-text-mobile {
    display: inline;
  }
  
  .btn-text-desktop {
    display: none;
  }
  
  /* Flechas más pequeñas en móvil */
  .hero-nav {
    width: 40px;
    height: 40px;
  }
  
  .hero-nav.prev {
    left: 15px;
  }
  
  .hero-nav.next {
    right: 15px;
  }
  
  .hero-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-anniversary-content {
    bottom: 40px !important;
  }
  
  .hero-anniversary-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  .hero-nav {
    width: 36px;
    height: 36px;
  }
  
  .hero-nav.prev {
    left: 10px;
  }
  
  .hero-nav.next {
    right: 10px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-anniversary-content {
    bottom: 120px !important;
  }
  
  .hero-anniversary-btn {
    padding: 16px 40px;
    font-size: 17px;
  }
}

/* Desktop Grande */
@media (min-width: 1440px) {
  .hero-anniversary-content {
    bottom: 250px !important;
  }
  
  .hero-anniversary-btn {
    padding: 20px 50px;
    font-size: 19px;
  }
}

/* Preload Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-slide.active img {
  animation: fadeIn 1.5s ease-out;
}

/* Disable on print */
@media print {
  .hero-anniversary {
    display: none;
  }
}

/* ========================================
   MÁSCARA DECORATIVA - SOLUCIÓN BARRA BLANCA
   ======================================== */
.hero-anniversary::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #f8f9fa;
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-anniversary::after {
    height: 40px;
  }
}