/* ═══════════════════════════════════════════════════════════
   ASB Agency — styles.css
   Warm-neutral, Apple-DNA editorial system.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink:      #0A0A0A;
  --charcoal: #1C1C1C;
  --stone:    #6B665E;
  --sand:     #C9C2B6;
  --bone:     #EDE8D0;
  --line:     rgba(10, 10, 10, 0.08);
  --line-bone: rgba(237, 232, 208, 0.14);

  --font-display: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(24px, 5vw, 64px);
  --pad-section: clamp(110px, 18vh, 200px);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--bone); }
.hero ::selection, .services ::selection, .results ::selection,
.contact ::selection, .footer ::selection { background: var(--bone); color: var(--ink); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 24px; z-index: 300;
  padding: 12px 20px; background: var(--bone); color: var(--ink);
  font-size: 13px; transition: top 0.3s var(--ease);
}
.skip-link:focus-visible { top: 16px; }

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ── Typography primitives ── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow--dark { color: var(--sand); opacity: 0.75; }

.h2 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-top: 28px;
}
.h2 em, .hero-title em, .manifesto-text em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  font-size: 1.06em;
  letter-spacing: -0.01em;
}

/* ── Line reveal (headlines) ── */
.line-mask { display: block; overflow: hidden; }
.line { display: block; will-change: transform; }

.js .line {
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.js [data-lines].is-in .line { transform: translateY(0); }
.js [data-lines] .line-mask:nth-child(2) .line { transition-delay: 0.12s; }
.js [data-lines] .line-mask:nth-child(3) .line { transition-delay: 0.24s; }

/* ── Crossfade reveal (siblings staggered by JS) ── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  color: var(--bone);
  transition: height 0.4s ease, background-color 0.4s ease;
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-bone);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nav.is-scrolled {
  height: 54px;
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.nav.is-scrolled::after { opacity: 1; }

.nav-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-brand span { font-weight: 300; }

.nav-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: clamp(24px, 3vw, 40px);
}
.nav-center a {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  padding: 6px 0;
}
.nav-center a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-center a:hover { opacity: 1; }
.nav-center a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border: 1px solid rgba(237, 232, 208, 0.35);
  border-radius: 100px;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.nav-cta:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  z-index: 250;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  width: 24px; height: 1.5px;
  background: var(--bone);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.menu-links { display: flex; flex-direction: column; gap: 6px; }
.menu-links a {
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu.is-open .menu-links a { opacity: 1; transform: translateY(0); }
.menu.is-open .menu-links a:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: 0.16s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: 0.24s; }
.menu.is-open .menu-links a:nth-child(4) { transition-delay: 0.32s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: 0.40s; }
.menu-foot {
  position: absolute;
  bottom: 40px; left: var(--pad-x);
  font-size: 13px;
  color: var(--stone);
}

/* ═══════════════════════════════════════════════════════════
   1 · HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--charcoal); /* fallback si falta hero.jpg */
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.js .hero-img {
  animation: heroIntro 1.9s var(--ease) both;
}
@keyframes heroIntro {
  from { transform: scale(1.15); }
  to   { transform: scale(1); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(80px, 14vh, 150px);
}
.hero-eyebrow { color: var(--sand); opacity: 0.8; }
.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 24px;
  max-width: 12ch;
}
.hero-sub {
  margin-top: 32px;
  max-width: 440px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--sand);
}
.js .hero-sub { transition-delay: 0.5s; }
.js .hero-eyebrow { transition-delay: 0.15s; }

.hero-scrollline {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 1px; height: 72px;
  background: rgba(237, 232, 208, 0.18);
  overflow: hidden;
}
.hero-scrollline i {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--bone);
  animation: scrollDrip 2.2s var(--ease) infinite;
}
@keyframes scrollDrip {
  0%   { transform: translateY(-110%); }
  55%  { transform: translateY(150%); }
  100% { transform: translateY(150%); }
}

/* ═══════════════════════════════════════════════════════════
   2 · MANIFIESTO
   ═══════════════════════════════════════════════════════════ */
.manifesto {
  background: var(--bone);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--pad-section) 0;
}
.manifesto .wrap { max-width: 1100px; }
.manifesto-text {
  font-size: clamp(32px, 4.5vw, 68px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.manifesto-text .w {
  color: var(--stone);
  opacity: 0.25;
  transition: color 0.25s ease;
}
.manifesto-text .w.is-on { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   3 · STATS
   ═══════════════════════════════════════════════════════════ */
.stats {
  background: var(--bone);
  padding: 0 0 var(--pad-section);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: clamp(64px, 9vw, 120px);
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stat--a { grid-column: 1 / 6; }
.stat--b { grid-column: 8 / 13; margin-top: clamp(48px, 8vw, 140px); }
.stat--c { grid-column: 2 / 7; }
.stat--d { grid-column: 8 / 13; margin-top: clamp(24px, 4vw, 70px); }

.stat-word {
  font-size: clamp(38px, 4.8vw, 80px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11ch;
}
.stat--b .stat-word, .stat--c .stat-word { font-size: clamp(32px, 4vw, 64px); }
.stat-label {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ═══════════════════════════════════════════════════════════
   4 · SERVICIOS — pinned scroll
   ═══════════════════════════════════════════════════════════ */
.services {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  height: 300vh;
}
.services-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.services-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: center;
}
.services-left .h2 { color: var(--bone); }

.services-progress {
  display: flex;
  gap: 10px;
  margin-top: 56px;
}
.services-progress .seg {
  position: relative;
  width: 56px; height: 2px;
  background: var(--line-bone);
  overflow: hidden;
}
.services-progress .seg i {
  position: absolute;
  inset: 0;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
}

.services-right {
  position: relative;
  min-height: 380px;
}
.service-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.js .service-panel { opacity: 0; visibility: hidden; }
.js .service-panel:first-child { opacity: 1; visibility: visible; }

.service-num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--stone);
}
.service-title {
  margin-top: 20px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.service-desc {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--sand);
}

/* ═══════════════════════════════════════════════════════════
   5 · PROCESO — pinned scroll (mismo sistema que Servicios)
   ═══════════════════════════════════════════════════════════ */
.process {
  position: relative;
  background: var(--bone);
  height: 400vh;
}
.process-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.process-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: center;
}

.process-progress {
  display: flex;
  gap: 10px;
  margin-top: 56px;
}
.process-progress .seg {
  position: relative;
  width: 56px; height: 2px;
  background: var(--line);
  overflow: hidden;
}
.process-progress .seg i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.process-right {
  position: relative;
  min-height: 380px;
}
.process-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.js .process-panel { opacity: 0; visibility: hidden; }
.js .process-panel:first-child { opacity: 1; visibility: visible; }

.process-num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--stone);
}
.process-title {
  margin-top: 20px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.process-desc {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--stone);
}

/* ═══════════════════════════════════════════════════════════
   6 · RESULTADOS — pinned scroll (las filas aparecen y se acumulan)
   ═══════════════════════════════════════════════════════════ */
.results {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  height: 300vh;
}
.results-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.results-media {
  position: absolute;
  top: -14%; left: 0; right: 0;
  height: 128%;
  background: var(--charcoal); /* fallback si falta results.jpg */
}
.results-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.results-veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
}
.results-content { position: relative; z-index: 2; width: 100%; }
.results-content .h2 {
  color: var(--bone);
  font-size: clamp(36px, 5vw, 72px);
}

.results-rows {
  margin-top: clamp(32px, 5vh, 64px);
  border-top: 1px solid var(--line-bone);
}
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(16px, 2.8vh, 34px) 0;
  border-bottom: 1px solid var(--line-bone);
  transition: transform 0.45s var(--ease);
}
.js .result-row {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .result-row.is-on {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .result-row:hover { transform: translateX(12px); }
  .js .result-row.is-on:hover { transform: translateX(12px); }
}
.result-label {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--sand);
}
.result-value {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result-value--text {
  font-size: clamp(26px, 3.4vw, 48px);
  letter-spacing: -0.02em;
}

/* Entrada escalonada de los planes (los tres quedan visibles) */
.js .pricing-grid > [data-reveal]:not(.is-in) { transform: translateY(64px); }
.js .pricing-grid > [data-reveal] { transition-duration: 1.05s; }

/* ═══════════════════════════════════════════════════════════
   7 · PRECIOS
   ═══════════════════════════════════════════════════════════ */
.pricing {
  background: var(--bone);
  padding: var(--pad-section) 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 9vw, 130px);
}
.plan {
  padding: clamp(40px, 4vw, 64px) clamp(28px, 3vw, 56px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.plan:first-child { border-left: 0; padding-left: 0; }
.plan:last-child { padding-right: 0; }

.plan--dark {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  border-left: 0;
  margin: calc(-1 * clamp(28px, 3.5vw, 56px)) 0;
  padding-top: calc(clamp(40px, 4vw, 64px) + clamp(28px, 3.5vw, 56px));
  padding-bottom: calc(clamp(40px, 4vw, 64px) + clamp(28px, 3.5vw, 56px));
}
.plan--dark + .plan { border-left: 0; }

.plan-tag {
  position: absolute;
  top: clamp(20px, 2.5vw, 32px);
  left: clamp(28px, 3vw, 56px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
}
.plan-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.plan--dark .plan-name { color: var(--sand); }
.plan-price {
  margin-top: 24px;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-cur { font-weight: 200; }
.plan-per {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--stone);
  margin-left: 6px;
}
.plan--dark .plan-per { color: var(--sand); }

.plan-list {
  margin-top: 40px;
  flex: 1;
}
.plan-list li {
  padding: 13px 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--charcoal);
  border-top: 1px solid var(--line);
}
.plan--dark .plan-list li {
  color: var(--sand);
  border-top-color: var(--line-bone);
}

.plan-cta {
  margin-top: 40px;
  align-self: flex-start;
  position: relative;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
}
.plan-cta::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.plan-cta:hover::after { transform: scaleX(0.35); }
.plan-cta span { display: inline-block; transition: transform 0.4s var(--ease); }
.plan-cta:hover span { transform: translateX(5px); }

.pricing-note {
  margin-top: clamp(56px, 7vw, 96px);
  font-size: 13px;
  color: var(--stone);
  max-width: 60ch;
}

/* ═══════════════════════════════════════════════════════════
   8 · CONTACTO
   ═══════════════════════════════════════════════════════════ */
.contact {
  background: var(--ink);
  color: var(--bone);
  padding: var(--pad-section) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(56px, 8vw, 140px);
  align-items: start;
}
.contact-left .h2 { color: var(--bone); }
.contact-copy {
  margin-top: 36px;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--sand);
}
.contact-rows { margin-top: clamp(48px, 6vw, 80px); }
.contact-row {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line-bone);
  font-size: 15px;
}
.contact-row:last-child { border-bottom: 1px solid var(--line-bone); }
.contact-row dt {
  width: 110px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 3px;
}
.contact-row dd { color: var(--bone); }
.contact-row a {
  border-bottom: 1px solid var(--line-bone);
  transition: border-color 0.3s ease;
}
.contact-row a:hover { border-color: var(--bone); }

/* Formulario — inputs solo con subrayado */
.contact-form { padding-top: 12px; }
.field {
  position: relative;
  margin-bottom: 36px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(237, 232, 208, 0.22);
  border-radius: 0;
  padding: 10px 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  color: var(--bone);
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 56px; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9C2B6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.field select option { background: var(--ink); color: var(--bone); }

.field::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }

.submit {
  margin-top: 8px;
  position: relative;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--bone);
  padding-bottom: 6px;
}
.submit::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bone);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.submit:hover::after { transform: scaleX(0.4); }
.submit span { display: inline-block; transition: transform 0.4s var(--ease); }
.submit:hover span { transform: translateX(6px); }
.submit:disabled { opacity: 0.45; pointer-events: none; }

.form-status {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 46ch;
  padding-left: 14px;
  border-left: 1px solid var(--sand);
}
.form-status.is-ok { color: var(--bone); border-left-color: var(--bone); }
.form-status.is-error { color: var(--sand); }

/* ═══════════════════════════════════════════════════════════
   9 · FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid var(--line-bone);
  padding: clamp(72px, 10vw, 130px) 0 48px;
  overflow: hidden;
}
.footer-mark {
  font-size: clamp(56px, 13vw, 210px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  white-space: nowrap;
}
.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line-bone);
  font-size: 13px;
}
.footer-mail {
  border-bottom: 1px solid var(--line-bone);
  transition: border-color 0.3s ease;
}
.footer-mail:hover { border-color: var(--bone); }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a {
  color: var(--stone);
  transition: color 0.3s ease;
}
.footer-legal a:hover { color: var(--bone); }
.footer-copy { color: var(--stone); }

/* ═══════════════════════════════════════════════════════════
   CURSOR (desktop only — activated by JS)
   ═══════════════════════════════════════════════════════════ */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor body,
  html.has-cursor a,
  html.has-cursor button,
  html.has-cursor input,
  html.has-cursor select,
  html.has-cursor textarea,
  html.has-cursor label { cursor: none; }

  html.has-cursor .cursor { display: block; }

  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    z-index: 400;
    pointer-events: none;
    border-radius: 50%;
    will-change: transform;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--bone);
    transition: background-color 0.25s ease;
  }
  .cursor-ring {
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid var(--bone);
    opacity: 0.55;
    transition: border-color 0.25s ease;
  }
  .cursor.is-dark .cursor-dot { background: var(--ink); }
  .cursor.is-dark .cursor-ring { border-color: var(--ink); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .services-grid { gap: 40px; }
}

@media (max-width: 899px) {
  .nav-center, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .hero-title { max-width: none; }

  .stats-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .stat--a, .stat--b, .stat--c, .stat--d {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .stat--b .stat-num, .stat--c .stat-num { font-size: clamp(64px, 8vw, 128px); }

  /* Servicios: sin pin — paneles apilados */
  .services { height: auto; padding: var(--pad-section) 0; }
  .services-sticky {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
  }
  .services-grid { display: block; }
  .services-progress { display: none; }
  .services-right { min-height: 0; margin-top: 72px; }
  .service-panel {
    position: static;
    margin-bottom: 72px;
  }
  .service-panel:last-child { margin-bottom: 0; }
  .js .service-panel,
  .js .service-panel:first-child {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* Proceso: sin pin — paneles apilados */
  .process { height: auto; padding: var(--pad-section) 0; }
  .process-sticky {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
  }
  .process-grid { display: block; }
  .process-progress { display: none; }
  .process-right { min-height: 0; margin-top: 72px; }
  .process-panel {
    position: static;
    margin-bottom: 72px;
  }
  .process-panel:last-child { margin-bottom: 0; }
  .js .process-panel,
  .js .process-panel:first-child {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .pricing-grid { grid-template-columns: 1fr; }
  .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }
  .plan:first-child { border-top: 0; }
  .plan--dark {
    margin: 32px 0;
    padding: 48px clamp(24px, 6vw, 40px);
    border-top: 0;
  }
  .plan-tag { left: clamp(24px, 6vw, 40px); top: 20px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding-top: 0; }

  /* Resultados: sin pin — las filas se revelan al entrar en pantalla */
  .results { height: auto; padding: var(--pad-section) 0; overflow: hidden; }
  .results-sticky {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
  }
  .result-value { font-size: clamp(28px, 9vw, 44px); }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js .line {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .hero-img { animation: none; transform: none; }
  .manifesto-text .w { opacity: 1 !important; color: var(--ink) !important; }
  .hero-scrollline i { animation: none; }

  /* Sin secciones ancladas */
  .services { height: auto; padding: var(--pad-section) 0; }
  .services-sticky { position: static; height: auto; display: block; overflow: visible; }
  .services-grid { display: block; }
  .services-progress { display: none; }
  .services-right { min-height: 0; margin-top: 72px; }
  .service-panel { position: static; margin-bottom: 72px; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .process { height: auto; padding: var(--pad-section) 0; }
  .process-sticky { position: static; height: auto; display: block; overflow: visible; }
  .process-grid { display: block; }
  .process-progress { display: none; }
  .process-right { min-height: 0; margin-top: 72px; }
  .process-panel { position: static; margin-bottom: 72px; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .results { height: auto; padding: var(--pad-section) 0; overflow: hidden; }
  .results-sticky { position: static; height: auto; display: block; overflow: visible; }
  .result-row { opacity: 1 !important; transform: none !important; }
}
