/* =============================================================
   Juan Rivas Sitzmann — sitio personal
   Layout: editorial oscuro, grilla asimétrica; de fondo, líneas
   vivas (curvas de precio / curvas de nivel) que reaccionan al mouse.
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  color-scheme: dark;
  --ink: #0a0f18; /* fondo: azul marino casi negro */
  --ink-2: #0f1622; /* superficies */
  --ink-3: #152033; /* superficies elevadas */
  --line: rgba(232, 236, 242, 0.12);
  --line-2: rgba(232, 236, 242, 0.22);
  --cream: #e8ecf2; /* texto */
  --muted: #95a1b4; /* texto secundario */
  --jade: #93b8e6; /* acento: celeste suave */
  --forest: #1f3d70; /* azul marino de marca (brillos) */
  --amber: #d9b46c; /* solo para avisos */
  --danger: #e59585; /* solo para pérdidas / drawdown */

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1240px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mx: 50vw;
  --my: 30vh;
}

/* 2. Reset & base ---------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
::selection {
  background: var(--jade);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. Utilities -------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 8px;
}
.skip-link:focus {
  top: 1rem;
}
.wrap {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
}

/* 4. Fondo vivo ------------------------------------------------- */
.ground {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(147, 184, 230, 0.1), transparent 65%),
    radial-gradient(1200px 700px at 85% -10%, rgba(31, 61, 112, 0.35), transparent 60%);
}

/* 5. Componentes ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    background-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}
.btn--solid {
  background: var(--cream);
  color: var(--ink);
}
.btn--solid:hover {
  background: var(--jade);
}
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: var(--cream);
}
.btn--line {
  border: 1px solid var(--jade);
  color: var(--jade);
}
.btn--line:hover {
  background: var(--jade);
  color: var(--ink);
}
.btn--small {
  min-height: 40px;
  padding: 0.55em 1.1em;
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 0.35em 0.8em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
}

.ticks {
  display: grid;
  gap: 0.5em;
}
.ticks li {
  position: relative;
  padding-left: 1.4em;
  color: var(--cream);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7em;
  height: 1px;
  background: var(--jade);
}

/* tarjetas con foco que sigue al cursor */
[data-spot] {
  position: relative;
  isolation: isolate;
}
[data-spot]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--sx, 50%) var(--sy, 50%),
    rgba(147, 184, 230, 0.12),
    transparent 60%
  );
  transition: opacity 0.4s var(--ease-out);
}
[data-spot]:hover::after {
  opacity: 1;
}

/* 6. Secciones --------------------------------------------------- */

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background-color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 15, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--cream);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand__mark--sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.brand__name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: none;
}
.nav__links {
  display: none;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}
.nav__links a {
  transition: color 0.3s;
}
.nav__links a:hover {
  color: var(--cream);
}

/* Hero: foto al centro, el nombre partido a los costados (detrás de la foto) */
.hero {
  padding-block: 92px 72px;
}
.hero__stage {
  position: relative;
  height: clamp(520px, 128vw, 640px);
  isolation: isolate;
}
.hero__eyebrow {
  position: relative;
  z-index: 3;
  padding-top: 12px;
}
.hero__name {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-size: clamp(96px, 27vw, 250px);
}
.hero__word {
  position: absolute;
  display: block;
  overflow: hidden;
  padding: 0.14em 0.06em 0.1em;
  will-change: transform;
}
.hero__word > * {
  display: inline-block;
  animation: rise 1.2s var(--ease-out) both;
}
.hero__word--a {
  left: -0.04em;
  top: 9%;
  z-index: 1;
}
.hero__word--b {
  right: -0.02em;
  bottom: 1%;
  z-index: 3;
}
.hero__word--b > * {
  animation-delay: 0.14s;
}
.hero__word em {
  font-style: italic;
  color: var(--jade);
}
.hero__spot {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: min(760px, 100%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(147, 184, 230, 0.22),
    rgba(31, 61, 112, 0.18) 45%,
    transparent 75%
  );
  pointer-events: none;
}
.hero__photo {
  position: absolute;
  z-index: 2;
  left: 54%;
  bottom: 0;
  height: 78%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
  animation: photoIn 1.3s 0.1s var(--ease-out) both;
}
.hero__side {
  position: absolute;
  z-index: 3;
  bottom: 18%;
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__side--l {
  left: 0;
  transform: rotate(180deg);
}
.hero__side--r {
  right: 0;
}
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: end;
  margin-top: 28px;
  position: relative;
  z-index: 3;
}
.hero__copy {
  min-width: 0;
}
.hero__fullname {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__lead {
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.35;
  max-width: 30ch;
  margin-top: 14px;
}
.hero__sub {
  color: var(--muted);
  max-width: 52ch;
  margin-top: 16px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 22, 34, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeUp 1s 0.35s var(--ease-out) both;
}
.board__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.board__clock {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 0 rgba(147, 184, 230, 0.6);
  animation: pulse 2.4s infinite;
}
.board__rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.board__rows .k {
  font-family: var(--serif);
  font-size: 21px;
}
.board__rows .v {
  grid-column: 1;
  color: var(--muted);
  font-size: 14px;
}
.board__rows .s {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--jade);
  text-align: right;
}
.board__foot {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Cifras */
.stats {
  border-block: 1px solid var(--line);
  background: rgba(10, 15, 24, 0.55);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat {
  display: grid;
  gap: 6px;
  padding: 28px 16px 28px 0;
}
.stat + .stat {
  padding-left: 16px;
}
.stat:nth-child(3) {
  padding-left: 0;
}
.stat:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.stat:nth-child(even) {
  border-left: 1px solid var(--line);
}
.stat__n {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__l {
  color: var(--muted);
  font-size: 14px;
  max-width: 24ch;
}

/* Secciones genéricas */
.section {
  padding-block: 104px 24px;
}
.section__head {
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
  max-width: 760px;
}
.section__head h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 300;
}
.section__intro {
  color: var(--muted);
  max-width: 56ch;
}

/* Servicios */
.services {
  display: grid;
  gap: 16px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 22, 34, 0.78);
}
.service__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
}
.service h3 {
  font-family: var(--serif);
  font-size: 32px;
}
.service > p:not([class]) {
  color: var(--muted);
}
.service__time {
  font-size: 14px;
  color: var(--cream);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.service__time span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.service .btn {
  align-self: flex-start;
}

.terms {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
}
.terms strong {
  color: var(--cream);
  font-weight: 500;
}

/* Trabajos */
.case {
  display: grid;
  gap: 28px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.case__media {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.case__shot {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9e4da;
  aspect-ratio: 880 / 730;
  max-width: 100%;
}
.case__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.case__shot--sheet {
  aspect-ratio: 955 / 690;
  background: #f2f2f2;
}
.case__shot:hover img {
  transform: scale(1.03);
}
.case__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.case__thumbs a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: #e9e4da;
  border: 1px solid var(--line);
}
.case__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease-out);
}
.case__thumbs a:hover img {
  transform: scale(1.05);
}
.case__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.case__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade);
}
.case__body h3 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 300;
  letter-spacing: -0.03em;
}
.case__body > p:not([class]) {
  color: var(--muted);
  max-width: 54ch;
}
.case__note {
  font-size: 14px;
  color: var(--muted);
}
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-left: 2px solid var(--danger);
  background: rgba(229, 149, 133, 0.07);
  font-size: 15px;
}
.callout__n {
  font-family: var(--mono);
  font-size: 26px;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}
.link-out {
  align-self: flex-start;
  border-bottom: 1px solid var(--jade);
  color: var(--jade);
  padding-bottom: 2px;
}
.link-out:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(31, 61, 112, 0.22);
}
.cta-strip p {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
}

/* Historia */
.story {
  display: grid;
  gap: 40px;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--forest), var(--ink-2) 70%);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.portrait__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 140px);
  color: rgba(232, 236, 242, 0.85);
  letter-spacing: -0.03em;
}
.portrait figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4em 0.7em;
  border-radius: 999px;
  background: rgba(10, 15, 24, 0.7);
}
.collage {
  position: relative;
  max-width: 460px;
  width: 100%;
  padding-bottom: 18%;
}
.collage .portrait {
  max-width: 82%;
}
.portrait--small {
  position: absolute !important;
  right: 0;
  bottom: 0;
  width: 46%;
  max-width: 46% !important;
  aspect-ratio: 880 / 1431;
  border: 4px solid var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.story__text {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.story__text h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  margin-bottom: 8px;
}
.story__text p:not(.eyebrow) {
  color: var(--muted);
  max-width: 60ch;
}

/* Hoy */
.fronts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.front {
  background: var(--ink-2);
  padding: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.front h3 {
  font-family: var(--serif);
  font-size: 28px;
}
.front p {
  color: var(--muted);
  font-size: 15px;
}

/* Trading */
.session {
  --start: 9;
  --span: 7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 22, 34, 0.78);
  padding: 24px;
  display: grid;
  gap: 22px;
}
.session__scale,
.session__track {
  position: relative;
  height: 22px;
}
.session__scale {
  margin-left: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.session__scale span {
  position: absolute;
  left: calc((var(--h) - var(--start)) / var(--span) * 100%);
  transform: translateX(-50%);
}
.session__scale span:first-child {
  transform: none;
}
.session__scale span:last-child {
  transform: translateX(-100%);
}
.session__row {
  display: grid;
  gap: 8px;
}
.session__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jade);
}
.session__track {
  height: 14px;
  border-radius: 999px;
  background: rgba(232, 236, 242, 0.06);
}
.session__track .band,
.session__track .run {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  left: calc((var(--from) - var(--start)) / var(--span) * 100%);
  width: calc((var(--to) - var(--from)) / var(--span) * 100%);
}
.session__track .band {
  background: var(--jade);
}
.session__track .run {
  background: linear-gradient(90deg, var(--jade), rgba(147, 184, 230, 0.25));
  height: 2px;
  top: 6px;
}
.session__track .pin {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  left: calc((var(--at) - var(--start)) / var(--span) * 100%);
  transform: translate(-50%, -50%);
  background: var(--jade);
  border: 3px solid var(--ink-2);
}
.session__track .pin--end {
  background: var(--ink-2);
  border: 2px solid var(--cream);
}
.session__desc {
  font-size: 15px;
  color: var(--muted);
}
.session__tz {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}

.results {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(15, 22, 34, 0.6);
}
.results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.results__head h3 {
  font-family: var(--serif);
  font-size: 28px;
}
.pending {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(217, 180, 108, 0.45);
  padding: 0.35em 0.7em;
  border-radius: 999px;
}
.results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.results__grid div {
  background: var(--ink-2);
  padding: 18px;
  display: grid;
  gap: 6px;
}
.results__grid dt {
  font-size: 13px;
  color: var(--muted);
}
.results__grid dd {
  font-family: var(--mono);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.proof {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.proof__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 22, 34, 0.82);
}
.proof__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.proof__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade);
}
.proof__card h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  margin-top: 6px;
}
.proof__card > p:not([class]) {
  color: var(--muted);
  font-size: 15px;
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 6px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.proof__grid div {
  background: var(--ink-2);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}
.proof__grid dt {
  font-size: 13px;
  color: var(--muted);
}
.proof__grid dd {
  font-family: var(--mono);
  font-size: clamp(20px, 2.2vw, 26px);
  font-variant-numeric: tabular-nums;
}
.proof__grid .up {
  color: var(--jade);
}
.proof__grid .down {
  color: var(--danger);
}
.growth {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.growth img {
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease-out);
}
.growth:hover img {
  transform: scale(1.02);
}
.growth__cap {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.proof__note {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 14px;
  border-left: 2px solid var(--danger);
  background: rgba(229, 149, 133, 0.06);
}
.proof__media {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #070b12;
}
.proof__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Recorrido */
.timeline {
  position: relative;
  display: grid;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-2);
}
.timeline li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0 0 30px 36px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--jade);
}
.timeline li.is-now::before {
  background: var(--jade);
  box-shadow: 0 0 0 5px rgba(147, 184, 230, 0.18);
}
.t-year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--jade);
  font-variant-numeric: tabular-nums;
}
.timeline h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 2px;
}
.timeline p {
  color: var(--muted);
  font-size: 15px;
}

/* Manifiesto */
.manifesto {
  padding-block: 120px 96px;
  text-align: left;
}
.manifesto__big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.manifesto__big em {
  color: var(--jade);
}
.manifesto__text {
  margin-top: 28px;
  max-width: 58ch;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--muted);
}

/* Proceso */
.steps {
  display: grid;
  gap: 16px;
}
.steps li {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-top: 1px solid var(--line-2);
}
.steps__n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--jade);
}
.steps h3 {
  font-family: var(--serif);
  font-size: 28px;
}
.steps p {
  color: var(--muted);
  font-size: 15px;
}

/* Contacto */
.section--contact {
  padding-bottom: 104px;
}
.contact {
  display: grid;
  gap: 16px;
}
.contact__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 22, 34, 0.78);
  min-width: 0;
}
.contact__card--main {
  background: linear-gradient(150deg, rgba(31, 61, 112, 0.55), rgba(15, 22, 34, 0.85) 70%);
  border-color: rgba(147, 184, 230, 0.35);
}
.contact__why {
  font-size: 15px;
  color: var(--muted);
}
.contact__how {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  margin-top: 6px;
}
.contact__value {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  overflow-wrap: anywhere;
  user-select: all;
}
.contact__value--sm {
  font-size: clamp(22px, 2.4vw, 28px);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.footer a:hover {
  color: var(--cream);
}

/* Lightbox */
.lightbox {
  max-width: min(1200px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--cream);
}
.lightbox::backdrop {
  background: rgba(5, 8, 13, 0.86);
  backdrop-filter: blur(6px);
}
.lightbox figure {
  display: grid;
}
.lightbox img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #070b12;
}
.lightbox figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
}
.lightbox__nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.lightbox__nav button {
  padding: 14px 20px;
  min-height: 48px;
}
.lightbox__nav button:hover {
  color: var(--jade);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--cream);
  color: var(--ink);
  padding: 0.7em 1.2em;
  border-radius: 999px;
  font-size: 15px;
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease-out);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 7. Efectos ----------------------------------------------------- */
@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes photoIn {
  from {
    opacity: 0.001;
    transform: translate(-50%, 24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes fadeUp {
  from {
    transform: translateY(16px);
    opacity: 0.001;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(147, 184, 230, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(147, 184, 230, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(147, 184, 230, 0);
  }
}
/* entrada suave al hacer scroll: solo desplazamiento, el contenido siempre se ve */
.js [data-reveal] {
  transition: transform 0.9s var(--ease-out);
}
.js [data-reveal].is-below {
  transform: translateY(26px);
}

/* 8. Responsive (mobile-first) ---------------------------------- */
@media (min-width: 540px) {
  .contact__value {
    user-select: text;
  }
}
@media (min-width: 720px) {
  .brand__name {
    display: inline;
  }
  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stat,
  .stat + .stat,
  .stat:nth-child(3) {
    padding: 36px 24px;
  }
  .stat:first-child {
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 0;
  }
  .stat + .stat {
    border-left: 1px solid var(--line);
  }
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fronts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .session {
    padding: 32px;
  }
  .session__row {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    column-gap: 24px;
  }
  .session__row .session__desc {
    grid-column: 2;
  }
  .session__scale {
    margin-left: 144px;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .timeline li {
    grid-template-columns: 110px minmax(0, 1fr);
    column-gap: 24px;
  }
  .t-year {
    padding-top: 6px;
  }
  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact__card--main {
    grid-column: 1 / -1;
  }
  .hero__stage {
    height: clamp(600px, 78vw, 760px);
  }
  .hero__name {
    font-size: clamp(140px, 17.5vw, 250px);
  }
  .hero__photo {
    height: 92%;
    left: 50%;
  }
  .hero__word--a {
    top: 20%;
    left: 0;
  }
  .hero__word--b {
    right: 0;
    bottom: 12%;
  }
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof__card--wide {
    grid-column: 1 / -1;
  }
  .proof__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }
  .hero {
    padding-block: 96px 96px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
    gap: 64px;
    margin-top: -40px;
  }
  .proof__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .terms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .case {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-block: 56px;
  }
  .case--flip .case__media {
    order: 2;
  }
  .story {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
    align-items: start;
  }
  .fronts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps li {
    padding: 24px 24px 0 0;
  }
  .contact {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .contact__card--main {
    grid-column: auto;
  }
  .manifesto .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 56px;
    align-items: end;
  }
  .manifesto__text {
    margin-top: 0;
  }
}
@media (min-width: 1280px) {
  .hero__side {
    display: block;
  }
  .hero__word--b {
    right: 36px;
  }
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
  }
  .timeline::before {
    display: none;
  }
  .timeline li {
    border-left: 1px solid var(--line-2);
    padding-left: 32px;
    margin-left: 4px;
  }
  .timeline li::before {
    left: -5px;
  }
}

/* 9. Reduced motion: solo lo intrusivo ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .dot {
    animation: none;
  }
  .hero__name .line > * {
    animation-duration: 0.01s;
  }
}

/* =============================================================
   Bloques nuevos
   ============================================================= */
.eyebrow--warn {
  color: var(--danger);
}

/* Sistema de ventas */
.system {
  display: grid;
  gap: 32px;
  padding: 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(147, 184, 230, 0.28);
  background: linear-gradient(150deg, rgba(31, 61, 112, 0.55), rgba(15, 22, 34, 0.9) 60%);
}
.system__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.system__body h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px);
}
.system__body > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 56ch;
}
.system__body strong {
  color: var(--cream);
  font-weight: 500;
}
.ticks--cols {
  gap: 0.6em 2em;
}
.system__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.system__media {
  min-width: 0;
}
.system__shot {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 873 / 640;
  max-width: 100%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.system__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1s var(--ease-out);
}
.system__shot:hover img {
  transform: scale(1.03);
}

/* Caso Guten Appetit */
.case__shot--report {
  aspect-ratio: 883 / 760;
  background: #f7f8fb;
}
.case__shot--report img {
  object-position: top;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.kpis div {
  background: var(--ink-2);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.kpis dt {
  font-size: 13px;
  color: var(--muted);
}
.kpis dd {
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 24px);
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}
.kpis dd span {
  color: var(--jade);
}

/* Errores y aprendizajes */
.lesson {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.lesson__head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 760px;
}
.lesson__head h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 54px);
}
.lesson__grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
.lesson__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
}
.lesson__text {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.lesson__text > p {
  color: var(--muted);
  max-width: 62ch;
}
.lesson__text > p strong {
  color: var(--cream);
  font-weight: 500;
}
.lessons {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}
.lessons li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.lessons li > span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--jade);
  padding-top: 3px;
}
.lessons h5 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
}
.lessons p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}
.story-more {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 22, 34, 0.7);
}
.story-more summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 500;
  color: var(--jade);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.story-more summary::-webkit-details-marker {
  display: none;
}
.story-more summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  transition: transform 0.3s var(--ease-out);
}
.story-more[open] summary::after {
  transform: rotate(45deg);
}
.story-more__body {
  padding: 4px 18px 20px;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 16px;
}
.story-more__body strong {
  color: var(--cream);
  font-weight: 500;
}

@media (min-width: 720px) {
  .system {
    padding: 40px;
  }
  .ticks--cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .system {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
    padding: 52px;
  }
  .lesson__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
  }
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }
}
