/* ═══════════════════════════════════════════════════════════════════════════
   WEEXP · Home · versión CELULAR de las secciones 02–10  (≤ 760 px)
   El escritorio no se toca: todo vive dentro de esta media query.
   El marcado del traspaso trae estilos en línea con medidas de escritorio, por
   eso aquí se usa !important: es la única forma de ganarle a un style="".
   Se respetan las REGLAS: misma paleta, esquina WEEXP, cápsulas, botones de 44 px.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {

  /* ── Base: retícula de una columna, márgenes de 20 px, ritmo de 72 px ───── */
  .weexp-home .g12,
  .weexp-home .w12 { padding-left: 20px !important; padding-right: 20px !important; column-gap: 0 !important; }
  .weexp-home .g12,
  .weexp-home [style*="grid-template-columns: repeat(12"] { grid-template-columns: minmax(0, 1fr) !important; row-gap: 32px !important; }
  .weexp-home [style*="grid-column:"] { grid-column: 1 / -1 !important; justify-self: stretch !important; }
  .weexp-home section[style*="padding: 128px"] { padding-top: 72px !important; padding-bottom: 72px !important; }
  .weexp-home h2[style*="font: 300 30px"],
  .weexp-home h2[style*="font: 300 28px"] { font-size: 25px !important; }

  /* 04 · COMUNIDAD: ver el bloque de abajo (aplica a celular y tablet vertical, ≤ 960 px) */

  /* ── 05 · DIRECTORIO: perfiles en carrusel horizontal ───────────────────── */
  #directorio h2 { font-size: 30px !important; }
  #directorio p[style*="16px/1.6"] { font-size: 15px !important; }
  #directorio [role="group"] { flex-wrap: nowrap !important; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  #directorio [role="group"]::-webkit-scrollbar { display: none; }
  #directorio .chip { flex: 0 0 auto; }
  #directorio .selw, #directorio .selw select { width: 100%; }
  #directorio label.selw { flex: 1 1 140px; }
  #directorio .selw select { min-width: 0 !important; }
  #directorio [style*="repeat(3, minmax(0, 1fr))"] { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory;
                                                     margin-left: -20px; margin-right: -20px; padding: 0 20px 8px; scrollbar-width: none; }
  #directorio [style*="repeat(3, minmax(0, 1fr))"]::-webkit-scrollbar { display: none; }
  #directorio .perfil { flex: 0 0 84%; scroll-snap-align: center; }
  #directorio .perfil:hover { transform: none; }
  #directorio [style*="justify-content: space-between; margin-top: 24px"] { flex-direction: column; align-items: flex-start !important; }
  #directorio .cta5 { min-height: 48px; font-size: 15px; padding: 0 24px; }

  /* ── 06 · NOTICIAS: tarjetas en carrusel horizontal ─────────────────────── */
  #noticias [style*="repeat(4, minmax(0, 1fr))"] { display: flex !important; gap: 16px !important; margin-top: 32px !important;
                                                   overflow-x: auto; scroll-snap-type: x mandatory;
                                                   margin-left: -20px; margin-right: -20px; padding: 0 20px 24px; scrollbar-width: none; }
  #noticias [style*="repeat(4, minmax(0, 1fr))"]::-webkit-scrollbar { display: none; }
  #noticias .nota { flex: 0 0 82%; scroll-snap-align: center; }
  #noticias .nota:hover { transform: none; }

  /* ── 07 · TESTIMONIOS: tarjeta a lo ancho, foto arriba y texto abajo ────── */
  #testimonios .w12[style*="justify-content: space-between"] { flex-direction: column; align-items: flex-start !important; }
  #testimonios .w12[style*="margin-top: 56px"] { margin-top: 32px !important; overflow: hidden; }
  .tes { flex: 0 0 calc(100vw - 40px) !important; height: auto !important; min-height: 420px; display: flex; flex-direction: column-reverse; }
  .tes .img { position: relative !important; width: 100% !important; height: 200px; flex: 0 0 200px;
              clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%) !important; }
  .tes .txt { position: relative !important; width: 100% !important; padding: 22px 22px 24px !important; flex: 1 1 auto; gap: 14px; }
  .tes .txt blockquote { font-size: 16px !important; }

  /* ── 08 · PARTNERS: los 4 aliados en 2 × 2 con WEEXP al centro ──────────── */
  #partners .g12 > div[style*="grid-column: 7"] { margin-top: 8px; }
  #partners [style*="gap: 56px 88px"] { gap: 28px 28px !important; }
  #partners .socio { height: 104px; padding: 14px; }
  #partners [style*="width: 80px; height: 80px"] { width: 68px !important; height: 68px !important; margin: -34px 0 0 -34px !important; }
  #partners [style*="width: 80px; height: 80px"] span:first-child { font-size: 12px !important; }
  #partners [style*="width: 80px; height: 80px"] span:last-child { font-size: 7px !important; }

  /* ── 09 · CIERRE: grilla de fotos más baja, 5 columnas y texto centrado ─── */
  #cierre { padding: 48px 0 88px !important; }
  #cierre > div[style*="max-width: 1440px"] { padding: 0 20px !important; }
  #cierre [style*="repeat(9, minmax(0, 1fr))"] { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 10px !important; height: 300px !important; margin: 0 -30px; }
  #cierre [style*="repeat(9, minmax(0, 1fr))"] > .colf:nth-child(n+6) { display: none; }
  #cierre .colf { gap: 10px; }
  #cierre h2 { font-size: 27px !important; }
  #cierre .cta9 { width: 100%; justify-content: center; }
  #cierre [style*="flex-wrap: wrap; justify-content: center"] { width: 100%; flex-direction: column; }

  /* ── 10 · PIE: columnas apiladas, enlaces en dos columnas ───────────────── */
  .weexp-home footer { padding: 64px 0 28px !important; }
  .weexp-home footer .g12 { row-gap: 36px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 20px !important; }
  .weexp-home footer .g12 > div:first-child,
  .weexp-home footer .g12 > div.col { grid-column: 1 / -1 !important; }
  .weexp-home footer .g12 > nav.col { grid-column: auto !important; }
  .weexp-home footer [style*="font: 800 300px"] { font-size: 96px !important; padding: 0 20px !important; margin-top: 36px !important; }
  .weexp-home footer [style*="padding: 22px 80px 0"] { padding: 20px 20px 0 !important; flex-direction: column; align-items: flex-start !important; }
}

/* ── 04 · COMUNIDAD en celular y tablet vertical (≤ 960 px): sin scroll fijo, imagen entre el texto y las cajas ── */
@media (max-width: 960px) {
  #comunidad { height: auto !important; padding: 72px 0; }
  #comunidad > div[style*="position: sticky"] { position: relative !important; top: auto !important; height: auto !important; overflow: visible !important; }
  #comunidad .g12 { height: auto !important; }
  /* orden en celular: título y texto → imagen → cajas con la barrita (el JS sincroniza con la imagen) */
  #comunidad .g12 > div[style*="grid-column: 7"] { display: contents !important; }
  #comunidad .g12 > div[style*="grid-column: 7"] > * { order: 1; justify-self: start; }
  #comunidad .g12 > div[style*="height: 440px"] { height: 360px !important; order: 2; }
  #comunidad .g12 > div[style*="grid-column: 7"] > div[style*="grid-template-columns: 6px"] { order: 3; justify-self: stretch; margin-top: 0 !important; }
  #comunidad .g12 { row-gap: 16px !important; }
  #comunidad .g12 > div[style*="height: 440px"] { margin: 16px 0; }
  #comunidad .vis > div { width: min(300px, calc(100vw - 72px)) !important; transform: scale(.94); }
  #comunidad .vis > div[style*="height: 380px"] { height: 320px !important; }
  #comunidad .caja { height: auto !important; min-height: 80px; }
  #comunidad .g12 { grid-template-columns: minmax(0, 1fr) !important; }
  #comunidad .g12 > div { grid-column: 1 / -1 !important; }
}
