/* =====================================================
   MAGUTEC — CÓMO TRABAJAMOS
   Responsive específico de como-trabajamos.html
   ===================================================== */


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

html,
body {
  overflow-x: hidden;
}

body.como-trabajamos-page {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.como-trabajamos-page main,
body.como-trabajamos-page header,
body.como-trabajamos-page footer {
  max-width: 100%;
  overflow-x: clip;
}

.como-trabajamos-page {
  overflow-x: hidden;
}

.como-trabajamos-page main {
  min-width: 0;
}

/* Evita que los contenidos internos provoquen
   desbordamiento horizontal */
.como-trabajamos-page .blueprint-corner {
  min-width: 0;
}

.como-trabajamos-page .blueprint-corner > div {
  min-width: 0;
}


/* =====================================================
   INTRO
   ===================================================== */

.como-trabajamos-page .intro-section h1,
.como-trabajamos-page .intro-section p {
  overflow-wrap: break-word;
  word-break: normal;
}


/* =====================================================
   TABLET
   992px → 768px
   ===================================================== */

@media (max-width: 991px) {

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

  .como-trabajamos-page .intro-section h1 {
    font-size: clamp(3rem, 8vw, 4rem) !important;
    line-height: 1;
    max-width: 720px !important;
    letter-spacing: -0.03em;
  }

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


  /* ---------- ETAPAS ---------- */

  .como-trabajamos-page .blueprint-corner {
    grid-template-columns: 70px 1fr !important;
    gap: var(--space-3) !important;
    padding: var(--space-4) !important;
    margin-bottom: var(--space-3) !important;
  }

  .como-trabajamos-page .blueprint-corner h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .como-trabajamos-page .blueprint-corner p {
    font-size: 0.98rem !important;
    line-height: 1.6;
  }

  .como-trabajamos-page .blueprint-corner > div:first-child {
    font-size: 2rem !important;
    line-height: 1;
  }


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

  .como-trabajamos-page main > section:last-of-type h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
  }

  .como-trabajamos-page main > section:last-of-type .btn.btn-primary {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
  }
}


/* =====================================================
   MÓVIL
   767px o menos
   ===================================================== */

@media (max-width: 767px) {

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

  .como-trabajamos-page .intro-section h1 {
    font-size: clamp(2.65rem, 11vw, 3.5rem) !important;
    line-height: 0.98;
    letter-spacing: -0.035em;
    max-width: 100% !important;
  }

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


  /* ---------- CONTENEDOR DE ETAPAS ---------- */

  .como-trabajamos-page .section > .container {
    min-width: 0;
  }


  /* ---------- TARJETAS DE ETAPAS ---------- */

  .como-trabajamos-page .blueprint-corner {
    grid-template-columns: 56px 1fr !important;
    gap: var(--space-3) !important;
    padding: var(--space-3) !important;
    margin-bottom: var(--space-3) !important;
  }

  .como-trabajamos-page .blueprint-corner > div:first-child {
    font-size: 1.8rem !important;
    line-height: 1;
  }

  .como-trabajamos-page .blueprint-corner h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
  }

  .como-trabajamos-page .blueprint-corner p {
    font-size: 0.95rem !important;
    line-height: 1.6;
    margin-top: 8px !important;
  }


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

  .como-trabajamos-page main > section:last-of-type {
    text-align: center;
  }

  .como-trabajamos-page main > section:last-of-type .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .como-trabajamos-page main > section:last-of-type h2 {
    font-size: 2rem;
    line-height: 1.1;
    max-width: 100% !important;
  }

  .como-trabajamos-page main > section:last-of-type p {
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 100% !important;
  }

  .como-trabajamos-page main > section:last-of-type .btn.btn-primary {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.1rem;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.25;
  }
}


/* =====================================================
   MÓVILES PEQUEÑOS
   480px o menos
   ===================================================== */

@media (max-width: 480px) {

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

  .como-trabajamos-page .intro-section h1 {
    font-size: clamp(2.4rem, 11vw, 3rem) !important;
    line-height: 1;
  }

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


  /* ---------- ETAPAS ---------- */

  .como-trabajamos-page .blueprint-corner {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }

  .como-trabajamos-page .blueprint-corner > div:first-child {
    font-size: 1.7rem !important;
    line-height: 1;
  }

  .como-trabajamos-page .blueprint-corner h3 {
    font-size: 1.18rem;
    line-height: 1.25;
  }

  .como-trabajamos-page .blueprint-corner p {
    font-size: 0.92rem !important;
    line-height: 1.6;
    margin-top: 7px !important;
  }


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

  .como-trabajamos-page main > section:last-of-type h2 {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .como-trabajamos-page main > section:last-of-type p {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .como-trabajamos-page main > section:last-of-type .btn.btn-primary {
    font-size: 0.95rem;
    padding: 0.95rem 1rem;
  }
}