/* =====================================================================
   RESPONSIVE — QUIÉNES SOMOS (.about-page, prefijo about-)
   ---------------------------------------------------------------------
   Scope: .rsp (solo páginas adaptadas).
   Móvil:  < 768px · Tablet: 768px – 1199.98px · Desktop (≥1200px) intacto.
   Desktop usa un lienzo fijo 1440px (.about-main) con hijos en
   position:absolute. Aquí cada sección pasa a flujo normal
   (position:relative + padding) manteniendo colores, tipografías,
   imágenes, orden y TODAS las animaciones (marquees + reveal on-scroll;
   el observer usa threshold 0.25 — ya es sensible en móvil, sin
   necesidad de editar la vista JSX).
   ===================================================================== */

/* ────────────────────────────────────────────────────────────────────
   COMÚN (móvil + tablet)
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {

  /* ═══ RESET DEL LIENZO 1440px ═══ */
  body.about-page {
    min-height: 0;
  }

  .rsp .about-main {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column; /* mismo orden visual que el lienzo desktop */
  }

  /* Cada sección vuelve al flujo */
  .rsp .about-section {
    position: relative;
    width: 100%;
    height: auto;
  }

  /* ═══ SECCIÓN: HERO ═══ */
  .rsp .about-hero {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    transform: none;
    overflow: hidden;
  }

  /* Fondo cover anclado a toda la sección */
  .rsp .about-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .rsp .about-hero-content {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: min(100%, 900px);
    margin: 0 auto;
    z-index: 1;
  }

  /* Marquee de fotos del equipo: entra al flujo, conserva su animación
     (el JS recalcula --marquee-distance en resize) */
  .rsp .about-frame5 {
    position: relative;
    top: 0;
    height: auto;
  }

  /* ═══ SECCIÓN: MISIÓN ═══ */
  .rsp .about-section-mission {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rsp .about-pill {
    position: static;
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 12px 20px;
    box-sizing: border-box;
  }

  .rsp .about-mission-text {
    position: static;
    width: min(100%, 716px);
    margin: 28px 0 0;
  }

  /* ═══ SECCIÓN: VIDEO / MAPA DESTACADO ═══ */
  .rsp .about-video-shell {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    max-width: 994px;
    height: auto;
    margin: 0 auto;
  }

  .rsp .about-video-card {
    width: 100%;
    height: auto;
  }

  .rsp .about-video-media {
    height: auto; /* conserva la proporción intrínseca del mapa */
  }

  /* ═══ SECCIÓN: VISIÓN ═══ */
  .rsp .about-section-vision {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    isolation: isolate;
  }

  /* Trazo decorativo como fondo cover de la sección */
  .rsp .about-vision-stroke {
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: -1;
  }

  /* Fades blancos anclados a los bordes de la sección */
  .rsp .about-vision-fade {
    left: 0;
    width: 100%;
    z-index: -1;
  }

  .rsp .about-vision-fade-top {
    top: 0;
    height: 40%;
  }

  .rsp .about-vision-fade-bottom {
    top: auto;
    bottom: 0;
    height: 35%;
  }

  .rsp .about-vision-title {
    position: static;
    width: min(100%, 520px);
    margin: 24px 0 0;
  }

  .rsp .about-vision-copy {
    position: static;
    width: min(100%, 520px);
    margin: 18px 0 0;
  }

  /* ═══ SECCIÓN: GALERÍAS DEL EQUIPO (marquees verticales) ═══ */
  .rsp .about-section-galleries {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rsp .about-gallery {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
  }

  .rsp .about-gallery-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* El offset desktop (-926px) solo tiene efecto sin animación
     (reduced motion); en responsive ambas columnas parten alineadas.
     Las animaciones marquee siguen activas. */
  .rsp .about-gallery-right .about-gallery-track {
    transform: none;
  }

  /* ═══ SECCIÓN: MÉTRICAS ("Éxitos Sumados") ═══ */
  .rsp .about-section-stats {
    display: grid;
  }

  .rsp .about-stats-title {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 8px;
  }

  .rsp .about-stat-card {
    position: static;
    width: 100%;
    height: auto;
    min-height: 132px;
    padding: 20px 14px;
    box-sizing: border-box;
  }

  /* ═══ SECCIÓN: CTA FINAL ("Únete a la comunidad") ═══ */
  .rsp .about-cta-card {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
  }

  .rsp .about-cta-media {
    height: auto; /* banner con texto horneado: conserva proporción */
  }

  /* Badges de tiendas centrados, solapados sobre el banner */
  .rsp .about-cta-actions {
    position: static;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: -46px;
  }

  .rsp .about-cta-store,
  .rsp .about-cta-store img {
    height: 35px;
  }

  /* ═══ FOOTER (core.css lo apila; aquí solo se anula el anclaje
         absoluto propio de .about-page). OJO: about-page vive en el
         <body>, por eso el selector va ANTES de .rsp ═══ */
  body.about-page .rsp .footer {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
    height: auto;
    padding: 80px 24px 72px;
    gap: 26px;
  }
}

/* ────────────────────────────────────────────────────────────────────
   MÓVIL (< 768px)
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

  /* ═══ HERO ═══ */
  .rsp .about-hero {
    padding: 128px 0 48px;
  }

  /* Trazo decorativo gigante (1965px): no encaja en móvil */
  .rsp .about-hero-stroke {
    display: none;
  }

  .rsp .about-hero-content {
    padding: 0 24px;
  }

  .rsp .about-hero-line {
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.35;
  }

  .rsp .about-hero-title {
    font-size: clamp(34px, 9.5vw, 48px);
    line-height: 1.12;
  }

  .rsp .about-frame5 {
    margin-top: 36px;
  }

  .rsp .about-frame5-track {
    gap: 16px;
  }

  .rsp .about-frame-item.team {
    width: 200px;
    height: 200px;
  }

  .rsp .about-frame-item.offset-1 {
    margin-top: 26px;
  }

  .rsp .about-frame-item.offset-2 {
    margin-top: 32px;
  }

  /* ═══ MISIÓN ═══ */
  .rsp .about-section-mission {
    padding: 56px 24px;
  }

  .rsp .about-mission-text {
    font-size: clamp(24px, 6.5vw, 34px);
    line-height: 1.28;
  }

  /* ═══ VIDEO / MAPA ═══ */
  .rsp .about-section-video {
    padding: 0 24px 56px;
  }

  .rsp .about-video-shell {
    padding: 10px;
    border-radius: 20px;
  }

  .rsp .about-video-card {
    border-radius: 14px;
  }

  /* ═══ VISIÓN ═══ */
  .rsp .about-section-vision {
    padding: 56px 24px;
  }

  .rsp .about-vision-title {
    font-size: clamp(24px, 6.5vw, 30px);
    line-height: 1.3;
  }

  /* ═══ GALERÍAS ═══ */
  .rsp .about-section-galleries {
    gap: 16px;
    padding: 0 24px 56px;
  }

  .rsp .about-gallery {
    height: 430px;
    gap: 16px;
  }

  .rsp .about-gallery-track {
    gap: 16px;
  }

  .rsp .about-gallery-item {
    border-radius: 26px;
  }

  .rsp .about-gallery::before,
  .rsp .about-gallery::after {
    height: 80px;
  }

  /* ═══ MÉTRICAS ═══ */
  .rsp .about-section-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 56px 24px;
  }

  .rsp .about-stats-title {
    font-size: clamp(24px, 6.5vw, 28px);
  }

  /* 5 tarjetas en 2 columnas: la última ocupa el ancho completo */
  .rsp .about-stat-card.about-stat-cities {
    grid-column: 1 / -1;
  }

  .rsp .about-stat-card {
    border-radius: 32px;
  }

  .rsp .about-stat-icon {
    width: 46px;
    height: 46px;
  }

  /* ═══ CTA FINAL ═══ */
  .rsp .about-section-cta {
    padding: 0 24px 64px;
  }

  .rsp .about-cta-card {
    border-radius: 22px;
  }
}

/* ────────────────────────────────────────────────────────────────────
   TABLET (768px – 1199.98px)
   ──────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1199.98px) {

  /* ═══ FOOTER — respetar el layout grid de tablet de core.css ═══ */
  body.about-page .rsp .footer {
    padding: 88px 48px 80px;
    gap: 16px 56px;
  }

  /* ═══ HERO ═══ */
  .rsp .about-hero {
    padding: 150px 0 64px;
  }

  /* Trazo decorativo: reencuadrado como halo superior */
  .rsp .about-hero-stroke {
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    max-width: none;
    height: auto;
  }

  .rsp .about-hero-content {
    padding: 0 48px;
  }

  .rsp .about-hero-title {
    font-size: clamp(44px, 6.5vw, 60px);
    line-height: 1.12;
  }

  .rsp .about-frame5 {
    margin-top: 44px;
  }

  .rsp .about-frame5-track {
    gap: 22px;
  }

  .rsp .about-frame-item.team {
    width: 290px;
    height: 290px;
  }

  .rsp .about-frame-item.offset-1 {
    margin-top: 36px;
  }

  .rsp .about-frame-item.offset-2 {
    margin-top: 42px;
  }

  /* ═══ MISIÓN ═══ */
  .rsp .about-section-mission {
    padding: 72px 48px;
  }

  .rsp .about-mission-text {
    font-size: clamp(30px, 4.5vw, 40px);
    line-height: 1.25;
  }

  /* ═══ VIDEO / MAPA ═══ */
  .rsp .about-section-video {
    padding: 0 48px 72px;
  }

  .rsp .about-video-shell {
    padding: 20px;
  }

  .rsp .about-video-card {
    border-radius: 20px;
  }

  /* ═══ VISIÓN ═══ */
  .rsp .about-section-vision {
    padding: 72px 48px;
  }

  /* ═══ GALERÍAS ═══ */
  .rsp .about-section-galleries {
    gap: 24px;
    padding: 0 48px 72px;
  }

  .rsp .about-gallery {
    height: 620px;
    gap: 24px;
  }

  .rsp .about-gallery-track {
    gap: 24px;
  }

  .rsp .about-gallery-item {
    border-radius: 38px;
  }

  .rsp .about-gallery::before,
  .rsp .about-gallery::after {
    height: 120px;
  }

  /* ═══ MÉTRICAS ═══ */
  .rsp .about-section-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 72px 48px;
  }

  .rsp .about-stat-card {
    border-radius: 44px;
  }

  /* ═══ CTA FINAL ═══ */
  .rsp .about-section-cta {
    padding: 0 48px 80px;
  }

  .rsp .about-cta-card {
    border-radius: 30px;
  }
}
