/* ============================================================
   N3XIS — master.css
   Hoja de estilos maestra que consolida alterno-top.css
   y resumen.css en un solo archivo.
   ============================================================ */

:root {
  --bg: rgb(52, 52, 52);
  --bg-2: rgb(60, 60, 60);
  --line: rgb(83, 83, 83);
  --line-soft: rgb(71, 71, 71);
  --fg: rgb(230, 230, 230);
  --muted: rgb(168, 168, 168);
  --dim: rgb(132, 132, 132);
  --accent: #7cda8d;
  --accent-soft: rgba(124, 218, 141, 0.18);
  --display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --sidebar: 320px;
  --pad-x: clamp(28px, 5vw, 88px);
  --nav-h: 80px; /* altura aproximada del nav sticky + respiro */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

::selection { background: var(--accent-soft); color: var(--fg); }

/* ---------- Grain ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* ---------- Layout ---------- */
.shell { display: block; min-height: 100vh; width: 100%; }

/* ---------- Sidebar (top-mounted variant) ---------- */
aside.nav {
  position: sticky; top: 0; left: 0;
  width: 100%; height: auto;
  padding: 18px var(--pad-x);
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 24px;
  background: var(--bg);
  z-index: 6;
}

.tagline {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--muted);
  max-width: 240px;
  text-transform: uppercase;
}

/* Botón hamburger (oculto en desktop) */
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s ease;
  display: block;
}

nav.toc {
  margin: 0;
  flex: 0 1 auto;
}
.toc-label {
  display: none;
}
.toc ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: row; gap: 2px; flex-wrap: wrap; justify-content: flex-end;
}
.toc a {
  display: grid; grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .25s ease;
  cursor: pointer;
}
.toc a .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.toc a .bar { display: none; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); }
.toc a.active .num { color: var(--accent); }

/* Back link en el sidebar (resumen.html) */
.toc a.back {
  color: var(--fg);
}
.toc a.back .num {
  color: var(--accent);
}
.toc a.back:hover .num { transform: translateX(-2px); transition: transform .2s ease; }

.sidebar-foot { display: none; }

p.small {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--fg);
  text-transform: uppercase;
}
p.small em { font-style: normal; color: var(--accent); }
p.small--16 { font-size: 16px; }

/* ---------- Per-section theming ---------- */
.theme-dark {
  --bg: rgb(52, 52, 52);
  --bg-2: rgb(60, 60, 60);
  --line: rgb(83, 83, 83);
  --line-soft: rgb(71, 71, 71);
  --fg: rgb(230, 230, 230);
  --muted: rgb(168, 168, 168);
  --dim: rgb(132, 132, 132);
  --accent: #7cda8d;
  --accent-soft: rgba(124, 218, 141, 0.18);
  background: var(--bg);
  color: var(--fg);
}
.theme-dark .num-display { color: var(--fg); }
.theme-dark ::selection { background: var(--accent-soft); color: var(--fg); }

.theme-light {
  --bg: rgb(242, 242, 242);
  --bg-2: rgb(234, 234, 234);
  --line: rgb(204, 204, 204);
  --line-soft: rgb(219, 219, 219);
  --fg: rgb(60, 60, 60);
  --muted: rgb(117, 117, 117);
  --dim: rgb(153, 153, 153);
  --accent: #66b576;
  --accent-soft: rgba(102, 181, 118, 0.16);
  background: var(--bg);
  color: var(--fg);
}
.theme-light .num-display { color: var(--fg); }
.theme-light ::selection { background: var(--accent-soft); color: var(--fg); }

/* ---------- Main ---------- */
main { position: relative; padding: 0; margin-left: 0; overflow-x: hidden; }

.topbar {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x) 14px;
  background: oklch(0.21 0.006 75);
  border-bottom: 1px solid oklch(0.28 0.005 75);
  color: oklch(0.66 0.010 80);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topbar .live { color: oklch(0.91 0.008 85); }
.topbar .pulse { background: #7cda8d; }
.topbar .progress { background: oklch(0.28 0.005 75); }
.topbar .progress > i { background: #7cda8d; }
.topbar .ticker { display: flex; gap: 28px; align-items: center; }
.topbar .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg);
}
.topbar .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.topbar .progress {
  flex: 1; height: 1px; background: var(--line-soft); margin: 0 32px;
  position: relative; overflow: hidden;
}
.topbar .progress > i {
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .15s linear;
}

section.block {
  padding: clamp(80px, 12vh, 160px) var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  background: var(--bg); color: var(--fg);
  transition: background .4s ease, color .4s ease;
}
section.block:last-of-type { border-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

h1.hero {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
h1.hero em { font-style: normal; color: var(--accent); font-weight: 800; }

h2.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 28px;
  max-width: 18ch;
  text-wrap: balance;
}
h2.section-title em { font-style: normal; color: var(--accent); font-weight: 800; }

p.body {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.55;
  color: var(--fg);
  max-width: 56ch;
  margin: 0;
  font-weight: 300;
  text-wrap: pretty;
}
p.body.dim { color: var(--muted); }

/* ---------- Hero ---------- */
#hero {
  min-height: calc(100vh - 80px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 80px; padding-bottom: 56px;
}
.hero-meta {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: end;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.meta-cell { grid-column: span 3; }
.meta-cell .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 8px;
}
.meta-cell .v {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1; letter-spacing: -0.03em;
}
.meta-cell .v small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--muted); display: block; margin-top: 6px; }

.hero-foot {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 40px; margin-top: 56px;
}
.hero-foot .lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.scroll-cue {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap;
}
.scroll-cue .arrow {
  width: 36px; height: 1px; background: currentColor; position: relative;
}
.scroll-cue .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

/* ---------- Two-column descriptions ---------- */
.section-head {
  margin-bottom: clamp(40px, 6vw, 88px);
}
.section-head .body { margin-top: 32px; max-width: 62ch; }

/* Negocio: aside box — hidden on laptop, visible on tablet/phone */
.negocio-aside {
  display: none;
  margin-top: 48px;
  padding: 24px 28px;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  align-items: center;
  gap: 24px;
}
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.num-display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(80px, 11vw, 180px);
  line-height: 0.9;
  color: var(--fg);
  letter-spacing: -0.06em;
  margin: 0 0 24px;
}

.quote-rule {
  width: 48px; height: 1px; background: var(--accent);
  margin: 32px 0 24px;
}

/* ---------- Features ---------- */
#features .grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  margin-top: 48px;
}
.feat {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 44px 40px 56px;
  position: relative;
  transition: background .3s ease;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.feat:hover { background: var(--bg-2); }
.feat .n {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 36px;
  display: flex; justify-content: space-between; align-items: center;
}
.feat .n .glyph {
  width: 16px; height: 16px; position: relative;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s ease, transform .3s ease;
}
.feat:hover .n .glyph { opacity: 1; transform: translateX(0); }
.feat .n .glyph::before {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 12px; height: 1px; background: var(--accent);
}
.feat .n .glyph::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: translateY(-50%) rotate(-45deg);
}
.feat h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--fg);
  text-wrap: balance;
  text-transform: uppercase;
}
.feat p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.feat .tag {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Process band ---------- */
.band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  margin: 37px 0 0;
}
.band > div {
  padding: 28px 24px;
  border-right: 1px solid var(--line-soft);
}
.band .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.band .v { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -0.03em; }

/* ---------- Contact ---------- */
#contact .wrap {
  display: block;
  max-width: 640px;
  margin-right: auto;
}
form.contact {
  display: flex; flex-direction: column; gap: 28px;
}
.field { display: flex; flex-direction: column; gap: 10px; position: relative; }
.field label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.field label .req { color: var(--accent); font-size: 9px; }
.field input, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  color: var(--fg);
  padding: 10px 0 14px;
  font-family: var(--sans);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  outline: none;
  transition: border-color .3s ease;
  border-radius: 0;
  resize: none;
  width: 100%;
}
.field textarea {
  font-size: 20px;
  line-height: 1.55;
  min-height: 110px;
  font-weight: 400;
  letter-spacing: 0;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--dim);
  font-weight: 400;
}
.field textarea::placeholder { font-size: 20px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field.error input, .field.error textarea { border-bottom-color: oklch(0.7 0.15 30); }
.field .err {
  position: absolute; right: 0; top: 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(0.78 0.12 30);
  opacity: 0; transition: opacity .2s ease;
}
.field.error .err { opacity: 1; }

button.cta {
  margin-top: 8px;
  align-self: flex-start;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 18px 28px 18px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 16px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, padding .3s ease;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
button.cta .arrow {
  width: 28px; height: 1px; background: currentColor; position: relative;
  transition: width .3s ease;
}
button.cta .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}
button.cta:hover {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
  padding-right: 36px;
}
button.cta:hover .arrow { width: 40px; }
button.cta:disabled { opacity: 0.5; cursor: not-allowed; }

.contact-side {
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(28px, 4vw, 56px);
}
.contact-side .row {
  display: flex; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.contact-side .row .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim);
}
.contact-side .row .v {
  color: var(--fg);
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
}
.contact-side .row .v a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.contact-side .row .v a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.success {
  border: 1px solid var(--line);
  padding: 36px 36px;
  background: var(--bg-2);
  display: none;
}
.success.show { display: block; animation: rise .5s ease both; }
.success h4 {
  font-family: var(--display); font-weight: 800;
  font-size: 28px; margin: 0 0 12px; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.success p { color: var(--muted); margin: 0; font-size: 15px; }
.success .check {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.success .check::after {
  content: ""; width: 10px; height: 5px; border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
footer.foot {
  padding: 64px var(--pad-x) 48px;
  display: flex; flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line-soft);
  background: var(--bg); color: var(--fg);
}
footer.foot .foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
footer.foot .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--fg);
  text-transform: uppercase;
}
footer.foot .big em { font-style: normal; color: var(--accent); }
footer.foot .meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); line-height: 1.8;
  text-align: left;
}
footer.foot .meta a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color .2s ease, border-color .2s ease; }
footer.foot .meta a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ============================================================
   RESUMEN.CSS — Estilos específicos para resumen.html
   ============================================================ */

/* ---------- Pleca divisoria entre columnas (#presentacion) ---------- */
#presentacion .split {
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}
.split-rule {
  width: 1px;
  background: var(--accent);
  align-self: stretch;
  justify-self: center;
  margin: 0;
}

/* ---------- Hero perfil: split tipo + retrato ---------- */
#perfil {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.perfil-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
  min-height: calc(100vh - var(--nav-h));
}
.perfil-hero .left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 3.2vw, 44px);
  padding:
    clamp(72px, 10vh, 140px)
    clamp(40px, 4vw, 80px)
    clamp(72px, 10vh, 140px)
    var(--pad-x);
}
.perfil-hero h1.hero { max-width: 14ch; margin: 0; }

.perfil-hero .left .lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0;
}

/* Desktop/Tablet: background full */
.perfil-hero .right {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Desktop/Tablet: ocultar imagen contenida */
.perfil-hero .right .portrait {
  display: none;
}

/* Fallback para cuando no haya background image */
.perfil-hero .right {
  background-color: rgb(45, 45, 45);
}

/* ---------- Slot del retrato (para móvil) ---------- */
.portrait {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  background: rgb(45, 45, 45);
  overflow: hidden;
  margin: auto;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Datos clave bajo el nombre ---------- */
.identity-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.identity-meta .cell .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.identity-meta .cell .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.identity-meta .cell .v.accent { color: var(--accent); }

/* ---------- Quote destacada ---------- */
.pull-quote {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0;
  max-width: 28ch;
  text-wrap: balance;
}
.pull-quote em { font-style: normal; color: var(--accent); font-weight: 700; }
.pull-quote-attrib {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.pull-quote-attrib::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

/* ---------- Lista tipo bloque (formación / experiencia) ---------- */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  margin-top: 48px;
}
.cv-item {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 36px 40px 40px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .3s ease;
}
.cv-item:hover { background: var(--bg-2); }
.cv-item .micro {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cv-item .micro .accent { color: var(--accent); }
.cv-item h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--fg);
  text-transform: uppercase;
  text-wrap: balance;
}
.cv-item p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.cv-item .badge {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.cv-item .badge::before {
  content: ""; width: 12px; height: 1px; background: var(--accent);
}

/* ---------- Servicios: 3 columnas ---------- */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  margin-top: 48px;
}
.serv-grid .cv-item { padding: 40px 36px 44px; min-height: 320px; }

/* ---------- Ventajas: lista con índice ---------- */
.ventajas {
  margin-top: 48px;
  border-top: 1px solid var(--line-soft);
}
.ventaja-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.ventaja-row .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.ventaja-row .label {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
}
.ventaja-row .desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Contacto resumido ---------- */
.contact-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  margin-top: 48px;
}
.contact-cell {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-cell .k {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim);
}
.contact-cell .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.contact-cell .v a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.contact-cell .v a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- CTA volver ---------- */
.back-cta {
  margin-top: 56px;
  display: inline-flex; align-items: center; gap: 16px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, padding .3s ease;
}
.back-cta .arrow {
  width: 28px; height: 1px; background: currentColor; position: relative;
  transition: width .3s ease;
}
.back-cta .arrow::before {
  content: ""; position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px;
  border-left: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.back-cta:hover {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
  padding-left: 36px;
}
.back-cta:hover .arrow { width: 40px; }

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  :root { --pad-x: clamp(24px, 4vw, 64px); }
  .hero-meta { gap: 16px; }
  .meta-cell { grid-column: span 3; }
}

@media (max-width: 1024px) {
  :root { --pad-x: clamp(24px, 4vw, 56px); }
  .meta-cell { grid-column: span 6; }
  .split { grid-template-columns: 1fr; gap: 7px; }
  #features .grid { grid-template-columns: 1fr 1fr; }
  .negocio-aside { display: flex; }
  #negocio .pp-grid { grid-template-columns: 1fr 1fr !important; }
  .band { grid-template-columns: repeat(4, 1fr); }
  footer.foot .foot-cols { grid-template-columns: 1fr 1fr; }
  h1.hero { font-size: clamp(40px, 8vw, 88px); }
  h2.section-title { font-size: clamp(32px, 6vw, 56px); }
  .num-display { font-size: clamp(72px, 14vw, 140px); }
  .hero-foot { gap: 32px; }

  /* Resumen responsivo */
  #presentacion .split { grid-template-columns: 1fr; }
  .split-rule {
    width: 48px;
    height: 1px;
    margin: 8px 0;
    justify-self: start;
  }
  .cv-grid { grid-template-columns: 1fr 1fr; }
  .serv-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr 1fr; }
  .ventaja-row { grid-template-columns: 60px 1fr 1.4fr; }
}

@media (max-width: 970px) {
  .toc a span:not(.num):not(.bar) { display: none; }
  .toc a { padding: 8px 6px; }
}

@media (max-width: 820px) {
  section.block { padding: clamp(64px, 10vh, 120px) var(--pad-x); }
  .topbar { padding: 14px var(--pad-x) 12px; font-size: 10px; }
  .topbar .ticker { gap: 16px; }
  .topbar .progress { margin: 0 16px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .meta-cell { grid-column: auto; }
  .pp-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  #features .grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: repeat(2, 1fr); }
  .band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  #contact .wrap { max-width: none; margin-right: 0; }
  footer.foot .foot-cols { grid-template-columns: 1fr; }

  /* Resumen responsivo - mantener background image a full (igual que desktop) */
  .perfil-hero .right {
    background-position: right center;
  }
  .perfil-hero .left {
    padding:
      clamp(16px, 3vw, 32px)
      var(--pad-x)
      clamp(64px, 10vh, 120px)
      var(--pad-x);
    gap: clamp(24px, 3vw, 36px);
  }
  .portrait { max-width: 260px; }
  .cv-grid { grid-template-columns: 1fr; }
  .serv-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .identity-meta { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .ventaja-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
}

@media (max-width: 600px) {
  :root { --pad-x: 20px; --nav-h: 64px; }
  body { font-size: 15px; }
  aside.nav { padding: 14px var(--pad-x); gap: 12px; }
  .topbar { padding: 12px var(--pad-x) 10px; font-size: 9.5px; letter-spacing: 0.08em; }
  .topbar .ticker { gap: 12px; }
  .topbar .ticker .hide-sm { display: none; }
  .topbar .progress { display: none; }
  section.block { padding: 72px var(--pad-x); }
  h1.hero { font-size: clamp(36px, 11vw, 56px); letter-spacing: -0.035em; max-width: 18ch; }
  h2.section-title { font-size: clamp(28px, 9vw, 44px); letter-spacing: -0.03em; }
  .eyebrow { font-size: 10px; margin-bottom: 20px; }
  p.body { font-size: 16px; }
  .num-display { font-size: clamp(64px, 18vw, 96px); margin-bottom: 16px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 48px; padding-top: 24px; }
  .meta-cell .v { font-size: 28px; }
  .meta-cell .v small { font-size: 10px; }
  #features .grid { margin-top: 32px; }
  .feat { padding: 28px 22px 36px; min-height: 0; }
  .feat .n { margin-bottom: 24px; font-size: 10px; }
  .feat h3 { font-size: 22px; }
  .feat p { font-size: 14.5px; }
  .band { grid-template-columns: 1fr; border-left: 0; }
  .band > div { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 20px var(--pad-x); }
  .band > div:last-child { border-bottom: 0; }
  .field input { font-size: 19px; }
  button.cta { padding: 14px 22px; font-size: 11px; gap: 12px; width: 100%; justify-content: space-between; }
  button.cta:hover { padding: 14px 22px; }
  footer.foot { padding: 48px var(--pad-x) 32px; gap: 24px; }
  .contact-side .row { padding: 14px 0; }
  .contact-side .row .v { font-size: 14px; }

  /* Resumen responsivo */
  .perfil-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .perfil-hero .right {
    display: none;
  }
  .portrait { display: none; }
  .cv-item { padding: 28px 22px 32px; }
  .serv-grid .cv-item { padding: 28px 22px 32px; min-height: 0; }
  .contact-cell { padding: 22px var(--pad-x); }
  .pull-quote { font-size: clamp(20px, 6vw, 28px); }
  .identity-meta { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --pad-x: 12px; --nav-h: 56px; }
  body { font-size: 13px; }
  aside.nav {
    padding: 8px var(--pad-x);
    gap: 6px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  p.small { font-size: 16px; line-height: 1; }
  /* p.small--16 { font-size: 12px; } */

  /* Mobile menu toggle button */
  .nav-toggle {
    display: flex;
    margin-left: auto;
    z-index: 7;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
    transform-origin: center;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
    transform-origin: center;
  }

  /* Mobile dropdown menu */
  nav.toc {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex: none;
    transition: max-height 0.3s ease;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
  }
  nav.toc.open {
    max-height: 500px;
    box-shadow: 0 3px 9px 1px rgb(0 0 0 / 50%);
  }
  .toc-label {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 12px 0 8px;
    padding: 0 var(--pad-x);
  }
  .toc ol {
    gap: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0;
  }
  .toc a {
    padding: 12px var(--pad-x);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line-soft);
    grid-template-columns: none;
  }
  .toc a span:not(.num):not(.bar) { display: inline; }
  .toc a .num { font-size: 13px; }
  .toc a .bar { display: none; }
  .sidebar-foot { display: none; }
  h1.hero { font-size: 26px; line-height: 1.1; max-width: 100%; }
  h2.section-title { font-size: 20px; }
  section.block { padding: 48px var(--pad-x) 36px; }
  .topbar { padding: 8px var(--pad-x) 6px; font-size: 7px; }
  .topbar .ticker > *:not(.live) { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 12px; }
  .meta-cell { grid-column: auto; }
  .meta-cell .v { font-size: 18px; }
  .meta-cell .k { font-size: 7px; }
  .meta-cell .v small { font-size: 9px; }
  .eyebrow { font-size: 8px; margin-bottom: 12px; }
  .feat { padding: 16px 12px 20px; min-height: auto; }
  .feat h3 { font-size: 16px; }
  .feat p { font-size: 12px; }
  .band { grid-template-columns: 1fr 1fr; }
  .band .v { font-size: 16px; }
  /* pp-grid ajustado para móvil */
  #negocio .pp-grid > div { display: flex; flex-direction: column; gap: 8px; }
  #negocio .pp-grid > div > div:first-child { font-size: 8px !important; margin-bottom: 4px; }
  #negocio .pp-grid > div > p { font-size: 13px !important; line-height: 1.4 !important; }
  /* Formulario ajustado para móvil */
  .field label { font-size: 9px; }
  .field input, .field textarea {
    font-size: 16px !important;
    padding: 8px 0 12px;
  }
  .field textarea { font-size: 15px !important; line-height: 1.5; }
  .field input::placeholder, .field textarea::placeholder { font-size: 15px; }
  button.cta { font-size: 10px; padding: 12px 18px; }
  /* Hero footer ajustado para móvil */
  .scroll-cue {
    font-size: 9px;
    gap: 8px;
    white-space: normal;
    flex-wrap: wrap;
  }
  .scroll-cue .arrow {
    width: 24px;
    flex-shrink: 0;
  }
  .hero-foot { gap: 24px; margin-top: 32px; }
}

@media (max-width: 360px) {
  :root { --pad-x: 12px; }
  p.small { font-size: 16px; }
  h1.hero { font-size: 24px; }
  .toc a { padding: 8px; }
}
