/* Julian Molineris — portfolio. Dirección «Ingeniería de producto» (29/11/2026).
   Fondos minerales, texto grafito, interfaces grandes y procedencia visible en cada imagen.
   Ver ../mision-portfolio/ingenieria-producto/INFORME.md
   Segunda pasada (29/11/2026): menú de páginas + barra de secciones, movimiento con propósito,
   páginas de proyecto y CV. Ver ../mision-portfolio/ingenieria-producto/INFORME-2.md */

:root {
  --paper: #FFFFFF;
  --white: #FFFFFF;
  --stone: #E4E6E2;
  --stone-2: #D9DCD7;
  --line: #D3D6D1;
  --line-2: #BFC3BD;
  --ink: #16181A;
  --ink-2: #33373A;
  --slate: #4D5055;
  --muted: #5F6468;
  --green: #2E6A4E;
  --green-bg: #E3EEE7;
  --amber: #7A5410;
  --amber-bg: #F3EBDA;
  --gray-bg: #E6E7E5;
  --dark: #1B1E20;
  --dark-2: #25292C;
  --dark-line: #3A3F43;
  --dark-ink: #EEF0EE;
  --dark-muted: #AEB4B8;
  --wrap: 1240px;
  --pad: clamp(16px, 3.4vw, 40px);
  --f: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 10px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(22, 24, 26, .06), 0 8px 24px -12px rgba(22, 24, 26, .18);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 128px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f); font-variation-settings: "wdth" 100; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; font-variation-settings: "wdth" 88; letter-spacing: -.018em; line-height: 1.08; text-wrap: balance; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--dark-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.5; }

/* ---------- Escala tipográfica ---------- */
.h1 { font-size: clamp(34px, 2.1vw + 20px, 58px); line-height: 1.04; letter-spacing: -.026em; }
.h2 { font-size: clamp(28px, 1.3vw + 19px, 42px); letter-spacing: -.022em; }
.h3 { font-size: clamp(20px, .5vw + 16px, 24px); line-height: 1.2; }
.lead { font-size: clamp(17px, .35vw + 15.5px, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.kick { display: block; font-size: 15px; font-weight: 600; color: var(--slate); margin-bottom: 14px; letter-spacing: 0; }
.prose { max-width: 64ch; }
.prose p { color: var(--ink-2); }

/* ---------- Cabecera ---------- */
.head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.head.scrolled { border-bottom-color: var(--line); }
.head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; padding: 6px 0; }
.brand img { height: 21px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { background: var(--stone); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 0 11px; height: 36px; min-width: 40px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.btn-cv { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-sm); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.btn-cv:hover { background: var(--ink-2); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: var(--white); border-radius: var(--r-sm); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 1020px) {
  .head .wrap { gap: 12px; }
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ink); padding-left: 12px; }
  .head-tools { margin-left: auto; }
}
@media (max-width: 520px) {
  .brand img { height: 17px; }
  .btn-cv .lbl-long { display: none; }
  .btn-cv { padding: 0 11px; }
  .lang button { min-width: 36px; padding: 0 8px; }
}
@media (max-width: 370px) { .brand img { height: 15px; } .head .wrap { gap: 8px; } }

/* ---------- Botones ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--line-2); background: var(--white); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.dark .btn-ink { background: var(--dark-ink); color: var(--ink); }
.dark .btn-line { background: transparent; color: var(--dark-ink); border-color: var(--dark-line); }
.dark .btn-line:hover { border-color: var(--dark-ink); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Estado ---------- */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; line-height: 1; padding: 6px 10px 6px 9px; border-radius: 999px; background: var(--gray-bg); color: var(--ink-2); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st.ok { background: var(--green-bg); color: var(--green); }
.st.dev { background: var(--amber-bg); color: var(--amber); }
.st.plan, .st.concept { background: var(--gray-bg); color: var(--slate); }
.st.concept::before { background: transparent; border: 1.5px solid currentColor; }
.dark .st { background: var(--dark-2); color: var(--dark-ink); }
.dark .st.ok { color: #9FD3B4; }
.dark .st.dev { color: #E6C27E; }

/* ---------- Imágenes con procedencia ---------- */
.shot { margin: 0; }
.frame { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.frame.flat { box-shadow: none; }
.frame.win::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line); background: #F7F8F6 radial-gradient(circle at 14px 13px, #D0D3CE 4px, transparent 4.5px) , radial-gradient(circle at 28px 13px, #D0D3CE 4px, transparent 4.5px) #F7F8F6; }
.frame img { width: 100%; }
.frame.photo { background: var(--stone); }
.frame.photo img { height: 100%; object-fit: cover; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.src { flex: none; font-size: 12.5px; font-weight: 600; color: var(--slate); padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--white); line-height: 1.4; }
.src.gen { color: #6A5A1E; border-color: #D8CDA6; background: #FAF6E9; }
.dark .shot figcaption { color: var(--dark-muted); }
.dark .src { background: var(--dark-2); border-color: var(--dark-line); color: var(--dark-ink); }
.dark .src.gen { background: #2E2A1D; border-color: #5A5134; color: #E7D9A8; }
.zoom { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: zoom-in; white-space: nowrap; }
.zoom:hover { border-color: var(--ink); }
.zoom svg { flex: none; }
.dark .zoom { background: var(--dark-2); border-color: var(--dark-line); color: var(--dark-ink); }

/* Visor de capturas */
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.viewer::backdrop { background: rgba(14, 16, 17, .9); }
.viewer-in { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 14px clamp(10px, 3vw, 32px); }
.viewer-top { display: flex; justify-content: flex-end; }
.viewer-close { min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid #50565B; background: #22262A; color: #fff; font-weight: 600; cursor: pointer; }
.viewer-img { overflow: auto; display: grid; place-items: center; min-height: 0; }
.viewer-img img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 6px; }
.viewer-img.full img { max-width: none; max-height: none; cursor: zoom-out; }
.viewer-cap { color: #D9DDDF; font-size: 15px; text-align: center; margin: 0; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(56px, 7vw, 108px) 0; }
.sec.tight { padding: clamp(40px, 5vw, 72px) 0; }
.band { background: var(--stone); }
.band-white { background: var(--white); }
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .lead, .dark .prose p { color: #D0D5D8; }
.dark .muted { color: var(--dark-muted); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head .lead { margin: 0; }
.sec-head.stack { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 16px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Portada: escena amplia con texto en el área libre ---------- */
.stage { position: relative; max-width: 1600px; margin: 0 auto; }
.stage picture img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.stage .over { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.stage .over .wrap { width: 100%; }
.stage .panel { pointer-events: auto; max-width: 500px; background: rgba(241, 242, 239, .95); padding: clamp(22px, 2.2vw, 32px); border-radius: 12px; border: 1px solid var(--line); }
.stage .panel .h1 { font-size: clamp(34px, 2.3vw + 14px, 52px); margin: 0 0 16px; }
.stage .panel .lead { font-size: clamp(16.5px, .3vw + 14.5px, 18.5px); margin-bottom: 22px; }
.stage .cap { position: absolute; right: clamp(10px, 1.6vw, 24px); bottom: 12px; }
.stage-meta { border-bottom: 1px solid var(--line); }
.stage-meta .wrap { display: flex; flex-wrap: wrap; gap: 8px 36px; padding-top: 16px; padding-bottom: 16px; font-size: 15px; color: var(--ink-2); }
.stage-meta p { margin: 0; }
.stage-meta b { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .stage { display: flex; flex-direction: column-reverse; }
  .stage .over { position: static; display: block; padding: 22px 0 26px; }
  .stage .panel { background: none; border: 0; padding: 0; max-width: 620px; border-radius: 0; }
  .stage picture img { aspect-ratio: 4 / 3; object-position: 72% 50%; }
}

/* ---------- Portada clásica (páginas internas) ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero .h1 { margin-bottom: 20px; max-width: 15ch; }
.hero .lead { margin-bottom: 26px; max-width: 44ch; }
.hero-meta { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); max-width: 48ch; }
.hero-meta p { margin: 0; }
.hero-meta b { font-weight: 600; color: var(--ink); }
.hero-visual .frame { border-radius: 12px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .h1 { max-width: 18ch; }
}
.role { font-size: 16px; font-weight: 500; color: var(--slate); margin: 0 0 18px; max-width: 46ch; }

/* ---------- Ajolote (caso principal) ---------- */
.case-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3.5vw, 52px); align-items: start; }
.case-top .shot .frame { border-radius: 12px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.facts dt { font-weight: 600; font-size: 14.5px; color: var(--slate); padding-top: 2px; }
.facts dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.ajo-id { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ajo-id img { width: 56px; height: auto; }
.ajo-id b { font-size: 22px; font-weight: 600; font-variation-settings: "wdth" 88; color: #2E49C9; }
@media (max-width: 980px) { .case-top { grid-template-columns: 1fr; } }

.surfaces { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.surfaces > div { padding: 18px 22px 4px 0; }
.surfaces > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.surfaces h3 { font-size: 18px; margin: 12px 0 6px; font-variation-settings: "wdth" 92; }
.surfaces p { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.surfaces .tech { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 980px) { .surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } .surfaces > div:nth-child(3) { padding-left: 0; border-left: 0; } .surfaces > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .surfaces { grid-template-columns: 1fr; } .surfaces > div, .surfaces > div + div { padding: 16px 0 6px; border-left: 0; } .surfaces > div + div { border-top: 1px solid var(--line); } }

.context { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.context .shot .frame { aspect-ratio: 16 / 9; }
.context .shot img { height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 860px) { .context { grid-template-columns: 1fr; } }

/* ---------- Hardware ---------- */
.hw-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hw-top .frame { aspect-ratio: 3 / 2; background: #ECE7DF; }
.hw-top .frame img { height: 100%; object-fit: cover; object-position: 45% 50%; }
.spec { margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.spec li { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.spec b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .hw-top { grid-template-columns: 1fr; } }

.timeline { margin-top: clamp(40px, 5vw, 64px); }
.timeline h3 { margin-bottom: 18px; }
.tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: tl; }
.tl figure { margin: 0; }
.tl .frame { aspect-ratio: 4 / 5; }
.tl .frame img { height: 100%; object-fit: cover; }
.tl .frame.pcb { background: #ECEEEA; }
.tl .frame.pcb img { object-fit: contain; padding: 10px; }
.tl figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.tl figcaption b { display: block; font-weight: 600; color: var(--ink); margin: 6px 0 2px; }
.tl figcaption .when { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 980px) { .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .tl { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .tl figure { scroll-snap-align: start; }
}
.note { margin-top: 22px; font-size: 14.5px; color: var(--muted); max-width: 72ch; }

/* ---------- Arquitectura ---------- */
.arch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.diagram { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); }
.diagram h3 { font-size: 19px; margin-bottom: 6px; font-variation-settings: "wdth" 92; }
.diagram > p { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.diagram svg { width: 100%; height: auto; display: block; font-family: var(--f); }
.diagram ul { margin: 18px 0 0; display: grid; gap: 8px; }
.diagram li { list-style: none; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); padding-left: 16px; position: relative; }
.diagram li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: var(--slate); }
.dg-box { fill: #F7F8F6; stroke: #9DA29C; stroke-width: 1.2; }
.dg-box.main { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.dg-box.store { fill: #EEF0EC; }
.dg-t { font-size: 15px; font-weight: 600; fill: var(--ink); }
.dg-s { font-size: 12.5px; fill: var(--muted); }
.dg-l { font-size: 12.5px; fill: var(--slate); font-weight: 600; }
.dg-w { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.dg-w.dash { stroke-dasharray: 5 5; }
.dg-w.alt { stroke: #8C918B; }
@media (max-width: 900px) { .arch { grid-template-columns: 1fr; } }

/* ---------- Problemas resueltos ---------- */
.cases { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 4vw, 64px); padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line-2); }
.case h3 { font-size: clamp(20px, .6vw + 16px, 25px); line-height: 1.18; margin: 12px 0 8px; }
.case .area { font-size: 14.5px; color: var(--muted); margin: 0; }
.case .lvl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; }
.case .lvl > div { min-width: 0; }
.case dt { font-weight: 600; font-size: 14.5px; color: var(--slate); margin-bottom: 4px; }
.case dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.case details { grid-column: 2; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.case summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.case summary::-webkit-details-marker { display: none; }
.case summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 4px; font-weight: 600; }
.case details[open] summary::before { content: "−"; }
.case details .lvl { margin-top: 14px; }
.case .ev { margin-top: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case .lvl { grid-template-columns: 1fr; } .case details { grid-column: 1; } }

/* Resultados: hechos con fecha */
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: clamp(32px, 4vw, 52px); border-top: 2px solid var(--ink); }
.results > div { padding: 18px 24px 18px 0; }
.results > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.results .n { display: block; font-size: clamp(26px, 1.4vw + 16px, 36px); font-weight: 600; font-variation-settings: "wdth" 85; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.results .d { display: block; font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.results .w { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .results { grid-template-columns: 1fr; } .results > div, .results > div + div { padding: 16px 0; border-left: 0; } .results > div + div { border-top: 1px solid var(--line); } }

/* ---------- Otros proyectos ---------- */
.proj { display: grid; gap: clamp(48px, 6vw, 88px); }
.p-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.p-row.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.p-row.rev .p-media { order: 2; }
.p-row h3 { font-size: clamp(24px, 1vw + 17px, 32px); margin: 12px 0 12px; }
.p-row p { color: var(--ink-2); font-size: 16px; }
.p-row .mine { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.p-row .mine b { color: var(--ink); font-weight: 600; }
.p-media .frame { aspect-ratio: 16 / 9; }
.p-media .frame img { height: 100%; object-fit: cover; }
.p-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.p-pair .p-media .frame { aspect-ratio: 3 / 2; }
.p-pair h3 { font-size: clamp(22px, .8vw + 17px, 28px); margin: 18px 0 10px; }
.p-pair p { color: var(--ink-2); font-size: 15.5px; }
.wz-logo { width: 132px; height: auto; margin-bottom: 4px; }
@media (max-width: 860px) {
  .p-row, .p-row.rev { grid-template-columns: 1fr; }
  .p-row.rev .p-media { order: 0; }
  .p-pair { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Experiencia ---------- */
.xp { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); }
.job { padding: 22px 0; border-top: 1px solid var(--line-2); }
.job:first-child { border-top-color: var(--ink); border-top-width: 2px; }
.job h3 { font-size: 20px; font-variation-settings: "wdth" 92; }
.job .when { font-size: 14.5px; color: var(--muted); margin: 4px 0 12px; }
.job ul { display: grid; gap: 6px; padding-left: 18px; }
.job li { color: var(--ink-2); font-size: 15.5px; }
.job .split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.job h4 { font-size: 15px; font-weight: 600; color: var(--slate); margin-bottom: 8px; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.job details summary { cursor: pointer; font-weight: 600; font-size: 15px; min-height: 40px; display: inline-flex; align-items: center; }
.edu { display: grid; gap: 22px; align-content: start; padding: 22px 0; border-top: 2px solid var(--ink); }
.edu h3 { font-size: 18px; font-variation-settings: "wdth" 92; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skills span { font-size: 14px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--white); }
@media (max-width: 860px) { .xp { grid-template-columns: 1fr; } .job .split { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.channels { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--dark-line); }
.channels li { list-style: none; }
.channels a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--dark-line); text-decoration: none; min-height: 48px; align-items: center; }
.channels a span:first-child { color: var(--dark-muted); font-size: 15px; }
.channels a span:last-child { font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.channels a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: 14px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r); padding: clamp(18px, 2.6vw, 28px); }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-weight: 400; color: var(--dark-ink); background: var(--dark); border: 1px solid #4A5055; border-radius: var(--r-sm); padding: 11px 12px; min-height: 46px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--dark-ink); outline-offset: 1px; }
.form-note { font-size: 14px; color: var(--dark-muted); margin: 0; }
.form-status { min-height: 1.4em; font-size: 14.5px; margin: 0; color: #CFE3D6; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Páginas internas ---------- */
.page-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--ink-2); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { font-size: 14.5px; font-weight: 500; text-decoration: none; padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); min-height: 38px; display: inline-flex; align-items: center; }
.toc a:hover { border-color: var(--ink); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; }
.tabs [role="tab"] { border: 0; background: transparent; padding: 12px 14px; min-height: 44px; font-weight: 600; font-size: 15.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { margin-bottom: 10px; }
.tab-panel p { color: var(--ink-2); }
@media (max-width: 860px) { .tab-panel { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.status-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.status-table th, .status-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-table th { font-weight: 600; color: var(--slate); background: #F7F8F6; font-size: 14px; }
.status-table tr:last-child td { border-bottom: 0; }
.status-table td:first-child { font-weight: 500; }
.status-table td:last-child { color: var(--ink-2); }

.limits { border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 22px; background: var(--white); }
.limits h3 { font-size: 18px; margin-bottom: 10px; font-variation-settings: "wdth" 92; }
.limits ul { display: grid; gap: 8px; padding-left: 18px; }
.limits li { color: var(--ink-2); font-size: 15px; }

/* Demo: recorrido de una pesada */
.flow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.flow-stage { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.flow-stage svg { width: 100%; height: auto; font-family: var(--f); }
.fs-box { fill: #F7F8F6; stroke: #9DA29C; stroke-width: 1.3; transition: stroke .3s; }
#fs-scale.on .fs-box, #fs-mod.on .fs-box, #fs-pos.on .fs-box { stroke: var(--ink); stroke-width: 2; }
.fs-wire { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.fs-wire.wifi { stroke-dasharray: 5 5; }
.fs-t { font-size: 15px; font-weight: 600; fill: var(--ink); }
.fs-s { font-size: 12.5px; fill: var(--muted); }
.fs-lcd { font-size: 22px; font-weight: 600; fill: #1F3A2C; font-variant-numeric: tabular-nums; }
.flow-steps { display: grid; gap: 0; margin-bottom: 18px; counter-reset: fl; }
.flow-steps li { list-style: none; counter-increment: fl; padding: 12px 0 12px 40px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; transition: color .2s; }
.flow-steps li::before { content: counter(fl); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--white); }
.flow-steps li.on { color: var(--ink); }
.flow-steps li.on::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow-steps li.done::before { background: var(--green-bg); color: var(--green); border-color: #B9D6C4; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }

/* Demo: sincronización */
.sync { grid-column: 1 / -1; margin-top: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.4vw, 24px); }
.sync-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.seg button { border: 0; background: var(--white); padding: 0 14px; min-height: 40px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sync-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; }
.term { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; background: #F7F8F6; min-width: 0; }
.term h4 { font-size: 15px; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.term .net { font-size: 12.5px; font-weight: 600; color: var(--green); }
.term .net.off { color: var(--amber); }
.op { margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); font-size: 14px; background: var(--white); font-variant-numeric: tabular-nums; }
.op.on { border-style: solid; border-color: var(--ink); }
.op.sent { opacity: .55; }
.term.server { background: var(--white); border-color: var(--ink); }
.stock { font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 6px 0 2px; }
.stock.review { font-size: 20px; color: var(--amber); }
.ver { font-size: 13.5px; color: var(--muted); }
.log { margin-top: 10px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.log li { list-style: none; border-left: 2px solid var(--line-2); padding-left: 8px; }
.sync-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.sync-out > div { border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 4px; font-size: 14px; }
.sync-out .bad { background: #F6E9E6; color: #6E2B1E; }
.sync-out .good { background: var(--green-bg); color: #1E4A35; }
.sync-out b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sync-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.sync-status { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .sync-grid, .sync-out { grid-template-columns: 1fr; } }

/* Demo Wazai */
.wz-demo { background: #14171A; color: #EDEFEF; border-radius: 12px; padding: clamp(16px, 2.4vw, 24px); border: 1px solid #2B3034; }
.wz-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.wz-note { font-size: 13px; color: #AEB4B8; }
.wz-log { display: grid; gap: 10px; min-height: 260px; }
.wz-turn { border: 1px solid #2E3439; border-radius: 10px; padding: 12px 14px; background: #1B1F23; }
.wz-turn.me { background: #1C2420; border-color: #2D3D34; }
.wz-who { font-size: 12.5px; color: #AEB4B8; display: flex; gap: 8px; justify-content: space-between; }
.wz-who .s { color: #9BE564; }
.wz-src { font-size: 14px; color: #C6CBCE; margin: 6px 0 4px; }
.wz-tr { font-size: 17px; font-weight: 600; line-height: 1.4; }
.wz-tr .partial { color: #8D969B; font-style: italic; font-weight: 500; }
.wz-late { margin-top: 8px; font-size: 12.5px; color: #E7D9A8; }
.wz-legend { font-size: 13.5px; color: #AEB4B8; margin: 10px 0; }
.wz-btn { min-height: 42px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid #4A5055; background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.wz-btn.primary { background: #9BE564; border-color: #9BE564; color: #14171A; }
.wz-btn:disabled { opacity: .5; cursor: default; }

/* ---------- Pie ---------- */
.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink-2); }
.foot .provenance { flex-basis: 100%; font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .head, .foot, .zoom, .menu-btn { display: none !important; } body { background: #fff; } }

/* Diagramas: horizontal en escritorio, vertical en pantallas angostas */
.diagram .dg-v { display: none; max-width: 420px; }
@media (max-width: 560px) { .diagram .dg-h { display: none; } .diagram .dg-v { display: block; } }
/* Imágenes dentro de <picture> que llenan su marco */
.frame picture { height: 100%; }
.p-pair .st { margin-top: 16px; }
/* Tablas de estado apiladas en móvil */
@media (max-width: 600px) {
  .table-wrap { overflow: visible; }
  .status-table { min-width: 0; }
  .status-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .status-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .status-table tr:last-child { border-bottom: 0; }
  .status-table td { padding: 0; border: 0; }
  .status-table td:last-child { grid-column: 1 / -1; font-size: 14.5px; }
}
/* Objetivos táctiles de al menos 44 px */
.brand { min-height: 44px; }
.link { display: inline-flex; align-items: center; min-height: 44px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* =====================================================================
   Segunda pasada
   ===================================================================== */

/* ---------- Navegación: páginas (cabecera) y secciones (barra propia) ----------
   La cabecera lleva solo páginas. La barra de abajo lleva las secciones de la página actual,
   con un marcador hueco que se rellena en la sección visible. */
.nav a[aria-current="page"] { font-weight: 600; }
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(241, 242, 239, .96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.2) blur(6px); backdrop-filter: saturate(1.2) blur(6px); }
.subnav .wrap { display: flex; align-items: center; gap: 2px; min-height: 48px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav-l { flex: none; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-right: 10px; padding-right: 14px; border-right: 1px solid var(--line-2); line-height: 1.2; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 11px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: var(--r-sm); transition: color .2s, background-color .2s; }
.subnav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; transition: background-color .2s; }
.subnav a:hover { color: var(--ink); background: var(--stone); }
.subnav a.on { color: var(--ink); }
.subnav a.on::before { background: currentColor; }
.nav-label { display: none; }
@media (max-width: 640px) {
  .subnav-l { display: none; }
  .subnav .wrap { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .subnav a { padding: 0 9px; font-size: 14px; }
}

/* ---------- Movimiento ----------
   Breve y una sola vez. Sin JS, o con movimiento reducido, todo queda visible desde el principio. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .16s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
  .head { view-transition-name: cabecera; }
  .js-motion .rv { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }
  .js-motion .rv.in { opacity: 1; transform: none; }
  .btn, .btn-cv, .zoom, .seg button, .wz-btn, .tabs [role="tab"] { transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease); }
  .btn:hover, .btn-cv:hover { transform: translateY(-1px); }
  .btn:active, .btn-cv:active, .zoom:active, .seg button:active, .wz-btn:active { transform: translateY(1px) scale(.985); }
  .tab-panel:not([hidden]) { animation: vt-in .3s var(--ease) both; }
  .viewer[open] .viewer-in { animation: vt-zoom .24s var(--ease) both; }
  .viewer[open]::backdrop { animation: vt-fade .2s ease both; }
  details[open] > :not(summary) { animation: vt-in .28s var(--ease) both; }
  .card .frame img, .feat .frame img, .p-list .frame img { transition: transform .6s var(--ease); }
  .card:hover .frame img, .p-list > article:hover .frame img { transform: scale(1.025); }
  .nav.open { animation: vt-in .22s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes vt-fade { from { opacity: 0; } }
@keyframes vt-zoom { from { opacity: 0; transform: scale(.98); } }
@media print { .rv { opacity: 1 !important; transform: none !important; } .subnav { display: none !important; } }

/* ---------- Estados ----------
   «En uso» y «En uso y evolución» describen el producto. «Mejora en curso» describe una función
   nueva de un producto que ya se usa. La historia de los prototipos va aparte, con fecha. */
.st.use { background: var(--green-bg); color: var(--green); }
.st.next { background: var(--amber-bg); color: var(--amber); }
.dark .st.use { color: #9FD3B4; }
.states { display: grid; gap: 8px; margin: 14px 0 0; }
.states > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--ink-2); }
.states dt { font-weight: 600; color: var(--ink); }
.states dd { margin: 0; }

/* ---------- Inicio: proyectos destacados ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.6vw, 52px); align-items: center; padding-bottom: clamp(36px, 4.5vw, 60px); border-bottom: 1px solid var(--line-2); }
.feat .frame { border-radius: 12px; }
.feat h3 { font-size: clamp(26px, 1.2vw + 18px, 36px); margin: 14px 0 12px; }
.feat p { color: var(--ink-2); }
.feat .facts { margin-top: 18px; }
.feat .btns { margin-top: 22px; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3.6vw, 48px) clamp(20px, 3vw, 36px); margin-top: clamp(36px, 4.5vw, 60px); }
.card { position: relative; display: grid; align-content: start; }
.card .frame { aspect-ratio: 16 / 9; }
.card .frame img { height: 100%; object-fit: cover; }
.card h3 { font-size: clamp(22px, .8vw + 17px, 28px); margin: 12px 0 8px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 6px; }
.card p { color: var(--ink-2); font-size: 16px; margin: 0; }
.card .more { margin-top: 12px; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.card:hover .more { text-decoration-color: currentColor; }
.card > .st { margin-top: 14px; justify-self: start; }
.card .states { position: relative; z-index: 2; }
.card.side { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 20px; }
.card.side .shot { grid-row: 1 / span 5; }
.card.side .frame { aspect-ratio: 4 / 3; }
.card.side > .st { margin-top: 0; }
.card.side h3 { font-size: clamp(20px, .6vw + 16px, 24px); }
.card.side p { font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .card.side { grid-template-columns: 1fr; } .card.side .shot { grid-row: auto; } .card.side .frame { aspect-ratio: 16 / 9; } .card.side > .st { margin-top: 14px; } }

/* ---------- Inicio: aportes ---------- */
.aportes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.aportes > div { padding: 20px 24px 6px 0; display: grid; align-content: start; gap: 8px; }
.aportes > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.aportes h3 { font-size: 19px; font-variation-settings: "wdth" 92; line-height: 1.2; }
.aportes p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.aportes .ev { font-size: 14px; color: var(--muted); }
.aportes .link { font-size: 15px; }
@media (max-width: 1020px) { .aportes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aportes > div:nth-child(3) { padding-left: 0; border-left: 0; } .aportes > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .aportes { grid-template-columns: 1fr; } .aportes > div, .aportes > div + div { padding: 18px 0 8px; border-left: 0; } .aportes > div + div { border-top: 1px solid var(--line); } }

/* ---------- Inicio: experiencia resumida ---------- */
.xp-short .job p { color: var(--ink-2); font-size: 16px; margin: 0; max-width: 68ch; }
.xp-short .job .org { font-size: 15.5px; color: var(--slate); margin: 4px 0 0; }
.xp-short .job .when { margin: 2px 0 10px; }

/* ---------- Páginas de proyecto ---------- */
.p-hero { padding: clamp(24px, 3.4vw, 48px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.p-hero .h1 { margin: 14px 0 18px; }
.p-hero .lead { margin-bottom: 0; }
.p-hero .facts { margin-top: 24px; }
.big-shot .frame { border-radius: 12px; }
.icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.icons > div { padding: 20px 22px 8px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-content: start; }
.icons > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.icons img { width: 44px; height: 44px; grid-row: span 2; border-radius: 10px; }
.icons h3 { font-size: 18px; font-variation-settings: "wdth" 92; line-height: 1.25; }
.icons p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 860px) { .icons { grid-template-columns: 1fr; } .icons > div, .icons > div + div { padding: 18px 0 8px; border-left: 0; } .icons > div + div { border-top: 1px solid var(--line); } }
.metric { border-left: 3px solid var(--green); padding: 12px 16px; background: var(--white); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15.5px; color: var(--ink-2); margin: 0; }
.p-list { display: grid; border-top: 1px solid var(--line-2); }
.p-list > article { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3.4vw, 48px); padding: clamp(28px, 3.6vw, 44px) 0; border-bottom: 1px solid var(--line-2); align-items: center; position: relative; }
.p-list .frame { aspect-ratio: 16 / 9; }
.p-list .frame img { height: 100%; object-fit: cover; }
.p-list h2 { font-size: clamp(26px, 1vw + 19px, 34px); margin: 12px 0 10px; }
.p-list h2 a { text-decoration: none; }
.p-list h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-list h2 a:focus-visible { outline: none; }
.p-list h2 a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: var(--r); }
.p-list p { color: var(--ink-2); }
.p-list .more { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.p-list > article:hover .more { text-decoration-color: currentColor; }
@media (max-width: 860px) { .p-list > article { grid-template-columns: 1fr; } }

/* Contacto compacto al final de las páginas internas */
.contact-mini { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.contact-mini .channels { margin-top: 0; }
.contact-mini .btns { margin-top: 20px; }
@media (max-width: 860px) { .contact-mini { grid-template-columns: 1fr; } }

/* ---------- Demo: venta sin conexión ---------- */
.offline { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.4vw, 24px); margin-top: clamp(20px, 3vw, 36px); }
.offline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; margin-bottom: 14px; }
.offline-head h3 { font-size: 19px; font-variation-settings: "wdth" 92; }
.offline-head p { margin: 0; font-size: 14px; color: var(--muted); }
.off-grid { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); gap: 12px; }
.off-col { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; background: #F7F8F6; min-width: 0; display: grid; align-content: start; gap: 10px; }
.off-col h4 { font-size: 15px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.off-col.srv { background: var(--white); border-color: var(--ink); }
.off-net { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--amber); }
.off-net::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.off-net.on { color: var(--green); }
.off-list { display: grid; gap: 6px; min-height: 120px; align-content: start; }
.off-list li { list-style: none; display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); font-size: 14px; font-variant-numeric: tabular-nums; transition: opacity .3s, border-color .3s; }
.off-list li .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.off-list li.q { border-style: dashed; border-color: var(--line-2); }
.off-list li.sent { opacity: .55; }
.off-list li.ok .s { color: var(--green); font-weight: 600; }
.off-list li.dup .s { color: var(--amber); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .off-list li.new { animation: vt-in .3s var(--ease) both; } }
.off-empty { font-size: 14px; color: var(--muted); }
.off-sum { font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 8px; font-variant-numeric: tabular-nums; }
.off-pipe { display: grid; place-items: center; align-content: center; gap: 6px; }
.off-pipe svg { width: 100%; height: 40px; overflow: visible; }
.off-pipe .wire { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 6; transition: stroke .3s; }
.off-pipe.on .wire { stroke: var(--ink); stroke-dasharray: none; }
.off-pipe .pk { fill: var(--green); opacity: 0; }
.off-pipe span { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; line-height: 1.3; }
.off-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.off-status { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; color: var(--ink-2); min-height: 1.5em; }
@media (max-width: 760px) {
  .off-grid { grid-template-columns: 1fr; }
  .off-pipe { grid-template-columns: 44px auto; justify-content: start; }
  .off-pipe svg { width: 44px; height: 44px; transform: rotate(90deg); }
  .off-list { min-height: 0; }
}

/* Recorrido de una pesada: controles */
.flow-ctrl { display: flex; flex-wrap: wrap; gap: 10px; }

/* Foto real del módulo A1: encuadre sobre la unidad, no sobre las carcasas del fondo */
.tl .frame img.focus-low { object-position: 60% 74%; }

/* Captura original de Wazai a su tamaño natural */
.native { max-width: 474px; }

/* La Hora Inquieta: captura grande + comunidad */
.hi-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.hi-side { display: grid; gap: 20px; }
.hi-stat { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hi-stat img { width: 56px; height: 56px; }
.hi-stat .n { display: block; font-size: clamp(26px, 1.2vw + 18px, 34px); font-weight: 600; font-variation-settings: "wdth" 85; letter-spacing: -.02em; line-height: 1.1; }
.hi-stat .d { display: block; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.hi-stat .d b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .hi-grid { grid-template-columns: 1fr; } }

/* Íconos de aportes */
.aportes .ic { width: 52px; height: 52px; margin-bottom: 4px; }
.p-list .ic, .card .ic { width: 40px; height: 40px; }
.with-ic { display: flex; align-items: center; gap: 14px; }
.with-ic .ic { width: 48px; height: 48px; flex: none; }

/* =====================================================================
   Tercera pasada (30/11/2026): menú Proyectos, Sobre mí y Contacto; catálogo de cinco
   proyectos; portada con texto e interfaz en columnas; casos con la misma secuencia.
   Ver ../mision-portfolio/ingenieria-producto/INFORME-3.md
   ===================================================================== */
html { scroll-padding-top: 84px; }
html:has(.subnav) { scroll-padding-top: 128px; }
.btn-cv[aria-current="page"] { background: var(--ink-2); }

/* Índice discreto (solo Ajolote) */
.subnav .wrap { min-height: 44px; }
.subnav a { font-size: 14px; }

/* Ilustraciones 3D: solo a tamaño de lectura, nunca como controles */
.ill { display: block; width: 112px; height: 112px; object-fit: contain; }
.head-ill { display: flex; align-items: center; gap: 16px; }
.head-ill .ill { flex: none; margin: -14px 0 -14px -12px; }
.p-hero .ill { margin: -10px 0 6px -12px; }
@media (max-width: 560px) { .head-ill .ill { width: 88px; height: 88px; } }

/* ---------- Portada: presentación personal + interfaz legible ---------- */
.intro { padding: clamp(28px, 4.4vw, 72px) 0 clamp(48px, 6vw, 92px); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; }
.who { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; }
.who img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.who b { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.who span span { display: block; font-size: 15px; color: var(--muted); line-height: 1.4; }
.intro .h1 { font-size: clamp(36px, 2.6vw + 18px, 62px); margin: 0 0 20px; max-width: 13ch; }
.intro .lead { margin: 0 0 28px; max-width: 46ch; }
.intro-shot .frame { border-radius: 12px; }
@media (max-width: 960px) { .intro-grid { grid-template-columns: 1fr; } .intro .h1 { max-width: 16ch; } }

/* ---------- Portada: selección de trabajos (uno grande, dos apilados) ---------- */
.sel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px); }
.sel article { position: relative; }
.sel-main { grid-row: 1 / span 2; }
.sel .frame { aspect-ratio: 16 / 9; }
.sel .frame img { height: 100%; object-fit: cover; object-position: 50% 0; }
.sel-main .frame { aspect-ratio: auto; }
.sel-main .frame img { height: auto; }
.sel h3 { font-size: clamp(22px, .8vw + 17px, 28px); margin: 16px 0 6px; }
.sel-main h3 { font-size: clamp(28px, 1.3vw + 19px, 40px); margin-top: 22px; }
.sel h3 a { text-decoration: none; }
.sel h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sel h3 a:focus-visible { outline: none; }
.sel h3 a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: var(--r); }
.sel p { color: var(--ink-2); margin: 0 0 10px; max-width: 56ch; }
.sel-main p { font-size: 18px; }
.sel .more, .pf .more { font-weight: 600; font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.sel article:hover .more, .pf:hover .more { text-decoration-color: currentColor; }
.sel-all { margin: clamp(32px, 4vw, 52px) 0 0; }
@media (max-width: 900px) { .sel { grid-template-columns: 1fr; } .sel-main { grid-row: auto; } }

/* ---------- Portada: dónde puedo aportar ---------- */
.aport { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); }
.aport > div { display: grid; align-content: start; gap: 10px; }
.aport .ill { width: 128px; height: 128px; margin: 0 0 4px -10px; }
.aport h3 { font-size: 20px; font-variation-settings: "wdth" 92; line-height: 1.22; }
.aport p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
@media (max-width: 860px) {
  .aport { grid-template-columns: 1fr; gap: 28px; }
  .aport > div { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; }
  .aport .ill { width: 96px; height: 96px; grid-row: 1 / span 3; margin: 0; }
}

/* ---------- Portada: sobre mí ---------- */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.about-photo { width: 132px; height: 132px; border-radius: 50%; margin-bottom: 22px; }
.about-side .h2 { margin-bottom: 16px; }
.about-side > p { color: var(--ink-2); }
.about-side .skills { margin-top: 18px; }
.about .job:first-child { border-top: 2px solid var(--ink); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { width: 96px; height: 96px; } }

/* ---------- Proyectos: catálogo de cinco fichas con el mismo lenguaje ---------- */
.cat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 5vw, 72px) clamp(24px, 3.4vw, 48px); }
.pf { position: relative; display: grid; align-content: start; }
.pf-main { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.6vw, 56px); align-items: center; padding-bottom: clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line-2); }
.pf .frame { aspect-ratio: 16 / 10; }
.pf .frame img { height: 100%; object-fit: cover; object-position: 50% 0; }
.pf .frame.contain { background: var(--white); }
.pf .frame.contain img { object-fit: contain; object-position: 50% 50%; padding: 10px; }
.pf-main .frame { aspect-ratio: auto; }
.pf-main .frame img { height: auto; }
.pf-body { padding-top: 20px; }
.pf-main .pf-body { padding-top: 0; }
.pf-kind { font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.pf h2 { font-size: clamp(26px, 1vw + 19px, 34px); margin: 0 0 10px; }
.pf-main h2 { font-size: clamp(34px, 1.8vw + 20px, 50px); }
.pf h2 a { text-decoration: none; }
.pf h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pf h2 a:focus-visible { outline: none; }
.pf h2 a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: var(--r); }
.pf-prob { font-size: 17px; line-height: 1.5; color: var(--ink); margin: 0 0 12px; max-width: 54ch; }
.pf-mine { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); margin: 0; padding-top: 12px; border-top: 1px solid var(--line); max-width: 60ch; }
.pf-mine b { color: var(--ink); font-weight: 600; }
.pf-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 18px; }
.pf-foot .st { font-size: 12.5px; padding: 4px 9px 4px 8px; }
@media (max-width: 860px) { .cat { grid-template-columns: 1fr; } .pf-main { grid-template-columns: 1fr; } .pf-main .pf-body { padding-top: 4px; } }

/* ---------- Casos ---------- */
.more-d { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.more-d > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; font-weight: 600; font-size: 17px; }
.more-d > summary::-webkit-details-marker { display: none; }
.more-d > summary::before { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--white); flex: none; font-weight: 600; }
.more-d > summary:hover::before { border-color: var(--ink); }
.more-d[open] > summary::before { content: "−"; }
.more-d[open] { padding-bottom: 32px; }
.more-d .timeline, .more-d > .two { margin-top: 8px !important; }
.more-d .cases { border-top: 0; }

.wz-hero { align-items: start; }
.wz-hero .wz-log { min-height: 0; }
.wz-shots { display: grid; grid-template-columns: minmax(0, 372px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.wz-shots .frame { box-shadow: var(--shadow); }
@media (max-width: 860px) { .wz-shots { grid-template-columns: 1fr; } .wz-shots figure:first-child { max-width: 372px; } }
.measure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.measure > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.measure .m-yes { border-left: 3px solid var(--green); }
.measure .m-no { border-left: 3px dashed var(--line-2); }
.measure h3 { font-size: 18px; font-variation-settings: "wdth" 92; }
.m-n { font-size: clamp(28px, 1.4vw + 18px, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 12px 0 10px; font-variation-settings: "wdth" 85; }
.m-no .m-n { color: var(--muted); }
.measure p:last-child { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .measure { grid-template-columns: 1fr; } }

.community { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; max-width: 900px; }
.community .ill { width: 168px; height: 168px; }
.big-n { font-size: clamp(44px, 3vw + 24px, 80px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 18px 0 14px; font-variation-settings: "wdth" 85; }
.big-n .d { font-size: .36em; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
@media (max-width: 600px) { .community { grid-template-columns: 1fr; } .community .ill { width: 120px; height: 120px; } }

/* Apariciones: 10 px y menos tiempo; nunca en lo que ya está a la vista al cargar */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .rv { transform: translateY(10px); transition-duration: .45s; }
  .rv-now .rv { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Recorte de una captura real: la zona útil, legible en miniatura */
.frame.crop { background: #F6F7F4; }
.sel .frame.crop, .pf .frame.crop { aspect-ratio: 724 / 452; }
.sel .frame.crop img, .pf .frame.crop img { object-position: 50% 50%; }
@media (min-width: 961px) { .intro-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); } }
.intro .h1 { font-size: clamp(36px, 2.3vw + 18px, 56px); }

/* Botón con icono simple y métricas separadas (La Hora Inquieta) */
.btn-ic { gap: 9px; }
.btn-ic .ico { flex: none; }
.metrics { margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.metrics > div { padding: 18px 24px 4px 0; }
.metrics > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.metrics dt { font-size: clamp(30px, 1.4vw + 19px, 44px); white-space: nowrap; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.metrics dd { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
@media (max-width: 600px) { .metrics { grid-template-columns: 1fr; } .metrics > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* App móvil: dos teléfonos a tamaño de lectura */
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 16px; align-content: start; }
.phones .frame { border-radius: 18px; }
.phones-cap { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0; }

/* ---------- Wazai: piezas de la app recreadas con su paleta (Ui.cs) y Nunito ---------- */
.wzx { --w-brand: #72D947; --w-primary: #173B19; --w-soft: #F5F8F3; --w-accent: #E5F8DA; --w-border: #DFE8DB; --w-muted: #52665A; --w-ink: #14251B; --w-body: #2E3F34; --w-ter: #5D6F63; --w-green: #2F6F1C; --w-me: #0F6B5E; --w-ctl: #CCD8C7; --w-warn: #976300;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif; color: var(--w-body); background: #fff; border: 1px solid var(--w-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(20,37,27,.05), 0 14px 34px -18px rgba(20,37,27,.25); }
.wzx button { font-family: inherit; }
/* Conversación */
.wz-demo.wzx { padding: 18px 20px; }
.wzx .wz-head { border-bottom: 1px solid var(--w-border); padding-bottom: 12px; margin-bottom: 6px; }
.wzx-title { display: inline-flex; align-items: center; gap: 8px; color: var(--w-ink); font-weight: 800; }
.wzx .wz-note { color: var(--w-ter); }
.wzx .wz-log { gap: 0; }
.wzx .wz-turn { background: none; border: 0; border-bottom: 1px solid var(--w-border); border-radius: 0; padding: 12px 2px; }
.wzx .wz-turn.me { background: none; }
.wzx .wz-who { font-size: 13px; font-weight: 800; color: var(--w-green); }
.wzx .wz-turn.me .wz-who { color: var(--w-me); }
.wzx .wz-who .s { color: var(--w-ter); font-weight: 700; }
.wzx .wz-src { color: var(--w-ter); }
.wzx .wz-tr { color: var(--w-ink); font-weight: 700; }
.wzx .wz-tr .partial { color: var(--w-ter); }
.wzx .wz-late { color: var(--w-warn); }
.wzx .wz-legend { color: var(--w-ter); }
.wzx .wz-btn { border-color: var(--w-ctl); color: var(--w-ink); background: #fff; border-radius: 10px; font-weight: 700; }
.wzx .wz-btn:hover { background: var(--w-soft); }
.wzx .wz-btn.primary { background: var(--w-primary); border-color: var(--w-primary); color: #fff; }
.wzx .wz-btn.primary:hover { background: #23432D; }
/* Teleprompter */
.tp { padding: 16px 20px 14px; }
.tp-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tp-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--w-ink); }
.tp-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--w-green); }
.tp-ctx { color: var(--w-green); font-weight: 600; }
.tp-ql { margin: 12px 0 0; font-size: 13px; color: var(--w-muted); }
.tp-q { margin: 0; font-size: 18px; font-weight: 700; color: var(--w-ink); }
.tp-warn { margin: 4px 0 0; font-size: 13px; color: var(--w-warn); }
.tp-warn::before { content: "⚠ "; }
.tp-words { --tp: 24px; display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 14px 0 10px; min-height: 120px; align-content: flex-start; }
.tp-words .w { display: inline-flex; flex-direction: column; }
.tp-words b { font-size: var(--tp); line-height: 1.2; font-weight: 600; color: #8A988F; border-radius: 4px; padding: 0 2px; transition: background-color .15s, color .15s; }
.tp-words i { font-style: normal; font-size: calc(var(--tp) * .5); color: var(--w-ter); padding: 0 2px; }
.tp-words .rd b { color: var(--w-ink); font-weight: 800; }
.tp-words .cur b { background: var(--w-brand); color: var(--w-ink); }
.tp-words.nopron i { display: none; }
.tp-es { margin: 0 0 10px; font-size: 16px; color: var(--w-body); border-left: 3px solid var(--w-accent); padding-left: 10px; }
.tp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 10px; border-top: 1px solid var(--w-border); margin-top: 8px; }
.tp-btn { min-height: 34px; padding: 0 14px; border: 1px solid var(--w-ctl); background: #fff; border-radius: 999px; color: var(--w-ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.tp-btn:hover { background: var(--w-soft); }
.tp-primary { background: var(--w-primary); border-color: var(--w-primary); color: #fff; }
.tp-primary:hover { background: #23432D; }
.tp-btn:disabled { opacity: .5; cursor: default; }
.tp-seg { display: inline-flex; flex-wrap: wrap; background: var(--w-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.tp-seg button { border: 0; background: transparent; min-height: 32px; padding: 0 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--w-muted); cursor: pointer; }
.tp-seg button[aria-pressed="true"] { background: #fff; color: var(--w-ink); box-shadow: 0 1px 2px rgba(20,37,27,.12); }
.tp-hint { font-size: 13.5px; font-weight: 700; color: var(--w-ink); }
.tp-ctrl { font-size: 13.5px; font-weight: 700; color: var(--w-green); }
.tp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tp-count { font-size: 13px; color: var(--w-ter); font-variant-numeric: tabular-nums; }
.tp-play { display: inline-flex; gap: 8px; }
.wzx :focus-visible { outline: 2px solid #388B22; outline-offset: 2px; }
@media (max-width: 560px) { .tp-words { --tp: 19px; gap: 4px 9px; } .tp { padding: 14px; } }

/* Ajolote: venta en el celular paso a paso */
.pflow { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pf-phone { background: #16181A; border-radius: 34px; padding: 10px; box-shadow: var(--shadow); max-width: 280px; }
.pf-screen { border-radius: 26px; overflow: hidden; background: #fff; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.pf-screen img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; }
.js-pflow .pf-screen { display: block; overflow: hidden; }
.js-pflow .pf-screen img { display: none; }
.js-pflow .pf-screen img.on { display: block; }
@media (prefers-reduced-motion: no-preference) { .js-pflow .pf-screen img.on { animation: vt-fade .25s ease both; } }
.pf-steps { display: grid; gap: 0; margin: 16px 0 18px; counter-reset: pf; }
.pf-steps li { list-style: none; counter-increment: pf; }
.pf-steps button { width: 100%; text-align: left; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--ink-2); }
.pf-steps button::before { content: counter(pf); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--white); }
.pf-steps b { font-weight: 600; color: var(--ink); }
.pf-steps span { font-size: 14.5px; }
.pf-steps button[aria-pressed="true"]::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.pf-ctrl { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-panel#p4 { grid-template-columns: 1fr; }
@media (max-width: 760px) { .pflow { grid-template-columns: 1fr; } .pf-phone { margin: 0 auto; max-width: 240px; } }
/* La Hora Inquieta: grabación */
.lhi-video video { display: block; width: 100%; height: auto; background: #120806; }

/* La Hora Inquieta: rendimiento */
.perf-key { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); border-top: 2px solid var(--ink); padding-top: 22px; }
.perf-n { font-size: clamp(40px, 3vw + 22px, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 0 0 12px; font-variation-settings: "wdth" 85; }
.perf-d { font-size: 18px; color: var(--ink); margin: 0 0 10px; max-width: 46ch; }
.perf-c { font-size: 15px; color: var(--muted); margin: 0; max-width: 62ch; }
.perf-side { margin: 0; display: grid; gap: 0; align-content: start; }
.perf-side > div { padding: 0 0 14px; }
.perf-side > div + div { border-top: 1px solid var(--line); padding-top: 14px; }
.perf-side dt { font-size: clamp(24px, 1vw + 18px, 32px); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "wdth" 85; }
.perf-side dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.perf-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin-top: clamp(28px, 4vw, 44px); }
.perf-status > div { border-top: 3px solid var(--green); padding-top: 12px; }
.perf-status > div:nth-child(2) { border-top-color: var(--slate); }
.perf-status > div:nth-child(3) { border-top: 3px dashed var(--amber); }
.perf-status h3 { font-size: 17px; font-variation-settings: "wdth" 92; margin-bottom: 8px; }
.perf-status ul { display: grid; gap: 6px; padding-left: 18px; }
.perf-status li { font-size: 15px; color: var(--ink-2); }
.perf-detail { display: grid; gap: 12px; max-width: 76ch; }
.perf-detail p { margin: 0; color: var(--ink-2); }
.perf-detail code { font-size: .92em; background: var(--stone); padding: 1px 5px; border-radius: 4px; }
.perf-detail .table-wrap { max-width: 560px; }
.perf-detail .status-table { min-width: 0; }
.perf-detail .status-table td:not(:first-child) { text-align: right; }
.more-d + .more-d { border-top: 0; }
.perf-author { margin: 24px 0 0; max-width: 80ch; }
@media (max-width: 860px) { .perf-key, .perf-status { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .perf-detail .status-table tr { grid-template-columns: minmax(0, 1fr) auto auto; } .perf-detail .status-table td:last-child { grid-column: auto; } }

/* Documentación y validación */
.dv-meta { font-size: 14.5px; color: var(--muted); margin: 0; }
.dv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.dv-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dv-col { border-top: 3px solid var(--slate); padding-top: 12px; }
.dv-auto { border-top-color: var(--green); }
.dv-man { border-top-color: var(--ink); }
.dv-prod { border-top-color: #2E49C9; }
.dv-pend { border-top: 3px dashed var(--amber); }
.dv-col h3 { font-size: 17px; font-variation-settings: "wdth" 92; margin-bottom: 8px; }
.dv-col ul { display: grid; gap: 7px; padding-left: 18px; }
.dv-col li { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.dv-docs { margin-top: clamp(28px, 4vw, 44px); }
.dv-docs h3 { font-size: 17px; margin-bottom: 10px; }
.dv-docs ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 400px)); gap: 12px; }
.dv-docs li { list-style: none; }
.dv-docs a { display: grid; gap: 4px; padding: 14px 16px 14px 52px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); text-decoration: none; position: relative; min-height: 64px; }
.dv-docs a::before { content: "PDF"; position: absolute; left: 14px; top: 15px; font-size: 10px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 3px; padding: 3px 4px; }
.dv-docs a:hover { border-color: var(--ink); }
.dv-docs b { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.dv-docs span { font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .dv-grid, .dv-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dv-grid, .dv-grid:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; } }

/* La Hora Inquieta: videos y lector */
.lhi-media { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.lhi-phone .frame { border-radius: 22px; background: #0c0606; border: 6px solid #16181A; }
.lhi-reader { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: clamp(16px, 3vw, 36px); }
.lhi-reader .frame { border-radius: 18px; border: 5px solid #16181A; background: #0c0606; }
.lhi-reader figcaption { display: block; }
.lhi-reader figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
@media (max-width: 760px) { .lhi-media { grid-template-columns: 1fr; } .lhi-phone { max-width: 300px; } .lhi-reader { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .lhi-reader figure { scroll-snap-align: start; } }

/* Íconos de cada programa */
.app-ic { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.with-app { display: flex; align-items: center; gap: 12px; }
h1.with-app .app-ic { width: 56px; height: 56px; border-radius: 13px; }
.sel h3.with-app .app-ic { width: 38px; height: 38px; }
.sel-main h3.with-app .app-ic { width: 48px; height: 48px; }
.ajo-id img { width: 48px; border-radius: 11px; }

/* Ajolote: arquitectura y validación */
.sysmap-wrap { padding: clamp(16px, 2.4vw, 28px); }
.sysmap-wrap h3 { margin-bottom: 14px; }
.diagram .sysmap.dg-v { max-width: 380px; }
.decs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.dec { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; align-content: start; gap: 8px; }
.dec h4 { font-size: 17px; font-weight: 600; font-variation-settings: "wdth" 92; line-height: 1.25; margin: 0; }
.dec p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.dec .dec-ev { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.dec .st { font-size: 12.5px; padding: 4px 8px 4px 7px; }
.mx-table { min-width: 760px; }
.mx-table th[scope="row"] { font-weight: 500; text-align: left; background: none; color: var(--ink); font-size: 15px; }
.mx { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.mx.ok { background: var(--green-bg); color: var(--green); }
.mx.no { background: #F6E9E6; color: #8A2B1E; }
.mx.pe { background: var(--amber-bg); color: var(--amber); }
.mx.na { color: var(--muted); padding: 2px 0; }
.mx-n { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.mx-table .st { font-size: 12.5px; padding: 4px 8px 4px 7px; white-space: normal; }
.mx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin-top: clamp(24px, 3vw, 36px); border-top: 2px solid var(--ink); padding-top: 16px; }
.mx-facts b { display: block; font-size: clamp(26px, 1.4vw + 16px, 36px); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "wdth" 85; }
.mx-facts span { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.case .lvl dd { font-size: 15.5px; }
@media (max-width: 980px) { .decs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .decs, .mx-facts { grid-template-columns: 1fr; } .mx-wrap { overflow-x: auto; } .mx-table { min-width: 680px; } .mx-wrap .status-table tr { display: table-row; } .mx-wrap .status-table thead { position: static; width: auto; height: auto; clip: auto; } .mx-wrap .status-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); } }

/* MetalSimple: relevamiento en el tiempo */
.ms-tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; border-top: 2px solid var(--ink); }
.ms-tl li { list-style: none; padding: 14px 18px 4px 0; display: grid; gap: 4px; align-content: start; }
.ms-tl li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.ms-tl .tl-w { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ms-tl b { font-weight: 600; font-size: 16.5px; }
.ms-tl li > span:last-child { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
#validacion .cases { margin-top: 8px; }
@media (max-width: 860px) { .ms-tl { grid-template-columns: 1fr 1fr; } .ms-tl li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .ms-tl { grid-template-columns: 1fr; } .ms-tl li, .ms-tl li + li { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Fondo blanco: las bandas quedan como un gris muy claro para separar secciones */
.band { background: #F4F5F3; }
.band-white { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav { background: rgba(255, 255, 255, .96); }
.lhi-ebooks { max-width: 1000px; }
.lhi-ebook-stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 760px) { .lhi-ebook-stills { grid-template-columns: 1fr; } }

/* Auditoría SEO 02/12/2026: valor, pruebas y rutas en la portada */
.intro-value { font-size: clamp(18px, .4vw + 16px, 21px); font-weight: 600; color: var(--ink); max-width: 46ch; margin: -6px 0 16px; line-height: 1.45; }
.intro-proofs { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.intro-proofs li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16.5px; line-height: 1.45; }
.intro-proofs li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: #D08A45; }
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; max-width: 560px; }
.route { display: block; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; color: var(--ink); }
.route b { display: block; font-size: 16px; }
.route span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.route:hover, .route:focus-visible { border-color: var(--ink); }
.cap-list { display: grid; gap: 0; }
.cap-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(24px, 4vw, 64px); padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line-2); }
.cap-item h2 { font-size: clamp(21px, .7vw + 16px, 27px); line-height: 1.2; margin: 0; }
.cap-item p { color: var(--ink-2); margin: 0 0 10px; }
.cap-item .cap-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } .cap-item { grid-template-columns: 1fr; } }
