/* ============================================================
   ASISTANTIA — sistema de diseño · v2 "papel cálido"
   Minimalismo editorial sobre blanco: aire, líneas finas,
   grafito para leer y arena dorada para señalar.
   Tipo: Inter (variable) — jerarquía por peso y tracking
   ============================================================ */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --background:        #faf9f7;
  --surface:           #ffffff;
  --surface-secondary: #f3f4f6;

  --text:              #2f3743;
  --text-secondary:    #6e7683;

  --primary:           #be9860;
  --primary-hover:     #a7824d;
  --primary-soft:      rgba(190, 152, 96, .12);

  --border:            #e5e7eb;
  --border-strong:     #d5d8de;

  --btn-dark:          #2f3743;
  --btn-dark-hover:    #232a33;

  --ok:                #22a06b;
  --error:             #d14343;

  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space: clamp(4.5rem, 10vw, 9rem);
  --radius: 20px;
  --container: 1240px;
  --nav-h: 76px;

  --shadow-soft: 0 1px 2px rgba(47, 55, 67, .04), 0 12px 40px -12px rgba(47, 55, 67, .1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-luxe: cubic-bezier(.65, 0, .13, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--primary); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

.container {
  width: min(100% - clamp(2.5rem, 6vw, 5rem), var(--container));
  margin-inline: auto;
}

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

/* Etiquetas de sección */
.label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.label::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: var(--primary);
  opacity: .7;
  flex: none;
}
.label--onGold { text-shadow: none; }

/* Titulares — Inter con pesos altos y tracking cerrado */
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.032em;
  text-wrap: balance;
  color: var(--text);
}
h2 { font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4.4rem); }
h2 em, h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .95em 1.7em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: color .3s var(--ease-out), border-color .3s, background-color .3s, box-shadow .3s, transform .3s var(--ease-out);
  will-change: transform;
}
/* Primario: grafito */
.btn--gold {
  background: var(--btn-dark);
  color: #fff;
  box-shadow: 0 1px 2px rgba(47, 55, 67, .18), 0 10px 28px -10px rgba(47, 55, 67, .35);
}
.btn--gold:hover { background: var(--btn-dark-hover); }
/* Secundario: contorno arena */
.btn--ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--small { padding: .62em 1.3em; font-size: .85rem; }
.btn--big { padding: 1.15em 2.1em; font-size: 1.05rem; }

/* ============================================================
   PRELOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--background);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease-luxe), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { text-align: center; }
.loader__word {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: .02em;
  display: block;
  color: var(--text);
  animation: loaderWord 1.1s var(--ease-out) both;
}
.loader__line {
  display: block;
  height: 1px;
  margin-top: 1.1rem;
  background: var(--primary);
  transform-origin: left;
  animation: loaderLine 1.2s .15s var(--ease-luxe) both;
}
@keyframes loaderWord { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes loaderLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================================================
   CURSOR
   ============================================================ */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 190; pointer-events: none; }
  .cursor__dot, .cursor__ring {
    position: absolute; top: 0; left: 0;
    border-radius: 50%;
    translate: -50% -50%;
  }
  .cursor__dot { width: 6px; height: 6px; background: var(--primary); }
  .cursor__ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(190, 152, 96, .55);
    transition: width .3s var(--ease-out), height .3s var(--ease-out), opacity .3s;
  }
  .cursor.is-link .cursor__ring { width: 52px; height: 52px; opacity: .9; }
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .45s var(--ease-out), background-color .45s, backdrop-filter .45s, border-color .45s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 249, 247, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  width: min(100% - clamp(2.5rem, 6vw, 5rem), var(--container));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
}
.nav__spark { color: var(--primary); animation: sparkSpin 14s linear infinite; }
@keyframes sparkSpin { to { transform: rotate(360deg); } }
.nav__links {
  display: flex; gap: 2.2rem;
  margin-left: auto;
  font-size: .92rem; font-weight: 500;
  color: var(--text-secondary);
}
.nav__links a { position: relative; transition: color .3s; padding-block: .3rem; }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--primary);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-luxe);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.nav__burger span {
  width: 26px; height: 1.5px;
  background: var(--text);
  transition: transform .4s var(--ease-luxe), translate .4s;
}
.nav__burger.is-open span:first-child { translate: 0 4.2px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child { translate: 0 -4.2px; transform: rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(250, 249, 247, .96);
  backdrop-filter: blur(18px);
  display: grid; place-content: center; gap: 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: grid; gap: .4rem; text-align: center; }
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 650;
  color: var(--text);
  opacity: 0; translate: 0 24px;
  transition: opacity .5s var(--ease-out), translate .5s var(--ease-out), color .3s;
  transition-delay: calc(var(--i) * 70ms);
}
.menu.is-open .menu__links a { opacity: 1; translate: 0 0; }
.menu__links a:hover { color: var(--primary); }
.menu__foot {
  text-align: center; color: var(--text-secondary); font-size: .95rem;
  display: grid; gap: 1.2rem; justify-items: center;
}
.menu__mail { color: var(--text-secondary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding-top: var(--nav-h);
  background: var(--background);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
}
/* Imagen de tinta fundida con el fondo: multiply borra su blanco
   y las máscaras difuminan cualquier borde. No parece una imagen. */
.hero__art {
  position: absolute;
  right: -6%;
  top: 16%;
  width: min(62vw, 980px);
  z-index: -1;
  pointer-events: none;
}
.hero__art img {
  width: 100%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(75% 70% at 55% 50%, #000 42%, transparent 78%);
  mask-image: radial-gradient(75% 70% at 55% 50%, #000 42%, transparent 78%);
  animation: inkFloat 14s ease-in-out infinite;
}
@keyframes inkFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(.4deg); }
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(250,249,247,.88) 0%, rgba(250,249,247,.45) 44%, rgba(250,249,247,0) 70%),
    linear-gradient(180deg, rgba(250,249,247,.5) 0%, rgba(250,249,247,0) 26%, rgba(250,249,247,0) 70%, var(--background) 100%);
}
.hero__content { padding-block: clamp(3rem, 8vh, 6rem); }
.hero__eyebrow { margin-bottom: clamp(1.8rem, 4vh, 3rem); }
.hero__title {
  font-size: clamp(2.9rem, 1.5rem + 7.4vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: clamp(1.6rem, 3.5vh, 2.6rem);
}
.hero__sub {
  max-width: 34em;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem);
  margin-bottom: clamp(2rem, 4.5vh, 3.2rem);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%;
  translate: -50%;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-secondary);
}
.hero__scroll-line {
  width: 1px; height: 54px;
  background: linear-gradient(var(--primary), transparent);
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--background);
  animation: scrollHint 2.2s var(--ease-luxe) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); }
  55%, 100% { transform: translateY(110%); }
}

/* ============================================================
   MARQUESINA
   ============================================================ */
.marquee {
  border-block: 1px solid var(--border);
  padding-block: 1.3rem;
  overflow: hidden;
  background: var(--surface);
}
.marquee__track {
  display: flex; align-items: center; gap: 3rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 550;
  white-space: nowrap;
  color: var(--text-secondary);
}
.marquee__track i { color: var(--primary); font-style: normal; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ¿TE SUENA?
   ============================================================ */
.pains__list { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.pains__list li {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--text);
  opacity: .16;
  transition: opacity .5s linear;
  max-width: 24em;
  text-wrap: balance;
}
.pains__turn {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  color: var(--text-secondary);
  line-height: 1.5;
}
.pains__turn em { color: var(--primary); }

/* ============================================================
   SERVICIOS — tarjetas apiladas
   ============================================================ */
.services { background: var(--background); }
.services__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.services__stack { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }

.scard {
  position: sticky;
  top: calc(var(--nav-h) + 1.4rem);
  will-change: transform;
}
.scard__inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 4.5vw, 4rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(24rem, 55vh, 30rem);
  overflow: hidden;
  position: relative;
}
.scard__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--primary);
  display: block;
  margin-bottom: 1.1rem;
}
.scard h3 {
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3.1rem);
  margin-bottom: 1.1rem;
}
.scard__text > p { color: var(--text-secondary); max-width: 32em; }
.scard__perks { margin-top: 1.6rem; display: grid; gap: .65rem; }
.scard__perks li {
  display: flex; gap: .8rem; align-items: baseline;
  font-size: .95rem; color: var(--text-secondary);
}
.scard__perks li::before {
  content: "✦";
  color: var(--primary);
  font-size: .7em;
  flex: none;
}
.scard__art {
  display: grid; place-items: center;
  min-height: 16rem;
  align-self: stretch;
}
.scard__art--img {
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  border: 1px solid var(--border);
}
.scard__art--img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.scard:hover .scard__art--img img { transform: scale(1.045); }

/* --- Tarjeta 01: un chat que atiende solo, de madrugada --- */
.chat {
  width: min(21rem, 100%);
  display: grid;
  gap: .55rem;
}
.chat__hora {
  text-align: center;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: .3rem;
}
.chat__bubble {
  max-width: 85%;
  padding: .62em .95em;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  animation: 12s var(--ease-out) infinite;
}
/* Línea de tiempo única: cada burbuja entra en su ventana y
   todas se despiden a la vez — la conversación siempre se lee entera */
.chat__bubble:nth-of-type(1) { animation-name: cw1; }
.chat__bubble:nth-of-type(2) { animation-name: cw2; }
.chat__bubble:nth-of-type(3) { animation-name: cw3; }
.chat__bubble:nth-of-type(4) { animation-name: cw4; }
@keyframes cw1 { 0% { opacity: 0; transform: translateY(10px); } 4%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes cw2 { 0%, 15% { opacity: 0; transform: translateY(10px); } 19%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes cw3 { 0%, 30% { opacity: 0; transform: translateY(10px); } 34%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes cw4 { 0%, 45% { opacity: 0; transform: translateY(10px); } 49%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(10px); } }
.chat__bubble--in {
  justify-self: start;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat__bubble--out {
  justify-self: end;
  background: var(--primary-soft);
  border: 1px solid rgba(190, 152, 96, .35);
  border-bottom-right-radius: 4px;
  color: #6d5730;
}

/* --- Tarjeta 02: la lista de tareas que se completa sola --- */
.todo {
  width: min(21rem, 100%);
  display: grid;
  gap: .8rem;
}
.todo li {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .7em .9em;
}
.todo__check {
  width: 1.15rem; height: 1.15rem; flex: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  display: grid; place-content: center;
  animation: 12s linear infinite;
}
.todo__check::after {
  content: "";
  width: .55rem; height: .55rem;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 2%, 39% 70%);
  background: #fff;
  transform: scale(0);
  animation: 12s var(--ease-out) infinite;
}
/* Las tareas se marcan en orden y el tablero se reinicia a la vez */
.todo li:nth-child(1) .todo__check { animation-name: tc1; }
.todo li:nth-child(2) .todo__check { animation-name: tc2; }
.todo li:nth-child(3) .todo__check { animation-name: tc3; }
.todo li:nth-child(4) .todo__check { animation-name: tc4; }
.todo li:nth-child(1) .todo__check::after { animation-name: tk1; }
.todo li:nth-child(2) .todo__check::after { animation-name: tk2; }
.todo li:nth-child(3) .todo__check::after { animation-name: tk3; }
.todo li:nth-child(4) .todo__check::after { animation-name: tk4; }
@keyframes tc1 { 0%, 6% { border-color: var(--border-strong); background: transparent; } 11%, 88% { border-color: var(--primary); background: var(--primary); } 94%, 100% { border-color: var(--border-strong); background: transparent; } }
@keyframes tc2 { 0%, 20% { border-color: var(--border-strong); background: transparent; } 25%, 88% { border-color: var(--primary); background: var(--primary); } 94%, 100% { border-color: var(--border-strong); background: transparent; } }
@keyframes tc3 { 0%, 34% { border-color: var(--border-strong); background: transparent; } 39%, 88% { border-color: var(--primary); background: var(--primary); } 94%, 100% { border-color: var(--border-strong); background: transparent; } }
@keyframes tc4 { 0%, 48% { border-color: var(--border-strong); background: transparent; } 53%, 88% { border-color: var(--primary); background: var(--primary); } 94%, 100% { border-color: var(--border-strong); background: transparent; } }
@keyframes tk1 { 0%, 7% { transform: scale(0); } 12%, 88% { transform: scale(1); } 93%, 100% { transform: scale(0); } }
@keyframes tk2 { 0%, 21% { transform: scale(0); } 26%, 88% { transform: scale(1); } 93%, 100% { transform: scale(0); } }
@keyframes tk3 { 0%, 35% { transform: scale(0); } 40%, 88% { transform: scale(1); } 93%, 100% { transform: scale(0); } }
@keyframes tk4 { 0%, 49% { transform: scale(0); } 54%, 88% { transform: scale(1); } 93%, 100% { transform: scale(0); } }

/* --- Tarjeta 03: la web que se construye pieza a pieza --- */
.build {
  width: min(21rem, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.build__bar {
  display: flex; align-items: center; gap: .38rem;
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-secondary);
}
.build__bar i {
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--border-strong);
}
.build__bar span {
  margin-left: .6rem;
  font-size: .7rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .15em .8em;
}
.build__body { padding: 1rem; display: grid; gap: .7rem; }
.build__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .7rem; }
.build__block {
  border-radius: 8px;
  background: linear-gradient(120deg, var(--surface-secondary), #eceef1);
  min-height: 2.6rem;
  transform-origin: left center;
  animation: 12s var(--ease-out) infinite;
  opacity: 0;
}
/* La web se monta pieza a pieza y se reinicia entera */
.build__block--hero { animation-name: bw0; }
.build__row .build__block:nth-child(1) { animation-name: bw1; }
.build__row .build__block:nth-child(2) { animation-name: bw2; }
.build__row .build__block:nth-child(3) { animation-name: bw3; }
.build__badge { animation-name: bw4 !important; }
@keyframes bw0 { 0%, 3% { opacity: 0; transform: scaleX(.6); } 8%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scaleX(.6); } }
@keyframes bw1 { 0%, 15% { opacity: 0; transform: scaleX(.6); } 20%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scaleX(.6); } }
@keyframes bw2 { 0%, 24% { opacity: 0; transform: scaleX(.6); } 29%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scaleX(.6); } }
@keyframes bw3 { 0%, 33% { opacity: 0; transform: scaleX(.6); } 38%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scaleX(.6); } }
@keyframes bw4 { 0%, 48% { opacity: 0; transform: translateY(8px); } 54%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(8px); } }
.build__block--hero {
  min-height: 3.6rem;
  background: linear-gradient(120deg, rgba(190, 152, 96, .16), rgba(190, 152, 96, .08));
  border: 1px solid rgba(190, 152, 96, .25);
}
.build__badge {
  justify-self: start;
  font-size: .75rem;
  font-weight: 600;
  color: #6d5730;
  background: var(--primary-soft);
  border: 1px solid rgba(190, 152, 96, .4);
  border-radius: 100px;
  padding: .35em 1em;
  animation: 12s var(--ease-out) infinite;
  opacity: 0;
}

/* ============================================================
   PARA QUIÉN
   ============================================================ */
.who { background: var(--surface-secondary); border-block: 1px solid var(--border); }
.who__intro { max-width: 36em; color: var(--text-secondary); margin-top: 1.6rem; }
.who__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.wcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
}
.wcard:hover {
  transform: translateY(-6px);
  border-color: rgba(190, 152, 96, .5);
  box-shadow: 0 2px 4px rgba(47, 55, 67, .05), 0 24px 48px -16px rgba(47, 55, 67, .16);
}
.wcard__media { aspect-ratio: 4 / 3; overflow: hidden; }
.wcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.wcard:hover .wcard__media img { transform: scale(1.06); }
.wcard__body { padding: 1.6rem 1.6rem 1.9rem; }
.wcard__body h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.wcard__body p { font-size: .95rem; color: var(--text-secondary); }

/* ============================================================
   PROCESO — scroll horizontal anclado
   ============================================================ */
.process { padding-block: 0; }
.process__pin { position: relative; }
@media (min-width: 901px) {
  .process__pin {
    position: sticky;
    top: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: clip;
  }
}
.process__head { padding-top: var(--space); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.process__track {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding-inline: max(calc((100vw - var(--container)) / 2), clamp(1.25rem, 3vw, 2.5rem));
  width: max-content;
  will-change: transform;
}
.step {
  width: clamp(19rem, 34vw, 26rem);
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  min-height: 19rem;
  display: flex; flex-direction: column;
}
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 152, 96, .7);
  line-height: 1;
  margin-bottom: auto;
}
.step h3 { font-size: 1.7rem; margin: 2.2rem 0 .8rem; }
.step p { color: var(--text-secondary); font-size: .97rem; }
.process__bar {
  width: min(100% - clamp(2.5rem, 6vw, 5rem), var(--container));
  margin: clamp(2rem, 4vw, 3rem) auto var(--space);
  height: 1px;
  background: var(--border);
}
.process__bar span {
  display: block; height: 100%;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(0);
}

/* ============================================================
   TUYO PARA SIEMPRE — una línea de oro que se queda trazada
   ============================================================ */
.own {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 76vh;
  display: grid;
  align-items: center;
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.own__line {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
}
.own__line path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 3.2s var(--ease-luxe) .2s;
}
.own__line-a { stroke: var(--primary); opacity: .55; }
.own__line-b { stroke: var(--primary); opacity: .22; transition-delay: .55s !important; }
.own.is-in .own__line path { stroke-dashoffset: 0; }
.own__content { max-width: 46em; }
.own__text {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 33em;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { text-align: center; padding-block: calc(var(--space) * 1.15); }
.contact .label { justify-content: center; }
.contact .label::after {
  content: ""; width: 2.2rem; height: 1px;
  background: var(--primary); opacity: .7; flex: none;
}
.contact__title { max-width: 18em; margin-inline: auto; }
.contact__note { color: var(--text-secondary); margin-top: 1.6rem; }
.contact__cta {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

/* ---------- Formulario ---------- */
.form-wrap { max-width: 620px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.form-wrap__or {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 2rem;
}
.form {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid; gap: 1.3rem;
}
/* min-width: 0 y minmax(0,1fr): el ancho intrínseco de los inputs
   no puede reventar la rejilla (grid blowout) */
.form > * { min-width: 0; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.3rem; }
.form__field { display: grid; gap: .5rem; min-width: 0; }
.form__field input, .form__field textarea { width: 100%; }
.form__field label {
  font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; color: var(--text);
}
.form__field label span { font-weight: 400; color: var(--text-secondary); }
.form__field input, .form__field textarea {
  font: inherit; color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85em 1em;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.form__field input::placeholder, .form__field textarea::placeholder { color: #a8adb8; }
.form__field input:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form__consent {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .88rem; color: var(--text-secondary);
  cursor: pointer;
}
.form__consent input {
  appearance: none;
  width: 1.15rem; height: 1.15rem; flex: none;
  margin-top: .12rem;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  display: grid; place-content: center;
  transition: border-color .3s, background-color .3s;
}
.form__consent input::after {
  content: "";
  width: .6rem; height: .6rem;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 2%, 39% 70%);
  background: #fff;
  transform: scale(0);
  transition: transform .25s var(--ease-out);
}
.form__consent input:checked { background: var(--primary); border-color: var(--primary); }
.form__consent input:checked::after { transform: scale(1); }
.form__consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Widget de Cap (oculto en modo invisible; estilos por si se muestra) */
cap-widget {
  --cap-font: var(--font-body);
  --cap-background: var(--surface);
  --cap-color: var(--text-secondary);
  --cap-border-color: var(--border);
  --cap-border-radius: 12px;
  --cap-checkbox-background: var(--background);
  --cap-checkbox-border: 1px solid var(--border-strong);
  --cap-checkbox-border-radius: 5px;
  --cap-checkmark: var(--primary);
  --cap-spinner-color: var(--primary);
  --cap-spinner-background-color: var(--surface-secondary);
  --cap-focus-ring: var(--primary-soft);
  justify-self: start;
}

.form__submit { justify-self: start; }
.form__status { font-size: .95rem; min-height: 1.2em; margin: 0; color: var(--text-secondary); }
.form__status.is-ok { color: var(--ok); font-size: 1.05rem; }
.form__status.is-error { color: var(--error); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

/* Tarjeta de éxito tras enviar el formulario */
.form-success {
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(34, 160, 107, .35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ok);
  animation: successIn .7s var(--ease-out) both;
}
.form-success h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.2rem);
  color: var(--text);
  margin: 1.2rem 0 .7rem;
}
.form-success p { color: var(--text-secondary); max-width: 30em; margin-inline: auto; }
.form-success__hint { margin-top: 1.3rem; font-size: .92rem; }
.form-success__hint a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-success__circle {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: strokeDraw .8s .15s var(--ease-luxe) forwards;
}
.form-success__check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: strokeDraw .5s .75s var(--ease-luxe) forwards;
}
@keyframes strokeDraw { to { stroke-dashoffset: 0; } }
@keyframes successIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   BLOG — listado y artículo
   ============================================================ */
.blog { padding-block: calc(var(--nav-h) + 3.5rem) var(--space); min-height: 70vh; }
.blog h1 { font-size: clamp(2.4rem, 1.6rem + 3.8vw, 4.4rem); }
.blog__intro { color: var(--text-secondary); max-width: 36em; margin-top: 1.4rem; }
.blog__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.bcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
  display: flex; flex-direction: column;
}
.bcard:hover {
  transform: translateY(-6px);
  border-color: rgba(190, 152, 96, .5);
  box-shadow: 0 2px 4px rgba(47, 55, 67, .05), 0 24px 48px -16px rgba(47, 55, 67, .16);
}
.bcard__media { aspect-ratio: 16 / 9; overflow: hidden; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.bcard:hover .bcard__media img { transform: scale(1.05); }
.bcard__body { padding: 1.5rem 1.5rem 1.7rem; display: grid; gap: .55rem; }
.bcard__body time {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-hover);
}
.bcard__body h2 { font-size: 1.45rem; line-height: 1.15; }
.bcard__body p { font-size: .93rem; color: var(--text-secondary); }
.bcard__mas { font-size: .88rem; font-weight: 600; color: var(--primary); margin-top: .3rem; }

.article { padding-block: calc(var(--nav-h) + 3rem) var(--space); }
.article .container { max-width: 820px; }
.article h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
.article__lead {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 38em;
}
.article__hero {
  margin: clamp(1.8rem, 4vw, 2.8rem) 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.article__hero img { width: 100%; }
.article__body { display: grid; gap: 1rem; }
.article__body h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  margin-top: 1.6rem;
}
.article__body h3 { font-size: 1.25rem; margin-top: 1rem; }
.article__body p, .article__body li { color: #4b535f; font-size: 1.02rem; line-height: 1.75; }
.article__body strong { color: var(--text); }
.article__body a { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.article__body ul, .article__body ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.article__body ul li { list-style: disc; }
.article__body ol li { list-style: decimal; }
.article__body blockquote {
  border-left: 2px solid var(--primary);
  padding: .4rem 0 .4rem 1.3rem;
  margin-block: .6rem;
}
.article__body blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
}
.article__body figure {
  margin-block: 1rem;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article__body figcaption {
  font-size: .82rem; color: var(--text-secondary);
  padding: .7rem 1rem; background: var(--surface);
  border-top: 1px solid var(--border);
}
.article__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
}
.article__cta h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.article__cta p { color: var(--text-secondary); margin-top: .7rem; }
.article__cta-btns {
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center;
  margin-top: 1.5rem;
}

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal { padding-block: calc(var(--nav-h) + 3rem) var(--space); min-height: 70vh; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.6rem); margin-bottom: .6rem; }
.legal__updated { color: var(--text-secondary); font-size: .88rem; margin-bottom: 2.6rem; }
.legal h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  margin: 2.4rem 0 .8rem;
}
.legal p, .legal li { color: var(--text-secondary); font-size: .98rem; }
.legal p + p { margin-top: .8rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .5rem; margin-block: .8rem; }
.legal ul li { list-style: disc; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal mark {
  background: var(--primary-soft);
  color: var(--primary-hover);
  padding: .1em .35em;
  border-radius: 4px;
  font-weight: 600;
}
.legal__back {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 2.5rem;
  font-size: .9rem; color: var(--text-secondary);
  transition: color .3s;
}
.legal__back:hover { color: var(--primary); }

/* Las páginas legales llevan la barra fija siempre con fondo */
.legal ~ .footer, body > .nav.is-scrolled { background: rgba(250, 249, 247, .9); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: 2.6rem; background: var(--surface); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--text);
}
.footer__brand svg { color: var(--primary); }
.footer__tag { color: var(--text-secondary); font-size: .9rem; }
.footer__meta {
  margin-left: auto;
  display: flex; gap: 1.8rem;
  font-size: .9rem; color: var(--text-secondary);
}
.footer__meta a:hover { color: var(--primary); }
.footer__legal {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
  font-size: .82rem; color: var(--text-secondary);
}
.footer__nocookies {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--primary-hover);
}
.footer__nocookies svg { flex: none; opacity: .9; }
.footer__links { margin-left: auto; display: flex; gap: 1.6rem; }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--primary); }

/* ============================================================
   GRANO — apagado en el tema claro
   ============================================================ */
.grain { display: none; }

/* ============================================================
   REVELADOS (JS añade .is-in)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  translate: 0 34px;
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; translate: 0 0; }

[data-split] .w {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
[data-split] .w > span {
  display: inline-block;
  translate: 0 110%;
  transition: translate 1s var(--ease-luxe);
  transition-delay: calc(var(--wi) * 55ms);
}
[data-split].is-in .w > span { translate: 0 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__scroll { display: none; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .scard__inner { grid-template-columns: 1fr; min-height: 0; }
  .scard__art { min-height: 13rem; order: -1; }
  .scard__art--img { max-height: 14rem; }
  .who__grid { grid-template-columns: 1fr; max-width: 30rem; }
  .process__track { flex-direction: column; width: auto; padding-inline: clamp(1.25rem, 6vw, 2.5rem); }
  .step { width: 100%; min-height: 0; }
  .step__num { margin-bottom: 0; }
  .step h3 { margin-top: 1.2rem; }
  .process__bar { display: none; }
  .footer__meta { margin-left: 0; flex-direction: column; gap: .4rem; }
}

/* ============================================================
   MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], [data-split] .w > span { opacity: 1; translate: 0 0; }
  .pains__list li { opacity: 1; }
  .marquee__track { animation: none; }
  .chat__bubble, .build__block, .build__badge {
    animation: none; opacity: 1; transform: none;
  }
  .todo__check { animation: none; border-color: var(--primary); background: var(--primary); }
  .todo__check::after { animation: none; transform: scale(1); }
  .todo li { animation: none; color: var(--text); }
  .own__line path { stroke-dashoffset: 0; transition: none; }
  .hero__art img { animation: none; }
}
