:root {
  --bg: #0e0f11;
  --bg-2: #16181b;
  --surface: #1c1f23;
  --line: #2a2e34;
  --text: #e9e6df;
  --muted: #8d939b;
  --accent: #e0a35c;
  --accent-ink: #1a1206;
  --radius: 10px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand-mark {
  width: 22px; height: 22px; border: 2px solid var(--accent);
  transform: rotate(45deg); border-radius: 3px; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px; background: var(--accent); border-radius: 1px;
}
.nav a { text-decoration: none; color: var(--muted); margin-left: 22px; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
  opacity: .55;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding-block: 64px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: .98; letter-spacing: -.03em; margin: 14px 0 22px; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 0 32px; }
.hero-viewer {
  aspect-ratio: 1 / 1; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(circle at 50% 60%, #23262b, var(--bg-2) 70%);
  position: relative;
}
.hero-viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.corner { position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; }
.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.hero-viewer .tag {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 15px;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stats { display: flex; gap: 36px; margin-top: 40px; }
.stats div { font-family: var(--mono); }
.stats b { display: block; font-size: 26px; font-weight: 500; color: var(--text); }
.stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Galería ---------- */
.section { padding: 72px 0 96px; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 34px; letter-spacing: -.02em; margin: 6px 0 0; }
.search {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 11px 18px; font-size: 15px; min-width: 260px; font-family: inherit;
}
.search:focus { outline: none; border-color: var(--accent); }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 18px; }
.chip {
  font-size: 13px; text-decoration: none; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.thumb {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 65%, #262a30, #121417 75%);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb model-viewer { width: 100%; height: 100%; --poster-color: transparent; pointer-events: none; }
.thumb .badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 4px; color: var(--text);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

.empty { color: var(--muted); padding: 40px 0; text-align: center; grid-column: 1 / -1; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Visor ---------- */
body.viewer-page { height: 100dvh; overflow: hidden; }
.viewer { position: fixed; inset: 0; background: radial-gradient(circle at 50% 60%, #22252a, #0b0c0e 75%); }
.viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(8,9,10,.85), transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: rgba(28,31,35,.85); border: 1px solid var(--line); border-radius: 50%;
  color: var(--text); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.spacer { flex: 1; }

.controls {
  position: fixed; right: 16px; bottom: 16px; z-index: 5;
  display: flex; gap: 10px;
}
.hint {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 4;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: rgba(14,15,17,.7); padding: 8px 14px; border-radius: 999px;
  transition: opacity .6s; white-space: nowrap;
}
.hint.hide { opacity: 0; }

.panel {
  position: fixed; top: 72px; left: 16px; z-index: 5;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 160px); overflow: auto;
  background: rgba(22,24,27,.92); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; backdrop-filter: blur(6px);
}
.panel[hidden] { display: none; }
.panel p { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.panel dt { font-family: var(--mono); color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; padding-top: 2px; }
.panel dd { margin: 0; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 6;
  background: var(--accent); width: 0; transition: width .2s, opacity .4s;
}
.loading {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 3; pointer-events: none;
  font-family: var(--mono); font-size: 14px; font-weight: 500; color: #ff3b3b;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.loading.hide { display: none; }

.error-box { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.error-box h2 { margin: 0 0 8px; }
.error-box p { color: var(--muted); margin: 0 0 20px; }

/* AR button (model-viewer slot) */
.ar-btn { position: fixed; left: 16px; bottom: 16px; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px 56px; }
  .stats b { font-size: 20px; }
  .hero-viewer { max-width: 520px; }
  .stats { gap: 24px; }
  .search { min-width: 0; width: 100%; }
  .nav a { margin-left: 16px; }
  .hint { bottom: 76px; }
}

/* ---------- Calidad ---------- */

.p-calidad { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.p-calidad .btn { padding: 9px 16px; font-size: 14px; }
.p-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; width: 100%; margin-bottom: 6px; }
.p-kpis b { display: block; font-family: var(--mono); font-weight: 500; font-size: 17px; }
.p-kpis span { font-size: 12px; color: var(--muted); }

.q-page { padding-top: 48px; padding-bottom: 80px; }
.q-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; flex-wrap: wrap; margin-bottom: 36px; }
.q-head h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.025em; line-height: 1.05; margin: 10px 0 14px; }
.q-verdict { font-size: 19px; margin: 0 0 8px; max-width: 60ch; }
.q-lead { color: var(--muted); margin: 0; max-width: 68ch; }
.q-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.q-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 48px;
  background: var(--line); gap: 1px;
}
.q-kpi { background: var(--bg-2); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 2px; }
.q-kpi b { font-family: var(--mono); font-weight: 500; font-size: 26px; color: var(--accent); }
.q-kpi span { font-size: 14px; }
.q-kpi small { font-size: 12px; color: var(--muted); }

.q-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: start; }
.q-grid h2 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 16px; }
.q-grid aside h2:not(:first-child) { margin-top: 34px; }
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.q-item { display: flex; gap: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.q-item h3 { margin: 0 0 4px; font-size: 16px; }
.q-item p { margin: 0; color: var(--muted); font-size: 14.5px; }
.q-ico {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 500; margin-top: 1px;
}
.q-item.ok .q-ico { background: #1f3a2a; color: #7fd49b; }
.q-item.atencion .q-ico { background: #43321a; color: var(--accent); }
.q-item.info .q-ico { background: #1e2a3a; color: #8fb4e6; }
.q-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14.5px; }
.q-dl dt { color: var(--muted); }
.q-dl dd { margin: 0; }
.q-fig { margin: 0; background: #fff; border-radius: var(--radius); padding: 12px; }
.q-fig img { margin: 0 auto; max-height: 420px; width: auto; }
.q-fig figcaption { color: #555; font-size: 12.5px; text-align: center; margin-top: 6px; }

@media (max-width: 820px) {
  .q-grid { grid-template-columns: 1fr; gap: 36px; }
  .q-kpis { grid-template-columns: 1fr 1fr; }
  .q-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .q-page { padding-top: 32px; }
}

.q-gcp { margin-top: 56px; }
.q-gcp-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.q-gcp h2 { font-size: 22px; margin: 0 0 8px; }
.q-tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.q-tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13.5px; }
.q-tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.q-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.q-tbl tr:last-child td { border-bottom: 0; }
.q-tbl td.warn { color: var(--accent); }
.q-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.q-actions .chip { align-self: center; }

/* ---------- Equipos ---------- */
.eq-section { padding-top: 0; }
.eq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.eq-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.eq-card.wide { grid-column: 1 / -1; flex-direction: row; }
.eq-card.wide .eq-photos { flex: 1.5; }
.eq-card.wide .eq-body { flex: 1; align-self: center; }
.eq-photos { display: grid; gap: 2px; background: var(--line); }
.eq-photos.n2 { grid-template-columns: 1.4fr 1fr; }
.eq-ph { display: block; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.eq-card.wide .eq-photos.n2 .eq-ph { aspect-ratio: auto; height: 100%; min-height: 300px; }
.eq-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.eq-ph:hover img { transform: scale(1.03); }
.eq-body { padding: 20px 22px 24px; }
.eq-body h3 { margin: 6px 0 8px; font-size: 22px; letter-spacing: -.015em; }
.eq-body p { margin: 0; color: var(--muted); }
.eq-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: 14px; }
.eq-body dt { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.eq-body dd { margin: 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(5,6,7,.92);
  display: grid; place-items: center; padding: 56px 16px 24px; gap: 10px; align-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: 6px; }
.lightbox p { color: var(--muted); margin: 0; font-size: 14px; text-align: center; }
.lb-x { position: fixed; top: 14px; right: 14px; font-size: 22px; }

@media (max-width: 820px) {
  .eq-grid { grid-template-columns: 1fr; }
  .eq-card.wide { flex-direction: column; }
  .eq-card.wide .eq-photos.n2 .eq-ph { min-height: 0; aspect-ratio: 4 / 3; }
}

.eq-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 9px;
}

/* Descripción resumida en las tarjetas (completa en el visor) */
.card-body > p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Servicios ---------- */
.sv-section { padding-top: 0; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sv-card { background: var(--bg-2); padding: 22px 20px 24px; }
.sv-n { color: var(--accent); font-size: 12px; }
.sv-card h3 { margin: 10px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.sv-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Contacto ---------- */
.ct-section { padding-top: 0; }
.ct-box {
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  border: 1px solid var(--accent); border-radius: var(--radius); padding: 32px;
  background: linear-gradient(135deg, rgba(224,163,92,.10), transparent 60%);
}
.ct-box h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; margin: 8px 0 10px; max-width: 22ch; }
.ct-box p { margin: 0; color: var(--muted); }
.ct-box p b { color: var(--text); font-weight: 600; }
.ct-btns, .pj-cta-btns { display: flex; flex-direction: column; gap: 10px; }
.btn.wa { background: #25d366; color: #062b14; }
.btn svg { flex: none; }
.site-footer a { color: var(--text); }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #062b14; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Página de proyecto ---------- */
.pj { padding-top: 44px; padding-bottom: 72px; }
.pj-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.pj-hero h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.025em; line-height: 1.03; margin: 10px 0 16px; }
.pj-intro { font-size: 19px; color: var(--text); margin: 0 0 26px; max-width: 46ch; }
.pj-cover { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.pj-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.pj-cover:hover img { transform: scale(1.03); }
.pj-sec { margin-bottom: 56px; }
.pj-sec h2 { font-size: 28px; letter-spacing: -.02em; margin: 8px 0 20px; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pj-grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pj-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; }
.pj-card h3 { margin: 0 0 6px; font-size: 17px; }
.pj-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pj-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: st; }
.pj-steps li { counter-increment: st; border-top: 2px solid var(--accent); padding-top: 14px; }
.pj-steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: 13px; }
.pj-steps h3 { margin: 6px 0 6px; font-size: 18px; }
.pj-steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pj-trust { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pj-trust p { margin: 8px 0 0; font-size: 17px; max-width: 70ch; }
.pj-tech p { color: var(--muted); max-width: 80ch; margin: 8px 0 0; font-size: 14.5px; }
.pj-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--accent); border-radius: var(--radius); padding: 28px; background: linear-gradient(135deg, rgba(224,163,92,.10), transparent 60%); }
.pj-cta h2 { margin: 0 0 6px; }
.pj-cta p { margin: 0; color: var(--muted); }

@media (max-width: 820px) {
  .pj-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .pj-steps { grid-template-columns: 1fr; }
  .ct-box, .pj-cta { padding: 22px; }
  .ct-btns, .pj-cta-btns { width: 100%; }
  .ct-btns .btn, .pj-cta-btns .btn { justify-content: center; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* Encabezado en pantallas chicas */
.brand { white-space: nowrap; }
.nav { white-space: nowrap; }
@media (max-width: 520px) {
  .nav a { margin-left: 14px; font-size: 14px; }
}

/* ---------- Resultado de cómputo ---------- */
.pj-res .q-kpis { margin-bottom: 22px; }
.pj-res-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.pj-res-body p { margin: 0 0 14px; color: var(--text); }
.pj-warn { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.pj-warn li { margin-bottom: 6px; }
.pj-res-fig { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.pj-res-fig img { width: 100%; }
.pj-res-fig figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; }
.card-res { font-size: 14px; color: var(--muted); }
.card-res b { font-family: var(--mono); font-weight: 500; color: var(--accent); font-size: 16px; }
@media (max-width: 820px) { .pj-res-body { grid-template-columns: 1fr; } }

/* Título de portada más largo */
.hero h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.02; }

/* ---------- Logotipo e4d ---------- */
.brand img { display: block; height: 34px; width: auto; }
.brand-mini { display: none !important; }
@media (max-width: 520px) {
  .brand-logo { display: none !important; }
  .brand-mini { display: block !important; }
}

/* ---------- Calidad del modelo / portada en celulares ---------- */
.q-sel { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.q-sel span { margin-right: 4px; }
.q-sel button { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.q-sel button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.hero-img { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: var(--radius); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-play { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; }
