/* ==========================================================================
   Home · Nuestra esencia + cifras
   Framer: contenedor con degradado (blanco 0% → 7%), 0/48/120 (desktop),
   0/0/120 (tablet), 0/14/120 (teléfono); texto revelado 24/30 centrado (máx. 415px);
   contadores Inter 500 de 128px (96 tablet, 112 teléfono) con cero tachado.
   ========================================================================== */

@layer sections {
  .about {
    position: relative;
    z-index: 3;
    max-width: 1920px;
    margin-inline: auto;
    padding: 0 12px;
  }

  .about__container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    padding: 0 14px 120px;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    background: linear-gradient(180deg, var(--palette-white-0) 0%, var(--palette-white-7) 100%);
  }

  .about__top {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 118px;
    width: 100%;
    max-width: 636px;
  }

  /* Wordmark tenue detrás del texto (en Framer: imagen 636×312 en "cover", opacidad 0.2) */
  .about__wordmark {
    position: absolute;
    top: 100px;
    left: 50%;
    width: min(444px, 80%);
    opacity: 0.2;
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 75%);
    translate: -50% 0;
    pointer-events: none;
  }

  .about__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.28em;
    max-width: 415px;
    color: var(--color-text-soft);
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
    text-align: center;
  }

  .reveal-text__word {
    display: inline-block;
    color: rgb(128 128 128);

    &.is-initial {
      color: var(--color-text-soft);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal-text__word {
      color: var(--color-text-soft);
    }
  }

  /* --- Cifras --- */
  .stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .stats__item {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 48px;
  }

  .stats__label {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--palette-smoky-black);
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 24px;
  }

  .stats__value {
    font-family: "Inter Numerals", var(--font-sans);
    background: linear-gradient(180deg, var(--palette-white) 0%, var(--palette-dusty-gray) 100%);
    background-clip: text;
    color: transparent;
    font-size: 112px;
    font-weight: 500;
    line-height: 112px;
    letter-spacing: -4.48px;
    font-feature-settings: "zero" on, "tnum" on, "cv02", "cv03", "cv04", "cv05", "cv06", "cv07", "cv08", "cv09", "cv10", "cv11", "cv12", "cv13";
    font-variant-numeric: tabular-nums slashed-zero;
  }

  /* La última cifra va en amarillo sólido */
  .stats__item:last-child .stats__value {
    background: none;
    color: var(--color-accent);
  }

  /* --- Tablet --- */
  @media (min-width: 810px) {
    .about {
      padding-inline: 24px;
    }

    .about__container {
      padding: 0 0 120px;
      border-radius: 0 0 56px 56px;
    }

    .stats {
      flex-direction: row;
      justify-content: space-between;
      gap: 0;
    }

    .stats__item {
      gap: 64px;
      max-width: 306px;

      &:first-child {
        max-width: 416px;
      }
    }

    .stats__value {
      font-size: 96px;
      line-height: 96px;
      letter-spacing: -5.12px;
    }
  }

  /* --- Desktop --- */
  @media (min-width: 1440px) {
    .about__container {
      padding: 0 48px 120px;
    }

    .stats {
      gap: 60px;
    }

    .stats__value {
      font-size: 128px;
      line-height: 128px;
    }
  }
}
