/* =============================================================
   Proyectos — estilos del hub y de las subpáginas (Sintakta, BRUM).
   Se carga DESPUÉS de styles.css y solo en esas páginas.
   Cada subpágina define su marca con una clase en <body>.
   ============================================================= */

body.proj-sintakta {
  --brand: #2F5FF6; --brand-2: #0E1430; --brand-ink: #2F5FF6; --brand-text: #9db8ff;
  --brand-soft: #e9efff; --on-brand: #ffffff; --brand-glow: rgba(47, 95, 246, .42);
  --accent: #2F5FF6; --accent-rgb: 47, 95, 246;
}
body.proj-brum {
  --brand: #FFC400; --brand-2: #141414; --brand-ink: #141414; --brand-text: #FFC400;
  --brand-soft: #fff4cc; --on-brand: #141414; --brand-glow: rgba(255, 196, 0, .30);
  --st-ok: #1E9E5A; --st-warn: #F28C0F; --st-bad: #C62A22; --paper: #F5F3EE;
  --accent: #141414; --accent-rgb: 20, 20, 20;
}

/* El menú es una píldora clara: sobre un hero oscuro necesita más opacidad */
body.proj-page .nav-inner { background: rgba(255, 255, 255, 0.94); }
body.proj-page .icon-badge { background: var(--brand-soft); color: var(--brand-ink); }
body.proj-page ::selection { background: var(--brand); color: var(--on-brand); }

/* ---------- Botones de marca ---------- */
.btn-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 14px 34px var(--brand-glow); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 18px 42px var(--brand-glow); }
.btn-dark { background: var(--brand-2); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Estado (en desarrollo / disponible) ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .8rem; border-radius: 99px;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { background: #e6f8ec; color: #1c7c3a; }
.status-dev { background: #fff0cf; color: #8a5a00; }

/* ---------- HERO de marca ---------- */
.proj-hero {
  position: relative; overflow: clip; color: #c9d3ea;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem)); padding-bottom: clamp(4.5rem, 9vw, 7rem);
  background:
    radial-gradient(900px 480px at 88% -8%, var(--brand-glow), transparent 62%),
    linear-gradient(180deg, var(--brand-2), var(--brand-2));
}
.proj-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%); mask-image: linear-gradient(180deg, #000, transparent 88%);
}
.proj-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; pointer-events: none;
  height: clamp(28px, 5vw, 70px); background: var(--bg); clip-path: polygon(100% 100%, 0 100%, 100% 0);
}
.proj-hero h1, .proj-hero h2 { color: #fff; }
.proj-hero .eyebrow { color: var(--brand-text); }
.proj-hero .eyebrow::before { background: var(--brand-text); }
.proj-hero .lede { color: #c9d3ea; }
.proj-hero .btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #fff; }
.proj-hero .breadcrumb { justify-content: flex-start; color: #9fb0cf; margin-bottom: 1.1rem; }
.proj-hero .breadcrumb a { color: #c9d3ea; }
.proj-hero .breadcrumb a:hover { color: var(--brand-text); }
.proj-hero .breadcrumb span { color: #7f90b3; }
.proj-hero-grid { position: relative; z-index: 2; display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 960px) { .proj-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.proj-hero .h1-hero { max-width: 20ch; font-size: clamp(2rem, 4.8vw, 3.4rem); }
.proj-hero .hero-lede { margin-block: 1.2rem 1.9rem; max-width: 54ch; }
.proj-logo { display: block; height: 46px; width: auto; margin-bottom: 1.3rem; }
.proj-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.7rem; font-size: .86rem; font-weight: 600; color: #9fb0cf; }
.proj-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.proj-meta svg { width: 16px; height: 16px; color: var(--brand-text); flex-shrink: 0; }
.mock-note { margin-top: .9rem; text-align: center; font-size: .75rem; color: #8fa0c4; }

/* ---------- Mock: WhatsApp + seguimiento (Sintakta) ---------- */
.mock-wa { position: relative; display: grid; gap: 1rem; max-width: 430px; margin-inline: auto; }
.wa-phone { border-radius: 26px; padding: 14px; background: #0b1020; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.wa-head { display: flex; align-items: center; gap: .7rem; padding: .5rem .4rem .8rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand); }
.wa-head b { display: block; color: #fff; font-size: .92rem; line-height: 1.2; }
.wa-head small { color: #8fa4c9; font-size: .74rem; }
.wa-chat { padding: .9rem .2rem .3rem; }
.wa-bubble { position: relative; max-width: 88%; padding: .7rem .85rem .9rem; border-radius: 4px 14px 14px 14px; background: #1b2540; color: #e6ecfb; font-size: .86rem; line-height: 1.4; }
.wa-bubble .wa-link { display: block; margin-top: .55rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.12); color: #7fa3ff; font-weight: 700; text-align: center; }
.wa-bubble time { position: absolute; right: .6rem; bottom: .25rem; font-size: .66rem; color: #8fa4c9; }
.tracker { border-radius: 20px; padding: 1.1rem 1.2rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.tr-row { display: flex; align-items: center; gap: .65rem; padding: .35rem 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c9d3ea; }
.tr-row i { width: 10px; height: 10px; border-radius: 50%; background: #7fa3ff; }
.tr-row.is-done i { background: #25d366; box-shadow: 0 0 0 4px rgba(37,211,102,.2); }
.tr-row time { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.tr-bar { height: 8px; margin: .8rem 0 .5rem; border-radius: 8px; background: rgba(255,255,255,.14); overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 87%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), #8fb0ff); }
.tracker p { margin: 0; font-size: .85rem; color: #c9d3ea; }
.tracker p b { color: #fff; }

/* ---------- Mock: Pasaporte HSE + verificación (BRUM) ---------- */
.mock-brum { position: relative; display: grid; gap: 1.1rem; max-width: 470px; margin-inline: auto; align-items: end; }
@media (min-width: 520px) { .mock-brum { grid-template-columns: 1.15fr .85fr; } }
.passport { border-radius: 20px; overflow: hidden; background: var(--paper); color: #141414; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.pp-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; background: #141414; border-bottom: 4px solid #FFC400; }
.pp-head img { height: 22px; width: auto; }
.pp-head span { font-size: .62rem; font-weight: 800; letter-spacing: .08em; color: #FFC400; }
.pp-body { padding: 1rem; display: grid; gap: .8rem; }
.pp-id { display: flex; gap: .8rem; align-items: center; }
.pp-photo { flex: 0 0 52px; height: 62px; border-radius: 10px; display: grid; place-items: center; font-size: .6rem; color: #8a867c; background: #dedad0; }
.pp-id b { display: block; font-size: .98rem; line-height: 1.2; }
.pp-id code, .pp-qr code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .72rem; color: #55524b; }
.pp-id small { display: block; font-size: .72rem; color: #6b675d; }
.pp-list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.pp-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; font-weight: 600; }
.pill { padding: .2rem .6rem; border-radius: 99px; font-size: .68rem; font-weight: 800; color: #fff; white-space: nowrap; }
.pill.ok { background: var(--st-ok); } .pill.warn { background: var(--st-warn); } .pill.bad { background: var(--st-bad); }
.pp-qr { display: flex; gap: .7rem; align-items: center; padding-top: .7rem; border-top: 1px dashed #c9c5b9; }
.pp-qr > span { flex: 0 0 46px; height: 46px; border: 2px solid #141414; border-radius: 8px; display: grid; place-items: center; font-size: .6rem; font-weight: 800; }
.pp-qr b { display: block; font-size: .78rem; line-height: 1.2; }
.pp-qr small { display: block; font-size: .66rem; color: #6b675d; }
.verify-phone { border-radius: 24px; padding: 8px; background: #1f1f1f; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.verify-screen { border-radius: 18px; padding: 1.1rem .8rem 1rem; text-align: center; color: #141414; background: var(--st-ok); }
.verify-top { display: flex; align-items: center; justify-content: space-between; margin: -.2rem 0 .9rem; font-size: .6rem; color: rgba(20,20,20,.7); font-weight: 700; }
.verify-top img { height: 14px; width: auto; filter: brightness(0); }
.verify-check { width: 54px; height: 54px; margin: 0 auto .5rem; }
.verify-screen strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1; }
.verify-screen p { margin: .3rem 0 .2rem; font-weight: 700; font-size: .78rem; }
.verify-screen small { display: block; font-size: .62rem; color: rgba(20,20,20,.75); }

/* ---------- Secciones comunes ---------- */
.proj-section-head { max-width: 62ch; }
.mod-grid { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
@media (min-width: 720px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mod-grid { grid-template-columns: repeat(3, 1fr); } }
.mod-card h3 { font-size: 1.08rem; }
.mod-card p { margin-top: .45rem; color: var(--ink-mute); font-size: .93rem; }

.pair-grid { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 960px) { .pair-grid { grid-template-columns: repeat(3, 1fr); } }
.pair { padding: 1.4rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pair .before { color: var(--ink-faint); font-size: .92rem; text-decoration: line-through; text-decoration-color: rgba(87,105,138,.45); }
.pair .arrow { display: block; margin: .5rem 0; font-size: 1.2rem; color: var(--brand-ink); }
.pair .after { font-weight: 700; color: var(--ink); }

ol.steps { display: grid; gap: 1rem; margin: 2.2rem 0 0; padding: 0; list-style: none; counter-reset: st; }
ol.steps li {
  counter-increment: st; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.2rem 1.3rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
ol.steps li::before {
  content: counter(st); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; background: var(--brand); color: var(--on-brand);
}
ol.steps h3 { font-size: 1.05rem; }
ol.steps p { margin-top: .3rem; color: var(--ink-mute); font-size: .93rem; }
@media (min-width: 960px) { ol.steps.is-wide { grid-template-columns: repeat(2, 1fr); } }

.check-grid { display: grid; gap: .9rem; margin-top: 2rem; }
@media (min-width: 720px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
.check-item { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.check-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-ink); margin-top: 2px; }
.check-item b { display: block; color: var(--ink); }
.check-item span { display: block; margin-top: .2rem; color: var(--ink-mute); font-size: .92rem; }

/* Banda de marca (CTA) */
.cta-brand { border-radius: var(--radius-lg); padding: clamp(2.2rem, 6vw, 4rem); text-align: center; background: var(--brand-2); color: #c9d3ea; position: relative; overflow: hidden; }
.cta-brand::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 50% 0, var(--brand-glow), transparent 70%); }
.cta-brand > * { position: relative; }
.cta-brand h2 { color: #fff; margin-bottom: .9rem; }
.cta-brand p { max-width: 48ch; margin: 0 auto 1.8rem; }
.cta-brand.is-yellow { background: var(--brand); color: var(--on-brand); }
.cta-brand.is-yellow::before { background: none; }
.cta-brand.is-yellow h2, .cta-brand.is-yellow p { color: var(--on-brand); }
.cta-brand .btn-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta-brand .btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #fff; }

/* ---------- Video ---------- */
.video-layout { display: grid; gap: 1.8rem; margin-top: 2rem; align-items: start; }
@media (min-width: 960px) { .video-layout { grid-template-columns: 1.5fr 1fr; gap: 2.4rem; } }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md); background: #000; box-shadow: var(--shadow-lg); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-desc { color: var(--ink-mute); }
.video-desc strong { color: var(--ink); }
.chap-title { margin-top: 1.2rem; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--ink); }
.chap-list { display: grid; gap: .3rem; margin-top: .6rem; padding: 0; list-style: none; }
.chap-list a { display: flex; gap: .8rem; align-items: baseline; padding: .55rem .7rem; border-radius: 10px; color: var(--ink-soft); font-size: .93rem; transition: background .2s var(--ease-out); }
.chap-list a:hover { background: var(--brand-soft); }
.chap-list time { flex: 0 0 3rem; font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--brand-ink); }

/* ---------- BRUM: 5:40 a. m. y Carpeta Muerta ---------- */
.dark-band { position: relative; overflow: clip; background: #141414; color: #c9c5b9; }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .eyebrow { color: #FFC400; } .dark-band .eyebrow::before { background: #FFC400; }
.dark-band .lede { color: #c9c5b9; }
.scene-gate { display: grid; gap: 2rem; align-items: center; margin-top: 2rem; }
@media (min-width: 960px) { .scene-gate { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.scene-gate p { font-size: 1.08rem; line-height: 1.7; }
.clock { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: clamp(2.6rem, 8vw, 4.6rem); color: #FFC400; letter-spacing: -.02em; line-height: 1; }
.gate-card { padding: 1.4rem; border-radius: 18px; background: #1f1f1f; border: 1px solid rgba(255,255,255,.1); }
.gate-card .clock { margin-bottom: 1rem; }
.gate-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .95rem; color: #e8e5db; }
.gate-row code { font-family: ui-monospace, Consolas, monospace; color: #9a968a; font-size: .8rem; }
.gate-stamp { margin-top: 1rem; padding: .7rem 1rem; border-radius: 12px; text-align: center; font-family: var(--display); font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--st-bad); }
.q-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .q-grid { grid-template-columns: repeat(3, 1fr); } }
.q-card { padding: 1.3rem; border-radius: 16px; background: #1f1f1f; border: 1px solid rgba(255,255,255,.1); }
.q-card h3 { font-size: 1.05rem; line-height: 1.3; }
.q-card .tag-no { display: inline-block; margin-top: .9rem; padding: .22rem .65rem; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #c9c5b9; background: rgba(255,255,255,.08); }
.belief { margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-left: 4px solid #FFC400; background: rgba(255,196,0,.08); border-radius: 0 12px 12px 0; color: #fff; font-weight: 600; }
.belief s { color: #9a968a; font-weight: 500; }

.piece-grid { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
@media (min-width: 960px) { .piece-grid { grid-template-columns: repeat(3, 1fr); } }
.piece { position: relative; padding: 1.5rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.piece .n { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: .9rem; border-radius: 10px; font-family: var(--display); font-weight: 800; background: var(--brand); color: var(--on-brand); }
.piece h3 { font-size: 1.15rem; }
.piece p { margin-top: .5rem; color: var(--ink-mute); font-size: .94rem; }

/* Tabla sin / con */
table.vs { width: 100%; margin-top: 2rem; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.vs th { padding: 1rem 1.2rem; text-align: left; font-family: var(--display); font-weight: 800; font-size: .95rem; background: var(--gray-100); color: var(--ink); }
table.vs th:last-child { background: var(--brand); color: var(--on-brand); }
table.vs td { padding: 1rem 1.2rem; vertical-align: top; border-top: 1px solid var(--line); font-size: .94rem; }
table.vs td:first-child { color: var(--ink-mute); }
table.vs td:last-child { font-weight: 600; color: var(--ink); background: rgba(255, 196, 0, .07); }
@media (max-width: 719px) {
  table.vs thead { display: none; }
  table.vs, table.vs tbody, table.vs tr, table.vs td { display: block; width: 100%; }
  table.vs tr { border-top: 1px solid var(--line); }
  table.vs tr:first-child { border-top: 0; }
  table.vs td { border-top: 0; padding: .8rem 1.1rem; }
  table.vs td::before { content: attr(data-label); display: block; margin-bottom: .2rem; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
  table.vs td:last-child::before { color: var(--brand-ink); }
}

.role-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .role-grid { grid-template-columns: repeat(4, 1fr); } }
.role-grid h3 { font-size: 1.05rem; }
.role-grid small { display: block; margin: .15rem 0 .6rem; font-weight: 700; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); }
.role-grid p { color: var(--ink-mute); font-size: .92rem; }

.where-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .where-grid { grid-template-columns: repeat(3, 1fr); } }
.where { padding: 1.4rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.where .big { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.where h3 { margin-top: .6rem; font-size: 1rem; }
.where p { margin-top: .4rem; color: var(--ink-mute); font-size: .92rem; }

.note-box { margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-md); background: var(--brand-soft); border: 1px solid rgba(20,20,20,.08); color: var(--ink-soft); }
.note-box b { color: var(--ink); }

/* ---------- Hub de proyectos ---------- */
.pcards { display: grid; gap: 1.5rem; margin-top: 2.4rem; }
@media (min-width: 800px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard-brand { position: relative; display: grid; place-items: center; height: 180px; background: var(--b, var(--accent-2)); }
.pcard-brand img { height: 58px; width: auto; max-width: 72%; object-fit: contain; }
.pcard-brand .status-badge { position: absolute; top: 14px; right: 14px; }
.pcard-body { display: flex; flex: 1; flex-direction: column; gap: .8rem; padding: 1.6rem; }
.pcard-body .kicker { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pcard h3 { font-size: 1.35rem; }
.pcard-body > p { color: var(--ink-mute); font-size: .95rem; }
.pcard ul { display: grid; gap: .5rem; margin: .2rem 0 .6rem; padding: 0; list-style: none; }
.pcard li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.pcard li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.pcard .fine { font-size: .78rem; color: var(--ink-faint); }
.pcard .btn { margin-top: auto; align-self: flex-start; }

.thread-grid { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 720px) { .thread-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .thread-grid { grid-template-columns: repeat(4, 1fr); } }
.thread-grid h3 { font-size: 1.05rem; }
.thread-grid p { margin-top: .45rem; color: var(--ink-mute); font-size: .92rem; }
.thread-grid .before { display: block; margin-bottom: .5rem; color: var(--ink-faint); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Bordes en diagonal de la banda oscura (BRUM) ---------- */
.dark-band.edge-t::before, .dark-band.edge-b::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; height: clamp(28px, 5vw, 70px);
}
.dark-band.edge-t::before { top: -1px; background: var(--prev, var(--bg)); clip-path: polygon(0 0, 100% 0, 0 100%); }
.dark-band.edge-b::after { bottom: -1px; background: var(--next, var(--bg)); clip-path: polygon(100% 100%, 0 100%, 100% 0); }
.dark-band .container { position: relative; z-index: 2; }

/* ---------- Móvil: que ningún botón largo empuje el contenido fuera de la pantalla ---------- */
.proj-hero-grid > *, .scene-gate > *, .video-layout > * { min-width: 0; }
@media (max-width: 539px) {
  .proj-hero .hero-actions .btn, .cta-brand .btn-actions .btn { width: 100%; white-space: normal; text-align: center; }
}

/* =============================================================
   Ampliación: Vigía, videos, precios de BRUM y firma TÁCTIKA
   ============================================================= */

/* ---------- Vigía: marca (manual v1) ---------- */
body.proj-vigia {
  --brand: #2F5FF6; --brand-2: #0B1330; --brand-ink: #2F5FF6; --brand-text: #8fb0ff;
  --brand-soft: #E8EEFF; --on-brand: #ffffff; --brand-glow: rgba(47, 95, 246, .42);
  --st-ok: #12B76A; --st-warn: #F5A524; --st-bad: #F04438;
  --accent: #2F5FF6; --accent-rgb: 47, 95, 246;
}
body.proj-vigia main, body.proj-brum main { font-family: var(--sans); }
body.proj-vigia main { --sans: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; --display: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif; }
body.proj-vigia .dark-band { background: #0B1330; color: #c9d3ea; }
body.proj-vigia .dark-band .eyebrow { color: var(--brand-text); }
body.proj-vigia .dark-band .eyebrow::before { background: var(--brand-text); }
body.proj-vigia .dark-band .clock, body.proj-vigia .proj-hero .eyebrow { color: var(--brand-text); }
body.proj-vigia .belief { border-left-color: var(--brand); background: rgba(47, 95, 246, .16); }
body.proj-vigia .gate-card { background: #121c44; }
.chip-bad { margin-top: 1.2rem; }
.chip-bad code { display: inline-block; padding: .5rem 1rem; border-radius: 99px; background: rgba(240, 68, 56, .16); color: #ff8f86; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: .86rem; font-weight: 700; }

.mock-vigia { display: grid; gap: 1rem; max-width: 430px; margin-inline: auto; }
.vg-card { padding: 1.2rem; border-radius: 22px; background: #121c44; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.vg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; color: #8fa4c9; font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.vg-top b { color: #fff; font-weight: 800; }
.vg-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.vg-list li { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.vg-list i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.vg-list i.ok { background: #12B76A; } .vg-list i.warn { background: #F5A524; } .vg-list i.bad { background: #F04438; } .vg-list i.idle { background: #8a96b8; }
.vg-list code { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: .9rem; font-weight: 700; color: #fff; }
.vg-list span { margin-left: auto; font-size: .8rem; font-weight: 800; }
.vg-list span.ok { color: #35d492; } .vg-list span.warn { color: #F5A524; } .vg-list span.bad { color: #ff7b72; } .vg-list span.idle { color: #9aa6c4; }
.vg-alert { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 16px; color: #fff; background: rgba(240,68,56,.16); border: 1px solid rgba(240,68,56,.5); box-shadow: 0 20px 44px rgba(0,0,0,.35); }
.vg-alert b { display: block; font-size: .92rem; }
.vg-alert small { display: block; margin-top: .1rem; color: #ffb9b3; font-size: .78rem; line-height: 1.4; }
.vg-dot { flex: none; width: 12px; height: 12px; margin-top: .3rem; border-radius: 50%; background: #F04438; box-shadow: 0 0 0 5px rgba(240,68,56,.25); animation: vgPulse 2s ease-in-out infinite; }
@keyframes vgPulse { 50% { box-shadow: 0 0 0 9px rgba(240,68,56,0); } }
@media (prefers-reduced-motion: reduce) { .vg-dot { animation: none; } }

.role-grid.is-3 small { margin-bottom: .4rem; }
@media (min-width: 960px) { .role-grid.is-3 { grid-template-columns: repeat(3, 1fr); } }
.role-grid.is-5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.state-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .state-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .state-grid { grid-template-columns: repeat(4, 1fr); } }
.state-card { --c: #8a96b8; padding: 1.3rem; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); box-shadow: var(--shadow-sm); }
.state-card.is-ok { --c: #12B76A; } .state-card.is-warn { --c: #F5A524; } .state-card.is-bad { --c: #F04438; } .state-card.is-idle { --c: #8a96b8; }
.state-dot { display: block; width: 14px; height: 14px; margin-bottom: .7rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.state-card h3 { font-size: 1.1rem; }
.state-card p { margin-top: .4rem; color: var(--ink-mute); font-size: .92rem; }

.vg-flow { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 960px) { .vg-flow { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }
.vg-flow > * { min-width: 0; }
.vg-chat { display: grid; gap: .6rem; }
.wa-bubble.is-me { margin-left: auto; border-radius: 14px 4px 14px 14px; background: var(--brand); color: #fff; padding-bottom: 1.1rem; }
.status-grid { display: grid; gap: 1.1rem; margin-top: 2rem; }
@media (min-width: 800px) { .status-grid { grid-template-columns: repeat(2, 1fr); } }
.status-grid ul { display: grid; gap: .65rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.status-grid li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.status-grid li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand-ink); }
.fine-note { margin-top: 1rem; font-size: .9rem; color: var(--ink-mute); }

/* ---------- Firma de autoría (TÁCTIKA) ---------- */
.maker { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; justify-content: center; max-width: 64ch; margin: 1.8rem auto 0; text-align: center; font-size: .86rem; color: var(--ink-mute); }
.maker b { color: var(--ink); }
.maker a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.maker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
@media (max-width: 639px) { .maker .dot { display: none; } .maker { flex-direction: column; } }

/* ---------- Videos de Sintakta ---------- */
.vid-title { margin-bottom: .6rem; font-size: 1.25rem; line-height: 1.3; }
.vid-grid { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
@media (min-width: 800px) { .vid-grid { grid-template-columns: repeat(3, 1fr); } }
.vid-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.vid-card .video-frame { border-radius: 0; box-shadow: none; }
.vid-body { display: grid; gap: .5rem; align-content: start; padding: 1.2rem 1.3rem 1.4rem; }
.vid-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); }
.vid-body h3 { font-size: 1.02rem; line-height: 1.3; }
.vid-body p { font-size: .9rem; color: var(--ink-mute); }
.vid-chap summary { cursor: pointer; padding: .3rem 0; font-size: .88rem; font-weight: 700; color: var(--brand-ink); }
.vid-chap .chap-list a { padding: .4rem .5rem; font-size: .86rem; }
.vid-chap .chap-list time { flex-basis: 2.6rem; }
.lite-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: #000; cursor: pointer; }
.lite-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s var(--ease-out), transform .5s var(--ease-out); }
.lite-play:hover img { opacity: 1; transform: scale(1.03); }
.lite-play:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.play-ico { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.play-ico svg { width: 28px; height: 28px; margin-left: 3px; }
.lite-dur { position: absolute; right: .6rem; bottom: .6rem; padding: .15rem .5rem; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: .76rem; font-weight: 700; }

/* ---------- BRUM: precios ---------- */
.price-grid { display: grid; gap: 1.6rem; max-width: 900px; margin-top: 2.4rem; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.9rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.price-card h3 { font-size: 1.25rem; }
.price-card.is-featured { border: 2px solid var(--brand); background: linear-gradient(180deg, #fffbe9, #fff 55%); box-shadow: 0 24px 60px var(--brand-glow); }
.price-badge { position: absolute; top: -14px; right: 1.4rem; padding: .3rem .9rem; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.price-sub { color: var(--ink-mute); font-size: .94rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; margin: .3rem 0 0; }
.price strong { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1; color: var(--ink); }
.price span { color: var(--ink-mute); font-weight: 600; }
.price s { flex-basis: 100%; color: var(--ink-faint); font-size: 1.05rem; }
.price-eq { font-size: .92rem; font-weight: 700; color: var(--ink); }
.price-list { display: grid; gap: .55rem; margin: .7rem 0 1.2rem; padding: 0; list-style: none; }
.price-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.price-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand-ink); }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; white-space: normal; text-align: center; }
.price-note { max-width: 64ch; margin-top: 1.5rem; font-size: .92rem; color: var(--ink-mute); }
.price-note b { color: var(--ink); }
.hero-sub-link { margin-top: 1rem; font-size: .9rem; }
.hero-sub-link a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- BRUM: tipografía de marca (Archivo Expanded, Plus Jakarta Sans, JetBrains Mono) ---------- */
body.proj-brum main { --sans: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; --display: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif; }
body.proj-brum .proj-hero h1, body.proj-brum .h2-section, body.proj-brum .cta-brand h2 {
  font-family: "Archivo", "Plus Jakarta Sans", sans-serif; font-stretch: 125%; font-weight: 900; font-style: italic;
  text-transform: uppercase; line-height: 1.1; letter-spacing: 0;
}
body.proj-brum .proj-hero .h1-hero { max-width: 22ch; font-size: clamp(1.55rem, 3.7vw, 2.55rem); }
body.proj-brum .h2-section { max-width: 26ch !important; font-size: clamp(1.35rem, 3vw, 2.15rem); }
body.proj-brum .cta-brand h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
body.proj-brum .proj-hero h1 em { font-style: italic; color: #FFC400; }
body.proj-brum code, body.proj-brum .clock, body.proj-brum .gate-row code, body.proj-brum .pp-id code, body.proj-brum .pp-qr code, body.proj-brum .chap-list time {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* =============================================================
   Contenido orgánico para negocios (colores de marlonescobar.com)
   ============================================================= */
body.contenido-page {
  --brand: #2f6fed; --brand-2: #0a1a33; --brand-ink: #2f6fed; --brand-text: #9fc0ff;
  --brand-soft: #e9f0ff; --on-brand: #ffffff; --brand-glow: rgba(47, 111, 237, .42);
}
body.contenido-page .proj-hero h1 em { font-style: normal; color: var(--brand-text); }
body.contenido-page .h2-section { max-width: 24ch; }

.reel-mock { max-width: 430px; margin-inline: auto; padding: 1.4rem; border-radius: 26px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.reel-head { margin-bottom: 1rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: #fff; }
.reel-script { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.reel-script li { padding: .95rem 1.1rem; border-radius: 16px; background: #fff; color: var(--ink-soft); }
.reel-script span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); }
.reel-script b { display: block; margin-top: .15rem; color: var(--ink); }
.reel-script p { margin-top: .2rem; font-size: .9rem; line-height: 1.45; }

@media (min-width: 1100px) { .mod-grid.is-4 { grid-template-columns: repeat(4, 1fr); } }

.duo-grid { display: grid; gap: 1.4rem; max-width: 820px; margin-top: 2.2rem; }
@media (min-width: 720px) { .duo-grid { grid-template-columns: repeat(2, 1fr); } }
.person { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.person-photo { display: flex; align-items: flex-end; justify-content: center; height: 360px; padding-top: 1rem; overflow: hidden; background: linear-gradient(160deg, #e9f0ff, #cfdcf7); }
.person-photo img { width: auto; max-width: none; height: 115%; object-fit: contain; object-position: bottom; }
.person-initials { align-self: center; display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; background: var(--brand-2); color: #fff; font-family: var(--display); font-weight: 800; font-size: 2.8rem; }
.person-body { padding: 1.4rem 1.5rem 1.6rem; }
.person-body small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); }
.person-body h3 { margin-top: .3rem; font-size: 1.3rem; }
.person-body p { margin-top: .5rem; color: var(--ink-mute); font-size: .95rem; }

.biz-list { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .biz-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .biz-list { grid-template-columns: repeat(4, 1fr); } }
.biz-list li { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.biz-list svg { flex: none; width: 20px; height: 20px; color: var(--brand-ink); }

/* --- Foto de Jessica: portada, tarjeta de equipo y panel del guion --- */
.hero-person { position: relative; max-width: 430px; margin: 0 auto; overflow: hidden; border-radius: 28px; background: #d3e2ee; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.hero-person img { display: block; width: 100%; height: auto; }
.hero-person figcaption { position: absolute; left: 14px; bottom: 14px; padding: .75rem 1.1rem; border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 14px 34px rgba(10,26,51,.25); }
.hero-person figcaption b { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; color: var(--ink); }
.hero-person figcaption span { display: block; font-size: .8rem; color: var(--ink-mute); }
.contenido-page .person-photo { height: auto; aspect-ratio: 7 / 8; padding-top: 0; }
.person-photo img.is-full { width: 100%; max-width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.reel-panel { padding: clamp(.6rem, 2vw, 1.2rem); border-radius: var(--radius-lg); background: var(--brand-2); }
.reel-panel .reel-mock { box-shadow: none; }
