/* =====================================================================
   landing.css — solo la portada (index.html), sección por sección
   ===================================================================== */



  /* ---------- Hero = ScrollExpand (React Bits, CSS íntegro) ----------
     Estructura: .scroll-expand > __track > __stage(sticky) > __frame(clip-path)
     La sección .hero es el root del componente (useWindowScroll). */
  .hero { width: 100%; background: var(--navy); }   /* fondo del escenario mientras el marco está pequeño */
  .scroll-expand { position: relative; width: 100%; height: 100%; }
  .scroll-expand--scroller { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
  .scroll-expand--scroller::-webkit-scrollbar { display: none; }
  .scroll-expand__track { position: relative; width: 100%; }
  .scroll-expand__stage { position: sticky; top: 0; width: 100%; overflow: hidden; --se-title-size: 4rem; }
  .scroll-expand__frame { position: absolute; inset: 0; clip-path: inset(21% 29% 21% 29% round 24px); will-change: clip-path; }
  .scroll-expand__media {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 55% 40%;
    will-change: transform; transform-origin: center;
    user-select: none; -webkit-user-drag: none;
  }
  .scroll-expand__scrim {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.35));
    opacity: 0;
  }
  .scroll-expand__overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 6%;
    opacity: 0; will-change: opacity, transform;
  }
  .scroll-expand__title {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    margin: 0; padding: 0 6%; text-align: center;
    font-size: var(--se-title-size); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
    color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    pointer-events: none; will-change: opacity, transform;
  }
  .scroll-expand__hint {
    position: absolute; left: 0; right: 0; bottom: 1.25rem; text-align: center;
    font-size: 0.8125rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.55);
    pointer-events: none; will-change: opacity, transform;
  }
  /* Capa de contenido: maquetación original del hero (Figma), siempre visible.
     El componente solo mueve la imagen, el scrim y el hint. */
  .hero__layer {
    position: absolute; inset: 0; z-index: 2;
    padding: 30vh var(--pad-x) 10vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .hero__img { display: block; opacity: 0; will-change: transform, opacity; }
  @media (prefers-reduced-motion: reduce) { .hero__img { opacity: 1; } }
  .hero__bar { opacity: 0; will-change: opacity, transform, filter; }
  @media (prefers-reduced-motion: reduce) { .hero__bar { opacity: 1; } }
  .hero__content { position: relative; z-index: 1; width: 100%; max-width: 76rem; display: flex; flex-direction: column; align-items: center; gap: clamp(3rem, 12vh, 8.5rem); }
  .hero__headline { width: 100%; max-width: 68rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; color: var(--ice); }
  .hero__title { font-size: var(--fs-hero); line-height: 0.92; }
  .hero__sub { line-height: 1.6; }
  .hero__bar { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .hero__tagline { max-width: 23.5rem; display: flex; flex-direction: column; gap: 1.25rem; color: var(--ice); align-self: start; }
  .hero__tagline-title { font-weight: 300; font-size: var(--fs-tagline); line-height: 1.05; text-transform: uppercase; }
  .hero__tagline-text { line-height: 1.6; }
  .hero__ctas { justify-self: end; display: flex; flex-direction: column; gap: 1.25rem; align-items: stretch; }

  /* ---------- How it works ---------- */
  .how {
    width: 100%;
    background: var(--grey);
    padding: 0 clamp(1.25rem, 5.2vw, 4.875rem);
    display: flex; flex-direction: column; justify-content: center;
    min-height: 65vh;
  }
  .how__steps { display: flex; align-items: center; gap: clamp(2rem, 4.7vw, 4.4375rem); width: 100%; }
  .step { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(3rem, 14vh, 8.875rem); }
  .step__info { display: flex; flex-direction: column; gap: 1.25rem; color: var(--navy); }
  .step__num { display: none; }
  .step__title { font-size: var(--fs-h2); line-height: 0.92; }
  .step__text { font-weight: 300; line-height: 1.5; }
  .step__img { position: relative; width: clamp(10rem, 14vw, 13.3125rem); aspect-ratio: 1; overflow: hidden; }
  .step__img--shift img { position: absolute; left: 0; top: -33.35%; width: 100%; height: 133.33%; max-width: none; object-fit: cover; }
  .step--photo { flex: 0 0 34vw; max-width: 32.75rem; height: 65vh; position: relative; }
  .step--photo .step__photo { position: absolute; inset: 0; }

  /* ---------- Durability ---------- */
  .durability {
    width: 100%;
    height: 70vh;
    background: var(--navy);
    padding: var(--pad-y) var(--pad-x);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .durability__content { width: 100%; max-width: 60.75rem; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
  .durability__title { font-size: var(--fs-h2); line-height: 0.92; color: var(--grey); text-align: center; }
  .durability__title .script { font-size: clamp(2.25rem, 1.4rem + 2.3vw, 3.5rem); }   /* 56px desktop → 36px móvil */
  .durability__text { max-width: 32.375rem; font-weight: 300; line-height: 0.92; color: var(--grey); text-align: center; }
  .durability__cta { width: 21.75rem; }


  /* ---------- ImageTrail (React Bits, variante 1) ----------
     Solo actúa mientras el puntero está dentro de Section / Durability.
     Estructura idéntica al componente: .content > .content__img > .content__img-inner */
  .durability { position: relative; overflow: hidden; }
  .durability__content { position: relative; z-index: 1; }
  .content {
    position: absolute; inset: 0;        /* ocupa la sección (width/height 100%) */
    z-index: 100;
    border-radius: 8px;
    background: transparent;
    overflow: visible;                   /* el recorte lo hace .durability */
    pointer-events: none;
  }
  .content__img {
    width: 190px;
    aspect-ratio: 1.1;
    border-radius: 15px;
    position: absolute; top: 0; left: 0;
    opacity: 0;
    overflow: hidden;
    will-change: transform, filter;
  }
  .content__img-inner {
    background-position: 50% 50%;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-size: cover;
    position: absolute;
    top: calc(-1 * 20px / 2);
    left: calc(-1 * 20px / 2);
  }

  /* ---------- Occasions ---------- */
  .occasions {
    width: 100%;
    min-height: 70vh;
    padding: 5vh 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    align-content: center;
  }
  .card {
    position: relative;
    height: clamp(20rem, 60vh, 37.5rem);
    border-radius: 4px;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 1.125rem 2.25rem;
    color: var(--white);
  }
  .card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
  .card__img--2 { object-position: 55% 40%; }
  .card__img--3 { object-position: 55% 50%; }
  .card__content { position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
  .card__title { font-size: var(--fs-card); line-height: 1.01; }
  .card__text { font-size: var(--fs-small); line-height: 1.5; max-width: 17.5rem; }

  /* ---------- Brand story ---------- */
  .story {
    width: 100%;
    min-height: 50vh;
    padding: var(--pad-y) var(--pad-x);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .story__content { width: 100%; max-width: 76rem; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; color: var(--navy); }
  .story__title { width: 100%; font-size: var(--fs-h2); line-height: 0.8; }
  .story__title .script { font-size: var(--fs-script); }
  .story__cols { display: flex; gap: var(--gap); width: 100%; font-weight: 300; line-height: 1.6; }
  .story__cols p { flex: 1 0 0; min-width: 0; }

  /* ---------- Gallery ---------- */
  /* Los rótulos Ballet se anclan a los bordes superior e inferior de la
     sección y sobresalen la mitad de su altura hacia las secciones vecinas
     (z-index alto para que queden por encima). El desborde horizontal lo
     recorta el body con overflow-x hidden. */
  .gallery {
    width: 100%;
    padding: 15vh 0;
    display: flex; flex-direction: column; align-items: center;
    z-index: 3;
  }
  .gallery__rows { width: 100%; display: flex; flex-direction: column; gap: clamp(1rem, 1.65vw, 1.5625rem); }
  .gallery__row { width: 100%; display: flex; gap: var(--gap); overflow: hidden; }
  .gallery__row--offset { padding-left: clamp(1.5rem, 2.65vw, 2.5rem); }
  .gallery__item { position: relative; flex: 1 0 0; min-width: 0; height: clamp(14rem, 40vh, 25rem); border-radius: 4px; overflow: hidden; }
  .gallery__item img { border-radius: 4px; }
  .gallery__script {
    position: absolute;
    left: -1.5vw;
    font-family: var(--font-script);
    font-size: var(--fs-gallery);        /* valor inicial; el JS lo ajusta al ancho de pantalla */
    line-height: 1;
    color: var(--navy);
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;
  }
  .gallery__script--top    { top: 110px;   transform: translateY(-50%); }
  .gallery__script--bottom { bottom: 90px; transform: translateY(50%); }

  /* ---------- Stats ---------- */
  .stats {
    width: 100%;
    padding: var(--pad-y) var(--pad-x);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.3vw, 1.25rem);
    align-items: start;
  }
  .stat {
    height: clamp(12.5rem, 28vh, 19rem);
    border: 1px solid var(--navy-20);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
    min-width: 0;
  }
  .stat__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--navy-50); }
  .stat__value-group { width: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; text-align: right; }
  .stat__value { font-size: var(--fs-stat); color: var(--navy-text); text-transform: none; }
  .stat__sub { font-size: 0.75rem; color: var(--navy-50); }

  /* ---------- FAQ ---------- */
  .faq { width: 100%; padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: 2.5rem; }
  .faq__title { font-size: var(--fs-faq-t); color: var(--navy-text); }
  .faq__list { display: flex; flex-direction: column; gap: 1rem; }
  .faq__item { display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 1.5rem; }
  .faq__q { font-family: var(--font-display); font-weight: 600; font-variation-settings: "opsz" 14, "wdth" 100; font-size: var(--fs-faq-q); color: var(--navy-text); overflow-wrap: break-word; }
  .faq__divider { border-top: 1px solid var(--navy-20); }
  .faq__a { line-height: 1.5; color: var(--navy-70); }


  /* ---------- Testimonios (port de testimonials-columns-1) ----------
     Tres columnas que se desplazan en bucle; el track lleva el contenido
     duplicado y se mueve a -50% con un keyframe lineal. */
  .tst { width: 100%; padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
  .tst__head { max-width: 34rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.16,1,.3,1) .1s, transform .8s cubic-bezier(.16,1,.3,1) .1s; }
  .tst__head.is-inview { opacity: 1; transform: none; }
  .tst__tag { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .15em; text-transform: uppercase; color: var(--sky); border: 1px solid var(--navy-20); border-radius: 4px; padding: .3rem 1rem; }
  .tst__title { font-size: var(--fs-h2); line-height: .96; color: var(--navy-text); }
  .tst__sub { font-weight: 300; line-height: 1.6; color: var(--navy-70); }
  .tst__cols { display: flex; justify-content: center; gap: var(--gap); max-height: 740px; overflow: hidden; width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent); mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent); }
  .tst-col { flex: 1 1 0; max-width: 20rem; min-width: 0; }
  .tst-track { display: flex; flex-direction: column; gap: var(--gap); padding-bottom: var(--gap); animation: tst-scroll var(--tst-duration, 10s) linear infinite; }
  .tst__cols:hover .tst-track { animation-play-state: paused; }
  @keyframes tst-scroll { to { transform: translateY(-50%); } }
  .tst-card { padding: clamp(1.5rem, 2.6vw, 2.5rem); border-radius: 8px; border: 1px solid var(--navy-20); background: var(--white); box-shadow: 0 10px 30px rgba(28,56,87,.06); }
  .tst-card__text { font-weight: 300; line-height: 1.6; color: var(--navy); }
  .tst-card__who { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
  .tst-card__avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sky); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .75rem; flex: 0 0 auto; }
  .tst-card__name { font-weight: 400; line-height: 1.25; color: var(--navy-text); }
  .tst-card__role { font-size: var(--fs-small); line-height: 1.25; color: var(--navy-60); }
  .tst-col--md, .tst-col--lg { display: none; }
  @media (min-width: 768px) { .tst-col--md { display: block; } }
  @media (min-width: 1024px) { .tst-col--lg { display: block; } }
  @media (prefers-reduced-motion: reduce) { .tst-track { animation: none; } .tst__head { opacity: 1; transform: none; } }

  /* ---------- CTA final ---------- */
  .cta {
    width: 100%;
    min-height: 60vh;
    padding: var(--pad-y) var(--pad-x);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; max-width: none; }
  .cta__content { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(1.25rem, 3vh, 1.875rem); color: var(--white); }
  .cta__title { font-size: var(--fs-h2); line-height: 0.92; text-align: center; }
  .cta__text { max-width: 29.625rem; font-weight: 300; line-height: 0.92; text-align: center; }
  .btn-cta {
    background: var(--sky);
    color: var(--white);
    padding: 1.25rem 2.5rem;
    border-radius: 4px;
    font-weight: 300;
    line-height: 0.92;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center;
  }


  /* =========================================================
     iPad / tablet (≤ 1024px) — frame de 820px
     ========================================================= */
  @media (max-width: 1024px) {
    .hero__content { max-width: 43rem; gap: clamp(3rem, 14vh, 9.375rem); }
    .hero__bar { grid-template-columns: 1fr; justify-items: center; gap: 2.5rem; }
    .hero__tagline { text-align: center; align-items: center; align-self: center; }
    .hero__ctas { justify-self: center; }
    .btn-hero { width: 14.0625rem; }

    .how { min-height: auto; padding: 0; }
    .how__steps { flex-direction: column; gap: 0; align-items: stretch; }
    .step { flex: none; width: 100%; }
    .step--describe { flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(2rem, 6vw, 8.875rem); min-height: 50vh; }
    .step--describe .step__info { flex: 0 1 20rem; padding-left: clamp(1.25rem, 3vw, 2.5rem); }
    .step--describe .step__img { width: 51.5%; height: 50vh; aspect-ratio: auto; }
    .step--photo { flex: none; max-width: none; width: 100%; height: 49vh; }
    .step--receive { flex-direction: row; align-items: center; gap: clamp(2rem, 6vw, 5rem); min-height: 49vh; }
    .step--receive .step__img { width: 49%; height: 49vh; aspect-ratio: auto; }
    .step--receive .step__info { flex: 0 1 20.75rem; padding-right: 1.25rem; }

    .hero__layer { padding: 25vh clamp(1.5rem, 8vw, 4.5rem) 12vh; }

    .durability__content { max-width: 32.375rem; gap: 2.5rem; }

    .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.25rem; gap: 1.25rem; min-height: auto; }
    .card { height: clamp(18rem, 43vh, 21.875rem); }

    .story { min-height: auto; }
    .story__content { max-width: 39.375rem; }

    .gallery { padding: 12vh 0; }
    .gallery__item { height: clamp(12rem, 30vh, 15.625rem); }

    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 3.75rem 3.125rem; }
    .stat { height: 12.5rem; }

    .faq { padding: var(--pad-y) clamp(1.5rem, 18vw, 9.25rem); }
  }

  /* =========================================================
     Móvil (≤ 640px) — frame de 390px
     ========================================================= */
  @media (max-width: 640px) {
    body { background: var(--white); }
    .m { display: block; }
    .d { display: none !important; }

    /* Hero: apilado a la izquierda, copy propio de móvil */
    .hero__layer { padding: 22vh 1.25rem 3.75rem; align-items: stretch; justify-content: flex-start; }
    .hero__content { max-width: none; align-items: stretch; gap: 2rem; }
    .hero__headline { max-width: none; align-items: flex-start; text-align: left; gap: 2rem; }
    .hero__title { font-weight: 700; line-height: 1.05; }
    .hero__sub { font-size: 0.875rem; line-height: normal; color: var(--ice-60); }
    .hero__bar { grid-template-columns: 1fr; gap: 2rem; justify-items: stretch; }
    .hero__tagline { max-width: none; text-align: left; align-items: flex-start; gap: 2rem; }
    .hero__tagline-title { font-weight: 600; font-size: 0.875rem; text-transform: none; line-height: normal; }
    .hero__tagline-text { color: var(--ice-60); }
    .hero__ctas { gap: 0.75rem; }
    .btn-hero { width: 100%; min-height: 0; padding: 1rem 1.5rem; border-radius: 4px; font-weight: 600; font-size: 0.875rem; line-height: normal; text-transform: none; }

    /* Cómo funciona: 01 → imagen → 02 → imagen */
    .how { padding: 3rem 1.25rem; }
    .how__steps { gap: 2rem; }
    .step--describe, .step--receive { flex-direction: column; align-items: stretch; gap: 2rem; min-height: 0; }
    .step--receive { flex-direction: column-reverse; }
    .step__info { gap: 0.75rem; flex: none; padding: 0 !important; }
    .step__num { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.15em; color: var(--navy-40); }
    .step__title { font-size: 1.25rem; line-height: 1.2; }
    .step__text { font-weight: 400; line-height: 1.6; color: var(--navy-60); }
    .step__divider { border-top: 1px solid var(--navy-20); }
    .step--describe .step__img, .step--receive .step__img { width: 100%; height: 13.75rem; aspect-ratio: auto; border-radius: 4px; }
    .step__img--shift img { position: absolute; inset: 0; width: 100%; height: 100%; top: 0; object-fit: cover; }
    .step--photo { display: none; }

    /* Durabilidad */
    .durability { height: 70vh; padding: 3.75rem 1.25rem; align-items: flex-start; }
    .durability__content { max-width: none; align-items: flex-start; gap: 1.5rem; }
    .durability__title { text-align: left; line-height: 1; }
    .durability__cta { width: 100%; }
    .durability__text { max-width: none; font-weight: 400; line-height: 1.6; text-align: left; }

    /* Ocasiones */
    .occasions { grid-template-columns: 1fr; padding: 1.25rem; gap: 0.5rem; }
    .card { height: 13.75rem; }
    .card__title { font-size: 1.75rem; }

    /* Brand story */
    .story { padding: 3rem 1.25rem; }
    .story__content { max-width: none; align-items: flex-start; gap: 1rem; }
    .story__title { line-height: 1; }
    .story__cols { flex-direction: column; gap: 1rem; font-weight: 400; line-height: 1.7; color: var(--navy-60); }

    /* Galería: 2 columnas, 6 fotos, sin margen */
    .gallery { padding: 12vh 0; }
    .gallery__rows, .gallery__row { gap: 0.25rem; }
    .gallery__row { flex-wrap: wrap; }
    .gallery__row--offset { padding-left: 0; }
    .gallery__item { flex: 1 0 45%; height: 15rem; border-radius: 2px; }
    .gallery__item img { border-radius: 2px; }
    .gallery__item--extra { display: none; }

    /* Stats 2×2 */
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 3rem 0.75rem; }
    .stat { height: 8.9375rem; padding: 1.25rem; }
    .stat__value { font-size: clamp(1.5rem, 8vw, 2.25rem); }
    .stat__label { font-size: 0.625rem; }

    /* FAQ */
    .faq { padding: 3rem 1.25rem; gap: 1.5rem; }
    .faq__title { text-transform: none; }
    .faq__list { gap: 0.75rem; }
    .faq__item--extra { display: none; }

    /* CTA final */
    .cta { min-height: auto; padding: 3.75rem 1.25rem; }
    .cta__content { gap: 1.25rem; }
    .cta__title { font-size: 1.75rem; font-weight: 700; line-height: 1; }
    .cta__text { max-width: none; font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
    .btn-cta { width: 100%; padding: 1rem 2rem; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.05em; line-height: normal; }

    /* Footer */
    .footer { padding: 2rem 1.25rem; gap: 1.5rem; }
    .footer__info { flex-direction: column; gap: 1.5rem; }
    .footer__brand { max-width: none; gap: 1.5rem; }
    .footer__name { font-family: var(--font-mono); font-weight: 400; font-size: 0.875rem; letter-spacing: 0.08em; }
    .footer__desc { font-weight: 400; font-size: 0.75rem; color: rgba(237, 231, 219, 0.5); }
    .footer__col { gap: 0.25rem; }
    .footer__col-title { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; color: rgba(237, 231, 219, 0.4); }
    .footer__col p:not(.footer__col-title) { color: rgba(237, 231, 219, 0.7); }
    .footer__legal { padding-top: 0; font-size: 0.5625rem; letter-spacing: 0.05em; color: rgba(237, 231, 219, 0.3); }
  }

