@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-latin-opsz.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000000;
  --ink: #1d1d1f;
  --ash: #6e6e73;
  --mist: #f5f5f7;
  --white: #ffffff;
  --yellow: #ffe600;
  --line: #d2d2d7;
  --focus: #000000;
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 11vw, 148px);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sec--dark, .cta-band--dark { --focus: #ffffff; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: #000; padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 650; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Links con subrayado marcador */
.link {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.14em;
  transition: background-color .15s;
}
.link:hover { background: var(--yellow); text-decoration-color: transparent; color: #000; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--yellow); color: #000; }
.btn--primary:hover { background: #000; color: var(--yellow); }
.sec--dark .btn--primary:hover { background: #fff; color: #000; }
.btn--dark { background: #000; color: var(--yellow); }
.btn--dark:hover { background: #fff; color: #000; }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: #000; color: #fff; border-color: #000; }
.cta-band .btn--ghost { color: #000; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand__desc { font-size: .8125rem; color: var(--ash); letter-spacing: -0.005em; border-left: 1px solid var(--line); padding-left: 14px; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav > a { text-decoration: none; font-size: .9375rem; font-weight: 550; }
.nav > a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .16em; text-underline-offset: .2em; }
.nav > a[aria-current='page']:not(.btn) { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .16em; text-underline-offset: .2em; }
.lang { display: inline-flex; gap: 2px; align-items: center; font-size: .875rem; font-weight: 600; }
.lang span, .lang a { padding: 6px 9px; border-radius: 999px; }
.lang span { background: var(--ink); color: #fff; }
.lang a { color: var(--ash); }
.lang a:hover { background: var(--yellow); color: #000; text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 600; cursor: pointer; }

@media (max-width: 960px) {
  .brand__desc { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px);
    background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 24px var(--pad) 40px; margin: 0; overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.03em; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 24px; }
  .nav .lang { margin-top: 20px; }
}

/* Secciones */
.sec { padding: var(--sec) 0; }
.sec--dark { background: #000; color: #fff; }
.sec--mist { background: var(--mist); }
.sec--tight { padding: clamp(48px, 7vw, 88px) 0; }
.sec h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.02; max-width: 18ch; }
.sec__intro { color: var(--ash); font-size: 1.25rem; margin-top: 20px; max-width: 46ch; }
.sec--dark .sec__intro { color: #a1a1a6; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(64px, 9vw, 120px); }
.hero h1 {
  font-size: clamp(2.5rem, 7.1vw, 7.25rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: .94;
}
.hero h1 > span { display: block; }
.measure { display: inline-block; position: relative; padding-bottom: .34em; }
.measure::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .22em;
  background:
    linear-gradient(#000, #000) left center / 3px 100% no-repeat,
    linear-gradient(#000, #000) right center / 3px 100% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) center / 100% .09em no-repeat;
  transform-origin: left center;
  animation: measure 1.1s .35s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes measure { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__sub { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ash); max-width: 36em; margin: clamp(28px, 4vw, 48px) 0; letter-spacing: -0.01em; }

/* Problema */
.statement { font-size: clamp(1.9rem, 5.2vw, 4.5rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 650; max-width: 22em; margin: 0; }
.statement .dim { color: #86868b; }

/* Servicios en filas */
.rows { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 5vw, 80px); padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.row h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.035em; }
.row p { color: var(--ash); margin-bottom: 20px; font-size: 1.25rem; line-height: 1.4; }
.row .scope { color: var(--ink); font-size: 1.0625rem; font-weight: 600; margin: -6px 0 18px; }
.row ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.row li a { font-weight: 600; font-size: 1.0625rem; }
.row li span { color: var(--ash); font-size: 1.0625rem; }

/* Nota bajo el hero */
.hero__note { color: var(--ash); font-size: 1rem; margin: 20px 0 0; max-width: none; }

/* Proceso (secuencia real) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 72px); counter-reset: step; }
.step { border-top: 2px solid #000; padding-top: 24px; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: #000; font-weight: 700; font-size: 1.125rem; margin-bottom: 20px;
}
.step h3 { font-size: 1.5rem; margin-bottom: 10px; letter-spacing: -0.025em; }
.step p { color: var(--ash); margin: 0; font-size: 1.0625rem; }
.cadence { font-size: 1.375rem; line-height: 1.35; letter-spacing: -0.015em; max-width: 40em; margin: clamp(32px, 5vw, 56px) 0 0; }
.step-link { margin-top: clamp(32px, 4vw, 48px); font-weight: 650; }

/* Manifiesto */
.manifesto { max-width: 26em; }
.manifesto p { font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.25; letter-spacing: -0.02em; max-width: none; color: #a1a1a6; font-weight: 500; }
.manifesto p:first-child { font-size: clamp(2rem, 5.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; color: #fff; margin-bottom: 1em; }
.manifesto .close { color: var(--yellow); font-weight: 650; margin-top: 1.4em; margin-bottom: 0; }

/* Feed */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: clamp(32px, 5vw, 56px); }
.feed-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--mist); }
.feed-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.feed-grid a:hover img { transform: scale(1.04); }

/* Equipo */
.team { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.team--photo { grid-template-columns: 7fr 5fr; }
.team img { width: 100%; height: auto; border-radius: 6px; }
.team h2 { max-width: 16ch; }
.team p { color: var(--ash); font-size: 1.25rem; margin-top: 20px; }
.team .link { font-weight: 650; color: var(--ink); }

/* FAQ */
.faq { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; cursor: pointer; list-style: none; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; border-right: 3px solid #000; border-bottom: 3px solid #000; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--ash); padding: 0 40px 28px 0; margin: 0; }

/* CTA amarillo */
.cta-band { background: var(--yellow); color: #000; padding: clamp(72px, 10vw, 128px) 0; }
.cta-band h2 { font-size: clamp(2.2rem, 6.4vw, 5.5rem); letter-spacing: -0.045em; line-height: .98; max-width: 14ch; }
.cta-band p { font-size: 1.375rem; margin: 24px 0 36px; max-width: 34em; }

/* Páginas interiores */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.crumb { font-size: .9375rem; color: var(--ash); margin-bottom: 28px; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumb li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.4rem, 6.4vw, 5.5rem); letter-spacing: -0.045em; line-height: .98; max-width: 16ch; }
.page-hero .lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ash); max-width: 36em; margin: 28px 0 36px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.cols h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); max-width: none; margin-bottom: 24px; }
.dots li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); }
.dots li:last-child { border-bottom: 1px solid var(--line); }
.dots li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px #000; }
.sec--dark .dots li { border-color: #3a3a3c; }
.how { font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 30em; margin: 0; }
.how-title { color: #a1a1a6; font-size: 1.125rem; font-weight: 600; margin-bottom: 20px; letter-spacing: -0.01em; }

.service-list { border-top: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: 4fr 6fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; transition: background-color .15s; }
.service-list a:hover { background: var(--mist); }
.service-list strong { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; font-weight: 650; }
.service-list span { color: var(--ash); font-size: 1.125rem; }

.related { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.related a { font-weight: 600; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 5vw, 56px); }
.principles div { border-top: 2px solid #000; padding-top: 22px; }
.principles h3 { font-size: 1.5rem; margin-bottom: 10px; letter-spacing: -0.025em; }
.principles p { color: var(--ash); margin: 0; }

.plan-rows .step { counter-increment: step; }
.stack { display: grid; gap: 0; margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); counter-reset: step; }
.stack .item { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 5vw, 80px); padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.stack .item h3 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.035em; display: flex; gap: 18px; align-items: center; }
.stack .item h3::before { content: counter(step); flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: #000; font-weight: 700; font-size: 1.125rem; letter-spacing: 0; }
.stack .item p { color: var(--ash); margin: 0; font-size: 1.25rem; line-height: 1.4; }

/* Formulario */
.form-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 1rem; }
.field input, .field select {
  width: 100%; min-height: 56px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; font-size: 1.0625rem;
  transition: box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.field [aria-invalid='true'] { border-color: #c4001d; }
.field .err { color: #c4001d; font-size: .9375rem; margin-top: 6px; min-height: 0; }
.form .consent { color: var(--ash); font-size: .9375rem; margin: 0; }
.form-success { border: 2px solid #000; border-radius: 20px; padding: clamp(24px, 4vw, 40px); background: var(--yellow); }
.form-success h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: none; margin-bottom: 12px; }
.form-success p { margin-bottom: 24px; }
.aside-steps { counter-reset: n; }
.aside-steps li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.aside-steps li:last-child { border-bottom: 1px solid var(--line); }
.aside-steps li::before { content: counter(n); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); font-weight: 700; }
.aside-steps h2 { font-size: 1.5rem; max-width: none; margin-bottom: 18px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 40px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: clamp(28px, 4vw, 56px); }
.footer-grid img { height: 32px; width: auto; margin-bottom: 20px; }
.footer-grid p { color: var(--ash); max-width: 28ch; }
.footer-grid h2 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 14px; max-width: none; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; } .footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .16em; text-underline-offset: .2em; }
.legal { margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--ash); font-size: .9375rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Aviso de idioma */
.lang-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; background: #000; color: #fff; border-radius: 18px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; max-width: 560px; margin: 0 auto; font-size: 1rem; }
.lang-banner[hidden] { display: none; }
.lang-banner button { cursor: pointer; border: 0; background: none; color: #a1a1a6; text-decoration: underline; font-size: .9375rem; }
.lang-banner .btn { min-height: 40px; padding: 0 18px; font-size: .9375rem; color: #000; background: var(--yellow); border: 0; text-decoration: none; }

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .row, .stack .item, .cols, .form-grid, .principles { grid-template-columns: 1fr; }
  .principles { gap: 28px; }
  .team--photo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-list a { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .measure::after { animation: none; }
  * { transition: none !important; }
}
