/* =========================================================
   KUATRO – QUIÉNES SOMOS
   Archivo: /assets/quienes-somos/quienes-somos.css

   Tipografía: Manrope (cargada desde el header global)
   Naranja Kuatro: #F35109
========================================================= */

:root {
  --kqs-orange: var(--accent, #F35109);
  --kqs-paper: #f7f7f5;
  --kqs-white: #ffffff;
  --kqs-ink: #17191c;
  --kqs-muted: #686b70;
  --kqs-line: #dcddde;
  --kqs-radius: 22px;
  --kqs-font: "Manrope", Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.kqs-page,
.kqs-page * {
  box-sizing: border-box;
}

.kqs-page {
  position: relative;

  width: 100%;

  overflow-x: clip;
  overflow-y: visible;

  background: var(--kqs-paper);
  color: var(--kqs-ink);

  font-family: var(--kqs-font);
}


@supports not (overflow: clip) {

  .kqs-page {
    overflow: visible;
  }

  body {
    overflow-x: hidden;
  }
}
/* =========================================================
   1. FRASE DE INICIO
========================================================= */

.kqs-intro {
  min-height: 76svh;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  margin-top: 0;

  padding:
    clamp(185px, 19vh, 230px)
    4.5vw
    18px;
}

.kqs-kicker {
  max-width: 720px;

  margin:
    0 auto
    clamp(25px, 3.5vh, 42px);

  color: var(--kqs-muted);

  font-size: clamp(11px, .82vw, 14px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
}

.kqs-intro-title {
  width: 100%;
  max-width: 1450px;

  margin: 0 auto;

  font-family: var(--kqs-font);
  font-size: clamp(44px, 5.25vw, 90px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.06em;

  text-align: center;
  text-wrap: balance;
}

.kqs-intro-title em {
  color: var(--kqs-orange);

  font-style: normal;
  font-weight: 650;
}


.kqs-intro-subtitle {
text-align: center;
padding-top: 2%;
}

.kqs-intro-meta {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  margin-top: auto;
  padding-top: clamp(38px, 5vh, 60px);

  color: var(--kqs-muted);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.kqs-intro-meta span:nth-child(2) {
  text-align: center;
}

.kqs-intro-meta span:last-child {
  text-align: right;
}

/* =========================================================
   2. GALERÍA HORIZONTAL
========================================================= */

.kqs-gallery-stage {
  height: clamp(390px, 37vw, 610px);
  overflow: hidden;
  padding-top: 10px;
}

.kqs-gallery-track {
  width: max-content;
  display: flex;
  gap: 10px;
  padding-left: 2vw;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.kqs-gallery-card {
  position: relative;

  height: clamp(315px, 29vw, 470px);

  flex: 0 0 auto;
  overflow: hidden;
  margin: 0;

  border-radius: var(--kqs-radius);

  background:
    linear-gradient(
      135deg,
      rgba(21, 27, 33, .10),
      rgba(21, 27, 33, .56)
    ),
    var(--kqs-img) center / cover no-repeat,
    #aeb2b5;

  transform: scale(1);
  transform-origin: center;

  transition:
    transform .55s cubic-bezier(.2, .7, .2, 1),
    border-radius .55s ease,
    filter .55s ease;
}


/* =========================================================
   GRANO SUTIL SOBRE LAS FOTOGRAFÍAS
========================================================= */

.kqs-gallery-card::after,
.kqs-value-photo::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background-image: url(
    "data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.48'/%3E%3C/svg%3E"
  );

  background-size: 160px 160px;

  mix-blend-mode: soft-light;
  opacity: .10;
}

.kqs-card-wide   { width: clamp(410px, 31vw, 600px); }
.kqs-card-medium { width: clamp(340px, 25vw, 490px); }
.kqs-card-narrow { width: clamp(270px, 20vw, 390px); }

/* Cuando el mouse entra a la línea de fotografías */


/* Reduce todas las fotos mientras el mouse está sobre la línea */

@media (hover: hover) and (pointer: fine) {
  .kqs-gallery-stage:hover .kqs-gallery-card {
    transform: scale(.93);
    border-radius: calc(var(--kqs-radius) + 5px);
  }

  .kqs-gallery-stage:hover .kqs-gallery-card:hover {
    transform: scale(.96);
  }
}

.kqs-photo-placeholder {
  position: absolute;
  inset: 0;
  color: #fff;
  pointer-events: none;
}

.kqs-photo-placeholder span,
.kqs-photo-placeholder strong {
  position: absolute;
  z-index: 2;
}

.kqs-photo-placeholder span {
  top: 20px;
  left: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.kqs-photo-placeholder strong {
  right: 22px;
  bottom: 20px;
  left: 22px;
  font-size: 14px;
  font-weight: 700;
}


/* =========================================================
   3. TITULARES EDITORIALES
========================================================= */

.kqs-statement,
.kqs-difference {
  padding: 0 2vw clamp(120px, 15vh, 210px);
  text-align: center;
}

.kqs-display-title {
  width: 100%;
  margin: -120px 0 0;
  padding: 0;

  font-size: clamp(100px, 12vw, 245px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.075em;

  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;

  transform: scaleX(.70);
  transform-origin: center;
}

.kqs-statement .kqs-display-title {
  margin-top: -6%;
  margin-bottom: 5%;
  font-size: clamp(80px, 8.3vw, 170px);
  letter-spacing: -0.075em;
  white-space: nowrap;
  transform: none;
}

.kqs-editorial-copy {
  max-width: 1080px;
  margin: clamp(95px, 16vh, 190px) auto 0;
  font-size: clamp(30px, 3.25vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-align: center;
  text-wrap: balance;
}


.kqs-difference .kqs-display-title {
  font-size: clamp(80px, 8.3vw, 170px);
  letter-spacing: -0.075em;
  white-space: nowrap;
  transform: none;
  margin-bottom: 4%;
  margin-top: 3%;
}

.kqs-difference .kqs-editorial-copy {
  margin-bottom: -2%;
}


@media (max-width: 767px) {

  /* CONSTRUYAMOS JUNTOS */
  .kqs-statement .kqs-display-title {
    box-sizing: border-box;
    display: block;

    width: 100%;
    max-width: 100vw;
    margin: 2% auto 8%;
    padding: 0 12px;

    font-size: 10.8vw;
    line-height: 0.88;
    letter-spacing: -0.07em;

    white-space: normal;
    text-align: center;
    text-wrap: balance;
    transform: none;
  }

  /* LO QUE NOS DISTINGUE */
  .kqs-difference .kqs-display-title {
    box-sizing: border-box;

    width: 100%;
    margin: -40% auto 8%;
    padding: 0 18px;

    font-size: clamp(46px, 12vw, 58px);
    line-height: 0.88;
    letter-spacing: -0.07em;

    white-space: normal;
    text-align: center;
    text-wrap: balance;
    transform: none;
  }
}

/* =========================================================
   VIDEO INSTITUCIONAL DE YOUTUBE
========================================================= */

.kqs-video-section {
  padding:
    clamp(60px, 8vh, 110px)
    10vw
    clamp(130px, 19vh, 230px);
}

.kqs-video-shell {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 7.2;

  overflow: hidden;

  border-radius: var(--kqs-radius);
  background: #17191c;
}

/* Fotografía previa */

.kqs-video-poster {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform .8s cubic-bezier(.2, .7, .2, 1),
    filter .5s ease;
}

.kqs-video-shell:hover .kqs-video-poster {
  transform: scale(1.025);
  filter: brightness(.92);
}

/* Sombreado */

.kqs-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(10, 15, 19, .02),
    rgba(10, 15, 19, .34)
  );
}

/* Botón de reproducción */

.kqs-video-control {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 12px;

  transform: translate(-50%, -50%);

  padding: 12px 18px 12px 13px;

  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;

  color: #fff;
  background: rgba(13, 17, 21, .30);
  backdrop-filter: blur(10px);

  font-family: var(--kqs-font);
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .25s ease,
    transform .25s ease;
}

.kqs-video-control:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: var(--kqs-orange);
}

.kqs-play-icon {
  position: relative;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #fff;
}

.kqs-play-icon::before {
  content: "";

  width: 0;
  height: 0;

  margin-left: 3px;

  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--kqs-orange);
}

/* Reproductor cargado */

.kqs-youtube-frame {
  position: absolute;
  inset: 0;
  z-index: 5;

  width: 100%;
  height: 100%;

  border: 0;
  background: #000;
}


@media (max-width: 767.98px) {

  .kqs-video-section {
    padding:
      60px
      15px
      110px;
  }

  .kqs-video-shell {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
  }

  .kqs-video-control {
    padding: 9px;
  }

  .kqs-video-control-text {
    display: none;
  }
}

/* =========================================================
   5. FRASES + FOTOGRAFÍAS
========================================================= */

.kqs-value {
  width: 100%;
  max-width: 1680px;
  min-height: clamp(470px, 34vw, 620px);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(50px, 5vw, 100px);
  align-items: center;

  margin: 0 auto;
  padding: 0 clamp(45px, 5vw, 105px);
}

.kqs-value-copy {
  max-width: 500px;
  padding-top: 0;
}

.kqs-value-copy h3 {
  margin-bottom: 12px;

  font-size: clamp(18px, 1.35vw, 25px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.kqs-value-copy p {
  max-width: 470px;
  margin-bottom: 0;

  color: var(--kqs-muted);

  font-size: clamp(16px, 1.18vw, 21px);
  font-weight: 450;
  line-height: 1.5;
}

.kqs-value-photo {
  position: relative;

  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;

  overflow: hidden;
  margin: 0;

  border-radius: var(--kqs-radius);

  background:
    linear-gradient(
      135deg,
      rgba(20, 25, 29, .08),
      rgba(20, 25, 29, .58)
    ),
    var(--kqs-img) center / cover no-repeat,
    #9fa4a7;
}


/* BLOQUE 01
   Experiencia que responde
========================================= */

.kqs-value-01 .kqs-value-copy {
  grid-column: 1;
}

.kqs-value-01 .kqs-value-photo {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}


/* BLOQUE 02
   Espacios para cada necesidad
========================================= */

.kqs-value-02 .kqs-value-copy {
  grid-column: 2;
}

.kqs-value-02 .kqs-value-photo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}


/* BLOQUE 03
   Más cerca de cada proyecto
========================================= */

.kqs-value-03 .kqs-value-copy {
  grid-column: 2;
}

.kqs-value-03 .kqs-value-photo {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}


/* BLOQUE 04
   Listos para avanzar
========================================= */

.kqs-value-04 .kqs-value-copy {
  grid-column: 3;
}

.kqs-value-04 .kqs-value-photo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}


/* BLOQUE 05
   Compromiso de principio a fin
========================================= */

.kqs-value-05 .kqs-value-copy {
  grid-column: 1;
}

.kqs-value-05 .kqs-value-photo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}


/* =========================================================
   6. LO QUE NOS DISTINGUE
========================================================= */

.kqs-difference {
  padding-top: clamp(70px, 9vh, 130px);
}

.kqs-difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(90px, 14vh, 170px) 1vw 0;
  text-align: left;
}

.kqs-difference-grid article {
  min-height: 340px;
  padding: 25px 22px;
  border-top: 1px solid #adafb0;
}

.kqs-difference-grid article > span {
  color: var(--kqs-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.kqs-difference-grid h3 {
  margin: 90px 0 13px;
  font-size: clamp(22px, 1.75vw, 31px);
  font-weight: 750;
  letter-spacing: -.035em;
}

.kqs-difference-grid p {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--kqs-muted);
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.5;
}


/* =========================================================
   7. ENTRADA A HISTORIA
========================================================= */

.kqs-history-intro {
  min-height: 72vh;
  padding: clamp(100px, 14vh, 170px) 4vw;
  color: #fff;
  background: var(--kqs-ink);
}

.kqs-history-intro > span {
  color: var(--kqs-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.kqs-history-intro h2 {
  margin: clamp(120px, 19vh, 210px) 0 14px;
  font-size: clamp(68px, 10vw, 175px);
  font-weight: 450;
  line-height: .9;
  letter-spacing: -.075em;
}

.kqs-history-intro p {
  color: rgba(255, 255, 255, .62);
  font-size: 17px;
}


/* =========================================================
   8. ANIMACIONES
========================================================= */

.kqs-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity .8s cubic-bezier(.2, .65, .2, 1),
    transform .8s cubic-bezier(.2, .65, .2, 1);
}

.kqs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kqs-gallery-track { transform: none !important; }
  .kqs-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================================================
   9. TABLET
========================================================= */

@media (max-width: 991.98px) {
  .kqs-intro {
    padding-top: 125px;
  }

  .kqs-intro-title {
    font-size: clamp(47px, 8.5vw, 76px);
  }

  .kqs-statement .kqs-display-title {
    white-space: normal;
  }

  .kqs-value {
    min-height: 530px;
  }

  .kqs-video-section {
    padding-right: 5vw;
    padding-left: 5vw;
  }
}


/* =========================================================
   10. MÓVIL
========================================================= */

@media (max-width: 767.98px) {
.kqs-intro {
  min-height: 88svh;

  justify-content: flex-start;

  padding:
    125px
    10px
    20px;
}

.kqs-kicker {
  width: 100%;
  max-width: none;

  margin: 0 auto 38px;

  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.kqs-kicker span {
  display: block;
  white-space: nowrap;
}

.kqs-intro-title {
  width: 100%;
  max-width: none;

  font-size: clamp(37px, 11vw, 49px);
  line-height: 1;
  letter-spacing: -.055em;

  text-align: center;
}

.kqs-intro-subtitle {
padding-top: 5%;
}


  .kqs-intro-meta {
    grid-template-columns: 1fr 1fr;
    padding-top: 60px;
    font-size: 10px;
  }

  .kqs-intro-meta span:nth-child(2) {
    display: none;
  }

  .kqs-gallery-stage {
    height: 330px;
  }

  .kqs-gallery-track {
    gap: 7px;
    padding-left: 14px;
  }

  .kqs-gallery-card {
    width: 270px;
    height: 260px;
    border-radius: 15px;
  }

  .kqs-gallery-card.kqs-card-narrow {
    width: 215px;
  }

  .kqs-statement,
  .kqs-difference {
    padding-right: 15px;
    padding-left: 15px;
  }

  .kqs-display-title {
    font-size: clamp(60px, 18vw, 90px);
    line-height: .87;
    white-space: normal;
  }

  .kqs-editorial-copy {
    margin-top: 80px;
    font-size: clamp(28px, 8.1vw, 39px);
    line-height: 1.08;
  }

  .kqs-video-section {
    padding: 60px 15px 110px;
  }

  .kqs-video-shell {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
  }

  .kqs-video-control-text {
    display: none;
  }

  .kqs-video-control {
    padding: 9px;
  }

  .kqs-values {
    padding: 0 16px 110px;
  }

  .kqs-value {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 100px;
  }

  .kqs-value-copy,
  .kqs-value-photo {
    width: 100%;
    margin: 0 !important;
  }

  .kqs-value-copy {
    padding-top: 0;
  }

  .kqs-value-copy h3 {
    font-size: 21px;
  }

  .kqs-value-copy p {
    font-size: 16px;
  }

  .kqs-value-photo {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .kqs-value:nth-child(even) .kqs-value-photo {
    order: -1;
  }

  .kqs-difference-grid {
    grid-template-columns: 1fr;
    margin-top: 85px;
  }

  .kqs-difference-grid article {
    min-height: 240px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .kqs-difference-grid h3 {
    margin-top: 60px;
  }

  .kqs-history-intro {
    min-height: 70svh;
    padding-right: 18px;
    padding-left: 18px;
  }

  .kqs-history-intro h2 {
    margin-top: 145px;
    font-size: clamp(60px, 18vw, 88px);
  }
}


/* ==================================================
   HISTORIA HORIZONTAL KUATRO
================================================== */

.kqs-history {
  --history-bg: #f5f5f2;
  --history-text: #17191c;
  --history-muted: #72757b;
  --history-soft: rgba(23, 25, 28, 0.14);
  --history-orange: #f35109;

  position: relative;

  width: 100%;
  height: 100vh;

  background: var(--history-bg);
  color: var(--history-text);
}


/* ==================================================
   PANTALLA FIJA
================================================== */

.kqs-history-sticky {
  position: sticky;
  top: 0;

  box-sizing: border-box;
  width: 100%;

  height: 100vh;
  height: 100svh;
  min-height: 0;

  display: grid;

  grid-template-rows:
    clamp(70px, 11vh, 105px)
    minmax(0, 1fr)
    clamp(70px, 11vh, 100px);

  overflow: hidden;

  background: var(--history-bg);
}


/* ==================================================
   ENCABEZADO
================================================== */

.kqs-history-heading {
  position: relative;
  z-index: 10;

  box-sizing: border-box;

  width: 100%;
  height: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding:
    clamp(25px, 4vh, 45px)
    4.5vw
    0;

  color: var(--history-text);

  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}


/* Contador */

.kqs-history-counter {
  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--history-muted);
}

.kqs-history-counter strong {
  color: var(--history-orange);
  font-weight: 700;
}


/* ==================================================
   VENTANA HORIZONTAL
================================================== */

.kqs-history-viewport {
  position: relative;

  box-sizing: border-box;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  overflow: hidden;
}


/* ==================================================
   TRACK HORIZONTAL — DOS CAPÍTULOS VISIBLES
================================================== */

.kqs-history-track {
  position: absolute;
  inset: 0 auto 0 0;

  display: flex;
  align-items: center;

  gap: clamp(40px, 3.5vw, 75px);

  width: max-content;
  height: 100%;

  /*
   * Mayor espacio en los extremos.
   * El primer contenido ya no toca los laterales.
   */
  padding:
    2vh
    12vw
    2vh
    7vw;

  transform: translate3d(0, 0, 0);
  will-change: transform;
}


/* ==================================================
   CADA ACONTECIMIENTO
================================================== */

.kqs-history-chapter {
  position: relative;

  box-sizing: border-box;

  /*
   * Permite mostrar aproximadamente dos por pantalla.
   */
  flex: 0 0 clamp(540px, 42vw, 780px);

  width: clamp(540px, 42vw, 780px);
  height: clamp(380px, 60vh, 590px);

  display: flex;
  align-items: flex-end;

  padding:
    clamp(40px, 5vw, 80px)
    clamp(30px, 3.5vw, 65px);

  overflow: hidden;

  border-left: 1px solid rgba(23, 25, 28, 0.12);

  opacity: 0.32;

  transform: scale(0.88);
  transform-origin: center center;

  transition:
    opacity 0.65s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.65s ease;
}


/* Capítulo activo */

.kqs-history-chapter.is-active {
  opacity: 1;

  transform: scale(1);

  border-left-color: var(--history-orange);
}


/* El capítulo siguiente permanece visible */

.kqs-history-chapter.is-next {
  opacity: 0.62;

  transform: scale(0.93);
}


/* Eliminamos el separador anterior */

.kqs-history-chapter::after {
  display: none;
}


/* ==================================================
   AÑO GRANDE
================================================== */

.kqs-history-watermark {
  position: absolute;

  top: clamp(15px, 4vh, 45px);
  left: clamp(25px, 3vw, 55px);

  color: rgba(23, 25, 28, 0.05);

  font-family: "Manrope", sans-serif;
  font-size: clamp(145px, 16vw, 300px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.085em;

  white-space: nowrap;

  pointer-events: none;
  user-select: none;

  transition:
    color 0.65s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Año del capítulo activo */

.kqs-history-chapter.is-active .kqs-history-watermark {
  color: rgba(243, 81, 9, 0.09);

  transform: translateX(8px);
}


/* ==================================================
   CONTENIDO
================================================== */

.kqs-history-content {
  position: relative;
  z-index: 2;

  box-sizing: border-box;

  width: 100%;
  max-width: 650px;

  display: block;

  padding: 0;
}


/* Año y ubicación */

.kqs-history-place {
  display: block;

  margin-bottom: clamp(20px, 2.5vh, 32px);

  color: var(--history-muted);

  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  transition:
    color 0.5s ease,
    opacity 0.5s ease;
}

.kqs-history-chapter.is-active .kqs-history-place {
  color: var(--history-orange);
}


/* Título */

.kqs-history-main h2 {
  width: 100%;
  max-width: 720px;

  margin: 0;

  color: var(--history-text);

  font-family: "Manrope", sans-serif;
  font-size: clamp(46px, 3.8vw, 74px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.06em;

  text-wrap: balance;

  transition:
    color 0.5s ease,
    transform 0.65s ease;
}


/*
 * Al activarse conservamos el mismo tamaño.
 * El protagonismo viene del scale del capítulo,
 * no de aumentar nuevamente la tipografía.
 */

.kqs-history-chapter.is-active .kqs-history-main h2 {
  font-size: clamp(46px, 3.8vw, 74px);

  transform: translateY(-4px);
}


/* Descripción */

.kqs-history-description {
  max-width: 480px;

  margin:
    clamp(28px, 3.5vh, 42px)
    0
    0;

  color: var(--history-muted);

  font-family: "Manrope", sans-serif;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.55;

  opacity: 0.5;

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}


/* Descripción activa */

.kqs-history-chapter.is-active .kqs-history-description {
  opacity: 1;

  transform: translateY(-4px);
}


/* ==================================================
   AJUSTE DEL PIE PARA MÁS AIRE
================================================== */

.kqs-history-footer {
  position: relative;
  z-index: 20;

  box-sizing: border-box;

  width: 100%;
  height: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: clamp(30px, 5vw, 80px);

  padding:
    0
    7vw
    clamp(22px, 3.5vh, 40px);

  background: var(--history-bg);
}

/* ==================================================
   PIE Y LÍNEA DE PROGRESO
================================================== */

.kqs-history-footer {
  position: relative;
  z-index: 20;

  box-sizing: border-box;

  width: 100%;
  height: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: clamp(25px, 4vw, 60px);

  padding:
    0
    4.5vw
    clamp(22px, 3.5vh, 40px);

  background: var(--history-bg);
}


/* Línea completa */

.kqs-history-progress {
  position: relative;

  width: 100%;
  height: 2px;

  overflow: hidden;

  background: var(--history-soft);
}


/* Línea naranja que avanza */

.kqs-history-progress span {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  background: var(--history-orange);

  transform: scaleX(0);
  transform-origin: left center;

  will-change: transform;
}


/* Instrucción */

.kqs-history-instruction {
  display: flex;
  align-items: center;

  gap: 22px;

  color: var(--history-muted);

  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  white-space: nowrap;
}

.kqs-history-instruction span {
  color: var(--history-text);

  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}


/* ==================================================
   PANTALLAS CON POCA ALTURA
================================================== */

@media (min-width: 992px) and (max-height: 760px) {

  .kqs-history-sticky {
    grid-template-rows:
      68px
      minmax(0, 1fr)
      72px;
  }

  .kqs-history-heading {
    padding-top: 20px;
  }

  .kqs-history-watermark {
    font-size: clamp(190px, 24vw, 420px);
  }

  .kqs-history-main h2 {
    font-size: clamp(52px, 5.2vw, 92px);
  }

  .kqs-history-description {
    font-size: 15px;
  }

  .kqs-history-footer {
    padding-bottom: 22px;
  }
}


/* ==================================================
   TABLET Y MÓVIL
================================================== */

@media (max-width: 991px) {

  .kqs-history {
    height: auto !important;
  }

  .kqs-history-sticky {
    position: relative;
    top: auto;

    height: auto;
    min-height: 0;

    display: block;

    overflow: visible;
  }


  /* Encabezado móvil */

  .kqs-history-heading {
    height: auto;

    padding:
      70px
      22px
      45px;
  }

  .kqs-history-counter {
    display: none;
  }


  /* Track vertical */

  .kqs-history-viewport {
    height: auto;

    overflow: visible;
  }

  .kqs-history-track {
    position: relative;
    inset: auto;

    width: 100%;
    height: auto;

    display: block;

    padding:
      0
      22px;

    transform: none !important;
  }


  /* Capítulos verticales */

  .kqs-history-chapter {
    width: 100%;
    height: auto;
    min-height: 520px;

    display: flex;
    align-items: center;

    padding:
      65px
      0;

    border-top:
      1px
      solid
      rgba(23, 25, 28, 0.12);

    overflow: hidden;
  }

  .kqs-history-chapter:last-child {
    border-bottom:
      1px
      solid
      rgba(23, 25, 28, 0.12);
  }

  .kqs-history-chapter::after {
    display: none;
  }


  /* Año de fondo móvil */

  .kqs-history-watermark {
    top: 58px;
    right: 0;
    left: auto;

    transform: none;

    font-size: clamp(110px, 37vw, 180px);
    line-height: 1;
  }


  /* Contenido móvil */

  .kqs-history-content {
    display: block;

    padding: 0;
  }

  .kqs-history-place {
    margin-bottom: 25px;

    font-size: 10px;
  }

  .kqs-history-main h2 {
    max-width: 92%;

    font-size: clamp(50px, 13vw, 72px);
    line-height: 0.94;
    letter-spacing: -0.065em;
  }

  .kqs-history-description {
    max-width: 520px;

    margin-top: 35px;

    font-size: 16px;
    line-height: 1.55;
  }


  /* Todo visible en móvil */

  .kqs-history-chapter .kqs-history-main,
  .kqs-history-chapter .kqs-history-description,
  .kqs-history-chapter .kqs-history-place {
    opacity: 1;
    transform: none;
  }


  /* Ocultar progreso horizontal */

  .kqs-history-footer {
    display: none;
  }
}


/* ==================================================
   MÓVIL PEQUEÑO
================================================== */

@media (max-width: 575px) {

  .kqs-history-heading {
    padding:
      55px
      20px
      38px;
  }

  .kqs-history-track {
    padding:
      0
      20px;
  }

  .kqs-history-chapter {
    min-height: 490px;

    padding:
      55px
      0;
  }

  .kqs-history-watermark {
    top: 48px;

    font-size: 35vw;
  }

  .kqs-history-main h2 {
    max-width: 100%;

    font-size: clamp(46px, 13vw, 62px);
  }

  .kqs-history-description {
    margin-top: 30px;

    font-size: 15px;
  }
}


/* ==================================================
   MOVIMIENTO REDUCIDO
================================================== */

@media (prefers-reduced-motion: reduce) {

  .kqs-history-track,
  .kqs-history-progress span,
  .kqs-history-main,
  .kqs-history-description,
  .kqs-history-place {
    transition: none !important;
  }
}
