/* ---------- Tokens ---------- */
:root {
  --bg: #e6e0d2;
  --surface: #dcd5c5;
  --ink: #1a1a1a;
  --muted: #5f5b52;
  --accent: #18bc42;
  --coral: #ed4b44;
  --coral-deep: #5c1512;
  --coral-tone: #f2716b;
  --black: #1a1a1a;
  --black-tone: #2a2826;
  --bone-soft: #a8a294;
  --green: #18bc42;
  --green-tone: #3fcb63;
  --yellow: #f2c21a;

  --font: "Epilogue", system-ui, sans-serif;
  --step-small: 0.875rem;                                   /* 14 */
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);      /* 16–18 */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);    /* 20–26 */
  --step-sub: clamp(2rem, 1rem + 2.6vw, 3.25rem);           /* 32–52 */
  --step-head: clamp(2.5rem, 1.2rem + 4.6vw, 5.25rem);      /* 40–84 */
  --step-display: clamp(3.4rem, 1rem + 8.4vw, 8.5rem);

  --margin: clamp(16px, 2.4vw, 32px);
  --section-gap: clamp(96px, 14vw, 200px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* header colours, set per chapter by main.js */
  --h-bg: var(--bg);
  --h-ink: var(--ink);
  --h-btn: var(--green);
  --h-btn-ink: var(--ink);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 900; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--margin); top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 0;
  font-size: var(--step-body); font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .btn-green:hover { background: var(--green-tone); }
  .btn-dark:hover { background: #333; }
}

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--margin);
  background: var(--h-bg);
  color: var(--h-ink);
  transition: background-color 300ms ease, color 300ms ease;
}
.wordmark {
  font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.04em; text-decoration: none; line-height: 1;
}
.nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: var(--step-body);
  padding: 8px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); }
}
.top-actions { display: flex; align-items: center; gap: 12px; }
.btn-quote {
  min-height: 44px; padding: 0 20px;
  background: var(--h-btn); color: var(--h-btn-ink);
  transition: transform 160ms var(--ease-out), background-color 300ms ease, color 300ms ease;
}
.menu-toggle {
  display: none; background: none; border: 0; padding: 10px 4px;
  font-weight: 500; cursor: pointer; color: inherit;
  transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.97); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: absolute; top: calc(var(--header-h) - 4px); right: var(--margin);
    flex-direction: column; gap: 0; min-width: 220px;
    background: var(--ink); color: var(--bg);
    padding: 8px 0;
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.18); /* taste-skill-ignore: menú flotante */
    transform-origin: top right;
    opacity: 0; transform: scale(0.96) translateY(-4px);
    pointer-events: none; visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms;
  }
  .nav.is-open {
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }
  .nav a { padding: 12px 20px; font-size: var(--step-body); }
  .nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  --seam: 50%;
  isolation: isolate;
}
.hero-field { position: absolute; left: 0; right: 0; z-index: -1; }
.hero-field--top { top: 0; height: var(--seam); background: var(--bg); }
.hero-field--bottom { top: var(--seam); bottom: 0; background: var(--coral); }

.hero-title-wrap {
  position: absolute; left: 0; right: 0; top: var(--seam);
  transform: translateY(-64%);
  display: grid; justify-items: center;
}
.hero-title {
  grid-area: 1 / 1;
  font-size: var(--step-display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-align: center;
  position: relative;
  color: var(--ink);
}
.hero-title-above { display: block; clip-path: inset(0 0 36% 0); }
.hero-title::after {
  content: attr(data-text);
  white-space: pre;
  position: absolute; inset: 0;
  color: var(--coral-deep);
  clip-path: inset(64% 0 0 0);
}
.hero-title-wrap { padding: 0 var(--margin); }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--margin) clamp(32px, 5vh, 56px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px;
  align-items: end;
  color: var(--ink);
}
.hero-lead { grid-column: 1 / 7; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; max-width: 30ch; }
.hero-actions { grid-column: 7 / 13; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.hero-trust {
  grid-column: 1 / 13;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 24px;
  font-size: var(--step-body);
}
.hero-trust li { max-width: 34ch; }
.hero-trust strong { display: block; font-weight: 900; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }

@media (max-width: 760px) {
  .hero { --seam: 40svh; min-height: 100svh; }
  .hero-title { font-size: 14vw; }
  .hero-foot {
    position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 24px;
    padding-top: calc(var(--seam) + 9vw + 36px); padding-bottom: 48px;
  }
  .hero-lead { font-size: var(--step-body); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { grid-template-columns: 1fr; gap: 12px; padding-top: 4px; }
  .hero-trust strong { display: inline; font-size: var(--step-body); }
  .hero-trust strong::after { content: " · "; font-weight: 400; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .hero { --seam: 44%; }
}

/* ---------- Chapters ---------- */
.chapter { padding: var(--section-gap) var(--margin); }
.section-title { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 0.95; }

/* ---------- Servicios ---------- */
.services { background: var(--black); color: var(--bg); }
.services-row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  align-items: first baseline;
  padding: 0.3em 0;
  transition: color 200ms ease;
}
.services-name {
  grid-column: 1 / 9;
  font-size: var(--step-head);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
}
.services-desc { grid-column: 9 / 13; font-size: var(--step-body); max-width: 36ch; color: var(--bg); transition: color 200ms ease; }
.services-row--head .services-name { color: var(--bone-soft); }
.services-row--head .services-desc { color: var(--bone-soft); }
@media (hover: hover) and (pointer: fine) {
  .services-list:hover .services-row:not(.services-row--head):not(:hover) { color: var(--bone-soft); }
  .services-list:hover .services-row:not(.services-row--head):not(:hover) .services-desc { color: var(--bone-soft); }
}
@media (max-width: 760px) {
  .services-row { display: block; padding: 0 0 28px; }
  .services-name { font-size: 11vw; }
  .services-desc { padding: 8px 0 0 var(--margin); }
}

/* ---------- Proyectos ---------- */
.work { background: var(--bg); overflow: hidden; display: grid; gap: 140px; }
.project {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  align-items: end;
}
.project-visual {
  grid-column: 1 / 8;
  margin-left: calc(-1 * var(--margin));
  height: 80svh; min-height: 460px; max-height: 820px;
  overflow: hidden; display: block;
  background: var(--surface);
}
.project--second .project-visual { height: 64svh; min-height: 400px; }
.project-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transform: scale(1.04) translateY(var(--drift, 0px));
  transform-origin: center top;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .project-visual:hover img { transform: scale(1.07) translateY(var(--drift, 0px)); }
}
.project-cluster { grid-column: 9 / 13; display: grid; gap: 28px; }
.project-shots { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.project-shots img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; height: auto; }
.project-shots .shot-phone { aspect-ratio: 9 / 19.5; width: auto; height: 100%; max-height: 220px; object-fit: cover; }
.project-text { display: grid; gap: 16px; }
.project-title { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 0.95; }
.project-text p { margin-bottom: 12px; }
.project-built { color: var(--ink); }
.link-arrow {
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
  padding: 6px 0;
}
.link-arrow span { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover span { transform: translate(3px, -3px); }
}
@media (max-width: 900px) {
  .work { gap: 96px; }
  .project { display: block; }
  .project-visual, .project--second .project-visual {
    width: calc(100% + 2 * var(--margin)); height: auto; min-height: 0;
    aspect-ratio: 4 / 5; max-height: none;
  }
  .project-cluster { margin-top: 28px; }
  .project-title { font-size: 12vw; }
}

/* ---------- Proceso ---------- */
.process {
  background: var(--yellow);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  align-items: start;
}
.process-intro { grid-column: 1 / 6; }
.process-intro p { margin-top: 28px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.slip {
  grid-column: 7 / 12;
  max-width: 480px; width: 100%;
  background: var(--bg);
  padding: 12px 32px 64px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 97.5% 100%, 95% calc(100% - 12px), 92.5% 100%, 90% calc(100% - 12px), 87.5% 100%, 85% calc(100% - 12px), 82.5% 100%, 80% calc(100% - 12px), 77.5% 100%, 75% calc(100% - 12px), 72.5% 100%, 70% calc(100% - 12px), 67.5% 100%, 65% calc(100% - 12px), 62.5% 100%, 60% calc(100% - 12px), 57.5% 100%, 55% calc(100% - 12px), 52.5% 100%, 50% calc(100% - 12px), 47.5% 100%, 45% calc(100% - 12px), 42.5% 100%, 40% calc(100% - 12px), 37.5% 100%, 35% calc(100% - 12px), 32.5% 100%, 30% calc(100% - 12px), 27.5% 100%, 25% calc(100% - 12px), 22.5% 100%, 20% calc(100% - 12px), 17.5% 100%, 15% calc(100% - 12px), 12.5% 100%, 10% calc(100% - 12px), 7.5% 100%, 5% calc(100% - 12px), 2.5% 100%, 0% calc(100% - 12px));
}
.slip-when { font-size: var(--step-body); font-weight: 900; margin-top: 28px; margin-bottom: 8px; }
.slip-rows li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; }
.slip-rows i {
  flex: 1; min-width: 16px; height: 4px; align-self: center; transform: translateY(3px);
  height: 0; border-bottom: 4px dotted var(--ink);
}
.slip-rows span:last-child { white-space: nowrap; }
.slip-total {
  display: flex; justify-content: space-between; align-items: center;
  margin: 32px -32px 0; padding: 0 32px; min-height: 48px;
  background: var(--ink); color: var(--bg); font-weight: 500;
}
@media (max-width: 900px) {
  .process { display: block; }
  .slip { margin-top: 48px; max-width: none; padding: 8px 20px 56px; }
  .slip-total { margin: 28px -20px 0; padding: 0 20px; }
}

/* ---------- Sobre mí ---------- */
.about { background: var(--bg); padding-top: 120px; padding-bottom: 120px; }
.about-text {
  columns: 2; column-gap: 32px;
  font-size: var(--step-lead);
  line-height: 1.22; color: var(--ink); font-weight: 500;
  hyphens: auto;
}
.about-text p { margin-bottom: 0.7em; break-inside: avoid-column; }
.about-text strong { color: var(--ink); font-weight: 900; }
.hl {
  color: var(--ink); padding: 0 0.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl-link { text-decoration: none; transition: background-color 200ms ease; }
.about-close { margin-top: 0.6em; }
@media (hover: hover) and (pointer: fine) {
  .hl-link:hover { background: var(--ink); color: var(--bg); }
}
@media (max-width: 760px) {
  .about-text { columns: 1; font-size: var(--step-lead); line-height: 1.3; }
  .hl-link { display: inline-block; padding: 10px 0.2em; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--coral); color: var(--ink); }
.faq-title { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 0.95; max-width: 14ch; }
.faq-list {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 12px;
}
.faq-item {
  grid-column: 5 / 13;
  position: relative;
  margin: 0 calc(-1 * min(24px, var(--margin))); padding: 0 min(24px, var(--margin));
  transition: background-color 200ms ease;
}
.faq-item.is-open { background: var(--coral-tone); }
.faq-item h3 { font-weight: 400; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 0; font-size: var(--step-lead); line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.chev {
  flex: none; width: 14px; height: 14px; position: relative;
  transition: transform 220ms var(--ease-out);
}
.chev::before, .chev::after {
  content: ""; position: absolute; top: 5px; width: 9px; height: 2.5px; background: currentColor;
}
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
.faq-item.is-open .chev { transform: rotate(180deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease-out);
}
.faq-a > div { overflow: hidden; }
.faq-a p {
  max-width: 48ch; padding-bottom: 24px; font-size: var(--step-body);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; }
html:not(.js) .faq-a { grid-template-rows: 1fr; }
html:not(.js) .faq-a p { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .faq-title { font-size: 10vw; }
  .faq-list { display: block; margin-top: 48px; }
  .faq-item { margin: 0 calc(-1 * var(--margin)); padding: 0 var(--margin); }
  .faq-q { font-size: var(--step-body); }
}

/* ---------- Contacto (cupón) ---------- */
.contact { background: var(--green); padding-top: 120px; padding-bottom: 120px; }
.coupon {
  --notch: 14px;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 46fr 54fr;
  background: var(--black); color: var(--bg);
  position: relative;
}
.coupon::before, .coupon::after {
  content: ""; position: absolute; left: 46%;
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  margin-left: calc(var(--notch) * -1 - 2.5px);
  border-radius: 50%; background: var(--green);
}
.coupon::before { top: calc(var(--notch) * -1); }
.coupon::after { bottom: calc(var(--notch) * -1); }
.coupon-left {
  padding: 48px;
  display: flex; flex-direction: column; gap: 32px; justify-content: space-between;
  border-right: 5px dotted var(--green);
}
.coupon-title { font-size: var(--step-sub); letter-spacing: -0.04em; line-height: 0.95; }
.coupon-domain { display: grid; gap: 6px; }
.coupon-domain { gap: 12px; }
.coupon-domain-name {
  font-size: var(--step-sub); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--green); overflow-wrap: anywhere;
  transition: opacity 160ms ease, filter 160ms ease;
}
.coupon-domain-name.is-updating { opacity: 0.6; filter: blur(2px); }
.coupon-note { font-size: var(--step-body); color: var(--bg); max-width: 34ch; }
.coupon-right { padding: 48px; display: grid; gap: 10px; align-content: start; }
.field { display: grid; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--black-tone); color: var(--bg);
  border: 2px solid transparent; border-radius: 0;
  font-size: 1rem;
  transition: border-color 160ms ease, background-color 160ms ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: none; cursor: pointer;
}
.field select:invalid { color: var(--bone-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.field ::placeholder { color: var(--bone-soft); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #33302d; }
.field.has-error input, .field.has-error select { border-color: var(--coral); }
.field-error {
  font-size: var(--step-small); color: var(--coral-tone);
  min-height: 0; overflow: hidden;
}
.field-error:not(:empty) { padding-top: 6px; }
.btn-submit {
  width: 100%; min-height: 56px; margin-top: 6px;
  background: var(--green); color: var(--ink); font-weight: 900;
}
@media (hover: hover) and (pointer: fine) {
  .btn-submit:hover { background: var(--green-tone); }
}
.btn-label { transition: opacity 200ms ease, filter 200ms ease; }
.btn-submit.is-sending .btn-label { opacity: 0.7; filter: blur(2px); }
@media (max-width: 860px) {
  .contact { padding: 80px 12px; }
  .coupon {
    grid-template-columns: 1fr;
  }
  .coupon::before, .coupon::after { left: auto; bottom: auto; margin: 0; top: calc(var(--perf, 50%) - var(--notch) - 2.5px); }
  .coupon::before { left: calc(var(--notch) * -1); }
  .coupon::after { right: calc(var(--notch) * -1); }
  .coupon-left { border-right: 0; border-bottom: 5px dotted var(--green); padding: 32px 24px; }
  .coupon-right { padding: 32px 24px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black); color: var(--bg);
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 40px var(--margin) 20px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  font-size: var(--step-body);
}
.footer-head { color: var(--bg); font-weight: 500; margin-bottom: 8px; }
.footer-cols li { color: var(--bone-soft); padding: 2px 0; }
.footer-cols a { text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-cols a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
}
.footer-bottom { grid-row: 3; }
.footer-word { width: 100%; height: auto; display: block; }
.footer-word text { font-family: var(--font); font-weight: 900; font-size: 330px; letter-spacing: -0.04em; fill: var(--bg); }
.footer-legal { font-size: var(--step-small); color: var(--bone-soft); margin-top: 16px; }
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ---------- Motion ---------- */

/* Entradas por sección: título, texto, imagen, escalonados por main.js (--d) */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), color 200ms ease;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Títulos que suben desde una máscara */
.js .reveal--mask {
  opacity: 1; transform: translateY(40%);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 800ms var(--ease-out), transform 800ms var(--ease-out), color 200ms ease;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms;
}
.js .reveal--mask.is-in { clip-path: inset(0 0 -10% 0); transform: none; }

/* Hero: el campo coral sube y el titular entra con un leve desenfoque */
.js .hero-field--bottom {
  transform-origin: bottom;
  animation: field-rise 1000ms var(--ease-in-out) both;
}
@keyframes field-rise { from { transform: scaleY(0.35); } }
.js .hero-title {
  animation: title-in 900ms var(--ease-out) 150ms both;
}
@keyframes title-in {
  from { opacity: 0; translate: 0 32px; filter: blur(6px); }
}
.js .hero-foot > * { animation: rise 800ms var(--ease-out) both; }
.js .hero-lead { animation-delay: 450ms; }
.js .hero-actions { animation-delay: 540ms; }
.js .hero-trust { animation-delay: 630ms; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.js .top { animation: fade 600ms ease 300ms both; }

/* Header: se esconde al bajar, vuelve al subir; barra de progreso de lectura */
.top { transition: background-color 300ms ease, color 300ms ease, transform 300ms var(--ease-out); }
.top.is-hidden { transform: translateY(-100%); }
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--h-ink);
  transform: scaleX(0); transform-origin: left;
  transition: background-color 300ms ease;
  pointer-events: none;
}

/* Servicios: la fila señalada se adelanta */
.services-name { transition: translate 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .services-row:not(.services-row--head):hover .services-name { translate: 16px 0; }
}

/* Proyectos: la captura se descubre de abajo hacia arriba */
.js .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out); }
.js .reveal-img img { scale: 1.18; transition: scale 1400ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in img { scale: 1; }
.project-shots img { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .project-shots img:hover { transform: translateY(-6px); }
}

/* Proceso: el recibo se imprime de arriba hacia abajo y las filas aparecen en orden */
.slip-wrap { grid-column: 7 / 12; }
.slip-wrap .slip { grid-column: auto; }
.js .reveal-print { clip-path: inset(0 0 100% 0); transition: clip-path 1200ms var(--ease-in-out); }
.js .reveal-print.is-in { clip-path: inset(0 0 -2% 0); }
.js .reveal-print .slip-rows li,
.js .reveal-print .slip-when,
.js .reveal-print .slip-total {
  opacity: 0; transform: translateY(8px);
  transition: opacity 400ms ease, transform 500ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal-print.is-in .slip-rows li,
.js .reveal-print.is-in .slip-when,
.js .reveal-print.is-in .slip-total { opacity: 1; transform: none; }
@media (max-width: 900px) { .slip-wrap { margin-top: 48px; } .slip-wrap .slip { margin-top: 0; } }

/* Sobre mí: el resaltador pasa sobre cada palabra clave */
.hl-yellow { background-color: var(--yellow); }
.hl-coral { background-color: var(--coral); }
.hl-green { background-color: var(--green); }
.js .reveal .hl { background-color: transparent; transition: background-color 500ms ease; transition-delay: var(--hd, 400ms); }
.js .reveal.is-in .hl-yellow { background-color: var(--yellow); }
.js .reveal.is-in .hl-coral { background-color: var(--coral); }
.js .reveal.is-in .hl-green { background-color: var(--green); }
@media (hover: hover) and (pointer: fine) {
  .js .reveal.is-in .hl-link:hover, .hl-link:hover { background-color: var(--ink); color: var(--bg); transition-delay: 0ms; }
}

/* Contacto: el cupón llega ligeramente girado y se asienta */
.js .reveal--ticket { transform: translateY(48px) rotate(-1.5deg); transition-duration: 700ms, 900ms, 0ms; }
.js .reveal--ticket.is-in { transform: none; }
.btn-submit.is-done { background: var(--bg); }

/* Pie: el nombre sube desde el borde */
.footer-bottom { overflow: hidden; }
.js .reveal--word { opacity: 1; transform: none; }
.js .reveal--word .footer-word { transform: translateY(60%); transition: transform 1100ms var(--ease-out); }
.js .reveal--word.is-in .footer-word { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal--mask, .js .reveal--ticket { transform: none; clip-path: none; transition: opacity 300ms ease; }
  .js .hero-title, .js .hero-foot > *, .js .top { animation: fade 300ms ease both; }
  .js .hero-field--bottom { animation: none; }
  .js .reveal-img, .js .reveal-print { clip-path: none; transition: none; }
  .js .reveal-img img { scale: 1; }
  .js .reveal-print .slip-rows li, .js .reveal-print .slip-when, .js .reveal-print .slip-total { transform: none; }
  .js .reveal--word .footer-word { transform: none; }
  .project-visual img { transform: scale(1.04) !important; transition: none; }
  .top.is-hidden { transform: none; }
  .services-row:hover .services-name { translate: none; }
  .nav, .nav.is-open { transform: none !important; }
  .faq-a, .faq-a p { transition: opacity 150ms ease; transform: none; }
}
@keyframes fade { from { opacity: 0; } }
