/* ==========================================================================
   OLAVIA estudio · hoja de estilos
   Concepto: tipografía protagonista con el mismo contraste de pesos que el
   logotipo (fuerte / fino) y la barra diagonal amarilla como único gesto
   gráfico recurrente. Mucho blanco, retícula editorial, amarillo con mesura.
   ========================================================================== */

:root {
  /* Paleta de marca */
  --ink: #171717;        /* negro grafito */
  --paper: #FFFFFF;      /* blanco */
  --yellow: #FFD100;     /* amarillo vivo: botones, barra, subrayados */
  --mist: #F6F6F4;       /* gris muy claro: bandas alternas */
  --grey: #686868;       /* gris secundario: textos de apoyo (AA sobre blanco y mist) */
  --line: #E3E3DF;       /* filetes */
  --ink-soft: #2A2A2A;

  /* Tipografía */
  --f-display: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Escala tipográfica (fluida) */
  --fs-hero: clamp(2.6rem, 1.4rem + 5.6vw, 6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.8vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .5vw, 1.6rem);
  --fs-big: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;

  /* Espaciado y retícula */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 4px;
  --header-h: 72px;

  /* Movimiento: curvas propias, duraciones cortas (< 300 ms) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 160ms;
  --t-ui: 200ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * 40px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
@media (min-width: 900px) {
  :root { --gutter: max(40px, env(safe-area-inset-left, 0px)); --gutter-r: max(40px, env(safe-area-inset-right, 0px)); }
}

.section { padding-block: var(--section); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: .75rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

::selection { background: var(--yellow); color: var(--ink); }
html { accent-color: var(--ink); caret-color: var(--ink); scrollbar-color: #9A9A95 var(--paper); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.site-footer ::selection { background: var(--yellow); color: var(--ink); }

main { overflow-x: clip; }

/* ---------- Tipografía ---------- */
.h2, .hero-title, .project-title, .h3 { font-family: var(--f-display); text-wrap: balance; }
.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 18ch;
}
.h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.t-light { font-weight: 200; }
.big-p { font-size: var(--fs-big); line-height: 1.55; max-width: 34em; }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-sub { color: var(--grey); font-size: var(--fs-big); max-width: 26em; line-height: 1.5; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% .35em no-repeat;
  padding-bottom: .05em;
  transition: background-size var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { background-size: 100% 100%; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-press) var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 rgba(23, 23, 23, 0); }
.btn--ink { background: var(--ink); color: var(--paper); }

.btn--ghost { background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  /* Botón que se eleva al pasar el ratón y se hunde al pulsar */
  .btn--primary:hover, .btn--ink:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -10px rgba(23, 23, 23, .45); }
  .btn--primary:hover:active, .btn--ink:hover:active { transform: translateY(0) scale(0.97); box-shadow: 0 2px 4px -2px rgba(23, 23, 23, .3); }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); }
  .btn--whatsapp:hover { background: var(--ink); color: var(--paper); }
  .btn:hover .btn-arrow { transform: translateX(4px); }
}
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn--lg { min-height: 58px; padding-inline: 1.8rem; font-size: 1.05rem; }
.btn-arrow { transition: transform var(--t-ui) var(--ease-out); }

.btn--whatsapp { background: var(--paper); color: var(--ink); }
.btn--whatsapp .wa-icon { width: 22px; height: 22px; }
.btn.is-disabled, .btn.is-disabled:hover, .btn.is-disabled:active { opacity: .55; cursor: not-allowed; box-shadow: none; background: var(--paper); color: var(--ink); transform: none; }

/* ---------- Logo (archivos oficiales en img/) ---------- */
.logo { display: inline-flex; flex: none; line-height: 0; text-decoration: none; }
.logo img { height: 30px; width: auto; max-width: none; }
@media (max-width: 380px) { .logo img { height: 26px; } }
.logo--invert img { height: 36px; }

/* ---------- Cabecera ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) ease;
}
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.main-nav ul { display: flex; gap: clamp(1rem, .5rem + 1.2vw, 2rem); }
.main-nav a:not(.btn) {
  position: relative; display: inline-block;
  font-size: .97rem; font-weight: 500; text-decoration: none;
  padding-block: .4rem;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: .3em; z-index: -1;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-ui) var(--ease-out);
}
.main-nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .main-nav a:not(.btn):hover::after { transform: scaleX(1); }
}

.menu-toggle {
  display: none;
  align-items: center; gap: .6rem;
  min-height: 44px; padding: .4rem .25rem .4rem .75rem;
  border: 0; background: none; cursor: pointer; font-weight: 600;
}
.menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform var(--t-ui) var(--ease-out), background-color 120ms ease;
}
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -7px; }
.menu-toggle-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1000px) {
  .main-nav { display: flex; align-items: center; gap: 2rem; }
}
@media (max-width: 999.98px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; left: 0; right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    bottom: 0;
    background: var(--paper);
    padding: 2rem var(--gutter-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--gutter);
    display: none; flex-direction: column; gap: 2rem;
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open {
    display: flex;
    transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
  }
  @starting-style { .main-nav.is-open { opacity: 0; transform: translateY(-8px); } }
  .main-nav.is-open li { transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
  .main-nav.is-open li:nth-child(2) { transition-delay: 30ms; }
  .main-nav.is-open li:nth-child(3) { transition-delay: 60ms; }
  .main-nav.is-open li:nth-child(4) { transition-delay: 90ms; }
  .main-nav.is-open li:nth-child(5) { transition-delay: 120ms; }
  @starting-style { .main-nav.is-open li { opacity: 0; transform: translateY(6px); } }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) {
    display: block; padding: 1rem 0; width: fit-content;
    font-family: var(--f-display); font-size: 1.75rem; font-weight: 400; letter-spacing: -.01em;
  }
  .main-nav a:not(.btn)::after { bottom: 1.15rem; }
  .nav-cta { align-self: flex-start; }
  body.menu-open { overflow: hidden; }
}

/* ---------- 1 · Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 6vw, 7.5rem) clamp(3.5rem, 2rem + 6vw, 7rem); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2rem; }
.hero-title {
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 500;
  max-width: 13.5ch;
}
.hero-title .t-strong, .hero-title .t-light { display: block; }
.hero-title .t-light { margin-top: .12em; }
mark {
  color: inherit;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 100% 36% no-repeat;
  padding-inline: .04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-title mark { font-weight: 400; }
.hero-side { display: grid; gap: 2rem; max-width: 34rem; }
.hero-lead { font-size: var(--fs-big); line-height: 1.55; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }


.hero-slash {
  position: absolute; z-index: 0;
  width: clamp(70px, 9vw, 150px);
  height: 140%;
  right: clamp(-140px, -6vw, -40px);
  top: -20%;
  background: var(--yellow);
  transform: skewX(-22deg);
}
@media (min-width: 900px) and (max-width: 1279.98px) {
  .hero-slash { height: 80%; top: -20%; right: -30px; }
}
@media (max-width: 899.98px) {
  .hero-slash { width: 34px; right: 6px; top: 10px; height: 104px; }
  .hero-title { padding-right: 40px; }
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-areas:
      "title visual"
      "side visual";
    column-gap: clamp(2rem, 4vw, 4rem);
    row-gap: 2.5rem;
  }
  .hero-title { grid-area: title; max-width: 15ch; }
  .hero-side { grid-area: side; }
  .hero-visual { grid-area: visual; align-self: center; }
}

/* ---------- Ilustración del hero ---------- */
.hero-visual { position: relative; width: 100%; max-width: 330px; justify-self: center; padding: 34px 0 26px; }
.hv-phone {
  position: relative; width: 236px; margin-inline: auto;
  padding: 9px; border-radius: 34px; background: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(23, 23, 23, .45);
}
.hv-screen {
  aspect-ratio: 9 / 18.5; border-radius: 26px; overflow: hidden; background: var(--paper);
  display: flex; flex-direction: column; gap: 9px; padding: 16px 14px;
}
.hv-bar { display: flex; align-items: center; gap: 6px; }
.hv-logo { font-family: var(--f-display); font-weight: 600; font-size: .72rem; margin-right: auto; letter-spacing: -.01em; }
.hv-bar i { width: 14px; height: 2px; background: var(--ink); border-radius: 2px; }
.hv-img { position: relative; height: 34%; border-radius: 10px; background: var(--mist); overflow: hidden; margin-top: 4px; }
.hv-img svg { width: 100%; height: 100%; display: block; }
.hvs-wall { fill: #EDE5DE; }
.hvs-mirror { fill: #FAF7F3; stroke: #C9BDB2; stroke-width: 3; }
.hvs-desk { fill: #D9CBBE; }
.hvs-plant { fill: none; stroke: #6F8F6A; stroke-width: 4; stroke-linecap: round; }
.hvs-scissors { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.hvs-bottle { fill: var(--ink); }
.hvs-bottle2 { fill: var(--yellow); }
.hv-h { height: 11px; width: 82%; background: var(--ink); border-radius: 2px; margin-top: 4px; }
.hv-h--s { width: 56%; margin-top: 0; }
.hv-t { height: 5px; width: 90%; background: #CFCFCB; border-radius: 2px; }
.hv-t--s { width: 70%; }
.hv-btn {
  align-self: flex-start; margin-top: 4px; padding: 7px 12px; border-radius: 4px;
  background: var(--yellow); font-size: .66rem; font-weight: 600; line-height: 1;
}
.hv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; height: 26%; }
.hv-cards i { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 9px; background: var(--mist); border-radius: 8px; font-style: normal; }
.hv-cards b { font-family: var(--f-display); font-size: .7rem; font-weight: 600; }
.hv-cards em { display: block; width: 70%; height: 4px; border-radius: 2px; background: #CFCFCB; }

.hv-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .85rem; border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font-size: .82rem; line-height: 1.25; white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(23, 23, 23, .35), 0 0 0 1px rgba(23, 23, 23, .06);
}
.hv-chip svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hv-search { top: 0; left: -34px; border-radius: 999px; }
.hv-map { top: 46%; right: -40px; }
.hv-map b { display: block; font-weight: 600; }
.hv-map small { color: var(--grey); font-size: .74rem; }
.hv-pin { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); }
.hv-msg { bottom: 0; left: -22px; background: var(--ink); color: var(--paper); border-radius: 14px 14px 14px 4px; }
@media (max-width: 999.98px) {
  .hero-visual { margin-top: 1rem; }
}
@media (max-width: 420px) {
  .hv-search { left: -6px; }
  .hv-map { right: -6px; }
  .hv-msg { left: 0; }
}

/* Etiquetas que cuentan la historia: 1 te busca, 2 te encuentra, 3 entra en tu web, 4 te escribe */
.hv-step {
  position: absolute; left: 10px; bottom: calc(100% + 6px);
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); white-space: nowrap;
  padding: 2px 9px 2px 2px; border-radius: 999px; background: var(--paper);
  box-shadow: 0 4px 10px -4px rgba(23, 23, 23, .3);
}
.hv-step b {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); font-size: .66rem;
}
.hv-msg .hv-step { color: var(--ink); }
.hv-step--phone { z-index: 3; left: auto; right: -34px; top: 64%; bottom: auto; }
@media (max-width: 420px) { .hv-step--phone { right: -6px; } }
.hv-map .hv-step { left: auto; right: 10px; }

/* Coreografía de entrada: la web se monta pieza a pieza y luego aparece el cliente */
@keyframes hv-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes hv-in-l { from { opacity: 0; transform: translateX(-28px); } }
@keyframes hv-in-r { from { opacity: 0; transform: translateX(28px); } }
@keyframes hv-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes hv-float { from { translate: 0 0; } to { translate: 0 -7px; } }
@keyframes hv-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 0, .0); } 50% { box-shadow: 0 0 0 6px rgba(255, 209, 0, .45); } }
.hv-phone { animation: hv-pop 800ms var(--ease-out) 150ms both; }
.hv-screen > * { animation: hv-in 600ms var(--ease-out) both; }
.hv-bar { animation-delay: 450ms; }
.hv-img { animation-delay: 540ms; }
.hv-h { animation-delay: 630ms; }
.hv-h--s { animation-delay: 700ms; }
.hv-t { animation-delay: 770ms; }
.hv-t--s { animation-delay: 830ms; }
.hv-btn { animation: hv-in 600ms var(--ease-out) 900ms both, hv-pulse 2.4s ease-in-out 2.6s infinite; }
.hv-cards { animation-delay: 980ms; }
.hv-search { animation: hv-in-l 700ms var(--ease-out) 1200ms both, hv-float 4s ease-in-out 2s infinite alternate; }
.hv-map { animation: hv-in-r 700ms var(--ease-out) 1550ms both, hv-float 4.6s ease-in-out 2.4s infinite alternate; }
.hv-msg { animation: hv-in-l 700ms var(--ease-out) 1900ms both, hv-float 5s ease-in-out 2.8s infinite alternate; }

/* ---------- Banda en movimiento ---------- */
.marquee {
  display: flex; align-items: stretch;
  border-block: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.marquee-label {
  position: relative; z-index: 1; flex: none;
  display: flex; align-items: center;
  padding: 0 max(16px, env(safe-area-inset-left, 0px));
  background: var(--yellow);
  font-weight: 600; font-size: .9rem; white-space: nowrap;
}
@media (min-width: 900px) { .marquee-label { padding-inline: 40px 28px; } }
.marquee-viewport { flex: 1; min-width: 0; overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; width: max-content;
  padding-block: clamp(.9rem, .6rem + 1vw, 1.4rem);
  font-family: var(--f-display); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3.2rem); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-b { font-weight: 500; }
.mq-l { font-weight: 200; }
.mq-sl { display: inline-block; width: .16em; height: .8em; margin-inline: .55em; background: var(--yellow); transform: skewX(-22deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Infografía: recorrido del cliente ---------- */
.journey { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.journey-title { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 500; margin-bottom: 2.25rem; }
.journey-steps { position: relative; display: grid; gap: 2rem; counter-reset: j; }
.jstep { position: relative; display: grid; gap: .45rem; align-content: start; padding-left: 4.25rem; }
.jicon {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
}
.jicon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jstep--goal .jicon { background: var(--yellow); }
.jname { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; line-height: 1.25; }
.jtext { color: var(--ink-soft); max-width: 22em; }
.jtag {
  justify-self: start; margin-top: .3rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: .2rem .55rem; border: 1.5px solid var(--ink); border-radius: 999px;
}
.jstep--goal .jtag { background: var(--ink); color: var(--paper); }
/* línea que une los pasos */
.jstep:not(:last-child)::before {
  content: ""; position: absolute; left: 25px; top: 56px; bottom: -2rem; width: 2px;
  background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 12px);
  transform-origin: top; transition: transform 700ms var(--ease-out) calc(var(--d, 0ms) + 250ms);
}
@media (min-width: 900px) {
  .journey-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; }
  .jstep { padding-left: 0; padding-top: 4.5rem; }
  .jstep:not(:last-child)::before {
    left: 60px; right: -2rem; top: 25px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
    transform-origin: left;
  }
}
.js-motion .jstep:not(.is-in)::before { transform: scale(0); }
.js-motion .jstep .jicon { transition: transform 600ms var(--ease-out) var(--d, 0ms); }
.js-motion .jstep:not(.is-in) .jicon { transform: scale(.6); }

/* ---------- 2 · Presentación ---------- *//* ---------- 2 · Presentación ---------- */
.intro { background: var(--mist); }
.intro-grid { display: grid; gap: 2.5rem; }
.intro-text { display: grid; gap: 1.5rem; }
.intro-sign {
  font-family: var(--f-display); font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); font-weight: 500; line-height: 1.25;
  letter-spacing: -.01em; max-width: 22ch;
}
.intro-note { color: var(--grey); max-width: 34em; }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
}

/* ---------- 3 · Servicios ---------- */
.service-num {
  font-family: var(--f-display); font-weight: 200; font-size: 1.1rem; letter-spacing: .04em; color: var(--grey);
}
.service--main {
  display: grid; gap: 2.5rem; align-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.service--main .service-body { display: grid; gap: 1rem; justify-items: start; }
.service--main .h3 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem); letter-spacing: -.02em; line-height: 1.05; }
.service--main p { max-width: 32em; font-size: var(--fs-big); line-height: 1.55; color: var(--ink-soft); }
.service--main .text-link { margin-top: .5rem; }
.service-visual { width: 100%; max-width: 420px; justify-self: center; }
@media (min-width: 900px) {
  .service--main { grid-template-columns: 1.2fr 1fr; }
}

.sv-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sv-thick { stroke-width: 4; }
.sv-fill-dark { fill: var(--ink); }
.sv-fill-grey { fill: #CFCFCB; }
.sv-fill-light { fill: var(--mist); }
.sv-fill-yellow { fill: var(--yellow); }
.sv-phone { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }

.services-list { display: grid; gap: 0; }
.services-list .service {
  display: grid; gap: .9rem; align-content: start;
  padding-block: 2rem;
  border-top: 1px solid var(--ink);
}
.service-top { display: flex; }
.service-icon { width: 44px; height: 44px; flex: none; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .services-list .service:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
}
.services-list .service p { color: var(--ink-soft); max-width: 30em; }
@media (min-width: 760px) {
  .services-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .services-list .service:nth-child(2) { margin-top: 3rem; }
  .services-list .service:nth-child(3) { margin-top: 6rem; }
}
.inline-cta { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); font-size: var(--fs-big); max-width: 40em; }

/* ---------- 4 · Trabajos ---------- */
.work { background: var(--mist); }
/* Galería compacta: tarjetas en fila. Móvil: carrusel deslizable; escritorio: 3 por fila */
.projects {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter, 20px);
  padding: .5rem var(--gutter, 20px) 1.5rem; margin-inline: calc(-1 * var(--gutter, 20px));
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.project { display: grid; gap: 1.25rem; align-content: start; scroll-snap-align: start; }
@media (min-width: 900px) {
  .projects { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 3rem 2rem; overflow: visible; padding: 0; margin: 0; }
}
.project-media { position: relative; padding-right: 18%; padding-bottom: 12%; }
.device { margin: 0; }
.project-media--solo { padding-right: 0; padding-bottom: 2.5rem; }
.device--desktop {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(23, 23, 23, .28);
  transition: transform 260ms var(--ease-out);
}
.device-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.device-bar span { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); }
.screen { aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; }
.screen--photo { aspect-ratio: 2 / 1; }
.screen--photo { background: var(--ink); }
.screen img, .phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: object-position 2.4s var(--ease-out); }
.phone-screen img { object-position: center top; }
.device--phone {
  position: absolute; right: 0; bottom: 0;
  width: 27%;
  padding: 4px; border-radius: 14px;
  padding: 7px;
  background: var(--ink);
  border-radius: 22px;
  box-shadow: 0 18px 36px -14px rgba(23, 23, 23, .4);
  transition: transform 260ms var(--ease-out);
}
.phone-screen { aspect-ratio: 9 / 19.5; border-radius: 10px; overflow: hidden; max-width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .project:hover .device--phone { transform: translateY(-8px) rotate(-2deg); }
  .project:hover .screen img, .project:hover .phone-screen img { object-position: left bottom; }
  .project:hover .phone-screen img { object-position: center bottom; }
  .project:hover .device--desktop { transform: translateY(-4px); }
}

.project-info { display: grid; gap: .6rem; justify-items: start; }
.project-title { font-size: 1.5rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.project-meta { display: grid; gap: .35rem; width: 100%; border-top: 1px solid var(--ink); padding-top: .75rem; }
.project-meta div { display: grid; grid-template-columns: 5.25rem 1fr; gap: .75rem; font-size: .95rem; }
.project-meta dt { color: var(--grey); font-size: var(--fs-small); padding-top: .1em; }
.status {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 2px;
}
.status--real { background: var(--ink); color: var(--paper); }
.status--demo { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.status--pending { background: var(--paper); color: var(--ink); border: 1.5px dashed var(--ink); }

/* Vistas ilustrativas (sustituir por capturas reales) */
.mock { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 6%; padding: 5% 6%; overflow: hidden; }
.mk-nav { display: flex; align-items: center; gap: 6%; }
.mk-nav b { font-size: clamp(.55rem, .4rem + .6vw, 1rem); letter-spacing: .12em; text-transform: uppercase; margin-right: auto; white-space: nowrap; }
.mk-nav i { width: 8%; height: 4px; border-radius: 2px; background: currentColor; opacity: .45; }
.mk-hero { display: grid; gap: 7%; align-content: center; }
.mk-h { height: 11%; min-height: 7px; width: 70%; background: currentColor; border-radius: 2px; }
.mk-h--short { width: 46%; }
.mk-btn { width: 22%; min-width: 26px; height: 9%; min-height: 6px; border-radius: 2px; }
.mk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 22%; }
.mk-row i { border-radius: 2px; }
.phone-screen.mock { padding: 14% 10%; grid-template-rows: auto 1fr; }
.phone-screen .mk-nav b { font-size: clamp(.45rem, .3rem + .4vw, .7rem); }
.phone-screen .mk-h { width: 90%; height: 7%; }
.phone-screen .mk-h--short { width: 60%; }
.phone-screen .mk-btn { width: 55%; height: 6%; }

.mock--distefano { background: #1E1C1B; color: #EDE6DC; }
.mock--distefano .mk-nav b { font-family: var(--f-display); font-weight: 300; }
.mock--distefano .mk-btn { background: #C9A27A; }
.mock--distefano .mk-row i { background: #2E2B29; }

.mock--salisucre { background: #17110F; color: #F3EDE6; }
.mock--salisucre .mk-nav b { font-family: var(--f-display); font-weight: 600; letter-spacing: .02em; text-transform: none; }
.mock--salisucre .mk-btn { background: #C62828; }
.mock--salisucre .mk-row i { background: #2A211D; }

/* ---------- 5 · Cómo trabajamos ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; gap: .6rem; align-content: start; padding: 1.75rem 0 1.75rem 4.25rem; border-top: 1px solid var(--line); }
.step-num {
  position: absolute; left: 0; top: 1.5rem;
  font-family: var(--f-display); font-size: 2.2rem; font-weight: 200; line-height: 1; letter-spacing: -.02em;
}
.step p { color: var(--ink-soft); max-width: 26em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .step { padding: 0; border-top: 0; gap: 1rem; }
  .step-num {
    position: relative; top: auto; left: auto;
    display: flex; align-items: center; gap: 1rem;
    font-size: clamp(3rem, 2rem + 2.5vw, 4.5rem);
    padding-bottom: 1.25rem; margin-bottom: .5rem;
    border-bottom: 2px solid var(--ink);
  }
  .step:not(:last-child) .step-num::after {
    content: ""; position: absolute; right: -1.6rem; bottom: -9px;
    width: 10px; height: 16px; background: var(--yellow); transform: skewX(-22deg);
  }
  .step:last-child .step-num { border-bottom-color: var(--yellow); border-bottom-width: 6px; padding-bottom: calc(1.25rem - 4px); }
}
.process-cta {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  background: var(--yellow); color: var(--ink);
  border-radius: var(--radius);
}
.process-cta p { font-family: var(--f-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); font-weight: 400; line-height: 1.25; max-width: 30ch; }


/* ---------- 6 · Nosotros ---------- */
.about { background: var(--mist); overflow-x: clip; }
.about-grid { display: grid; gap: 3rem; align-items: start; }
.about-text { display: grid; gap: 1.25rem; }
.about-text .h2 { margin-bottom: .75rem; }
.about-text > p { max-width: 34em; font-size: 1.1rem; }
.about-place { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; }
.pin { flex: none; width: 10px; height: 22px; margin-top: .15em; background: var(--yellow); transform: skewX(-22deg); }
.founder { padding: .15rem 0 .15rem 1.25rem; border-left: 3px solid var(--yellow); }
.founder-text { font-size: 1.1rem; max-width: 32em; }
/* Infografía de trayectoria (en lugar de foto) */
.about-path {
  position: relative; width: 100%; max-width: 440px; justify-self: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  box-shadow: 8px 8px 0 var(--ink);
}
.about-path::after {
  content: ""; position: absolute; right: -16px; top: -22px;
  width: 26px; height: 120px; background: var(--yellow); transform: skewX(-22deg);
  transition: transform 900ms var(--ease-out) 300ms, opacity 600ms var(--ease-out) 300ms;
}
.path-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.path-mono {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink);
  font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1;
}
.path-name { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.path-role { font-family: var(--f-display); font-weight: 300; color: var(--grey); }
.path-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.pstep { position: relative; display: grid; gap: .15rem; padding-left: 2.25rem; }
.pstep::after {
  content: ""; position: absolute; left: 3px; top: .3rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
  transition: transform 500ms var(--ease-out) var(--d, 0ms);
}
.pstep--now::after { background: var(--yellow); width: 12px; height: 22px; left: 4px; top: .15rem; border-radius: 0; transform: skewX(-22deg); }
.pstep:not(:last-child)::before {
  content: ""; position: absolute; left: 9px; top: 1.45rem; bottom: -1.4rem; width: 2px;
  background: repeating-linear-gradient(var(--ink) 0 5px, transparent 5px 10px);
  transform-origin: top; transition: transform 600ms var(--ease-out) calc(var(--d, 0ms) + 200ms);
}
.pstep-k { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.pstep-v { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; line-height: 1.3; }
.pstep--now .pstep-v { font-weight: 600; }
.js-motion .pstep:not(.is-in)::before { transform: scaleY(0); }
.js-motion .pstep:not(.is-in)::after { transform: scale(0); }
.js-motion .pstep--now:not(.is-in)::after { transform: skewX(-22deg) scale(0); }
.js-motion .about-path:not(.is-in)::after { transform: skewX(-22deg) translateY(-40px); opacity: 0; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.25fr 1fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
  .about-path { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .js-motion .pstep:not(.is-in)::before, .js-motion .pstep:not(.is-in)::after { transform: none; }
  .js-motion .pstep--now:not(.is-in)::after, .js-motion .about-path:not(.is-in)::after { transform: skewX(-22deg); opacity: 1; }
}

/* ---------- 7 · Preguntas frecuentes ---------- */
.faq-grid { display: grid; gap: 1rem; }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: 1fr 1.5fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq .section-sub { margin-top: 1.5rem; font-size: 1.05rem; }
.faq-list { border-top: 2px solid var(--ink); }
.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.4rem 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--f-display); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .2em; text-underline-offset: .2em; } }
.faq-item summary { -webkit-tap-highlight-color: transparent; }
.faq-item summary:active .faq-icon { transform: scale(0.92); }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; transition: background-color var(--t-ui) ease, transform var(--t-press) var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t-ui) var(--ease-out); }
.faq-item[open] .faq-icon { background: var(--yellow); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 3.5rem 1.6rem 0; }
.faq-item[open] .faq-answer { animation: faq-in 220ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq-answer p { color: var(--ink-soft); max-width: 38em; }

/* ---------- 8 · Contacto ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 3rem; }
.contact-intro { display: grid; gap: 1.5rem; align-content: start; }
.contact-intro .h2 { max-width: 16ch; }
.contact-alt { display: grid; gap: .75rem; justify-items: start; margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-alt-label { font-weight: 600; }
.contact-alt-number { color: var(--grey); font-size: .95rem; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: clamp(3rem, 6vw, 6rem); }
}

.contact-form {
  display: grid; gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--mist);
  border-radius: var(--radius);
  align-self: start;
}
@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: .45rem; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  background: var(--paper);
  border: 1.5px solid #8F8F8A;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field textarea::placeholder { color: #6E6E6A; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow); border-radius: var(--radius);
}
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .9rem; font-weight: 500; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.privacy-box { gap: 1rem; padding-top: .5rem; }
.privacy-basic { font-size: .82rem; line-height: 1.55; color: var(--grey); }
.privacy-basic strong { color: var(--ink); }
.privacy-basic a, .check a { color: var(--ink); font-weight: 600; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--ink); cursor: pointer; }
.check label { font-weight: 400; font-size: .95rem; line-height: 1.5; cursor: pointer; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form-hint { color: var(--grey); font-size: .95rem; }
.contact-mail { margin-top: 1.5rem; font-weight: 500; }
.contact-mail a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: .25em; }
.form-status {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--paper); border: 2px solid var(--ink);
  font-weight: 500;
}
.form-status:focus { outline: none; }
.form-status.is-error { border-color: #B42318; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[aria-busy="true"] { opacity: .6; cursor: progress; }
.form-status:not([hidden]) { transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
@starting-style { .form-status:not([hidden]) { opacity: 0; transform: translateY(6px); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D9D6; padding-top: clamp(3.5rem, 3rem + 3vw, 6rem); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; max-width: 22rem; }
.footer-place { color: var(--paper); font-weight: 500; }
.footer-title { color: var(--paper); font-family: var(--f-display); font-weight: 500; margin-bottom: .75rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); box-shadow: none; }
.footer-bottom {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; font-size: var(--fs-small); color: #A8A8A4;
}
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter-r); border-top: 1px solid #3A3A3A; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
}

/* ---------- Avisos y modo borrador ---------- */
.toast {
  position: fixed; z-index: 80;
  left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(30rem, calc(100% - 32px));
  padding: .9rem 1.2rem;
  background: var(--ink); color: var(--paper);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
@starting-style { .toast:not([hidden]) { opacity: 0; transform: translate(-50%, 12px); } }

.draft-note, .draft-inline, .draft-block { display: none; }
.is-draft .draft-note {
  display: block; width: fit-content; max-width: 100%;
  font-size: .78rem; font-weight: 600; line-height: 1.4;
  padding: .35rem .6rem; color: var(--ink);
  background: #FFF7A8; border: 1.5px dashed var(--ink); border-radius: 2px;
}
.is-draft .draft-note--float { position: absolute; left: 12px; bottom: 0; }
.is-draft .draft-inline { display: inline; background: #FFF7A8; outline: 1.5px dashed var(--ink); padding: 0 .3em; color: var(--ink); }
.is-draft .draft-block { display: grid; background: var(--paper); border: 1.5px dashed var(--ink); border-radius: var(--radius); }
.site-footer .draft-inline { color: var(--ink); }

/* ---------- Movimiento reducido ---------- */
/* Menos movimiento no es cero: se eliminan desplazamientos, se mantienen fundidos y cambios de color */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:active, .btn--primary:hover, .btn--primary:active, .btn--primary:hover:active,
  .btn:hover .btn-arrow, .project:hover .device--phone, .services-list .service:hover .service-icon,
  .faq-item summary:active .faq-icon { transform: none !important; }
  .main-nav.is-open, .main-nav.is-open li, .form-status:not([hidden]) { transform: none !important; transition-delay: 0ms !important; }
  @starting-style { .main-nav.is-open li { transform: none; } .toast:not([hidden]) { transform: translateX(-50%); } }
  .faq-item[open] .faq-answer { animation-name: faq-fade; }
  @keyframes faq-fade { from { opacity: 0; } }
}

/* ==========================================================================
   Movimiento al hacer scroll
   Solo se ocultan elementos cuando JS está activo (html.js-motion).
   Se anima transform, opacity y clip-path. Cada elemento entra una sola vez.
   ========================================================================== */
.js-motion [data-reveal] {
  transition:
    opacity 700ms var(--ease-out),
    transform 800ms var(--ease-out),
    clip-path 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js-motion [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(36px); }
.js-motion [data-reveal="left"]:not(.is-in) { opacity: 0; transform: translateX(-64px); }
.js-motion [data-reveal="right"]:not(.is-in) { opacity: 0; transform: translateX(64px); }
.js-motion [data-reveal="wipe"]:not(.is-in) { clip-path: inset(-40px 100% -40px -40px); }
.js-motion [data-reveal="wipe"] { clip-path: inset(-40px -4rem -40px -40px); }
.js-motion [data-reveal="drop"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
.js-motion [data-reveal="drop"] { clip-path: inset(0 0 0 0); transition-duration: 1100ms; }

/* Subrayado amarillo del titular: se pinta de izquierda a derecha */
.js-motion .hero-title mark { transition: background-size 700ms var(--ease-out) 650ms; }
.js-motion .hero-title:not(.is-in) mark { background-size: 0% 36%; }

/* La barra diagonal del logo aparece en las fotos y los pasos */
@media (min-width: 900px) {
  .step .step-num::after { transition: transform 600ms var(--ease-out) calc(var(--d, 0ms) + 500ms), opacity 400ms ease calc(var(--d, 0ms) + 500ms); }
  .js-motion .step:not(.is-in) .step-num::after { opacity: 0; transform: skewX(-22deg) translateY(-14px); }
}

/* La barra amarilla del hero acompaña el scroll (solo navegadores compatibles) */
@supports (animation-timeline: scroll()) {
  .hero-slash {
    animation: slash-drift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 90vh;
  }
  @keyframes slash-drift { to { translate: 0 22vh; } }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal]:not(.is-in) { transform: none !important; clip-path: none !important; }
  .js-motion [data-reveal] { transition: opacity 300ms ease !important; transition-delay: 0ms !important; }
  .js-motion [data-reveal="wipe"]:not(.is-in), .js-motion [data-reveal="drop"]:not(.is-in) { opacity: 0; }
  .js-motion .hero-title mark { transition: none; }
  .js-motion .hero-title:not(.is-in) mark { background-size: 100% 36%; }
  .hero-slash { animation: none; }
  .hv-phone, .hv-screen > *, .hv-chip, .hv-btn { animation: none !important; }
  .marquee-track { animation: none; }
  .marquee-viewport { overflow-x: auto; }
  .js-motion .jstep:not(.is-in)::before, .js-motion .jstep:not(.is-in) .jicon { transform: none; }
}

/* ---------- Páginas legales y 404 ---------- */
.legal-page .site-header { position: sticky; }
.legal-back { white-space: nowrap; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.legal-wrap { max-width: 46rem; }
.legal-updated { color: var(--grey); font-size: var(--fs-small); margin: .5rem 0 2.5rem; }
.legal h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; margin: 2.25rem 0 .75rem; padding-left: .9rem; border-left: 3px solid var(--yellow); }
.legal p, .legal li { line-height: 1.65; }
.legal p + p { margin-top: .75rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal a { text-decoration: underline; text-underline-offset: .2em; }
.legal-footer { border-top: 1px solid var(--ink); padding-block: 1.5rem; font-size: var(--fs-small); }
.legal-footer a { text-decoration: underline; text-underline-offset: .2em; }
.notfound { min-height: 70vh; display: grid; align-items: center; padding-block: 4rem; }
.notfound .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.notfound-code { font-family: var(--f-display); font-weight: 200; font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: .9; letter-spacing: -.04em; }
