/* Pentest C360 — Portada (static/index.html). Manual de Marca v1.0, cap. 09.
   Recorrido ScrollWorld (midudev/mcp-higgsfield-landing vía KANSA). Sin JavaScript se lee
   entero; con movimiento reducido, sin paralaje ni escalado. */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--pc-noche); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--pc-sans); color: var(--pc-humo); background: var(--pc-noche); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--pc-cian); }
h1, h2, h3 { font-family: var(--pc-sans); color: #fff; letter-spacing: -.02em; margin: 0; }
code { font-family: var(--pc-mono); font-size: .88em; background: rgba(6, 182, 212, .1); color: var(--pc-humo); padding: .1em .4em; border-radius: .3em; }

/* ── Cabecera ───────────────────────────────────────────────────────────── */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem); background: rgba(10, 14, 26, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--pc-borde-oscuro); }
.cab-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); font-size: .92rem; }
.cab-nav > a:not(.pc-btn) { color: var(--pc-bruma); text-decoration: none; font-weight: 500; }
.cab-nav > a:not(.pc-btn):hover { color: #fff; }
.cab-nav .cab-cta { min-height: 40px; padding: .5rem 1.1rem; font-size: .88rem; }
@media (max-width: 860px) { .cab-nav > a:not(.pc-btn) { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 96px clamp(1rem, 6vw, 6rem) 72px;
  background: linear-gradient(180deg, var(--pc-marino) 0%, var(--pc-noche) 70%); }
.hero-fondo { position: absolute; inset: 0; }
.hero-capa { position: absolute; inset: -6% 0; width: 100%; height: 112%; will-change: transform; }
.hero-texto { position: relative; max-width: 40rem; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; line-height: 1.02; }
.firma-texto { background: var(--pc-firma); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--pc-humo); max-width: 34rem; margin: 1.4rem 0 2rem; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-capas { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-family: var(--pc-mono); font-size: .78rem; color: var(--pc-bruma); }
.hero-capas li { display: inline-flex; align-items: center; gap: .5rem; }
.punto { width: .6rem; height: .6rem; border-radius: 50%; }
.punto-a { background: var(--pc-cian); } .punto-b { background: var(--pc-azul); } .punto-c { background: var(--pc-violeta); }
.hero-sigue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); margin: 0; font-family: var(--pc-mono); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--pc-cian); }
@media (max-width: 720px) {
  .hero { align-items: flex-end; padding-bottom: 88px; }
  .hero-capa { opacity: .55; }
}

/* ── Recorrido (ScrollWorld) ────────────────────────────────────────────── */
.world { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--pc-noche); --focus-x: 50%; }
.frames, .frame { position: absolute; inset: 0; }
.frame { will-change: opacity, transform; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-x) 50%; }
.js .frame-diferido { display: none; }
.velo { position: absolute; pointer-events: none; }
.velo-arriba { inset: 0 0 auto; height: 10rem; background: linear-gradient(180deg, rgba(10, 14, 26, .75), transparent); }
.velo-lado { inset: 0; background: linear-gradient(0deg, var(--pc-noche) 18%, rgba(10, 14, 26, .6) 55%, transparent 85%); }
@media (min-width: 1024px) { .velo-lado { background: linear-gradient(90deg, rgba(10, 14, 26, .95) 0%, rgba(10, 14, 26, .5) 42%, transparent 72%); } }

.rail { position: absolute; top: 50%; right: clamp(1rem, 2.5vw, 2rem); transform: translateY(-50%); display: none; }
@media (min-width: 1024px) { .rail { display: block; } }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; position: relative; z-index: 1; }
.rail a { display: flex; align-items: center; gap: .75rem; height: 1.5rem; text-decoration: none; }
.rail-label { opacity: 0; transform: translateX(.5rem); transition: opacity .7s var(--pc-ease), transform .7s var(--pc-ease);
  font-size: .75rem; color: var(--pc-humo); background: rgba(10, 14, 26, .75); padding: .2rem .7rem; border-radius: var(--pc-r-pill); border: 1px solid var(--pc-borde-oscuro); white-space: nowrap; }
.rail-dot { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(230, 237, 243, .5); transition: background-color .7s, transform .7s; }
.rail a:hover .rail-label, .rail a:focus-visible .rail-label, .rail a[aria-current="true"] .rail-label { opacity: 1; transform: none; }
.rail a[aria-current="true"] .rail-dot { background: var(--pc-cian); transform: scale(1.5); }
.rail a:focus-visible { outline: 2px solid var(--pc-cian); outline-offset: 3px; border-radius: .3rem; }
.rail-linea { position: absolute; top: .75rem; bottom: .75rem; right: .25rem; width: 1px; background: rgba(230, 237, 243, .2); }
.rail-linea span { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: var(--pc-cian); }

.stops { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100lvh; }
.stop { min-height: 200svh; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.stop-body { pointer-events: auto; position: sticky; bottom: 0; max-width: 44rem; padding: 8rem clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vh, 4rem); }
.stop h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.06; margin-bottom: 1rem; }
.stop p { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(230, 237, 243, .9); max-width: 34rem; margin: 0 0 1rem; }
.stop .pc-eyebrow { margin-top: 1rem; }
.stop-num { display: flex; align-items: center; gap: .6rem; font-family: var(--pc-mono); font-size: .74rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--pc-bruma) !important; }
.stop-dot { width: .3rem; height: .3rem; border-radius: 50%; background: var(--pc-cian); }
.metricas, .sevs, .codigo { display: flex; flex-wrap: wrap; gap: .5rem; }
.metricas span { font-family: var(--pc-mono); font-weight: 700; font-size: .85rem; padding: .3rem .8rem; border-radius: .4rem; border: 1px solid rgba(6, 182, 212, .45); color: #fff; background: rgba(10, 14, 26, .55); }
.codigo { flex-direction: column; align-items: flex-start; }
.codigo code { background: rgba(10, 14, 26, .8); border: 1px solid var(--pc-borde-oscuro-fuerte); font-size: .82rem; padding: .35rem .7rem; }
.stop .pc-btn { margin-top: .6rem; }

.js .stop-body > * { opacity: 0; transform: translateY(2rem); transition: opacity .7s var(--pc-ease), transform .7s var(--pc-ease); }
.js .stop.is-current .stop-body > *, .js .stop-body:focus-within > * { opacity: 1; transform: none; transition-duration: 1s; }
.stop.is-current .stop-body > :nth-child(2) { transition-delay: 60ms; }
.stop.is-current .stop-body > :nth-child(3) { transition-delay: 120ms; }
.stop.is-current .stop-body > :nth-child(4) { transition-delay: 180ms; }
.stop.is-current .stop-body > :nth-child(5) { transition-delay: 240ms; }
.stop.is-current .stop-body > :nth-child(6) { transition-delay: 300ms; }
.js .stop:not(.is-current) .stop-body:not(:focus-within) { pointer-events: none; }

/* ── Bloques ────────────────────────────────────────────────────────────── */
.bloque { padding: clamp(4.5rem, 10vw, 8rem) clamp(1rem, 5vw, 4rem); }
.bloque-in { max-width: 1180px; margin: 0 auto; }
.bloque h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.08; margin-bottom: 2.4rem; }
.bloque-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2.4rem; }
.bloque-cab h2 { margin-bottom: 0; }
.tarjetas { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .tarjetas.tres { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { background: linear-gradient(160deg, var(--pc-tinta), var(--pc-noche)); border: 1px solid var(--pc-borde-oscuro); border-radius: var(--pc-r-card); padding: 1.8rem; }
.tarjeta h3 { font-size: 1.3rem; font-weight: 700; margin: 1rem 0 .5rem; }
.tarjeta p { margin: 0 0 .8rem; color: var(--pc-humo); }
.tarjeta .herr { font-family: var(--pc-mono); font-size: .78rem; color: var(--pc-bruma); margin: 0; }
.ico { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: .8rem; background: rgba(6, 182, 212, .12); fill: none; stroke: var(--pc-cian); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bloque-capas { background: linear-gradient(180deg, var(--pc-noche), var(--pc-marino) 50%, var(--pc-noche)); }
.capas { display: grid; gap: 1rem; }
@media (min-width: 900px) { .capas { grid-template-columns: repeat(3, 1fr); } }
.capa { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.6rem; border-radius: var(--pc-r-card); background: rgba(17, 24, 39, .7); border: 1px solid var(--pc-borde-oscuro); border-top: 3px solid var(--c); }
.capa-a { --c: var(--pc-cian); } .capa-b { --c: var(--pc-azul); } .capa-c { --c: var(--pc-violeta); }
.capa-letra { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--pc-mono); font-weight: 700; font-size: 1.2rem; color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
.capa h3 { font-size: 1.25rem; font-weight: 700; }
.capa .quien { font-family: var(--pc-mono); font-size: .78rem; color: var(--pc-bruma); margin: .2rem 0 .7rem; }
.capa p { margin: 0; }

.dos-col { display: grid; gap: 1rem 4rem; }
@media (min-width: 900px) { .dos-col { grid-template-columns: 1fr 1.2fr; } }
.ia-texto p { font-size: 1.08rem; margin: 0 0 1.1rem; }
.ia-texto .nota { border-left: 3px solid var(--pc-cian); padding-left: 1rem; color: var(--pc-bruma); font-size: 1rem; }

.blog-lista { display: grid; gap: 1.2rem; min-height: 12rem; }
@media (min-width: 820px) { .blog-lista { grid-template-columns: repeat(3, 1fr); } }
.blog-vacio { color: var(--pc-bruma); margin: 0; }
.post { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem; border-radius: var(--pc-r-card); background: var(--pc-tinta); border: 1px solid var(--pc-borde-oscuro); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--pc-ease); }
.post:hover { border-color: rgba(6, 182, 212, .5); transform: translateY(-3px); }
.post:focus-visible { outline: 2px solid var(--pc-cian); outline-offset: 3px; }
.post time { font-family: var(--pc-mono); font-size: .75rem; color: var(--pc-bruma); }
.post h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.post p { margin: 0; font-size: .92rem; color: var(--pc-bruma); }

.final { padding: clamp(5rem, 12vw, 9rem) 1rem; text-align: center; background: radial-gradient(60% 70% at 50% 100%, rgba(59, 130, 246, .18), transparent 70%); }
.final-in { max-width: 40rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.final-simbolo { width: 64px; height: 64px; margin-bottom: 1.6rem; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; }
.final p { color: var(--pc-humo); font-size: 1.1rem; margin: 1rem 0 2rem; }
.final .hero-acciones { justify-content: center; }

.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s var(--pc-ease), transform .8s var(--pc-ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .stop-body > *, .js [data-reveal] { transform: none !important; transition: opacity .3s linear !important; }
  .hero-capa { will-change: auto; }
  .post, .post:hover { transform: none; transition: none; }
}

/* «Seguridad comprobada» (kit «confianza y recorrido», 25-oct-2026) con la paleta del Manual v1.0 (tokens-v1.css). */
.sc { --sc-texto: var(--pc-humo); --sc-tenue: var(--pc-bruma); --sc-acento: var(--pc-cian); --sc-sobre-acento: var(--pc-noche);
      --sc-tarjeta: var(--pc-tinta); --sc-borde: var(--pc-pizarra); }
.seccion-sc .sc-lead { color: var(--pc-bruma); max-width: 52rem; }
.seccion-sc .sc-grid { margin-top: 1.2rem; }
.seccion-sc .sc-nota-pie { color: var(--pc-bruma); font-size: .9rem; margin-top: 1.2rem; }
.seccion-sc a, .hero-recorrido a { color: var(--pc-cian); }
.hero-recorrido { margin: 1rem 0 0; font-size: .95rem; }
