/* ===========================================================
   HERO LANDING – FULLPAGE CINEMATIC (v21.0 NECORA GLASS SYSTEM)
   ===========================================================
   🧊 Glass translúcido coherente con el sistema global
   🌗 Compatible con modo oscuro (data-theme="dark")
   💎 Colores base del NECORA Glass System
   🎞️ Overlay dinámico y animaciones conservadas
=========================================================== */

.hero-landing {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
}

/* ===============================
   Swiper base
=============================== */
.hero-landing .swiper,
.hero-landing .swiper-wrapper,
.hero-landing .swiper-slide {
  width: 100%;
  height: 100%;
}
.hero-landing .swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

/* ===============================
   Fondo / Overlay
=============================== */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 7s ease, filter 3s ease;
}
.hero-landing .swiper-slide-active .hero-bg {
  transform: scale(1);
  filter: brightness(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--hero-overlay-color);
  opacity: var(--hero-overlay-opacity, 0.35);
  animation: overlayShift 12s ease-in-out infinite alternate;
}

@keyframes overlayShift {
  from { filter: brightness(1) blur(0px); }
  to   { filter: brightness(1.1) blur(3px); }
}

/* ===============================
   Contenido del slide
=============================== */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}
.hero-content.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-heading, "Poppins", sans-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: var(--text-color);
  transition: color .3s ease;
  text-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.hero-subtitle {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 2rem;
  transition: color .3s ease;
}

/* ===============================
   Botones
=============================== */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--accent-text);
  padding: 14px 38px;
  border-radius: 999px;
  font-weight: 600;
  transition: all .3s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: var(--color-link-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.btn-outline {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 13px 36px;
  border-radius: 999px;
  font-weight: 600;
  transition: all .3s ease;
}
.btn-outline:hover {
  background: var(--accent-color);
  color: var(--accent-text);
}

/* ===============================
   Animaciones de texto
=============================== */
.anim-fade-up .hero-content.active { animation: fadeUp .9s ease forwards; }
.anim-slide-left .hero-content.active { animation: slideLeft .9s ease forwards; }
.anim-slide-right .hero-content.active { animation: slideRight .9s ease forwards; }
.anim-zoom-in .hero-content.active { animation: zoomIn .8s ease forwards; }
.anim-none .hero-content,
.hero-content.anim-none {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(40px);} to { opacity: 1; transform: translateY(0);} }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-60px);} to { opacity: 1; transform: translateX(0);} }
@keyframes slideRight { from { opacity: 0; transform: translateX(60px);} to { opacity: 1; transform: translateX(0);} }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9);} to { opacity: 1; transform: scale(1);} }

/* ===============================
   Flechas (Glass System)
=============================== */
.hl-arrows--glass .swiper-button-prev,
.hl-arrows--glass .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text-color);
  transition: all .3s ease;
  z-index: 5;
  box-shadow: var(--glass-shadow, 0 2px 16px rgba(0,0,0,0.2));
}
.hl-arrows--glass .swiper-button-prev:hover,
.hl-arrows--glass .swiper-button-next:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.08);
}
.hl-arrows--glass .swiper-button-prev { left: 30px; }
.hl-arrows--glass .swiper-button-next { right: 30px; }

/* Minimal */
.hl-arrows--minimal .swiper-button-prev,
.hl-arrows--minimal .swiper-button-next {
  background: transparent !important;
  border: none;
  color: color-mix(in srgb, var(--text-color) 80%, transparent);
  box-shadow: none;
}
.hl-arrows--minimal .swiper-button-prev:hover,
.hl-arrows--minimal .swiper-button-next:hover {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.15);
}

/* Ocultas */
.hl-arrows--hidden .swiper-button-prev,
.hl-arrows--hidden .swiper-button-next {
  display: none !important;
}

/* ===============================
   Paginación (Glass System)
=============================== */
.hl-pagination--dots .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  margin: 0 6px !important;
  border-radius: 50%;
  transition: all .35s ease;
  opacity: .7;
}
.hl-pagination--dots .swiper-pagination-bullet-active {
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  transform: scale(1.3);
  opacity: 1;
}

/* Lines */
.hl-pagination--lines .swiper-pagination-bullet {
  width: 28px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  transition: all .3s ease;
}
.hl-pagination--lines .swiper-pagination-bullet-active {
  background: var(--accent-color);
  width: 36px;
}

/* Pill */
.hl-pagination--pill .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  border-radius: 30px;
  background: rgba(255,255,255,0.25);
  transition: all .3s ease;
}
.hl-pagination--pill .swiper-pagination-bullet-active {
  background: var(--accent-color);
  width: 36px;
}

/* Oculta paginación */
.hl-pagination--hidden .swiper-pagination {
  display: none !important;
}

/* Base de paginación */
.swiper-pagination {
  bottom: 28px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===============================
   Responsivo
=============================== */
@media (max-width: 768px) {
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; }
  .btn-primary, .btn-outline { padding: 12px 28px; }
  .hl-arrows--glass .swiper-button-prev,
  .hl-arrows--glass .swiper-button-next {
    width: 42px;
    height: 42px;
  }
}
