/* ==========================================================================
   Crowdland Technology — site.css (diseño editorial)
   Tipografía como protagonista, retícula suiza, hueso + tinta y el amarillo
   de marca como única señal. Sin Bootstrap.
   ========================================================================== */

:root {
  --bone: #efede6;
  --bone-2: #e6e3d9;
  --ink: #0c0c0b;
  --ink-2: #161614;
  --mute: #6d6b64;
  --mute-ink: #8f8d85;
  --soft-ink: #c9c6bc;
  --line: rgba(12, 12, 11, .14);
  --line-ink: rgba(239, 237, 230, .14);
  --brand: #ffd600;
  --whatsapp: #25d366;
  --error: #b42318;
  --itsumo: #170f33;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1760px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
strong, b { font-weight: 600; }
button { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--mute); }
.dark { background: var(--ink); color: var(--bone); }
.dark .muted { color: var(--mute-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; left: 8px; z-index: 200; background: var(--brand); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.skip-link:focus { top: 8px; }

/* Reveal ----------------------------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* Buttons ---------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bone); font-size: 14px; font-weight: 500; line-height: 1.2; transition: background .3s, color .3s;
}
.pill:hover { background: var(--brand); color: var(--ink); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.pill:hover i { background: var(--ink); }

.big-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px 20px 30px; border: 0; cursor: pointer;
  border-radius: 999px; background: var(--ink); color: var(--bone); font: 500 17px/1.2 var(--sans); text-align: left;
  transition: background .35s var(--ease), color .35s;
}
.big-cta .arr { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; transition: transform .35s var(--ease), background .35s, color .35s; }
.big-cta:hover { background: var(--brand); color: var(--ink); }
.big-cta:hover .arr { background: var(--ink); color: var(--brand); transform: rotate(-45deg); }
.big-cta:disabled { opacity: .6; cursor: progress; }
.dark .big-cta { background: var(--bone); color: var(--ink); }
.dark .big-cta:hover { background: var(--brand); }

.line-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 15px; font-weight: 500; transition: background .3s, color .3s, border-color .3s;
}
.line-btn:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.line-btn--wa:hover { background: var(--whatsapp); border-color: var(--whatsapp); color: #06301a; }
.dark .line-btn { border-color: var(--line-ink); }
.dark .line-btn:hover { background: var(--bone); color: var(--ink); }

.link-u { font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .3s; }
.link-u:hover { color: var(--mute); }
.dark .link-u:hover { color: var(--brand); }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; font: inherit; }
.link-button:hover { color: var(--brand); }

/* Logo (símbolo recortado + wordmark tipográfico) ------------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 40px; padding: 6px; background: var(--ink); border-radius: 4px; display: block; flex: none; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-word { font-size: 15px; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }
.logo-word b { font-weight: 600; }
.logo-word span { font-weight: 300; }

/* Header ----------------------------------------------------------------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.hdr.solid { background: rgba(239, 237, 230, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.hdr.on-dark { color: var(--bone); }
.hdr.on-dark .pill { background: var(--bone); color: var(--ink); }
.hdr.on-dark .pill:hover { background: var(--brand); }
.hdr.solid.on-dark { background: rgba(12, 12, 11, .82); border-color: var(--line-ink); }
.hdr.solid.on-brand { background: rgba(255, 214, 0, .92); border-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; position: relative; }
.nav-links a sup { font-family: var(--mono); font-size: 9px; opacity: .55; margin-right: 4px; vertical-align: top; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { right: 0; }
.lang { display: flex; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.lang a { opacity: .5; transition: opacity .2s; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { font-weight: 500; }
.burger { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 14px; font-weight: 500; }
@media (max-width: 1020px) {
  .nav-links, .nav .lang { display: none; }
  .burger { display: block; }
  .nav { gap: 16px; }
  .nav .pill { padding: 9px 14px; font-size: 13px; }
}
@media (max-width: 420px) { .hdr .logo-word { display: none; } }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--bone); display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; overflow-y: auto; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.menu-top .logo-mark { background: transparent; }
.menu-links { margin: 40px 0 auto; }
.menu-links li { border-top: 1px solid var(--line-ink); }
.menu-links a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font-size: clamp(34px, 9vw, 56px); letter-spacing: -.04em; line-height: 1; }
.menu-links a .mono { color: var(--mute-ink); }
.menu-links a:hover, .menu-links a[aria-current] { color: var(--brand); }
.menu .lang { font-size: 13px; gap: 18px; margin: 32px 0 24px; }
.menu .big-cta { width: 100%; background: var(--bone); color: var(--ink); }
.menu .big-cta:hover { background: var(--brand); }
body.menu-open { overflow: hidden; }

/* Hero (home) ------------------------------------------------------------ */
.hero { padding-top: 104px; min-height: min(100svh, 1040px); display: flex; flex-direction: column; }
.hero > .wrap { display: flex; flex-direction: column; flex: 1; width: 100%; }
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 16px 0 20px; border-top: 1px solid var(--line); color: var(--mute); }
.meta-row b { color: var(--ink); font-weight: 500; }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2bb24c; margin-right: 8px; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero h1 { font-size: clamp(46px, 8.6vw, 176px); line-height: .92; letter-spacing: -.045em; padding-top: 32px; max-width: 16ch; isolation: isolate; }
.hero h1 em {
  letter-spacing: -.02em; padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 86% / 100% .14em;
  animation: sweep 1.2s .6s var(--ease) both;
}
@keyframes sweep { from { background-size: 0 .14em; } }
.hero-foot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: end; padding: 48px 0 36px; }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 34ch; }
.arrow-list { display: grid; gap: 8px; color: var(--mute); }
.arrow-list li::before { content: "→ "; color: var(--ink); }
.hero-cta { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
@media (max-width: 1020px) {
  .hero { padding-top: 88px; min-height: auto; }
  .meta-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hero-cta { justify-self: start; align-items: flex-start; }
}

/* Banda generativa ------------------------------------------------------- */
.band { position: relative; height: clamp(280px, 46vw, 760px); overflow: hidden; background: var(--ink); color: var(--bone); }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.band-cap { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 24px; display: flex; justify-content: space-between; gap: 16px; }
.band-cap span, .band-coord span { background: var(--ink); padding: 4px 8px; margin: -4px -8px; }
.band-cap span:first-child { color: var(--mute-ink); }
.band-cap b { color: var(--brand); font-weight: 400; }
.band-coord { position: absolute; z-index: 2; top: 24px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; color: var(--mute-ink); gap: 16px; }
@media (max-width: 600px) { .band-coord span:last-child { display: none; } }

/* Sections --------------------------------------------------------------- */
.sec { padding: clamp(80px, 11vw, 160px) 0; }
.sec--flush-top { padding-top: 0; }
.sh { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; margin-bottom: clamp(48px, 6vw, 88px); }
.sh > .mono { padding-top: 14px; color: var(--mute); }
.dark .sh > .mono { color: var(--mute-ink); }
.sh h2, .title-xl { font-size: clamp(36px, 5.2vw, 80px); line-height: 1; letter-spacing: -.04em; max-width: 18ch; }
.sh p { margin-top: 24px; font-size: 19px; color: var(--mute); max-width: 52ch; }
.dark .sh p { color: var(--mute-ink); }
.split { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.split > .mono { padding-top: 6px; color: var(--mute); }
.dark .split > .mono { color: var(--mute-ink); }
@media (max-width: 760px) {
  .sh, .split { grid-template-columns: 1fr; gap: 16px; }
  .sh > .mono, .split > .mono { padding-top: 0; }
}

/* Clients ---------------------------------------------------------------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.client { position: relative; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); aspect-ratio: 1.55; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.client:nth-child(4n) { border-right: 0; }
.client::before { content: ""; position: absolute; inset: 0; background: var(--brand); transform: translateY(101%); transition: transform .5s var(--ease); }
.client:hover::before { transform: none; }
.client > * { position: relative; }
.client .mono { color: var(--mute); display: flex; justify-content: space-between; gap: 8px; }
.client:hover .mono { color: var(--ink); }
.client strong { font-size: clamp(26px, 3vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.clients-foot { display: flex; justify-content: space-between; gap: 8px 24px; padding-top: 22px; color: var(--mute); flex-wrap: wrap; }
@media (max-width: 760px) {
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .client:nth-child(4n) { border-right: 1px solid var(--line); }
  .client:nth-child(2n) { border-right: 0; }
  .client { aspect-ratio: 1.45; padding: 14px; }
  .client .mono { font-size: 10px; }
}

/* Credencial Andorra Digital */
.cred { position: relative; margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.4fr 3fr auto; gap: 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); z-index: 0; }
.cred::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--brand); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.cred:hover::before { transform: none; }
.cred > .mono { color: var(--mute); }
.cred > .mono::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 10px; vertical-align: 1px; }
.cred:hover > .mono { color: var(--ink); }
.cred:hover > .mono::before { background: var(--ink); }
.cred strong { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.cred-text { color: var(--mute); font-size: 16px; }
.cred:hover .cred-text { color: var(--ink); }
.cred-funded { display: block; margin-top: 6px; color: var(--ink); font-weight: 500; }
.cred-funded::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 10px; vertical-align: 2px; }
.cred:hover .cred-funded::before { background: var(--ink); }
.cred-go { white-space: nowrap; }
@media (max-width: 860px) {
  .cred { grid-template-columns: 1fr; gap: 10px; }
  .cred-go { margin-top: 8px; }
}

/* Numbers ---------------------------------------------------------------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 32px 24px 0 0; border-top: 1px solid var(--line-ink); }
.num + .num { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.num dt { font-size: clamp(64px, 9vw, 150px); font-weight: 300; letter-spacing: -.06em; line-height: .9; }
.num dt sup { color: var(--brand); font-size: .45em; vertical-align: top; position: relative; top: .1em; margin-left: .04em; font-weight: 400; }
.num dd { margin-top: 18px; color: var(--mute-ink); max-width: 16ch; }
@media (max-width: 760px) {
  .nums { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .num:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Work ------------------------------------------------------------------- */
.case { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line-ink); }
.case-meta { position: sticky; top: 104px; align-self: start; }
.case-idx { display: flex; justify-content: space-between; gap: 16px; color: var(--mute-ink); margin-bottom: 40px; }
.case h3, .case-more h3 { font-size: clamp(40px, 5vw, 76px); letter-spacing: -.045em; line-height: .95; }
.case h3 small { display: block; font-family: var(--serif); font-style: italic; font-size: .42em; letter-spacing: 0; color: var(--mute-ink); margin-top: 12px; }
.case-lead { margin-top: 28px; font-size: 19px; line-height: 1.5; color: #d6d3c9; max-width: 44ch; }
.num-list { margin-top: 32px; counter-reset: p; }
.num-list li { counter-increment: p; display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.num-list li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--mute); padding-top: 3px; }
.dark .num-list li { border-color: var(--line-ink); color: var(--soft-ink); }
.dark .num-list li::before { color: var(--mute-ink); }
.proof { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.proof li { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; }
.proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.dark .proof li { border-color: var(--line-ink); }
.case-link { margin-top: 32px; display: inline-flex; gap: 10px; align-items: center; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .3s; }
.case-link:hover { color: var(--brand); }
.case-media { border-radius: 4px; overflow: hidden; display: grid; place-items: center; padding: clamp(24px, 5vw, 72px); }
.case-media img { transition: transform 1.2s var(--ease); }
.case:hover .case-media img { transform: scale(1.025); }
.case-media--realhome { background: radial-gradient(120% 90% at 30% 20%, #f7f6f1, #d9d6cb); }
.case-media--realhome img { border-radius: 14px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .35); }
.case-media--itsumo { background: radial-gradient(90% 70% at 50% 30%, #2c2160, var(--itsumo)); }
.case-media--itsumo img { max-height: 720px; width: auto; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 0 10px rgba(255, 255, 255, .03); }
.case-more { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-ink); align-items: end; }
.sectors { display: flex; flex-wrap: wrap; gap: 0 .35em; font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -.035em; line-height: 1.15; color: #5a5852; }
.sectors span { transition: color .3s; }
.sectors span:hover { color: var(--bone); }
.sectors i { font-style: normal; color: var(--brand); }
@media (max-width: 1020px) {
  .case, .case-more { grid-template-columns: 1fr; }
  .case-meta { position: static; }
  .case-media { order: -1; }
}

/* Capabilities ----------------------------------------------------------- */
.caps { position: relative; z-index: 0; }
.caps a { display: grid; grid-template-columns: 1fr 5fr 4fr 48px; gap: 32px; align-items: baseline; padding: 36px 0; border-top: 1px solid var(--line); transition: padding .5s var(--ease), color .4s; position: relative; }
.caps li:last-child a { border-bottom: 1px solid var(--line); }
.caps a::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.caps a:hover { color: var(--bone); padding-left: 16px; }
.caps a:hover::before { transform: none; }
.caps .mono { color: var(--mute); }
.caps h3 { font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -.035em; line-height: 1; }
.caps p { color: var(--mute); font-size: 16px; }
.caps p + p { margin-top: 10px; color: var(--ink); }
.caps a:hover p { color: var(--mute-ink); }
.caps a:hover p + p { color: var(--bone); }
.caps .go { font-size: 28px; justify-self: end; transition: transform .5s var(--ease), color .3s; }
.caps a:hover .go { transform: rotate(-45deg); color: var(--brand); }
.tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--mute); }
@media (max-width: 860px) {
  .caps a { grid-template-columns: 1fr 32px; gap: 12px; padding: 28px 0; }
  .caps a > .mono { grid-column: 1 / -1; }
  .caps a > div { grid-column: 1; }
  .caps .go { grid-row: 2; grid-column: 2; }
}

/* Principles ------------------------------------------------------------- */
.princ { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.princ li { padding: 32px 24px 40px 0; }
.princ li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.princ .mono { color: var(--mute); }
.princ h3 { margin: 56px 0 14px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.princ p { color: var(--mute); font-size: 16px; }
@media (max-width: 1020px) {
  .princ { grid-template-columns: 1fr 1fr; }
  .princ li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .princ li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .princ { grid-template-columns: 1fr; }
  .princ li, .princ li + li { padding: 28px 0; border-left: 0; }
  .princ li + li { border-top: 1px solid var(--line); }
  .princ h3 { margin-top: 24px; }
}

/* Founder quote ---------------------------------------------------------- */
.quote { margin-top: clamp(80px, 10vw, 140px); }
.quote blockquote { font-size: clamp(30px, 3.8vw, 58px); line-height: 1.08; letter-spacing: -.035em; }
.person { margin-top: 40px; display: flex; align-items: center; gap: 18px; }
.person img { width: 64px; height: 64px; border-radius: 50%; filter: grayscale(1); }
.person b { display: block; font-weight: 500; }
.person span { color: var(--mute); font-size: 15px; }
.facts { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.facts li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--mute); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Process ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding-right: 28px; }
.step + .step { padding-left: 28px; }
.step .bar { height: 2px; background: var(--line-ink); margin-bottom: 28px; position: relative; overflow: hidden; }
.step .bar::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.step.in .bar::after, html:not(.js) .step .bar::after { transform: none; }
.step:nth-child(2) .bar::after { transition-delay: .25s; }
.step:nth-child(3) .bar::after { transition-delay: .5s; }
.step:nth-child(4) .bar::after { transition-delay: .75s; }
.step .mono { color: var(--mute-ink); }
.step h3 { margin: 16px 0 12px; font-size: 26px; letter-spacing: -.03em; }
.step p { color: var(--mute-ink); font-size: 15px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(3) { padding-left: 0; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; } }

/* FAQ -------------------------------------------------------------------- */
.faq h2 { margin-bottom: 48px; max-width: 16ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.025em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.2em; line-height: .9; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 32px; color: var(--mute); max-width: 62ch; }
.faq details p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq details p a:hover { text-decoration-color: var(--brand); }

/* CTA -------------------------------------------------------------------- */
.cta { background: var(--brand); color: var(--ink); padding: clamp(80px, 11vw, 160px) 0 clamp(64px, 8vw, 120px); }
.cta-title { margin-top: 24px; font-size: clamp(52px, 10vw, 168px); letter-spacing: -.055em; line-height: .9; max-width: 11ch; }
.cta-grid { margin-top: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.cta-lead { font-size: 21px; line-height: 1.4; max-width: 30ch; }
.check-list { margin-top: 28px; display: grid; gap: 6px; }
.check-list li::before { content: "✓\00a0\00a0"; }
.cta-wa { margin-top: 32px; display: inline-block; border-bottom: 1px solid; padding-bottom: 2px; }
.cta-wa:hover { color: var(--mute); }
.cta .big-cta:hover { background: var(--bone); }
.cta .field { border-color: rgba(12, 12, 11, .3); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.field { position: relative; border-bottom: 1px solid var(--line); padding-top: 22px; }
.field--full { grid-column: 1 / -1; }
.field label { position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.field label .opt { opacity: .6; text-transform: none; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; background: transparent; padding: 12px 0 14px; font: 400 20px var(--sans); color: var(--ink);
  outline: none; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c0c0b' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(12, 12, 11, .38); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: none; }
.was-validated .field:has(:invalid)::after { transform: none; background: var(--error); }
.was-validated .field:has(:invalid) label { color: var(--error); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.form-foot small { font-size: 13px; max-width: 42ch; }
.form-foot small a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 16px; padding: 24px; border: 1px solid currentColor; border-radius: 4px; margin-bottom: 32px; }
.notice::before { font-family: var(--mono); font-size: 18px; line-height: 1.3; }
.notice--ok::before { content: "✓"; }
.notice--error { color: var(--error); }
.notice--error::before { content: "!"; }
.notice h2, .notice strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 4px; }
.notice p { color: var(--ink); }
@media (max-width: 860px) { .form { grid-template-columns: 1fr; } }

/* Inner pages ------------------------------------------------------------ */
.page-hero { padding: calc(var(--header-h) + 32px) 0 clamp(64px, 8vw, 120px); }
.page-hero .meta-row { grid-template-columns: 1fr 3fr; }
.page-hero h1 { font-size: clamp(44px, 7.4vw, 120px); line-height: .94; letter-spacing: -.045em; max-width: 15ch; padding-top: 32px; }
.page-lead { margin-top: 40px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 46ch; }
.page-hero .tags { margin-top: 32px; }
.page-hero--center { min-height: min(100svh, 1040px); display: flex; align-items: center; text-align: left; }
@media (max-width: 760px) { .page-hero .meta-row { grid-template-columns: 1fr; } }

.with-aside { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
@media (max-width: 1020px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

.panel { border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.panel--ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.panel--brand { background: var(--brand); border-color: var(--brand); }
.panel h2 { font-size: 24px; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 16px; }
.panel .mono { color: var(--mute); display: block; margin-bottom: 12px; }
.panel--ink .mono { color: var(--mute-ink); }
.panel p { color: var(--mute); font-size: 15px; }
.panel--ink p { color: var(--mute-ink); }
.panel .num-list { margin-top: 8px; }
.panel--ink .num-list li { border-color: var(--line-ink); color: var(--soft-ink); }
.panel-actions { display: grid; gap: 8px; margin-top: 24px; }
.panel-actions .big-cta { width: 100%; }
.panel--ink .big-cta { background: var(--bone); color: var(--ink); }
.panel--ink .big-cta:hover { background: var(--brand); }
.panel--ink .line-btn { border-color: var(--line-ink); }
.panel--ink .line-btn:hover { background: var(--bone); color: var(--ink); }

.block { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block-head { display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.block-head .mono { color: var(--mute); padding-top: 12px; }
.block h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.04em; }
.block-intro { margin-top: 20px; font-size: 18px; color: var(--mute); max-width: 56ch; }
.block-intro strong { color: var(--ink); font-weight: 500; }
.block-cols { margin: 40px 0 0 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.block-cols h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.block-cols p { margin-top: 12px; font-size: 15px; color: var(--mute); }
.block-cols .num-list { margin-top: 16px; }
@media (max-width: 760px) {
  .block-head { grid-template-columns: 1fr; gap: 8px; }
  .block-head .mono { padding-top: 0; }
  .block-cols { margin-left: 0; grid-template-columns: 1fr; }
}

.prose h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 24px; }
.prose p { font-size: 18px; line-height: 1.65; color: var(--mute); max-width: 62ch; }
.prose p + p { margin-top: 18px; }
.prose p strong { color: var(--ink); }
.prose + .prose { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.prose--legal { max-width: 780px; }
.prose--legal h2 { font-size: 26px; margin: 48px 0 16px; }
.prose--legal h2:first-child, .prose--legal h3:first-child { margin-top: 0; }
.prose--legal h3 { font-size: 20px; font-weight: 500; margin: 32px 0 12px; }
.prose--legal ul, .prose--legal ol { color: var(--mute); line-height: 1.7; padding-left: 1.25rem; list-style: disc; margin: 12px 0; }
.prose--legal a { text-decoration: underline; }

.mini-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
.mini-case { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 4px; transition: background .3s, color .3s, border-color .3s; }
.mini-case strong { display: flex; justify-content: space-between; font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.mini-case span { color: var(--mute); font-size: 15px; display: block; }
.mini-case:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.mini-case:hover span { color: var(--mute-ink); }
@media (max-width: 760px) { .mini-cases { grid-template-columns: 1fr; } }

.founder-card img.founder-photo { width: 96px; height: 96px; border-radius: 50%; filter: grayscale(1); margin-bottom: 24px; }
.founder-card h2 { margin-bottom: 4px; }
.founder-card .role { color: var(--mute-ink); font-size: 15px; margin-bottom: 20px; }
.founder-card p + p { margin-top: 12px; }

.contact-form { max-width: 820px; }

/* Footer ----------------------------------------------------------------- */
.ftr { padding: 80px 0 32px; overflow: hidden; }
.ftr-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.ftr-top p { color: var(--mute-ink); max-width: 30ch; margin-top: 20px; }
.ftr h2 { margin-bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute-ink); }
.ftr ul li { padding: 3px 0; }
.ftr ul a:hover { color: var(--brand); }
.ftr-cred { display: inline-block; margin-top: 20px; color: var(--mute-ink); border-bottom: 1px solid var(--line-ink); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.ftr-cred:hover { color: var(--brand); border-color: var(--brand); }
.ftr .logo-mark { background: transparent; }
.ftr-word { margin-top: 96px; font-size: clamp(64px, 17.5vw, 290px); font-weight: 500; letter-spacing: -.07em; line-height: .78; white-space: nowrap; }
.ftr-word span { font-weight: 300; color: #3a3935; }
.ftr-bot { margin-top: 32px; display: flex; justify-content: space-between; gap: 16px; color: var(--mute-ink); flex-wrap: wrap; }
.ftr-bot nav { display: flex; gap: 20px; }
.ftr-bot a:hover { color: var(--brand); }
@media (max-width: 860px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-top > :first-child { grid-column: 1 / -1; } }

/* WhatsApp + consentimiento ---------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--bone); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: var(--whatsapp); color: #06301a; transform: translateY(-2px); }

.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 440px; padding: 22px; border-radius: 4px;
  background: var(--ink); color: var(--bone); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.consent p { font-size: 14px; color: var(--soft-ink); }
.consent p a { text-decoration: underline; color: var(--bone); }
.consent-actions { display: flex; gap: 8px; margin-top: 16px; }
.consent-actions .pill { padding: 10px 18px; }
.consent-actions .pill--ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-ink); }
.consent-actions .pill--ghost:hover { background: var(--bone); color: var(--ink); }
.consent-actions .pill--brand { background: var(--brand); color: var(--ink); }
.consent-actions .pill--brand:hover { background: var(--bone); }
@media (max-width: 520px) { .consent { right: 16px; } }
