/* ============================================================
   UNIVERSAL SLIDER SYSTEM — portal veterinario
   Modos hero: layered | thumbnails | elite
============================================================ */

:root {
  --slider-primary: #1a6b3c;
  --slider-transition: 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE ── */
.layered-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* SLIDES */
.ls-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden;
  transition: opacity var(--slider-transition);
  display: flex;
  align-items: center;
}
.ls-slide.active { opacity: 1; visibility: visible; }

/* IMAGEN CON KEN BURNS */
.ls-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 10s linear;
  z-index: 1;
}
.ls-slide.active .ls-bg { transform: scale(1); }

.ls-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

/* CONTENIDO por slide (título de la foto) */
.ls-content {
  position: relative;
  z-index: 10;
  padding: 0 8%;
  color: white;
}
.ls-text {
  font-size: 1rem;
  background: rgba(0,0,0,0.4);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

/* ── MODO LAYERED: animaciones de entrada ── */
.slider-layered .ls-title {
  font-size: clamp(2rem, 5vw, 4rem);
  transform: translateX(-80px); opacity: 0;
  transition: all 0.8s ease 0.3s;
}
.slider-layered .ls-slide.active .ls-title { transform: translateX(0); opacity: 1; }

.slider-layered .ls-text {
  transform: translateY(25px); opacity: 0;
  transition: all 0.8s ease 0.55s;
}
.slider-layered .ls-slide.active .ls-text { transform: translateY(0); opacity: 1; }

/* ── MODO THUMBNAILS: tira de miniaturas ── */
.ls-thumbs-container {
  position: absolute;
  bottom: 0; width: 100%;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  display: flex; justify-content: center; gap: 10px;
  z-index: 50;
}
.ls-thumb {
  width: 78px; height: 50px; border-radius: 6px;
  cursor: pointer; opacity: 0.45; border: 2px solid transparent;
  transition: 0.3s; background-size: cover; background-position: center;
  flex-shrink: 0;
}
.ls-thumb.active {
  opacity: 1;
  border-color: var(--slider-primary);
  transform: translateY(-4px);
}

/* ── MODO ELITE: texto gigante ── */
.slider-elite .ls-slide .ls-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900; text-transform: uppercase; line-height: 0.9;
}

/* ── FLECHAS DE NAVEGACIÓN ── */
.ls-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: none; color: white;
  cursor: pointer; z-index: 100;
  transition: background 0.3s, transform 0.3s;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.ls-nav-btn:hover {
  background: var(--slider-primary);
  transform: translateY(-50%) scale(1.1);
}
.ls-nav-btn.prev { left: 20px; }
.ls-nav-btn.next { right: 20px; }

/* ── DOTS ── */
.ls-dots {
  position: absolute;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 100;
}
.ls-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer; transition: 0.4s;
}
.ls-dot.active {
  width: 32px; border-radius: 8px;
  background: var(--slider-primary);
}

/* ── CONTEXTO HERO (integración con la sección hero) ── */
.hero-section .layered-slider {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: calc(100vh - var(--navbar-h, 72px));
  z-index: 1;
}

/* Overlay más oscuro para que el texto blanco sea legible */
.hero-section .ls-bg::after {
  background: rgba(5, 18, 10, 0.50);
}

/* El container del hero no intercepta clicks en dots/flechas */
.hero-section > .container {
  pointer-events: none;
}
.hero-section > .container * {
  pointer-events: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .ls-nav-btn { width: 38px; height: 38px; font-size: 0.85rem; }
  .ls-nav-btn.prev { left: 10px; }
  .ls-nav-btn.next { right: 10px; }
  .ls-thumb { width: 58px; height: 38px; }
  .ls-dot { width: 8px; height: 8px; }
  .ls-dot.active { width: 24px; }
}
