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


@media (max-width: 380px) {

  .section-title {
    font-size: 1.5rem !important;
    text-align: center;
  }
  .texto_contacto {
    font-size: 0.8rem !important;
  }

  .resaltador {
    font-size: 1.2rem;
    line-height: 1.4rem;
    padding: 0.4rem 1rem;
  }

  .hero_problematica,
  .hero_enfoque {
    padding: 2rem 0;
  }
}

@media (max-width: 768px) {

  .resaltador {
    font-size: 1.8rem;
    line-height: 2.4rem;
    padding: 0.5rem 1.5rem;
  }

  .titulo_problematica,
  .titulo_enfoque {
    font-size: 1.3rem;
  }

  .texto_problematica,
  .texto_enfoque {
    font-size: 1rem;
    line-height: 1.4rem;
  }

  .hero_problematica,
  .hero_enfoque {
    padding: 3rem 0;
  }
}


/* ============================
   DESKTOP GRANDE (>=1200px)
   ============================ */
@media (min-width: 1200px) {

  .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 4rem;
  }

  .hero-subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 2.8rem;
    color: #ffffff;
  }
}

/* ============================
   MOBILE CHICO (<=576px)
   ============================ */
@media (max-width: 576px) {

  .hero-title {
    font-size: 1.8rem !important;
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .hero-image {
    max-height: 280px;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ============================
   NAVBAR MOBILE
   ============================ */
@media (max-width: 1000px) {

  .navbar-collapse {
    background-color: #ffffff;
    width: 100%;
    position: absolute;
    left: 0;
    top: 100px;
    padding: 1rem;
    z-index: 9999;
  }
}

/* ============================
   TABLET / NOTEBOOK (<=1400px)
   ============================ */
@media (max-width: 1400px) {
  
.hero-content {
      padding-left: 15px !important;
    padding-right: 15px !important;
}

  .hero-title {
    font-size: 3rem !important;
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .p-3 {
    padding: 0.5rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  /* CONTENEDORES */
  .container_problematica,
  .container_enfoque {
    padding-top: 2rem;
  }

  /* 🔑 FIX CLAVE: nunca height fijo */
  .hero_problematica,
  .hero_enfoque {
    min-height: 100vh;
    height: auto;
    padding: 4rem 0;
    overflow: visible;
  }

  .titulo_problematica,
  .titulo_enfoque {
    font-size: 1.3rem !important;
  }

  .texto_problematica,
  .texto_enfoque {
    font-size: 1.2rem !important;
    font-weight: 300;
    line-height: 1.5rem;
  }

  .resaltador {
    background-color: rgb(41, 122, 113);
    padding: 0.5rem 2rem;
    border-radius: 1rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    font-size: 1.8rem !important;
    line-height: 2.6rem !important;
  }

  .texto_contacto {
    font-size: 1.1rem;
  }
}

/* ============================
   MOBILE MUY CHICO (<=380px)
   ============================ */
@media (max-width: 380px) {

  .hero-title {
    font-size: 2rem !important;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.8rem !important;
    text-align: center;
    padding: 0 20px;
  }

  .btn-primary {
    --bs-btn-bg: rgb(41, 122, 113);
    --bs-btn-border-color: rgb(41, 122, 113);
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: black;
    --bs-btn-hover-border-color: white;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .p-3 {
    padding: 0.5rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .container_problematica,
  .container_enfoque {
    padding-top: 4rem;
  }

  /* 🔑 FIX CLAVE TAMBIÉN EN MOBILE */
  .hero_problematica,
  .hero_enfoque {
    min-height: 100vh;
    height: auto;
    padding-bottom: 2rem;
    overflow: visible;
  }

  .titulo_problematica,
  .titulo_enfoque {
    font-size: 1rem !important;
  }

  .texto_problematica,
  .texto_enfoque {
    font-size: 0.85rem !important;
    font-weight: 300;
    line-height: 1.4rem;
  }

  .resaltador {
    background-color: rgb(41, 122, 113);
    padding: 0.4rem 0.8rem !important;
    border-radius: 1rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    font-size: 1rem !important;
    line-height: 1.3rem !important;
  }
}
