/* Ajustes específicos para viewports móviles muy angostos. */
@media (max-width: 360px) {
  html,
  body {
    overflow-x: clip;
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }

  .hero-editorial.hero-editorial .hero-copy {
    padding-top: 96px;
    padding-inline: 24px;
    padding-bottom: 62px;
  }

  .hero-editorial .hero-description {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
  }

  .hero-editorial .hero-actions {
    gap: 10px;
  }
}

/* Compactación vertical para móviles angostos y bajos (p. ej. 320 × 690). */
@media (max-width: 360px) and (max-height: 720px) {
  .hero-editorial.hero-editorial .hero-copy {
    --btn: 46px;
    padding-top: 84px;
    padding-bottom: 64px;
  }

  .hero-editorial .section-eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.25;
  }

  .hero-editorial h1 {
    margin-bottom: 16px;
    font-size: 30px;
    line-height: 1.02;
  }

  .hero-editorial .hero-description {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.34;
  }

  .hero-editorial .hero-actions {
    gap: 6px;
  }

  .hero-editorial .goo-btn,
  .hero-editorial .secondary {
    min-height: 44px;
  }
}

/* Carrusel móvil: tarjeta amplia con una pista visible de la siguiente. */
@media (max-width: 760px) {
  /*
   * Conserva opacity/transform, pero evita rasterizar filtros sobre el
   * contenido visible que forma parte del LCP móvil.
   */
  .hero-copy .tx-blur,
  .hero-copy .tx-blur.is-in {
    filter: none !important;
  }

  /* Safari iOS: un ancestro con overflow rompe el sticky del reveal. */
  .sb.sb-about {
    overflow-x: visible;
  }

  .sb-about .sb-reveal-pin {
    position: -webkit-sticky;
    position: sticky;
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
  }

  .sb-about .sb-reveal-title,
  .sb-about .sb-reveal-track,
  .sb-about .sb-reveal-copy {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .sb-about .sb-reveal-track {
    will-change: transform;
    transition: transform 90ms linear;
  }

  .sector-list .sector-card,
  .sector-list .sector-card.is-active {
    width: calc(100vw - 72px);
    min-width: calc(100vw - 72px);
    flex: 0 0 calc(100vw - 72px);
  }

  /* Testimonios: libera el encabezado del recorte decorativo de la tarjeta. */
  #alianzas .sb-voice-project {
    display: block;
    margin-top: 80px;
    padding-right: 0;
  }

  #alianzas .sb-voice-project img {
    position: absolute;
    top: 16px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  #alianzas .sb-voice-project p {
    min-width: 0;
    gap: 0;
    overflow-wrap: anywhere;
  }

  #alianzas .sb-voice-project strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
  }

  #alianzas .sb-voice-project span {
    display: block;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.25;
  }

  #alianzas .sb-voice blockquote {
    font-size: 15px;
    line-height: 1.35;
  }

  /* Las etiquetas de sellos deben caber completas dentro de la tarjeta. */
  #nosotros .sb-seal-tag {
    width: fit-content;
    max-width: 100%;
    padding-inline: clamp(6px, 2vw, 10px);
    font-size: clamp(8px, 2.6vw, 10px);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}
