/* public/css/home-slider.css - Estilos exclusivos del Hero Slider del Home */

.hero-slider {
  position: relative; width: 100%; height: 520px;
  overflow: hidden; cursor: pointer;
}
.slider-track { width: 100%; height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.7s ease;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,15,10,0.25) 0%, rgba(20,15,10,0.65) 100%);
}
.slide-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 2.5rem 4rem; color: white;
  animation: fadeUp 0.6s ease both;
}
.slide.active .slide-content { animation: slideUp 0.6s ease both; }
.slide-eyebrow {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; opacity: 0.8; display: block; margin-bottom: 0.6rem;
}
.slide-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2;
  margin-bottom: 0.8rem; max-width: 650px;
}
.slide-heading em { font-style: italic; color: var(--terra-light); }
.slide-desc {
  font-size: 1.05rem; opacity: 0.9; max-width: 500px;
  line-height: 1.6; margin-bottom: 1.5rem;
}
.slide-cta {
  display: inline-block; padding: 0.7rem 1.8rem;
  background: #4a7245; background: var(--green, #4a7245); color: white; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(74,114,69,.35);
}
.slide-cta:hover { background: #6b9e5e; background: var(--green-light, #6b9e5e); transform: translateY(-2px); }

/* Slider controls */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  color: white; font-size: 1.5rem; cursor: pointer;
  transition: background 0.2s, transform 0.2s; display: flex;
  align-items: center; justify-content: center;
}
.slider-btn:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-dots {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: white; transform: scale(1.3); }

@media(max-width:900px){
  .hero-slider { height: 420px; }
  .slide-content { padding: 2rem 2.5rem; }
}

@media(max-width:768px){
  .hero-slider { height: 380px; }
  .slide-content { padding: 1.5rem; text-align: center; }
  .slide-heading { font-size: 1.8rem; margin: 0 auto 0.8rem; }
  .slide-desc { font-size: 0.95rem; margin: 0 auto 1.5rem; }
  .slide-eyebrow { margin: 0 auto 0.6rem; }
  .slider-btn { width: 36px; height: 36px; font-size: 1.2rem; }
}

@media(max-width:480px){
  .hero-slider { height: 320px; }
  .slide-heading { font-size: 1.5rem; }
  .slide-desc { font-size: 0.85rem; }
  .slider-btn { display: none; /* Ocultar flechas en móvil muy pequeño, dejar los dots */ }
}
