/* =========================================================
   Jordi Vegart · sistema base
   ========================================================= */

:root {
  --ink: #0A0A0A;
  --ink-2: #16140F;
  --paper: #FAF8F5;
  --paper-2: #F1EDE5;
  --white: #FFFFFF;
  --red: #D92121;
  --red-deep: #B81818;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.24);
  --line-dark: rgba(255, 255, 255, 0.14);
  --mute: rgba(10, 10, 10, 0.58);
  --mute-dark: rgba(255, 255, 255, 0.62);

  --font-display: "Bricolage Grotesque", "Inter Tight", sans-serif;
  --font-body: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --display-scale: 0.68;

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 9vw, 144px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { background: var(--paper); }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* =========================================================
   typography utilities
   ========================================================= */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-wrap: balance;
}

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.t-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-transform: uppercase;
}
.t-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.t-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 64ch;
  text-wrap: pretty;
}
.t-body { line-height: 1.6; max-width: 65ch; text-wrap: pretty; }
.t-small { font-size: 14px; line-height: 1.5; }
.t-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .15s;
}
.t-link:hover { color: var(--red); }

.h-hero { font-size: clamp(30px, 4.5vw, 62px); }
.h-1    { font-size: clamp(26px, 3vw, 48px); }
.h-2    { font-size: clamp(22px, 2.2vw, 36px); }
.h-3    { font-size: clamp(18px, 1.6vw, 26px); }
.h-4    { font-size: clamp(18px, 1.6vw, 22px); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }

.t-red  { color: var(--red); }
.t-mute { color: var(--mute); }
[data-section="dark"] .t-mute { color: var(--mute-dark); }

/* =========================================================
   layout primitives
   ========================================================= */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section    { padding-top: var(--section); padding-bottom: var(--section); }
.section-sm { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }

[data-section="dark"]   { background: var(--ink); color: var(--paper); }
[data-section="paper2"] { background: var(--paper-2); }
[data-section="white"]  { background: var(--white); }

.divider { height: 1px; background: var(--line); width: 100%; }
[data-section="dark"] .divider { background: var(--line-dark); }

.grid   { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   header / nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header[data-on-dark="true"] {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--line-dark);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link[data-active="true"] { color: var(--ink); border-bottom-color: var(--red); }
.site-header[data-on-dark="true"] .nav-link { color: var(--mute-dark); }
.site-header[data-on-dark="true"] .nav-link:hover { color: var(--paper); }
.site-header[data-on-dark="true"] .nav-link[data-active="true"] { color: var(--paper); }

.menu-btn { display: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    padding: 16px var(--gutter) 24px;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    z-index: 50;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

/* =========================================================
   logo
   ========================================================= */

.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.logo-dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-1px);
}

/* =========================================================
   buttons & form fields
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  transition: transform .12s ease, background .15s, color .15s;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[data-variant="red"] { background: var(--red); color: var(--white); }
.btn[data-variant="red"]:hover { background: var(--red-deep); }
.btn[data-variant="outline"] { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn[data-variant="outline-light"] { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn[data-variant="outline-light"]:hover { background: var(--paper); color: var(--ink); }
.btn[data-size="lg"] { padding: 22px 32px; font-size: 17px; }
.btn[data-size="sm"] { padding: 11px 16px; font-size: 13px; }

.field {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
[data-section="dark"] .field {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--paper);
}
.field:focus { border-color: var(--red); }
.field::placeholder { color: var(--mute); }
[data-section="dark"] .field::placeholder { color: var(--mute-dark); }

.newsletter-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 520px;
}
.newsletter-form .field {
  border-right: 0;
  flex: 1;
}
.newsletter-form .btn { border-radius: 0; padding-left: 24px; padding-right: 24px; }
@media (max-width: 520px) {
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form .field { border-right: 1px solid var(--line-strong); }
}

/* =========================================================
   misc utilities
   ========================================================= */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
  background: transparent;
}
[data-section="dark"] .chip { border-color: var(--line-dark); color: var(--mute-dark); }
.chip[data-tone="red"] { color: var(--red); border-color: var(--red); }
.chip[data-tone="ink"] { color: var(--ink); border-color: var(--ink); }
[data-section="dark"] .chip[data-tone="ink"] { color: var(--paper); border-color: var(--paper); }

.ph {
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-section="dark"] .ph { background: var(--ink-2); color: var(--mute-dark); }
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(10,10,10,.04) 14px, rgba(10,10,10,.04) 15px);
}
[data-section="dark"] .ph::before {
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(255,255,255,.04) 14px, rgba(255,255,255,.04) 15px);
}
.ph[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="4x5"]  { aspect-ratio: 4 / 5; }
.ph[data-ratio="1x1"]  { aspect-ratio: 1 / 1; }

img.cover { width: 100%; height: 100%; object-fit: cover; }
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.media[data-ratio="21x9"] { aspect-ratio: 21 / 9; }
.media[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.media[data-ratio="4x5"]  { aspect-ratio: 4 / 5; }
.media[data-ratio="1x1"]  { aspect-ratio: 1 / 1; }
.media[data-ratio="3x4"]  { aspect-ratio: 3 / 4; }
.media[data-ratio="2x3"]  { aspect-ratio: 2 / 3; }
.media[data-ratio="9x16"] { aspect-ratio: 9 / 16; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .corner {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper); background: rgba(10,10,10,.6); padding: 5px 9px; border-radius: 999px;
  backdrop-filter: blur(6px);
}

.num-list { display: grid; gap: 0; padding: 0; margin: 0; }
.num-list > li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
[data-section="dark"] .num-list > li { border-top-color: var(--line-dark); }
.num-list > li:last-child { border-bottom: 1px solid var(--line); }
[data-section="dark"] .num-list > li:last-child { border-bottom-color: var(--line-dark); }
.num-list .n {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mute);
  padding-top: 4px;
}
[data-section="dark"] .num-list .n { color: var(--mute-dark); }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 18px; line-height: 1.35;
}
.faq-q .sign {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--red);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[data-open="true"] .sign { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .25s ease, opacity .2s;
  opacity: 0;
  color: var(--mute);
  font-size: 16px;
}
.faq-item[data-open="true"] .faq-a {
  max-height: 600px;
  padding-top: 14px;
  opacity: 1;
}

.card { display: flex; flex-direction: column; gap: 14px; }
.card-bordered {
  border: 1px solid var(--line);
  padding: 26px;
  background: var(--white);
}
[data-section="dark"] .card-bordered {
  border-color: var(--line-dark);
  background: transparent;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  gap: 24px;
}
[data-section="dark"] .stat-row { border-top-color: var(--line-dark); }
.stat-row:last-child { border-bottom: 1px solid var(--line); }
[data-section="dark"] .stat-row:last-child { border-bottom-color: var(--line-dark); }
.stat-row .k {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--mute);
}
[data-section="dark"] .stat-row .k { color: var(--mute-dark); }
.stat-row .v {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 32px;
}
.site-footer .colossus {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-size: clamp(36px, 9vw, 130px);
  white-space: nowrap;
  overflow: hidden;
  color: var(--paper);
}
.site-footer a:hover { color: var(--red); }

.video-card { display: flex; flex-direction: column; gap: 12px; }
.video-card .thumb {
  position: relative; aspect-ratio: 16/9;
  background: var(--ink-2); overflow: hidden;
}
.video-card .thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.video-card .duration {
  position: absolute; right: 10px; bottom: 10px;
  font-family: var(--font-mono); font-size: 10px; padding: 4px 7px;
  background: rgba(10,10,10,.7); color: var(--paper); letter-spacing: 0.04em;
}

.logos-row {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: center;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  color: var(--mute); font-size: clamp(20px, 2.2vw, 30px);
}
[data-section="dark"] .logos-row { color: var(--mute-dark); }
.logos-row .brand { opacity: .75; transition: opacity .2s; }
.logos-row .brand:hover { opacity: 1; color: var(--ink); }
[data-section="dark"] .logos-row .brand:hover { color: var(--paper); }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 56px); line-height: 1; white-space: nowrap;
}
[data-section="dark"] .ticker { border-color: var(--line-dark); }
.ticker .track { display: inline-flex; gap: 56px; animation: tick 38s linear infinite; }
.ticker .dot { color: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Standard 2-col hero for inner pages */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > *:last-child { display: none; }
}

.hero-section { overflow: hidden; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr 0.45fr;
  align-items: stretch;
  height: clamp(560px, 68vh, 760px);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 72px) clamp(48px, 6vw, 80px) var(--gutter);
  max-width: 760px;
  margin-left: auto;
}
.hero-right { display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
.hero-right img { width: auto; height: clamp(560px, 68vh, 760px); max-width: none; display: block; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { margin-left: 0; max-width: 100%; padding-right: var(--gutter); }
  .hero-right { display: none; }
}

.bio-grid-2col  { grid-template-columns: 1fr 2fr; }
.bio-grid-1-1   { grid-template-columns: 1fr 1fr; }
.bio-grid-12-1  { grid-template-columns: 1.2fr 1fr; }
.bio-grid-1-12  { grid-template-columns: 1fr 1.2fr; }
@media (max-width: 880px) {
  .bio-grid-2col, .bio-grid-1-1, .bio-grid-12-1, .bio-grid-1-12 { grid-template-columns: 1fr !important; }
}

.kit-table { border-top: 1px solid var(--line); }
.kit-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.kit-row ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
}
.kit-row ul li { padding: 6px 12px; border: 1px solid var(--line); }
.kit-row-links ul li { padding: 10px 14px; border: 1px solid var(--line); flex: 0 0 auto; }
.kit-row-links ul li a { color: var(--ink); }
.kit-row-links ul li a:hover span:first-child { color: var(--red); }
@media (max-width: 720px) {
  .kit-row { grid-template-columns: 1fr; gap: 12px; }
}

.res-split { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 880px) {
  .res-split { grid-template-columns: 1fr !important; }
  .res-split > *:last-child { display: none; }
}

/* footer grid responsive */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* newsletter done state */
.nl-done {
  padding: 22px;
  max-width: 520px;
  border: 1px solid var(--line);
  background: var(--white);
}
[data-section="dark"] .nl-done {
  background: transparent;
  border-color: var(--line-dark);
}

/* before/after slider */
.before-after {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: #0c1822; user-select: none;
}
.before-after input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-divider {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--paper); pointer-events: none;
}
.ba-handle {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}

/* proof grid */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .proof-grid { grid-template-columns: 1fr 1fr; } }

/* action card hover */
.action-card { transition: transform .15s !important; }
.action-card:hover { transform: translateY(-3px); }
