:root {
  --hero-primary: #004191;
  --hero-accent: #FF6B35;
  --hero-background: #08132a;
  --hero-surface: rgba(255, 255, 255, 0.12);
  --hero-text: #f8fafc;
  --hero-muted: #cbd5e1;
}

.hero-section-new {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: var(--hero-background);
  color: var(--hero-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('../img/Illimani_visto_desde_La_Paz_2.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateY(0) scale(1.05);
  will-change: transform;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 19, 42, 0.25) 0%, rgba(8, 19, 42, 0.75) 35%, rgba(8, 19, 42, 0.95) 100%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 3rem));
  max-width: 1100px;
  padding: 3.5rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content-center {
  width: 100%;
  opacity: 1;
  transition: opacity 0.2s ease-out;
  
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--hero-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.4rem;
}

.hero-title-main {
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.highlight {
  display: inline-block;
  background: linear-gradient(90deg, var(--hero-accent), #ff8b4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 1.75rem auto 2.5rem;
  max-width: 670px;
  color: var(--hero-muted);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  background: var(--hero-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 18px 45px rgba(255, 107, 53, 0.22);
}

.btn-primary-hero:hover,
.btn-primary-hero:focus-visible {
  transform: translateY(-2px);
  background: #ff8f4f;
  box-shadow: 0 22px 55px rgba(255, 107, 53, 0.28);
}

.scroll-indicator-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(248, 250, 252, 0.85);
  animation: heroScroll 1.6s infinite ease-in-out;
}

@keyframes heroScroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.hero-metrics-bottom {
    position: relative;
    z-index: 20;
    padding: 3rem 2rem;
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
    justify-items: center;
    width: 100%;
    margin-top: 0;
}

.metric-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
  padding: 1.4rem 1.35rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.metric-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.metric-text {
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero-metrics-bottom {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 680px) {
  .hero-section-new {
    min-height: 90vh;
  }

  .hero-content-wrapper {
    padding: 2.5rem 1rem 4.5rem;
    
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.5px;
    text-align: center;
    overflow: visible;  /* Asegúrate que no esté hidden */
    word-wrap: break-word;
    white-space: normal;
}

  .hero-subtitle {
    margin: 1.5rem auto 2rem;
    font-size: 1rem;
  }

  .hero-cta-group {
    width: 100%;
  }

  .hero-metrics-bottom {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .metric-item {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}



@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* ============================================
   METRICS AL FONDO
   ============================================ */

.hero-metrics-bottom {
    position: relative;
    z-index: 20;
    padding: 4rem 2rem;
    background: linear-gradient(to top, rgba(245, 245, 245, 1), rgba(245, 245, 245, 0.95));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.metric-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.metric-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.metric-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    line-height: 1.5;
    max-width: 280px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   EFECTO REVEAL AL SCROLL (JavaScript)
   ============================================ */

.hero-section-new.scrolled .hero-background {
    clip-path: polygon(0 0, 100% 0, 100% var(--scroll-clip, 100%), 0 var(--scroll-clip, 100%));
    transition: clip-path 0.3s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-section-new {
        min-height: 90vh;
    }

    .hero-background {
        background-attachment: scroll; /* Desactivar parallax en mobile */
    }

    .hero-content-wrapper {
        height: auto;
        padding: 2rem 1rem;
        overflow: visible;
    }

    .hero-title-main {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary-hero {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
    }

    .hero-metrics-bottom {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }

    .metric-number {
        font-size: 2rem;
    }

    .scroll-indicator-hero {
        bottom: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title-main {
        font-size: 1.5rem;
    }

    .hero-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* ============================================
   EFECTO PARALLAX AVANZADO (CSS)
   ============================================ */

/* Cuando la sección es visible */
.hero-background {
    background-attachment: fixed;
}

/* En viewports pequeños, desactivar parallax */
@media (prefers-reduced-motion: reduce) {
    .hero-background {
        background-attachment: scroll;
    }
    
    .hero-content-center,
    .scroll-indicator-hero {
        animation: none;
        opacity: 1;
    }
}
