/* ==========================================================================
   Quintana & Asociados
   Tipografía: Geist (Light 300, Regular 400, Medium 500, SemiBold 600, Bold 700).
   ========================================================================== */

:root {
  color-scheme: light dark;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #f4f4f2;
  --surface: #ebebe8;
  --surface-2: #e2e2de;
  --ink: #17181a;
  --muted: #55575b;
  --line: #d3d3cf;
  --accent: #78281c;        /* granate de marca */
  --accent-ink: #f7f1ef;
  --accent-hover: #631f15;
  --focus: #78281c;
  --accent-text: #78281c;
  --error: #a32a1b;
  --logo-filter: grayscale(1) contrast(1.1);
  --logo-opacity: .72;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121314;
    --surface: #1a1b1d;
    --surface-2: #222326;
    --ink: #ececea;
    --muted: #a3a5a8;
    --line: #2e3033;
    --accent: #9b3424;
    --accent-ink: #fbf3f1;
    --accent-hover: #b23d2b;
    --focus: #e0806f;
    --accent-text: #e0806f;
    --error: #ef8a78;
    --logo-filter: grayscale(1) brightness(0) invert(1);
    --logo-opacity: .78;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a, button, input, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 22ch;
  text-wrap: balance;
}
.h2--center { margin-inline: auto; text-align: center; }
.lead { font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--muted); max-width: 52ch; margin-top: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px;
  font: 500 .9375rem/1 var(--font); letter-spacing: .01em; white-space: nowrap;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), scale .15s var(--ease-out);
}
.btn { padding-right: 8px; }
.btn__chip {
  display: grid; place-items: center; width: 36px; height: 36px; font-size: 1.1rem;
  background: rgba(255, 255, 255, .14); overflow: hidden;
}
.btn__chip i { transition: transform .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__chip i { transform: translate(2px, -2px) scale(1.08); }
}
.btn:active { scale: .97; }
.btn--magnetic { transition: background-color .25s var(--ease), transform .5s var(--ease-out), scale .15s var(--ease-out); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- 1. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #f4f4f2;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink); border-bottom-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { position: relative; display: block; height: 56px; aspect-ratio: 663 / 236; }
.brand__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s var(--ease); }
.brand__img--light, .brand__img--dark { opacity: 0; }
.header.is-solid .brand__img--photo, .header.is-open .brand__img--photo { opacity: 0; }
.header.is-solid .brand__img--light, .header.is-open .brand__img--light { opacity: 1; }
@media (prefers-color-scheme: dark) {
  .header.is-solid .brand__img--light, .header.is-open .brand__img--light { opacity: 0; }
  .header.is-solid .brand__img--dark, .header.is-open .brand__img--dark { opacity: 1; }
}

.nav__list { display: flex; gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; text-decoration: none; font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; padding-block: 6px;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; background: var(--bg); color: var(--ink);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; }
  .nav__list a { display: block; padding: 16px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .header.is-open { background: var(--bg); color: var(--ink); border-bottom-color: var(--line); }
}

/* ---------- 2. Hero ---------- */
.hero {
  position: relative; min-height: 100dvh; min-height: max(560px, 100dvh);
  display: flex; align-items: flex-end; overflow: hidden; color: #f4f4f2; background: #17181a;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 12, .86) 0%, rgba(14, 12, 12, .62) 45%, rgba(14, 12, 12, .2) 100%),
    linear-gradient(0deg, rgba(14, 12, 12, .55) 0%, transparent 45%);
}
.hero__content { position: relative; padding-block: calc(var(--header-h) + 48px) clamp(64px, 10vh, 120px); }
.hero__title {
  font-size: clamp(2.25rem, 5.4vw, 5rem);
  font-weight: 700; line-height: 1; letter-spacing: -.035em; text-transform: uppercase;
  max-width: 17ch; text-wrap: balance;
}
.hero__sub { margin: 24px 0 40px; font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 300; letter-spacing: .01em; }
.hero__sub::before { content: ""; display: inline-block; width: 32px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; opacity: .7; }

/* ---------- 3. Servicios: tarjetas con foto ---------- */
.services__head { display: grid; gap: 0; max-width: 760px; }
.svc-grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 20px);
}
.svc {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(360px, 34vw, 480px); padding: clamp(22px, 2.4vw, 36px);
  color: #f4f4f2; text-decoration: none; background: #17181a;
  outline-offset: 4px;
}
.svc--7 { grid-column: span 7; }
.svc--5 { grid-column: span 5; }
.svc__img {
  position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; z-index: -2;
  transform: translate3d(0, 0, 0) scale(1.02);
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease-out);
  filter: saturate(.75);
}
.svc__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(0deg, rgba(14, 12, 12, .9) 0%, rgba(14, 12, 12, .45) 48%, rgba(14, 12, 12, .25) 100%);
  transition: opacity .5s var(--ease-out);
}
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(120, 40, 28, .78), rgba(120, 40, 28, .12) 70%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc__icon, .svc__go {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(244, 244, 242, .28); background: rgba(14, 12, 12, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 1.5rem;
}
.svc__go { width: 44px; height: 44px; font-size: 1.15rem; background: #f4f4f2; color: #17181a; border-color: transparent;
  transform: translate3d(-6px, 6px, 0) scale(.9); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease-out);
}
.svc__body { position: relative; max-width: 46ch; }
.svc__title { font-size: clamp(1.375rem, 2.1vw, 2rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance;
  transition: transform .55s var(--ease-out); }
.svc__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease-out); }
.svc__text { overflow: hidden; margin-top: 12px; font-size: .9375rem; font-weight: 400; line-height: 1.55; color: rgba(244, 244, 242, .86);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.svc__line { display: block; height: 2px; margin-top: 20px; background: #f4f4f2; transform: scaleX(.12); transform-origin: left;
  transition: transform .7s var(--ease-out); }

/* Ratón: la descripción se despliega al pasar por encima */
@media (hover: hover) and (pointer: fine) {
  .svc__more { grid-template-rows: 0fr; }
  .svc__text { opacity: 0; transform: translateY(10px); }
  .svc:hover .svc__more, .svc:focus-visible .svc__more { grid-template-rows: 1fr; }
  .svc:hover .svc__text, .svc:focus-visible .svc__text { opacity: 1; transform: none; transition-delay: .08s; }
  .svc:hover .svc__img { transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.09); filter: saturate(1); }
  .svc:hover::after, .svc:focus-visible::after { opacity: 1; }
  .svc:hover .svc__go, .svc:focus-visible .svc__go { opacity: 1; transform: none; }
  .svc:hover .svc__line, .svc:focus-visible .svc__line { transform: scaleX(1); }
}
.svc:active { transform: scale(.995); }
/* Al pulsar, las demás tarjetas ceden protagonismo */
@media (hover: hover) and (pointer: fine) {
  .svc-grid:hover .svc:not(:hover) .svc__img { filter: saturate(.35) brightness(.8); }
}

@media not ((hover: hover) and (pointer: fine)) {
  .svc__shade { background: linear-gradient(0deg, rgba(14, 12, 12, .95) 0%, rgba(14, 12, 12, .82) 45%, rgba(14, 12, 12, .3) 100%); }
}
@media (max-width: 900px) {
  .svc--7, .svc--5 { grid-column: span 12; }
  .svc { min-height: 340px; }
}

/* ---------- Equipo ---------- */
.team { background: var(--surface); }
.team__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.team__media { aspect-ratio: 4 / 3; overflow: hidden; }
.team__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.values { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.values dt { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.values dt i { display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.35rem; color: var(--accent-text); border: 1px solid var(--line); transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .values > div:hover dt i { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-8deg); }
}
.values dd { margin-top: 8px; font-size: .875rem; font-weight: 400; color: var(--muted); }
@media (max-width: 860px) {
  .team__grid { grid-template-columns: 1fr; }
  .team__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) { .values { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 4. Bancos: carrusel continuo ---------- */
.marquee {
  margin-top: clamp(40px, 5vw, 64px); overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.logos li { flex: none; width: clamp(160px, 16vw, 220px); height: 120px; display: grid; place-items: center; padding: 0 clamp(24px, 3vw, 40px); }
.logos img {
  width: 100%; height: 40px; object-fit: contain;
  filter: var(--logo-filter); opacity: var(--logo-opacity);
  transition: filter .4s var(--ease-out), opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .logos li:hover img { opacity: 1; transform: scale(1.06); }
}
@media (hover: hover) and (pointer: fine) and (prefers-color-scheme: light) {
  .logos li:hover img { filter: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .marquee.is-looping .logos { animation: marquee 38s linear infinite; }
  .marquee:hover .logos, .marquee:focus-within .logos { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .logos { width: auto; flex-wrap: wrap; justify-content: center; }
  .logos li[aria-hidden="true"] { display: none; }
}

/* ---------- Oficina ---------- */
.office { position: relative; padding-bottom: clamp(72px, 10vw, 128px); }
.office__band { position: relative; height: clamp(360px, 46vw, 620px); background: var(--surface); }
.office__map { display: block; width: 100%; height: 100%; border: 0; }
.office__band.is-locked .office__map { pointer-events: none; }
.office__unlock {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px;
  font: 500 .9375rem/1 var(--font); color: #17181a; background: rgba(244, 244, 242, .94);
  border: 0; cursor: pointer; box-shadow: 0 12px 30px -12px rgba(14, 12, 12, .45);
  transition: background-color .25s var(--ease), scale .15s var(--ease-out), opacity .3s var(--ease-out);
}
.office__unlock i { font-size: 1.35rem; color: var(--accent); }
.office__unlock:hover { background: #fff; }
.office__unlock:active { scale: .97; }
.office__band:not(.is-locked) .office__unlock { opacity: 0; pointer-events: none; }
.office__panel { position: relative; z-index: 1; isolation: isolate; }
.office__panel::before { content: ""; position: absolute; inset: 0 var(--gutter); background: var(--bg); z-index: -1; }
.office__panel > * { padding-inline: clamp(24px, 4vw, 56px); }
.office__panel .h2 { padding-top: clamp(32px, 4vw, 56px); }
.office__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-top: 36px; }
.office__col { border-top: 1px solid var(--line); padding-top: 20px; }
.office__col h3 { font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-bottom: 12px; }
.office__col p { font-size: .9375rem; font-weight: 400; }
.office__col p + p { margin-top: 12px; }
.office__col a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .25s; word-break: break-word; }
.office__col a:hover { border-color: currentColor; }
@media (max-width: 760px) { .office__cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 5. Contacto ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.contact__phone {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-decoration: none;
}
.contact__phone i { color: var(--accent-text); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.field--half { grid-column: span 1; }
.field label { font-size: .8125rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); background: var(--bg); box-shadow: 0 0 0 1px var(--focus); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__error { display: none; font-size: .8125rem; color: var(--error); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }

.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.field--check label { flex: 1; font-size: .875rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.field--check label a { text-underline-offset: 3px; }
.field--check .field__error { flex-basis: 100%; padding-left: 32px; }

.form__actions { grid-column: span 2; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__status { font-size: .875rem; }
.form__status.is-ok { color: var(--ink); }
.form__status.is-error { color: var(--error); }
.form.is-sent .field, .form.is-sent .btn { display: none; }
.form.is-sent .form__status { font-size: 1.125rem; font-weight: 500; padding: 32px; background: var(--surface); border-left: 3px solid var(--accent); width: 100%; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
}
@media (max-width: 520px) {
  .form { grid-template-columns: 1fr; }
  .field, .field--half, .form__actions { grid-column: auto; }
  .form__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- 6. Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); font-size: .875rem; font-weight: 400; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 48px; }
.footer__brand { display: grid; gap: 16px; justify-items: start; }
.footer__logo img { display: block; height: 72px; width: auto; }
.footer__legalname { color: var(--muted); }
.footer__contact { font-style: normal; display: grid; gap: 12px; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__lang { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.footer__lang button {
  font: 500 .875rem/1 var(--font); letter-spacing: .06em; color: var(--muted); background: none; border: 0;
  padding: 10px 6px; cursor: pointer; transition: color .2s;
}
.footer__lang button:hover { color: var(--ink); }
.footer__lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.footer__bottom { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); padding-inline: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: .8125rem; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Movimiento ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--accent-text); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Titulares palabra a palabra */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal[data-split] { opacity: 1; transform: none; }

  .js [data-split] .w > span { transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
  .js .is-in [data-split] .w > span, .js [data-split].is-in .w > span, .js.is-loaded .hero [data-split] .w > span { transform: none; }

  /* Imagen del equipo: se descubre de abajo arriba */
  .js .reveal--clip { opacity: 1; transform: none; }
  .js .reveal--clip img { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.3s var(--ease-drawer), transform 1.6s var(--ease-out); }
  .js .reveal--clip.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }

  .hero__sub, .hero .btn { animation: rise 1s var(--ease-out) both; }
  .hero__sub { animation-delay: .45s; }
  .hero .btn { animation-delay: .6s; }
  .hero__bg { animation: settle 2.6s var(--ease-out) both; }

  /* Menú móvil: enlaces en cascada */
  .nav__list li { transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
  .nav:not(.is-open) .nav__list li { opacity: 0; transform: translateY(16px); }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .15s; }
  @media (min-width: 861px) { .nav:not(.is-open) .nav__list li { opacity: 1; transform: none; } }

  /* Efectos ligados al scroll (solo navegadores compatibles) */
  @supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
  }
}
@keyframes grow { to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes settle { from { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Páginas legales ---------- */
.legal-top { border-bottom: 1px solid var(--line); background: var(--bg); }
.legal-top__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-top__brand img { display: block; height: 48px; width: auto; }
.legal-top__back { font-size: .875rem; color: var(--muted); text-decoration: none; }
.legal-top__back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 860px; padding-block: clamp(40px, 7vw, 96px); }
.legal__title { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 600; margin: 0 0 clamp(28px, 4vw, 48px); text-wrap: balance; }
.legal__body { font-size: 1rem; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.legal__body > * + * { margin-top: 1em; }
.legal__body h2 { font-size: 1.375rem; font-weight: 600; margin-top: 2em; }
.legal__body ul, .legal__body ol { padding-left: 1.25em; }
.legal__body ul:has(> li > strong:only-child), .legal__body ol:has(> li > strong:only-child) { margin-top: 2em; }
.legal__body a { color: var(--accent-text); text-underline-offset: 3px; }
.legal__body table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.legal__body td, .legal__body th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; text-align: left; }
.legal__logos { display: block; max-width: 100%; height: auto; background: #fff; padding: 12px; border-radius: 4px; }
.footer--legal { padding-top: 0; }
.footer--legal .footer__bottom { border-top: 0; }
.footer__links a[aria-current="page"] { color: var(--ink); }
