/* Responsive premium pass: mobile-first corrections for the live pages. */

@media (max-width: 700px) {
  html { overflow-x: hidden; }
  body { min-width: 0; overflow-x: hidden; }
  .shell { width: calc(100% - 32px); }

  .topbar {
    min-height: 34px;
    padding: 8px 16px;
    font-size: 8px;
    line-height: 1.25;
    letter-spacing: .1em;
  }

  .site-header,
  .site-header__inner { min-height: 64px; }
  .site-header__inner { gap: 12px; }
  .brand-mark { width: 108px !important; max-width: 43vw; }
  .brand-mark img { width: 100%; height: auto; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 999px;
    font-size: 9px;
  }
  .site-nav.is-open {
    top: 64px;
    right: 16px;
    left: 16px;
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.is-open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 10px;
  }
  .site-nav.is-open .header-cta { min-height: 52px; }

  .breadcrumb {
    max-width: 100%;
    padding: 13px 0;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .section { padding: 64px 0; }
  .section-heading { gap: 18px; }
  .section-heading h2,
  .home-intro h2,
  .program-overview h2,
  .contact-panel h2,
  .process-grid h2,
  .practice-grid__copy h2,
  .proof-row h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.55rem);
    line-height: .92;
  }
  .eyebrow { margin-bottom: 15px; font-size: 8px; letter-spacing: .15em; }
  .button {
    min-height: 48px;
    padding-left: 15px;
    font-size: 9px;
  }
  .button span { width: 28px; height: 28px; }
  .hero__actions { gap: 14px; }
  .hero__actions .text-link { min-height: 44px; display: inline-flex; align-items: center; }

  /* Home: preserve the immersive image hero without clipping copy on short screens. */
  body[data-page="inicio"] .home-hero {
    height: auto;
    min-height: max(540px, calc(100svh - 98px));
  }
  body[data-page="inicio"] .home-hero__copy {
    right: 16px;
    bottom: 22px;
    left: 16px;
  }
  body[data-page="inicio"] .home-hero__copy h1 {
    max-width: 318px;
    font-size: clamp(2.45rem, 12.5vw, 4rem);
    line-height: .88;
  }
  body[data-page="inicio"] .home-hero__copy .hero__lede {
    max-width: 290px;
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.5;
  }
  body[data-page="inicio"] .home-hero__copy .hero__actions { margin-top: 16px; }
  body[data-page="inicio"] .home-hero .hero-proof {
    top: 62px;
    right: 16px;
    min-width: 0;
    width: 148px;
    padding: 12px;
  }
  body[data-page="inicio"] .home-hero .hero-proof strong { font-size: 29px; }
  body[data-page="inicio"] .home-hero .hero-proof span { font-size: 7px; letter-spacing: .08em; }
  body[data-page="inicio"] .mobile-route-rail a { min-height: 46px; font-size: 9px; }

  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip__item { min-height: 84px; padding: 13px 11px; }
  .trust-strip__number { font-size: 23px; }
  .trust-strip__item strong { font-size: 9px; line-height: 1.2; }
  .trust-strip__item span { font-size: 8px; line-height: 1.35; }

  .program-grid,
  .feature-grid { display: block; }
  .program-card { min-height: 330px; margin-bottom: 12px; padding: 23px; }
  .program-card h3 { font-size: 25px; }
  .program-card p { font-size: 11px; }
  .feature-card {
    min-height: 250px;
    margin-bottom: 12px;
    padding: 23px;
    padding-bottom: 88px;
  }
  .feature-card span { margin-bottom: 26px; }
  .feature-card__image { height: 76px !important; }

  .experience-grid__visual img,
  .practice-grid__media img { aspect-ratio: 4 / 3; }
  .experience-grid__tag { right: 8px; bottom: 8px; padding: 13px; font-size: 8px; }
  .experience-grid__copy > p,
  .practice-grid__copy p,
  .contact-panel__copy > p { font-size: 13px; line-height: 1.65; }
  .check-list { margin-bottom: 24px; }
  .check-list li { gap: 11px; padding: 13px 0; font-size: 11px; line-height: 1.45; }

  .contact-form { gap: 18px; padding: 21px 17px; }
  .contact-form__head { display: grid; gap: 5px; line-height: 1.4; }
  .contact-form label { font-size: 8px; }
  .contact-form input,
  .contact-form select { min-height: 44px; padding: 9px 0; font-size: 14px; }
  .contact-form .button { width: 100%; }

  .program-hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }
  .program-hero__copy {
    min-height: 0 !important;
    padding: 43px 16px 30px !important;
  }
  .program-hero__copy h1 {
    max-width: 330px;
    margin-bottom: 18px;
    font-size: clamp(2.45rem, 12.8vw, 4rem) !important;
    line-height: .9;
  }
  .program-hero__copy p { margin-bottom: 22px; font-size: 13px; line-height: 1.6; }
  .program-hero__duration { margin-top: 29px; padding-top: 17px; }
  .program-hero__duration strong { font-size: 37px; }
  .program-hero__duration span { font-size: 8px; }
  .program-hero__media {
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
  }
  .program-hero__media img { height: 100%; }

  .program-overview,
  .process-grid,
  .practice-grid { gap: 36px; }
  .program-facts__row { grid-template-columns: minmax(92px, .75fr) 1.25fr; gap: 12px; padding: 13px 0; }
  .program-facts__row span { font-size: 8px; }
  .program-facts__row strong { font-size: 11px; line-height: 1.35; }
  .process-item { grid-template-columns: 34px 1fr; gap: 13px; padding: 17px 0; }
  .process-item h3 { font-size: 15px; line-height: 1.2; }
  .process-item p { font-size: 11px; line-height: 1.5; }

  .cta-band { padding: 58px 0; }
  .cta-band__inner { gap: 24px; }
  .cta-band h2 { font-size: clamp(2.35rem, 11.5vw, 3.7rem); }
  .cta-band .button { width: 100%; }

  .footer__top { grid-template-columns: 1fr; gap: 16px; }
  .footer__top img { width: 116px; }
  .footer__top > a { grid-column: auto; width: fit-content; margin-left: 0; }
  .footer__bottom { gap: 9px; font-size: 8px; line-height: 1.4; }
  .floating-actions { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); gap: 7px; }
  .floating-action span { width: 45px; height: 45px; font-size: 9px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 28px); }
  .brand-mark { width: 96px !important; }
  .topbar { font-size: 7px; }
  body[data-page="inicio"] .home-hero__copy h1,
  .program-hero__copy h1 { font-size: clamp(2.25rem, 12vw, 3.45rem) !important; }
  body[data-page="inicio"] .home-hero .hero-proof { top: 57px; right: 13px; width: 136px; }
  .program-hero__copy { padding-inline: 14px !important; }
  .button { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .program-card,
  .feature-card,
  .floating-action { transition: none; }
}
