/* ==========================================================================
   Hero CSS - Slider Revolution Replica matching Original Layout (Image 1)
   ========================================================================== */

.hero-slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 700px;
  background-color: #0c0c0c;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

/* Dark Background Image */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.05);
  transition: transform 6s ease-out;
  filter: brightness(0.65);
}

.slide.active .slide-bg {
  transform: scale(1);
}

/* Slide Overlay Darkener */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

/* Slide Content Container */
.slide-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  padding: 0 20px;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Red Script Cursive Text ("Desde 1989 Cocinando para ti") */
.layer-script-line1 {
  font-family: 'Meddon', cursive;
  font-size: 4.8rem;
  color: var(--cresta-red);
  line-height: 1.1;
  margin-bottom: -15px;
  transform: rotate(-3deg);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.layer-script-line2 {
  font-family: 'Meddon', cursive;
  font-size: 4.5rem;
  color: var(--cresta-red);
  line-height: 1.1;
  margin-bottom: 10px;
  transform: rotate(-2deg);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.slide.active .layer-script-line1,
.slide.active .layer-script-line2 {
  opacity: 1;
}

/* Main Bold Title (ROSTISSERIA RAMIREZ / SUPERGALLO ROSTISSERIA) */
.layer-title-container {
  margin-bottom: 25px;
}

.layer-title-text {
  font-family: var(--font-heading);
  font-size: 4.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

/* Rectangular Bright Red CTA Button (matching Image 1) */
.btn-hero-cta {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  background-color: var(--cresta-red);
  border: none;
  border-radius: 0px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
}

.slide.active .btn-hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 1s, transform 0.6s ease 1s, background-color 0.2s ease;
}

.btn-hero-cta:hover {
  background-color: #ffffff;
  color: var(--cresta-red);
  transform: translateY(-2px);
}

/* Sub-logo Crest below Button (matching Image 1) */
.hero-sublogo {
  margin-top: 25px;
  height: 120px;
  width: auto;
  opacity: 0;
  transition: opacity 0.8s ease 1.2s, transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.hero-sublogo:hover {
  transform: scale(1.08);
}

.slide.active .hero-sublogo {
  opacity: 1;
}

/* Slider Controls (Dots only at bottom center) */
.slider-arrow {
  display: none; /* Hide large arrows to match clean Image 1 layout */
}

.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background: var(--white);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .layer-script-line1,
  .layer-script-line2 {
    font-size: 2.8rem;
  }
  .layer-title-text {
    font-size: 2.8rem;
  }
  .btn-hero-cta {
    font-size: 0.85rem;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .hero-slider-section {
    min-height: 100dvh;
    height: 100dvh;
  }
  .slide {
    min-height: 100dvh;
  }
  .slide-content {
    margin-top: 40px;
    padding: 0 15px;
  }
  .layer-script-line1 {
    font-size: 2.2rem;
  }
  .layer-script-line2 {
    font-size: 2rem;
  }
  .layer-title-text {
    font-size: 2.2rem;
  }
  .btn-hero-cta {
    font-size: 0.8rem;
    padding: 10px 20px;
  }
  .hero-title-wrap {
    gap: 2px;
  }
  .hero-letter {
    font-size: 2.2rem;
  }
}

@media (max-width: 360px) {
  .hero-slider-section {
    min-height: 100dvh;
  }
  .slide-content {
    margin-top: 20px;
  }
  .layer-script-line1 {
    font-size: 1.8rem;
  }
  .layer-script-line2 {
    font-size: 1.6rem;
  }
  .layer-title-text {
    font-size: 1.8rem;
  }
}
