/**
 * BIRBUET - Propiedad Intelectual
 * Hero Slider Stylesheet
 * Transiciones cinematográficas, fondos crossfade y textos fluidos con botones persistentes
 */

/* Hero Section Wrapper */
.hero-slider-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-navy-dark, #0B2538);
}

/* Background Slides Container */
.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 6s cubic-bezier(0.25, 1, 0.5, 1),
              visibility 1.2s ease;
  z-index: 1;
}

.hero-bg-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.06) contrast(1.02);
}

/* Dark Overlays for Optimal Legibility (30% más claro / luminoso) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 37, 56, 0.48) 0%, rgba(13, 13, 13, 0.38) 100%);
  z-index: 3;
}

/* Hero Content Area & Glassmorphism Box */
.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max, 1280px);
  padding: 0 var(--margin-mobile, 20px);
  margin-top: 4rem; /* Offset for header */
}

@media (min-width: 768px) {
  .hero-content-wrapper {
    padding: 0 var(--margin-desktop, 64px);
    margin-top: 2rem;
  }
}

.hero-glass-card {
  max-width: 660px;
  background-color: rgba(11, 37, 56, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.25rem 2rem;
  border-radius: 0px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}

@media (min-width: 768px) {
  .hero-glass-card {
    padding: 3.25rem 3rem;
  }
}

/* Dynamic Slide Text Items */
.hero-text-slider {
  position: relative;
  min-height: 260px; /* Preserve height to prevent jump */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .hero-text-slider {
    min-height: 310px;
  }
}

.hero-text-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.6s ease;
  transform: translateY(16px);
  pointer-events: none;
}

.hero-text-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-gold-light);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .slide-title {
    font-size: 3.25rem;
  }
}

.slide-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 500px;
}

@media (min-width: 768px) {
  .slide-description {
    font-size: 1.125rem;
  }
}

/* Persistent Action Buttons (Do NOT move or change on slide switch) */
.hero-fixed-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 5;
}

@media (min-width: 640px) {
  .hero-fixed-actions {
    flex-direction: row;
    gap: 1.25rem;
  }
}

/* Slider Controls & Pagination */
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.slider-pagination-dots {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.slider-bullet {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.slider-bullet::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.slider-bullet.active {
  color: var(--color-gold-light);
}

.slider-bullet.active::after {
  width: 36px;
  background-color: var(--color-gold-light);
}

.slider-arrows {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-arrow-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-arrow-btn:hover {
  background: var(--color-gold-light);
  color: var(--color-primary);
  border-color: var(--color-gold-light);
}
