/* Portafolio de Gabriela García · identidad V6 (Figma 94_Landing_Editable_V6).
   Negro / tinta para foco, marfil para lectura, morado como firma. IBM Plex (Sans Condensed, Sans, Mono).
   Contraste: #a269ff sólo sobre negro o en texto grande; en texto pequeño sobre fondos claros se usa #512f8a. */

:root {
  --ink: #0c0c0f;
  --ink-2: #121216;
  --ink-3: #1c1b22;
  --paper: #f5f3ee;
  --white: #fffefa;
  --purple: #a269ff;
  --purple-ink: #512f8a;
  --lavender: #eee6f5;
  --muted: #68616b;
  --muted-d: #b9b3bf;
  --line: #ccc7bf;
  --line-d: rgba(255, 254, 250, .18);
  --cta: #9a5ffb;
  --f-display: "IBM Plex Sans Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5.5vw, 80px);
  --hdr: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--purple-ink); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .sec-ink :focus-visible, .case-hero :focus-visible,
.cs-ink :focus-visible, .next :focus-visible, .site-footer :focus-visible, .panel-ink :focus-visible { outline-color: var(--purple); }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -120px; z-index: 60; background: var(--purple); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.arw { display: inline-block; font-family: var(--f-body); font-weight: 600; transition: transform .2s ease; }
.mono-n { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; color: var(--purple-ink); }
.mono-s { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple-ink); }
.c-purple { color: var(--purple); }

/* ---------- cabecera */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink-2); color: var(--white); border-bottom: 1px solid var(--line-d); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; padding: 8px 0; }
.brand-name { font: 600 16px/1 var(--f-body); letter-spacing: .01em; }
.gg { display: inline-flex; align-items: baseline; line-height: 1; }
.gg-1 { font: 700 34px/1 var(--f-display); color: var(--white); }
.gg-2 { font: 500 30px/1 var(--f-mono); color: var(--purple); margin-left: -.36em; }
.nav { display: flex; align-items: center; gap: clamp(4px, 1.6vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--white); }
.nav a:hover { color: var(--purple); }
.nav .lang { border: 1px solid rgba(255, 254, 250, .45); border-radius: 999px; min-height: 36px; padding: 0 12px; margin-left: 4px; }
.nav .lang:hover { border-color: var(--purple); }

/* ---------- etiquetas y titulares */
.lbl { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); font: 500 11px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--purple-ink); }
.lbl.on-dark { color: var(--purple); }
.lbl-rule { width: 56px; height: 1px; background: currentColor; opacity: .7; }
.h-hero, .h-xl, .h-xxl, .fc-title, .case-title, .cap-t, .proj-t, .m-t, .next-t { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; }
.h-hero { font-size: clamp(40px, 6.4vw, 92px); line-height: .94; }
.h-xl { font-size: clamp(34px, 4.45vw, 64px); line-height: .98; }
.h-xxl { font-size: clamp(38px, 5.2vw, 76px); line-height: .96; }
.l { display: inline; }
@media (min-width: 1024px) { .l { display: block; } }

/* ---------- botones */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover .arw { transform: translate(2px, -2px); }
.btn-purple { background: var(--purple); color: var(--ink); }
.btn-purple:hover { background: #b88cff; }
.btn-ghost { border: 1px solid rgba(255, 254, 250, .6); color: var(--white); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* ---------- portada: hero */
.hero { background: var(--ink); color: var(--white); }
.status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line-d); font: 500 11px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(40px, 6vw, 96px); align-items: end; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); }
.hero-lead { margin: 32px 0 40px; max-width: 640px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: rgba(255, 254, 250, .88); }
.portrait-card { background: var(--paper); color: var(--ink); padding: 12px 12px 20px; border-radius: 20px; }
.portrait-card img { width: 100%; aspect-ratio: 306 / 382; object-fit: cover; border-radius: 12px; }
.portrait-card figcaption { padding: 16px 6px 0; }
.portrait-card strong { display: block; font-size: 16px; }
.portrait-card ul { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.path { border-top: 1px solid var(--line-d); }
.path-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.path-list li { padding: 26px 24px 30px; border-left: 1px solid var(--line-d); display: grid; gap: 10px; }
.path-list li:first-child { border-left: 0; padding-left: 0; }
.path .mono-n { color: var(--purple); }
.path-t { font-size: 14px; font-weight: 600; }
.conn { display: inline-block; width: 22px; height: 1px; background: var(--purple); vertical-align: middle; margin: 0 10px; }

/* ---------- secciones */
.sec { padding: clamp(72px, 9vw, 128px) 0; scroll-margin-top: var(--hdr); }
.sec-paper { background: var(--paper); }
.sec-ink { background: var(--ink); color: var(--white); }
.sec-lavender { background: var(--lavender); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.intro-p { font-size: 16px; color: var(--muted); max-width: 460px; }
.sec-ink .intro-p { color: rgba(255, 254, 250, .82); }
.compass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.compass li { border-top: 1px solid var(--ink); padding-top: 20px; display: grid; gap: 6px; }
.compass strong { font-size: 17px; }
.compass span:last-child { font-size: 14px; color: var(--muted); }

/* ---------- casos destacados */
.fc-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.fc-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 430px); }
.fc-rev .fc-panel { order: -1; }
.fc-kicker { font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple-ink); margin-bottom: 20px; }
.fc-title { font-size: clamp(44px, 4vw, 60px); line-height: .95; }
.ct-sub { font-family: var(--f-body); font-weight: 400; text-transform: none; font-size: .64em; letter-spacing: 0; white-space: nowrap; }
.ct-plus { font-family: var(--f-body); font-weight: 400; color: var(--purple-ink); }
.fc-statement { margin-top: 22px; font-size: 21px; line-height: 1.35; font-weight: 600; }
.fc-desc { margin-top: 14px; font-size: 15px; color: var(--muted); }
.facts { display: grid; margin-top: 26px; }
.facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-size: 13px; font-weight: 600; }
.fc-shows { margin: 24px 0 28px; padding: 4px 0 4px 16px; border-left: 2px solid var(--purple); }
.fc-shows p:last-child { margin-top: 6px; font-size: 15px; }
.fc-panel { position: relative; border-radius: 28px; padding: clamp(20px, 3vw, 32px); min-height: clamp(360px, 44vw, 640px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden; }
.panel-meta { display: flex; justify-content: space-between; gap: 16px; font: 500 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; position: relative; z-index: 1; }
.panel-ink { background: var(--ink); color: var(--white); }
.panel-purple { background: var(--purple); color: var(--ink); }
.panel-raised { background: var(--ink-2); color: var(--white); }
.panel-phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 22px); position: relative; z-index: 1; margin: auto 0; }
.panel-phones li { flex: 1 1 0; min-width: 0; max-width: 210px; }
.panel-ink .panel-phones li { max-width: 178px; }
.panel-phones li:nth-child(2) { transform: translateY(-18px); }
.phone { width: 100%; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.panel-word { position: absolute; left: -.04em; bottom: -.18em; font: 700 clamp(140px, 17vw, 240px)/1 var(--f-display); color: #b88cff; letter-spacing: -.02em; }
.panel-components { display: grid; gap: 16px; margin: auto 0; }
.panel-components li { background: var(--white); border-radius: 14px; padding: 14px; }
.panel-components li:nth-child(1) { width: 92%; }
.panel-components li:nth-child(2) { width: 72%; margin-left: auto; }
.panel-components li:nth-child(3) { width: 62%; }
.panel-components img { width: 100%; }

/* ---------- alcance senior */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(48px, 6vw, 80px); }
.caps li { padding: 32px clamp(20px, 3vw, 48px) 40px 0; border-top: 1px solid var(--line-d); display: grid; gap: 14px; align-content: start; }
.caps li:nth-child(even) { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--line-d); }
.caps .mono-n { color: var(--purple); }
.cap-t { font-size: clamp(26px, 2.2vw, 32px); line-height: 1; }
.caps p { font-size: 15px; color: rgba(255, 254, 250, .82); max-width: 460px; }
.cap-link { justify-self: start; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 8px 0; }
.cap-link:hover { color: var(--purple); }
.cap-link:hover .arw { transform: translate(2px, -2px); }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-d); }
.route li { font: 700 clamp(20px, 1.9vw, 26px)/1 var(--f-display); text-transform: uppercase; color: #9a93a0; display: flex; align-items: center; }
.route li + li::before { content: ""; width: clamp(20px, 3vw, 44px); height: 2px; background: var(--purple); margin: 0 clamp(10px, 1.6vw, 22px); }

/* ---------- experiencia complementaria */
.more .h-xl { max-width: 900px; }
.proj-list { margin-top: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--ink); }
.proj { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.5fr) 170px 28px; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.proj-t { font-size: clamp(24px, 1.9vw, 28px); line-height: 1.02; }
.proj-t .ct-sub { font-size: .62em; }
.proj-d { font-size: 14px; color: var(--muted); line-height: 1.5; }
.proj-tag { font: 500 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.proj .arw { font-size: 18px; justify-self: end; }
.proj:hover .proj-t { color: var(--purple-ink); }
.proj:hover .arw { transform: translate(3px, -3px); color: var(--purple-ink); }

/* ---------- perfil y método */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.about-copy { display: grid; gap: 18px; font-size: 17px; color: var(--muted); }
.about-copy .btn { justify-self: start; margin-top: 10px; }
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 96px); }
.method li { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 12px; align-content: start; }
.m-t { font-size: clamp(24px, 1.9vw, 28px); line-height: 1; }
.method p { font-size: 15px; color: var(--muted); }

/* ---------- contacto */
.avail { display: flex; align-items: center; gap: 12px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 40px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(162, 105, 255, .25); }
.contact-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.contact-grid .h-xxl { flex: 1 1 560px; max-width: 1000px; }
.cta-circle { flex: none; width: 170px; height: 170px; border-radius: 50%; background: var(--cta); color: #09080b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .25s ease, background .25s ease; }
.cta-circle .arw { font-size: 20px; }
.cta-circle:hover { transform: scale(1.04); background: #b88cff; }
.contact-links { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: rgba(255, 254, 250, .82); }
.contact-links a { color: var(--white); padding: 4px 0; }
.contact-links a:hover { color: var(--purple); }

/* ---------- pie */
.site-footer { background: var(--ink); color: var(--muted-d); border-top: 1px solid var(--line-d); }
.ftr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 32px; font-size: 13px; }
.ftr-id { display: flex; align-items: center; gap: 12px; color: var(--white); }
.ftr-id .gg-1 { font-size: 24px; } .ftr-id .gg-2 { font-size: 21px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr-links a { color: var(--white); padding: 6px 0; }
.ftr-links a:hover { color: var(--purple); }

/* ---------- caso: cabecera */
.case-hero { background: var(--ink); color: var(--white); padding: 28px 0 clamp(48px, 6vw, 80px); }
.back { margin-bottom: clamp(32px, 5vw, 56px); }
.back a, .back-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.back a:hover, .back-all:hover { color: var(--purple); }
.case-kicker { font: 500 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--purple); margin-bottom: 18px; }
.case-title { font-size: clamp(48px, 8.4vw, 128px); line-height: .9; overflow-wrap: anywhere; }
.case-title .ct-plus { color: var(--purple); }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.case-hero-grid.no-fig { grid-template-columns: minmax(0, 1fr); }
.case-statement { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; font-weight: 600; max-width: 640px; }
.case-lead { margin-top: 20px; font-size: 17px; color: rgba(255, 254, 250, .86); max-width: 620px; }
.status-pill { display: inline-flex; margin-top: 28px; padding: 9px 16px; border: 1px solid var(--purple); border-radius: 999px; font: 500 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.case-hero-fig { background: var(--ink-3); border-radius: 24px; padding: clamp(16px, 2.4vw, 28px); }
.case-hero-fig ul { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 1.6vw, 20px); }
.case-hero-fig li { flex: 1 1 0; min-width: 0; }
.hero-phones li { max-width: 190px; }
.hero-phones img { border-radius: 16px; }
.hero-components ul { flex-direction: column; align-items: stretch; }
.hero-components li { background: var(--white); border-radius: 12px; padding: 12px; }
.hero-shot li { max-width: 460px; }
.hero-shot img { max-height: 440px; width: auto; margin-inline: auto; border-radius: 10px; background: var(--white); }
.case-hero-fig figcaption { margin-top: 14px; font: 500 10px/1.5 var(--f-mono); letter-spacing: .08em; color: var(--muted-d); }
.facts-hero { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-top: clamp(40px, 5vw, 64px); }
.facts.facts-hero > div { grid-template-columns: 1fr; gap: 6px; border-top: 1px solid var(--line-d); padding: 16px 0 0; }
.facts.facts-hero > div:last-child { border-bottom: 0; }
@media (max-width: 559px) { .facts.facts-hero > div { padding: 12px 0 10px; } }
.facts-hero dt { font: 500 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.facts-hero dd { font-size: 14px; font-weight: 400; color: var(--white); }

/* ---------- caso: capítulos */
.chapters { background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 0 18px; }
.chapters ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 16px; margin-top: 10px; }
.chapters a { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 0; font-size: 13px; font-weight: 600; text-decoration: none; border-top: 2px solid transparent; }
.chapters a:hover { border-top-color: var(--purple-ink); }

/* ---------- caso: secciones */
.cs { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 104px) 0; scroll-margin-top: var(--hdr); }
.chapters + .cs { border-top: 0; }
.cs-white { background: var(--white); }
.cs-lavender { background: var(--lavender); }
.cs-ink { background: var(--ink); color: var(--white); border-top-color: var(--ink); }
.cs-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 80px); }
.cs-side { align-self: start; position: sticky; top: calc(var(--hdr) + 28px); }
.cs-num { font: 700 clamp(44px, 4.4vw, 64px)/.9 var(--f-display); color: var(--purple-ink); }
.cs-ink .cs-num { color: var(--purple); }
.cs-label { margin-top: 10px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.sec-sub { display: block; margin-top: 4px; color: var(--muted-d); letter-spacing: .1em; }
.cs-main { max-width: 900px; min-width: 0; }
.cs-main > p:not([class]), .sub > p:not([class]) { font-size: 17px; line-height: 1.65; max-width: 760px; }
.cs-main > * + p:not([class]), .sub > * + p:not([class]) { margin-top: 20px; }
.cs-main > p:not([class]) + p:not([class]), .sub > p:not([class]) + p:not([class]) { margin-top: 16px; }
.cs-h { font: 700 clamp(30px, 3vw, 44px)/1.04 var(--f-display); letter-spacing: -.005em; margin-bottom: 28px; max-width: 820px; }
.cs-ink .cs-h { color: var(--white); }
.sub { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.cs-main > .sub:first-of-type { margin-top: 8px; }
.sub-h { display: flex; align-items: baseline; gap: 14px; font: 700 clamp(22px, 2vw, 28px)/1.1 var(--f-display); margin-bottom: 18px; }
.sub-k { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font: 500 12px/1 var(--f-mono); transform: translateY(-3px); }
.blk-h { margin: 36px 0 14px; font-size: 19px; font-weight: 600; }
.dash { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 780px; font-size: 17px; line-height: 1.55; }
.dash li { position: relative; padding-left: 28px; }
.dash li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 2px; background: var(--purple-ink); }
.cs-ink .dash li::before { background: var(--purple); }
.cs > .wrap .dash + p, .dash + .note { margin-top: 20px; }
.note { margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--purple); background: rgba(162, 105, 255, .09); font-size: 15px; line-height: 1.55; max-width: 760px; }
.pull { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--ink); max-width: 820px; }
.pull p { font: 700 clamp(24px, 2.4vw, 34px)/1.15 var(--f-display); }
.cards { display: grid; gap: 14px; margin-top: 24px; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.cards .card-t { font-size: 15px; line-height: 1.3; font-weight: 600; }
.cards p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.cards-mono .card-t { font: 500 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple-ink); }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 24px; }
.stages li { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.stages .card-t { font-size: 15px; font-weight: 600; }
.stages p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.decisions li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 16px; align-content: start; }
.dec-n { font-size: 17px; font-weight: 600; }
.decisions dl { display: grid; gap: 14px; }
.decisions dt { font: 500 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple-ink); margin-bottom: 4px; }
.decisions dd { font-size: 15px; line-height: 1.5; }
.matrix { margin-top: 28px; background: var(--ink); color: var(--white); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.matrix .mono-s { color: var(--purple); margin-bottom: 18px; }
.matrix dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--line-d); }
.matrix dt { font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.matrix dd { font-size: 15px; }
.matrix .fig-note { color: var(--muted-d); margin-top: 18px; }
.evidence { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; max-width: 760px; }
.evidence .mono-s { margin-bottom: 10px; }
.evidence dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.evidence dt { font-weight: 600; font-size: 15px; }
.evidence dd { font-size: 15px; }
.synthesis { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.synthesis .mono-s { margin-bottom: 20px; }
.syn-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.syn-stages li { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 15px; font-weight: 600; display: grid; gap: 4px; }
.syn-rows { margin-top: 24px; }
.syn-rows > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.syn-rows dt { font-size: 14px; font-weight: 600; }
.syn-rows ul { display: flex; flex-wrap: wrap; gap: 8px; }
.syn-rows li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; background: var(--paper); }
.synthesis .fig-note { margin-top: 18px; }

/* ---------- figuras */
.figs { display: grid; gap: 28px 24px; margin-top: 28px; align-items: start; }
.fi img { width: 100%; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.fi figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.fi figcaption strong { display: block; font-size: 15px; }
.fi figcaption span { color: var(--muted); }
.fig-note { margin-top: 14px; font: 500 11px/1.55 var(--f-mono); letter-spacing: .02em; color: var(--muted); max-width: 820px; }
.cs-ink .fig-note { color: var(--muted-d); }
.zoom { display: block; position: relative; cursor: zoom-in; border-radius: 12px; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(12, 12, 15, .82); color: var(--white); display: grid; place-items: center; font: 400 20px/1 var(--f-body); opacity: 0; transition: opacity .2s ease; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
.figs-phones { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.figs-phones .fi { max-width: 220px; }
.figs-phones img { border-radius: 16px; }
.figs-grid3, .figs-cardif, .figs-states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figs-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figs-wide { grid-template-columns: 1fr; }
.figs-start { grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr); }
.figs-states { grid-template-columns: minmax(0, .62fr) minmax(0, 1.5fr) minmax(0, 1fr); }
.figs-components { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figs-components .zoom { display: flex; justify-content: center; align-items: center; min-height: 96px; padding: 18px; background: var(--white); border: 1px solid var(--line); }
.figs-components img { width: auto; max-width: 100%; border: 0; border-radius: 0; }
.figs-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px 48px; }
.aside-img { max-width: 560px; }
.aside-img img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.aside-txt .aside-t { font: 700 clamp(22px, 2vw, 28px)/1.1 var(--f-display); margin-bottom: 12px; }
.aside-txt p { font-size: 16px; color: var(--muted); max-width: 440px; }

/* ---------- siguiente caso */
.next { background: var(--ink); color: var(--white); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line-d); }
.next-grid { display: grid; gap: 22px; }
.next .mono-s { color: var(--purple); }
.next-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; text-decoration: none; padding: 24px 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.next-t { font-size: clamp(40px, 6vw, 88px); line-height: .92; overflow-wrap: anywhere; }
.next-s { grid-column: 1; font-size: 17px; color: rgba(255, 254, 250, .82); }
.next-link .arw { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: clamp(32px, 4vw, 56px); color: var(--purple); }
.next-link:hover .next-t { color: var(--purple); }
.next-link:hover .arw { transform: translate(4px, -4px); }
.back-all { justify-self: start; }

/* ---------- 404 */
.page-404 main { min-height: 70vh; background: var(--ink); color: var(--white); display: grid; align-items: center; padding: 96px 0; }
.page-404 h1 { font: 700 clamp(40px, 6vw, 80px)/.95 var(--f-display); text-transform: uppercase; margin: 16px 0 24px; }
.page-404 p { max-width: 560px; color: rgba(255, 254, 250, .86); }
.page-404 .actions { margin-top: 32px; }

/* ---------- visor de imágenes */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 15, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(12, 12, 15, .6); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line-d); }
.lb-title { font-size: 14px; line-height: 1.4; color: var(--muted-d); margin: 0; flex: 1; min-width: 0; }
.lb-actions { display: flex; gap: 8px; flex: none; }
.lb-btn { appearance: none; border: 1px solid rgba(255, 254, 250, .4); background: transparent; color: var(--white); font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; min-height: 44px; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.lb-btn:hover { border-color: var(--purple); color: var(--purple); }
.lb-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.lb-stage { flex: 1; overflow: auto; display: flex; padding: 12px 16px 24px; -webkit-overflow-scrolling: touch; }
.lb-stage img { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 8px; }
.lb-stage.actual img { max-width: none; max-height: none; }

/* ---------- responsive */
@media (max-width: 1199px) {
  .proj { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr) 28px; }
  .proj-tag { grid-column: 3; grid-row: 2; }
  .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .fc-grid, .fc-rev { grid-template-columns: minmax(0, 1fr); }
  .fc-rev .fc-panel { order: 0; }
  .fc-copy { max-width: 640px; }
  .about-grid, .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .case-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .case-hero-fig { max-width: 640px; }
  .facts-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapters ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-side { position: static; display: flex; align-items: baseline; gap: 16px; }
  .cs-label { margin-top: 0; }
  .decisions, .syn-stages { grid-template-columns: minmax(0, 1fr); }
  .syn-stages li { grid-template-columns: 32px 1fr; }
  .figs-states { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
  .figs-states .fi:last-child { grid-column: 2; }
}
@media (max-width: 767px) {
  :root { --hdr: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait-card { max-width: 340px; }
  .path-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-list li { padding: 20px 16px 22px; border-left: 1px solid var(--line-d); border-top: 1px solid var(--line-d); }
  .path-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .path-list li:nth-child(-n + 2) { border-top: 0; }
  .compass, .method { grid-template-columns: minmax(0, 1fr); }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .caps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .proj { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 8px 16px; }
  .proj-d, .proj-tag { grid-column: 2; grid-row: auto; }
  .proj .arw { grid-column: 3; grid-row: 1; }
  .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .figs-grid3, .figs-cardif, .figs-pair, .figs-components, .figs-aside, .figs-start, .figs-states { grid-template-columns: minmax(0, 1fr); }
  .figs-states .fi:last-child { grid-column: auto; }
  .figs-cardif .fi, .figs-states .fi:first-child { max-width: 360px; }
  .figs-start .fi:last-child { max-width: 220px; }
  .matrix dl > div, .syn-rows > div, .evidence dl > div { grid-template-columns: minmax(0, 1fr); }
  .chapters ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { align-items: flex-start; }
  .cta-circle { width: 148px; height: 148px; }
  .fc-panel { min-height: 0; }
  .panel-word { font-size: 150px; }
}
@media (max-width: 559px) {
  .route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .route li + li::before { display: none; }
  .route li::before { content: ""; width: 14px; height: 2px; background: var(--purple); margin-right: 10px; }
}
@media (max-width: 559px) {
  .brand-name { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 0 5px; letter-spacing: .1em; }
  .facts-hero { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: 84px minmax(0, 1fr); }
  .status { font-size: 10px; letter-spacing: .12em; }
  .lb-title { display: none; }
  .next-link { grid-template-columns: minmax(0, 1fr); }
  .next-link .arw { grid-row: auto; grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .chapters, .next, .zoom-hint { display: none; }
  .cs, .case-hero, .hero, .sec-ink { background: #fff !important; color: #000 !important; }
}
