/* =====================================================
   MAGUTEC — VERTICALES
   Responsive específico de verticales.html
   ===================================================== */


/* =====================================================
   AJUSTES GENERALES
   ===================================================== */

.vertical-grid {
  min-width: 0;
}

.intro-section h1,
.intro-section p {
  max-width: 100%;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 991px) {

  .intro-section h1 {
    font-size: clamp(3rem, 8vw, 4rem) !important;
    line-height: 0.98;
    max-width: 720px !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .intro-section p {
    font-size: 1.15rem !important;
    line-height: 1.6;
    max-width: 620px !important;
  }

}


/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 767px) {

  /* Evita cualquier desbordamiento horizontal */
  html,
  body {
    overflow-x: hidden;
  }


  /* ---------------------------------------------
     INTRO
     --------------------------------------------- */

  .intro-section h1 {
    font-size: clamp(2.7rem, 11vw, 3.5rem) !important;
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  .intro-section p {
    font-size: 1.05rem !important;
    line-height: 1.6;
    max-width: 100% !important;
  }


  /* ---------------------------------------------
     GRID DE VERTICALES
     --------------------------------------------- */

  .vertical-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }


  /* ---------------------------------------------
     IMÁGENES DE LAS TARJETAS
     --------------------------------------------- */

  .vertical-grid .blueprint-corner > div:first-child {
    height: 200px !important;
  }


  /* ---------------------------------------------
     CONTENIDO DE LAS TARJETAS
     --------------------------------------------- */

  .vertical-grid .blueprint-corner > div:last-child {
    padding: var(--space-3) !important;
  }

  .vertical-grid h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .vertical-grid p {
    font-size: 0.98rem;
    line-height: 1.65;
  }


  /* ---------------------------------------------
     BLOQUE DE EXPERIENCIA
     --------------------------------------------- */

  .section .blueprint-corner {
    padding: var(--space-3) !important;
  }

  .section .blueprint-corner p {
    font-size: 0.98rem;
    line-height: 1.6;
  }


  /* ---------------------------------------------
     CTA FINAL
     --------------------------------------------- */

  .section h2 {
    font-size: 2rem;
    line-height: 1.1;
  }

}


/* =====================================================
   MÓVILES PEQUEÑOS
   ===================================================== */

@media (max-width: 480px) {

  .intro-section h1 {
    font-size: clamp(2.45rem, 11vw, 3rem) !important;
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .intro-section p {
    font-size: 1rem !important;
    line-height: 1.6;
  }


  .vertical-grid .blueprint-corner > div:first-child {
    height: 180px !important;
  }


  .vertical-grid h3 {
    font-size: 1.25rem;
  }


  .vertical-grid p {
    font-size: 0.95rem;
    line-height: 1.6;
  }


  .section h2 {
    font-size: 1.8rem;
  }

}