/* ═══════════════════════════════════════════
   HERO SLIDER — Paramita Construcción
   ═══════════════════════════════════════════ */

/* ── BASE ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  padding: 0;
  background: var(--blue);
}

/* Mejora #5: Grain texture sutil sobre todo el hero */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

/* ── SLIDE ── */
.hero-slide {
  position: relative;
  overflow: hidden;
}

/* Background con Ken Burns zoom */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.swiper-slide-active .hero-slide-bg {
  transform: scale(1.0);
}

/* Mejora #3: Doble gradiente — legibilidad izquierda + profundidad inferior */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(6,36,59,0.82) 0%, rgba(6,36,59,0.18) 100%),
    linear-gradient(to top,  rgba(6,36,59,0.62) 0%, transparent 36%);
}

/* ── CONTENT ── */
.hero-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8% 110px;
  max-width: 780px;
  z-index: 2;
}

/* Eyebrow */
.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  font-family: 'Sora', sans-serif;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(22px);
}
.slide-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

/* Mejora #4: Letter-spacing negativo — tipografía editorial */
.slide-title {
  font-size: clamp(34px, 5.2vw, 70px);
  font-weight: 800;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(24px);
}
.slide-title .slide-accent {
  color: var(--yellow);
}

/* Description */
.slide-desc {
  font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
}

/* CTA */
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(24px);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}
.slide-cta:hover {
  background: var(--yellow);
  color: var(--blue);
  box-shadow: 0 8px 32px rgba(227, 156, 0, 0.42);
}

/* ── TEXT ANIMATIONS ── */
.slide-eyebrow.is-animated {
  animation: heroSlideUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}
.slide-title.is-animated {
  animation: heroSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}
.slide-desc.is-animated {
  animation: heroSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.40s forwards;
}
.slide-cta.is-animated {
  animation: heroSlideUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}

@keyframes heroSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mejora #1: Controles agrupados bottom-right ── */
.hero-nav {
  position: absolute;
  bottom: 28px;
  top: auto;
  transform: none;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-nav:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue);
}
.hero-prev { right: calc(8% + 56px); left: auto; }
.hero-next { right: 8%;              left: auto; }

/* Fraction — a la izquierda del cluster de flechas */
.hero-fraction {
  position: absolute !important;
  bottom: 36px;
  right: calc(8% + 124px);
  left: auto !important;
  width: auto !important;
  z-index: 10;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.05em;
}
.hero-fraction .swiper-pagination-current {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-right: 4px;
}
.hero-fraction .swiper-pagination-total {
  margin-left: 4px;
}
.hero-fraction::after { display: none; }

/* Progress bar */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
}
.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--yellow);
}

/* ── Mejora #2: Scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.hero-scroll-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  font-family: 'Sora', sans-serif;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -44px;
  left: 0;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: -44px; opacity: 1; }
  80%  { opacity: 0.6; }
  100% { top: 44px;  opacity: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-slide-content { padding: 100px 6% 90px; max-width: 100%; }
  .hero-prev { right: calc(6% + 52px); }
  .hero-next { right: 6%; }
  .hero-fraction { right: calc(6% + 120px); bottom: 32px; }
  .hero-scroll { display: none; }
}

@media (max-width: 560px) {
  #hero { min-height: 580px; }
  .hero-slide-content { padding: 88px 5% 80px; }
  .hero-nav { display: none; }
  .hero-fraction {
    right: auto;
    left: 5% !important;
    bottom: 24px;
  }
  .slide-desc { margin-bottom: 32px; }
}
