/* ═══════════════════════════════════════════════════════════
   PLECOM — Soluciones totales en P.O.P
   Sitio corporativo · blanco minimalista · scroll cinemático
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────── */
:root {
  --paper:    #FFFFFF;
  --paper-2:  #F6F6F3;
  --paper-3:  #EFEFEB;

  --ink:      #121917;
  --ink-2:    #55605D;
  --ink-3:    #8B948F;

  --line:     #E4E4DE;
  --line-2:   #D3D3CB;

  /* Tomados del logotipo original: ráfaga #167279, wordmark #2D8F97 */
  --teal:     #167279;
  --teal-lo:  #0E565C;
  --teal-hi:  #2D8F97;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  --shell: min(1240px, 100% - 4rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .85s;
}

/* ── 2. Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.06rem);
  line-height: 1.62;
  font-weight: 300;
  letter-spacing: -.008em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.06; letter-spacing: -.032em; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: var(--teal); color: #fff; }

.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 200;
  padding: .7rem 1.1rem; border-radius: 6px;
  background: var(--ink); color: var(--paper); font-weight: 500;
  transform: translateY(-180%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* ── 3. Tipografía compartida ──────────────────────────── */
.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.15rem + 3.9vw, 3.9rem);
  font-weight: 400;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}
.h2 em { font-style: italic; color: var(--teal); font-variation-settings: 'WONK' 1; }

.eyebrow {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

.lede {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1rem, .96rem + .28vw, 1.16rem);
  margin-top: 1.4rem;
}

/* ── 4. Barra de progreso ──────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent;
}
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
}

/* ── 5. Marca (logotipo original de Plecom) ────────────── */
.nav__brand { display: flex; align-items: center; gap: .72rem; }
.nav__mark { flex: none; width: auto; height: 32px; }
.nav__word { display: grid; justify-items: start; gap: .22rem; }
.nav__wm { width: auto; height: 20px; }
/* La bajada va como texto para que se lea nítida; el tracking está ajustado
   para que termine a la par del wordmark. */
.nav__word i {
  font-style: normal; font-size: .46rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

/* ── 6. Nav ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  width: 100%; padding: 1.5rem max(2rem, calc((100% - var(--shell)) / 2));
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-compact { padding-block: .85rem; }
.nav.is-stuck {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* Mientras el nav va encima del video, el logotipo se pasa a blanco sólido */
.nav--over .nav__mark, .nav--over .nav__wm { filter: brightness(0) invert(1); }
.nav--over .nav__word i { color: rgba(255, 255, 255, .62); }
.nav--over .nav__links a { color: rgba(255, 255, 255, .78); }
.nav--over .nav__links a::after { background: #fff; }
.nav--over .nav__links a:hover { color: #fff; }
.nav--over .nav__cta { border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.nav--over .nav__cta:hover { background: #fff; color: var(--ink) !important; }
.nav--over .nav__toggle { border-color: rgba(255, 255, 255, .4); }
.nav--over .nav__toggle span { background: #fff; }

.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  position: relative; font-size: .87rem; color: var(--ink-2);
  transition: color .25s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  padding: .5rem 1.15rem; border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink) !important;
  transition: background .3s, color .3s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }

.nav__toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 17px; height: 1.5px; margin: 4px auto;
  background: var(--ink); transition: transform .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.navmob {
  position: fixed; inset: 71px 0 auto; z-index: 105;
  display: grid; padding: .8rem 2rem 1.6rem;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.navmob[hidden] { display: none; }
.navmob a {
  padding: .9rem .1rem; font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.navmob a:last-child { color: var(--teal); border: 0; }

/* ── 7. Botones ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .92rem 1.75rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .92rem; font-weight: 400; letter-spacing: -.01em; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--teal); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn--full { width: 100%; margin-top: .5rem; }

/* ── 8. Contenedor de imagen (con marcador si aún no hay) ── */
.shot { position: relative; overflow: hidden; background: var(--paper-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot__ph {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: .35rem;
  padding: 1.5rem; text-align: center; line-height: 1.6;
  font-size: .76rem; color: var(--ink-3);
  border: 1px dashed var(--line-2);
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(18, 25, 23, .022) 11px 22px),
    var(--paper-2);
}
.shot__ph b {
  display: block; font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; color: var(--teal);
}
.shot__ph code { font-size: .72rem; color: var(--ink-2); }
.shot.has-img .shot__ph { display: none; }

/* ── 9. Hero con video ─────────────────────────────────── */
.hero { position: relative; height: 400vh; background: #0A0F0E; }
.hero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.hero__media { position: absolute; inset: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 12, 11, .82) 0%, rgba(8, 12, 11, .52) 30%,
                            rgba(8, 12, 11, .12) 60%, rgba(8, 12, 11, 0) 82%),
    linear-gradient(to bottom, rgba(8, 12, 11, .38) 0%, rgba(8, 12, 11, 0) 24%);
}

.hero__stage {
  position: absolute; left: 0; right: 0;
  bottom: clamp(3.5rem, 10vh, 7rem);
  display: grid;
  width: var(--shell); margin-inline: auto;
}
.hero__content, .hero__caps { grid-area: 1 / 1; align-self: end; }
.hero__content { color: #fff; will-change: opacity, transform; }
.hero__content .eyebrow { color: rgba(255, 255, 255, .72); }

.hero .btn--solid { background: #fff; color: var(--ink); }
.hero .btn--solid:hover { background: var(--teal); color: #fff; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .9); }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; }

.hero__caps { pointer-events: none; }
.hero__cap {
  grid-area: 1 / 1;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.7rem, 1rem + 2.9vw, 3.4rem);
  letter-spacing: -.035em; color: #fff;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero__caps { display: grid; }
.hero__cap.is-on { opacity: 1; transform: none; }

.hero__cue {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  display: flex; align-items: center; gap: .6rem;
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  transition: opacity .5s var(--ease);
}
.hero__cue span {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(rgba(255, 255, 255, .8), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { opacity: .2; transform: scaleY(.35); transform-origin: top; }
  45%      { opacity: 1;  transform: scaleY(1);   transform-origin: top; }
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 1rem + 8vw, 7.2rem);
  font-weight: 300;
  letter-spacing: -.048em;
  margin: .1rem 0 0;
}
.hero__title em { font-style: italic; color: #8FD6DC; font-variation-settings: 'WONK' 1; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .line__in {
  display: block; transform: translateY(105%);
  transition: transform 1.1s var(--ease);
}
.hero__title .line:nth-child(2) .line__in { transition-delay: .09s; }
.is-ready .hero__title .line__in { transform: none; }

.hero__sub {
  max-width: 46ch; margin-top: clamp(1.3rem, 2.5vw, 1.9rem);
  color: rgba(255, 255, 255, .82); font-size: clamp(1rem, .95rem + .34vw, 1.16rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.8rem, 3vw, 2.5rem); }

/* ── 10. Cifras ────────────────────────────────────────── */
.stats {
  width: var(--shell); margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(1rem, 2vw, 2rem);
}
.stats__list {
  display: flex; flex-wrap: wrap; gap: clamp(1.8rem, 5vw, 5rem);
  padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.stats__list li { display: grid; gap: .1rem; }
.stats__list b {
  font-family: var(--serif); font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 400; font-variant-numeric: tabular-nums;
}
.stats__list span { font-size: .78rem; letter-spacing: .03em; color: var(--ink-3); }

/* ── 11. Manifiesto ────────────────────────────────────── */
.manifesto { position: relative; height: 250vh; }
.manifesto__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; align-content: center; justify-items: start;
  padding-inline: max(2rem, calc((100% - var(--shell)) / 2));
}
.manifesto__text {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(1.7rem, .85rem + 3.4vw, 3.4rem);
  font-weight: 300; line-height: 1.2; letter-spacing: -.035em;
}
.manifesto__text .w { color: #DCDCD6; transition: color .35s ease; }
.manifesto__text .w.on { color: var(--ink); }
.manifesto__text .w.hot { color: var(--teal); }

.manifesto__coda {
  max-width: 42ch; margin-top: clamp(1.6rem, 3vw, 2.4rem);
  font-size: clamp(.95rem, .9rem + .3vw, 1.12rem); color: var(--ink-2);
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.manifesto__coda.on { opacity: 1; transform: none; }

/* ── 12. Servicios ─────────────────────────────────────── */
.services {
  width: var(--shell); margin-inline: auto;
  padding: clamp(5rem, 10vw, 9rem) 0 3rem;
}
.services__head { max-width: 660px; margin-bottom: clamp(3rem, 7vw, 5.5rem); }

.services__grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.services__stage { position: relative; }

/* 3:2 = la proporción exacta de las ilustraciones, así no se recorta nada */
.stage {
  position: sticky; top: 18vh;
  aspect-ratio: 3 / 2;
  overflow: hidden; background: var(--paper-2);
}
.stage__num {
  position: absolute; top: 1.2rem; left: 1.4rem; z-index: 3;
  display: flex; align-items: baseline; gap: .4rem;
  padding: .3rem .75rem; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--serif); font-size: 1.4rem; color: var(--ink);
}
.stage__num i { font-family: var(--sans); font-style: normal; font-size: .68rem; color: var(--ink-3); }

.art {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.03);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.art--is-on { opacity: 1; transform: none; }

.services__list { display: grid; }
.svc {
  min-height: 76vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 3rem;
  opacity: .28; transition: opacity .6s var(--ease);
}
.svc.is-on { opacity: 1; }
.svc__n {
  display: block; font-size: .7rem; font-weight: 500; letter-spacing: .2em;
  color: var(--teal); margin-bottom: 1rem;
}
.svc h3 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.4rem);
  margin-bottom: 1.05rem;
}
.svc p { color: var(--ink-2); max-width: 46ch; }
.svc__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; }
.svc__tags li {
  padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .74rem; color: var(--ink-2);
}

/* ── 13. Proceso ───────────────────────────────────────── */
.process {
  width: var(--shell); margin-inline: auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.process__grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
}
.process__aside > div { position: sticky; top: 22vh; }
.process__head { max-width: 460px; }
.process__count {
  display: flex; align-items: baseline; gap: .5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--serif); font-size: clamp(2.8rem, 2rem + 2.6vw, 4.5rem);
  line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums;
}
.process__count i {
  font-family: var(--sans); font-style: normal; font-size: .8rem;
  letter-spacing: .1em; color: var(--ink-3);
}

.process__rail { position: relative; padding-left: clamp(2rem, 4vw, 3.2rem); }
.process__line {
  position: absolute; top: .6rem; bottom: .6rem; left: 0; width: 1px;
  background: var(--line-2); overflow: hidden;
}
.process__fill { display: block; width: 100%; height: 0; background: var(--teal); }

.steps { display: grid; gap: clamp(2.4rem, 5vw, 4rem); }
.step { position: relative; display: grid; gap: .4rem; }
.step__dot {
  position: absolute; left: calc(-1 * clamp(2rem, 4vw, 3.2rem) - 4.5px); top: .6rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line-2);
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.step.is-in .step__dot { border-color: var(--teal); background: var(--teal); }
.step b { font-size: .7rem; font-weight: 500; letter-spacing: .2em; color: var(--teal); }
.step h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); }
.step p { color: var(--ink-2); max-width: 52ch; }

/* ── 14. Banda con video ───────────────────────────────── */
.band {
  position: relative; width: 100%;
  height: clamp(360px, 62vh, 680px);
  overflow: hidden; background: var(--paper-3);
}
.band video { width: 100%; height: 100%; object-fit: cover; }

/* ── 15. Capacidades ───────────────────────────────────── */
.caps {
  width: var(--shell); margin-inline: auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.caps__head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.caps__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cap {
  padding: 2rem 1.6rem 2.2rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.cap:hover { background: var(--paper-2); }
.cap b { display: block; font-family: var(--serif); font-size: 1.24rem; font-weight: 400; margin-bottom: .55rem; }
.cap p { font-size: .9rem; color: var(--ink-2); }

/* ── 16. Proyectos (riel horizontal) ───────────────────── */
.rail {
  position: relative;
  /* Cuanto más alto el vh por panel, más despacio avanzan las tarjetas:
     el mismo recorrido horizontal se reparte entre más scroll vertical. */
  height: calc(var(--panels) * 100vh + 100svh);
  background: var(--paper-2);
}
.rail__sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1.8rem, 4vw, 3rem);
  overflow: hidden;
}
.rail__head { position: relative; width: var(--shell); margin-inline: auto; }
.rail__hint {
  position: absolute; right: 0; bottom: .3rem;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}

.rail__track {
  display: flex; align-items: flex-start; gap: clamp(1rem, 1.8vw, 1.5rem);
  padding-inline: max(2rem, calc((100% - var(--shell)) / 2));
  will-change: transform;
}

/* Todas las fotos comparten ALTURA y cada tarjeta toma el ancho que le pida su
   proporción (`--ar` en el HTML). Así ninguna se recorta —hay verticales,
   horizontales y cuadradas— y aun así los títulos quedan a la misma altura. */
.rail { --h: clamp(300px, 46vh, 440px); }

.card {
  flex: 0 0 auto;
  width: max(250px, calc(var(--h) * var(--ar, 0.8)));
  display: flex; flex-direction: column;
}
.card__shot {
  height: var(--h); aspect-ratio: auto;
  margin-bottom: 1.2rem; background: var(--paper-3);
}

.card__shot img { transition: transform .6s var(--ease); }
.card:hover .card__shot img { transform: scale(1.04); }
.card__tag {
  align-self: flex-start; font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .55rem;
}
.card h3 { font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin-bottom: .5rem; }
.card p { font-size: .88rem; color: var(--ink-2); }

/* ── 17. Por qué ───────────────────────────────────────── */
.why {
  width: var(--shell); margin-inline: auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.why__head { max-width: 700px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.why__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
}
.why__card { padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.why__n {
  display: block; font-size: .7rem; font-weight: 500; letter-spacing: .2em;
  color: var(--teal); margin-bottom: 1.3rem;
}
.why__card h3 { font-family: var(--serif); font-size: 1.36rem; margin-bottom: .55rem; }
.why__card p { font-size: .92rem; color: var(--ink-2); }

.sectors { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.sectors__label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.2rem; }
.sectors ul { display: flex; flex-wrap: wrap; gap: .55rem; }
.sectors li {
  padding: .45rem 1.05rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; color: var(--ink-2);
  transition: border-color .3s, color .3s;
}
.sectors li:hover { border-color: var(--ink); color: var(--ink); }

/* ── 17b. Preguntas frecuentes ─────────────────────────── */
.faq {
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.faq__head { max-width: 420px; }
.faq__head > div { position: sticky; top: 22vh; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.32rem);
  letter-spacing: -.02em; transition: color .25s;
}
.faq__item summary::after {
  content: ''; flex: none; width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .35s var(--ease), border-color .25s;
}
.faq__item[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px); border-color: var(--teal);
}
.faq__item summary:hover h3 { color: var(--teal); }
.faq__item > p {
  padding-bottom: 1.5rem; max-width: 62ch;
  font-size: .95rem; color: var(--ink-2);
}
.faq__item > p a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.faq__item > p a:hover { color: var(--teal); border-color: var(--teal); }
.faq__item > p b { font-weight: 400; }

/* ── 18. Contacto ──────────────────────────────────────── */
.contact {
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.contact__data { display: grid; gap: 1.3rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.contact__data li { display: grid; gap: .15rem; }
.contact__data span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.contact__data b {
  font-family: var(--serif); font-size: 1.26rem; font-weight: 400;
  transition: color .25s;
}
.contact__data a:hover b { color: var(--teal); }

.form { display: grid; gap: 1.05rem; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field i { color: var(--teal); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: .82rem .95rem;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 3px;
  font-size: .94rem; font-weight: 300;
  transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 106px; }
.field input::placeholder, .field textarea::placeholder { color: #B4BAB7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); background: var(--paper); outline: none;
}
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath fill='%238B948F' d='M5.5 7 0 0h11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field.is-bad input, .field.is-bad textarea { border-color: #C0524B; }

.form__note { font-size: .8rem; color: var(--ink-3); text-align: center; }
.form__note.is-ok { color: var(--teal); }
.form__note.is-bad { color: #C0524B; }

/* ── 19. Footer ────────────────────────────────────────── */
.footer {
  width: var(--shell); margin-inline: auto;
  padding-bottom: clamp(4.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 2.6rem 0;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.7rem; }
.footer__nav a { font-size: .86rem; color: var(--ink-2); transition: color .25s; }
.footer__nav a:hover { color: var(--teal); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-3);
}
.footer__bottom a:hover { color: var(--teal); }

/* ── 20. WhatsApp flotante ─────────────────────────────── */
.wa {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 115;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .86rem; font-weight: 400;
  box-shadow: 0 10px 30px -12px rgba(18, 25, 23, .5);
  opacity: 0; transform: translateY(16px) scale(.94); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s;
}
.wa.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa:hover { background: #1FA855; }
.wa svg { width: 20px; height: 20px; flex: none; }

/* ── 21. Aparición al entrar ───────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ── 22. Responsive ────────────────────────────────────── */
@media (max-width: 1000px) {
  .services__grid { grid-template-columns: 1fr; gap: 0; }
  .services__stage { display: none; }
  .svc {
    min-height: 0; padding-block: 0; opacity: 1;
    padding-top: 2.2rem; margin-top: 2.4rem; border-top: 1px solid var(--line);
  }
  .services__list .svc:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

  /* Cada imagen se muda a su propio servicio (lo hace main.js) */
  .svc .art {
    position: relative; inset: auto; opacity: 1; transform: none;
    aspect-ratio: 3 / 2; margin-bottom: 1.6rem;
  }

  .process__grid { grid-template-columns: 1fr; }
  .process__aside > div { position: static; }
  .process__head { max-width: 620px; margin-bottom: clamp(3rem, 8vw, 4.5rem); }
  .process__count { display: none; }

  .contact { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { max-width: 620px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 2.5rem); }

  .nav { padding-inline: 1.25rem; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .navmob { padding-inline: 1.25rem; }

  /* El video es una toma ancha: recortarlo a vertical se comería las
     estanterías de los lados. En celular va de borde a borde en 16:9 y el
     texto baja debajo, sobre blanco. */
  .hero { height: auto; background: var(--paper); }
  .hero__sticky { position: static; height: auto; }
  .hero__media { position: relative; inset: auto; margin-top: 71px; }
  .hero__media video { height: auto; aspect-ratio: 16 / 9; }
  .hero__scrim { display: none; }

  .hero__stage {
    position: static; width: var(--shell); margin-inline: auto;
    padding: clamp(2rem, 6vw, 3rem) 0 0;
  }
  .hero__content { color: var(--ink); opacity: 1 !important; transform: none !important; }
  .hero__content .eyebrow { color: var(--teal); }
  .hero__title em { color: var(--teal); }
  .hero__sub { color: var(--ink-2); }
  .hero .btn--solid { background: var(--ink); color: var(--paper); }
  .hero .btn--ghost { border-color: var(--line-2); color: var(--ink-2); }
  .hero__caps, .hero__cue { display: none; }

  .stats { padding-top: clamp(2.5rem, 6vw, 3.5rem); }

  .manifesto { height: 210vh; }
  .form__row { grid-template-columns: 1fr; }
  .band { height: 300px; }

  /* El riel se vuelve carrusel táctil */
  .rail { height: auto; padding: 4.5rem 0; }
  .rail__sticky { position: static; height: auto; overflow: visible; }
  .rail__hint { display: none; }
  .rail__track {
    transform: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 1rem; -webkit-overflow-scrolling: touch;
  }
  .rail__track::-webkit-scrollbar { height: 3px; }
  .rail__track::-webkit-scrollbar-thumb { background: var(--line-2); }
  .rail { --h: 300px; }
  .card {
    scroll-snap-align: center;
    width: min(82vw, calc(var(--h) * var(--ar, 0.8)));
  }

  .wa span { display: none; }
  .wa { padding: .9rem; }
}

/* ── 23. Movimiento reducido ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line__in { transform: none; }
  .svc { opacity: 1; }
  .art { opacity: 1; transform: none; }

  .manifesto { height: auto; }
  .manifesto__sticky { position: static; height: auto; padding-block: 7rem; }
  .manifesto__text .w { color: var(--ink); }
  .manifesto__coda { opacity: 1; transform: none; }

  /* El hero deja de fijarse: video, texto y CTA en flujo normal */
  .hero { height: auto; background: var(--paper); }
  .hero__sticky { position: static; height: auto; }
  .hero__media { position: relative; inset: auto; padding-top: 71px; }
  .hero__media video { height: auto; aspect-ratio: 16 / 9; }
  .hero__scrim { display: none; }
  .hero__stage {
    position: static; width: var(--shell); margin-inline: auto; padding-top: 3rem;
  }
  .hero__content { color: var(--ink); }
  .hero__content .eyebrow { color: var(--teal); }
  .hero__title em { color: var(--teal); }
  .hero__sub { color: var(--ink-2); }
  .hero .btn--solid { background: var(--ink); color: var(--paper); }
  .hero .btn--ghost { border-color: var(--line-2); color: var(--ink-2); }
  .hero__caps, .hero__cue { display: none; }

  .rail { height: auto; }
  .rail__sticky { position: static; height: auto; padding-block: 4rem; }
  .rail__track { transform: none !important; overflow-x: auto; }

  .band { height: clamp(300px, 45vh, 460px); }
  .wa { opacity: 1; transform: none; pointer-events: auto; }
}
