/* ============================================================
   Wemvy Landing V4 — "Editorial Inmersivo + Sistema Vivo"
   Post-intro rediseñado: tipografía editorial dramática, moods
   de color por sección y componentes técnicos en vivo (simulación,
   mapa conectado, feed mono).
   Convive con landing_v3.css (intro + chat + modal producto):
   solo clases v4-*, cargado después para poder sobreescribir.
   ============================================================ */

:root {
    --v4-cyan: #00c3d4;
    --v4-cyan-soft: #8cf4ff;
    --v4-magenta: #ff52c3;
    --v4-magenta-soft: #ff8bd6;
    --v4-amber: #ffd166;
    --v4-green: #35f59a;
    --v4-ink: #050611;
    --v4-panel: rgba(10, 14, 28, 0.72);
    --v4-paper: #f6f8fb;
    --v4-muted: rgba(246, 248, 251, 0.64);
    --v4-line: rgba(255, 255, 255, 0.11);
    --v4-mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* Sobreescribe el fondo base de .wm-page (landing_v3.css) manteniendo
   sus variables --wm-* que necesita el modal de producto. */
.v4-page.wm-page {
    background: var(--v4-ink);
    color: var(--v4-paper);
    overflow-x: clip;
}

/* Los <a class="wm-btn"> en v4 no están dentro de .wm-site (sí en la home v3). */
.v4-page a.wm-btn {
    text-decoration: none;
}

.v4-page * { box-sizing: border-box; }

/* ---------- Ambiente: glows por mood ---------- */
.v4-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.v4-ambient__glow {
    position: absolute;
    width: 90vw;
    height: 90vw;
    max-width: 1100px;
    max-height: 1100px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    transition: opacity 1.4s ease;
}

.v4-ambient__glow--cyan {
    top: -30%;
    left: -20%;
    background: radial-gradient(circle, rgba(0, 195, 212, 0.2), transparent 65%);
}

.v4-ambient__glow--magenta {
    top: 20%;
    right: -25%;
    background: radial-gradient(circle, rgba(255, 82, 195, 0.18), transparent 65%);
}

.v4-ambient__glow--amber {
    bottom: -30%;
    left: 20%;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.13), transparent 65%);
}

body[data-mood="cyan"] .v4-ambient__glow--cyan { opacity: 1; }
body[data-mood="magenta"] .v4-ambient__glow--magenta { opacity: 1; }
body[data-mood="amber"] .v4-ambient__glow--amber { opacity: 1; }

/* ---------- Layout ---------- */
.v4-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.v4-page > section,
.v4-page > footer { position: relative; z-index: 2; }

.v4-mono { font-family: var(--v4-mono); font-size: 0.76rem; letter-spacing: 0.02em; }

/* ---------- Live dot ---------- */
.v4-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--v4-green);
    box-shadow: 0 0 8px var(--v4-green);
    animation: v4-blink 2.2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes v4-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ---------- Header ---------- */
.v4-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 14px 0;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.v4-header.is-scrolled {
    background: rgba(5, 6, 17, 0.72);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--v4-line);
}

.v4-header__inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.v4-logo { display: inline-flex; align-items: center; }
.v4-logo img { display: block; }

.v4-nav { display: flex; gap: 18px; margin-left: auto; }

.v4-nav a {
    color: var(--v4-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 650;
    transition: color 0.2s;
}

.v4-nav a:hover { color: var(--v4-paper); }

.v4-header__actions { display: flex; align-items: center; }

.v4-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--v4-line);
    border-radius: 10px;
    color: var(--v4-paper);
    font-size: 1.25rem;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---------- Aro partido ---------- */
.v4-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--v4-cyan-soft);
    background: rgba(5, 6, 17, 0.85);
    isolation: isolate;
}

.v4-ring::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, var(--v4-cyan), transparent 35%, var(--v4-magenta), transparent 82%, var(--v4-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: v4-spin 5.6s linear infinite;
    z-index: -1;
}

.v4-ring--sm { width: 40px; height: 40px; font-size: 0.85rem; }
.v4-ring--md { width: 52px; height: 52px; font-size: 1.2rem; }
.v4-ring--lg { width: 86px; height: 86px; font-size: 2rem; }
.v4-ring--xl { width: 96px; height: 96px; font-size: 2.1rem; }

@keyframes v4-spin { to { transform: rotate(360deg); } }

/* ---------- Tipografía editorial ---------- */
.v4-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--v4-cyan);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.74rem;
    font-weight: 700;
}

.v4-kicker {
    margin: 0 0 26px;
    color: var(--v4-cyan);
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 0.76rem;
    font-weight: 700;
}

.v4-display {
    margin: 0 0 42px;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.04;
    font-weight: 880;
    letter-spacing: -0.028em;
}

.v4-display--md { font-size: clamp(2rem, 4.6vw, 3.4rem); }

.v4-grad {
    background: linear-gradient(100deg, var(--v4-cyan) 0%, var(--v4-cyan-soft) 35%, var(--v4-magenta) 85%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: v4-grad-move 7s ease-in-out infinite alternate;
}

@keyframes v4-grad-move {
    from { background-position: 0% 0; }
    to   { background-position: 100% 0; }
}

.v4-lead {
    margin: 0 0 54px;
    max-width: 640px;
    color: var(--v4-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.v4-lead--wide { max-width: 980px; }

.v4-center-head { text-align: center; }
.v4-center-head .v4-lead { margin-inline: auto; }

.v4-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 0;
    color: var(--v4-cyan-soft);
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease, gap 0.2s ease;
}

.v4-text-link:hover { color: var(--v4-paper); gap: 11px; }

/* ---------- Reveals ---------- */
.v4-reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.v4-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Secciones ---------- */
.v4-section {
    padding: 130px 0;
    position: relative;
}

/* ---------- Hero ---------- */
.v4-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 130px 0 90px;
    overflow: hidden;
}

.v4-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.v4-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 6, 17, 0.88) 0%, rgba(5, 6, 17, 0.55) 46%, rgba(5, 6, 17, 0.12) 100%),
        linear-gradient(180deg, rgba(5, 6, 17, 0.4) 0%, transparent 32%, transparent 56%, var(--v4-ink) 100%);
    pointer-events: none;
}

.v4-hero__inner {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 56px;
    align-items: center;
}

.v4-hero__title {
    margin: 0 0 30px;
    font-size: clamp(3rem, 8vw, 6.2rem);
    line-height: 1.0;
    font-weight: 880;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 60px rgba(0, 0, 0, 0.55);
}

.v4-hero__subtitle {
    margin: 0 0 40px;
    max-width: 540px;
    font-size: 1.18rem;
    line-height: 1.65;
    color: rgba(246, 248, 251, 0.84);
}

.v4-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.v4-hero__explore {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 2px;
    color: rgba(246, 248, 251, 0.78);
    border-bottom: 1px solid rgba(25, 211, 230, 0.42);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.v4-hero__explore i {
    color: var(--v4-cyan);
    font-size: 1.08rem;
    transition: transform 0.2s ease;
}

.v4-hero__explore:hover,
.v4-hero__explore:focus-visible {
    color: #fff;
    border-color: var(--v4-cyan);
}

.v4-hero__explore:hover i,
.v4-hero__explore:focus-visible i { transform: translateY(3px); }

.v4-hero__intro-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--v4-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.v4-hero__intro-link:hover { color: var(--v4-paper); }

.v4-hero__scrollcue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    z-index: 2;
}

.v4-hero__scrollcue span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 3px;
    background: var(--v4-cyan);
    animation: v4-cue 1.8s ease-in-out infinite;
}

@keyframes v4-cue {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Simulación en vivo: pipeline holográfico (SIM A) ---------- */
.v4-sim {
    background: var(--v4-panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--v4-line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.v4-sim__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid var(--v4-line);
    color: var(--v4-muted);
}

.v4-sim__counters b {
    color: var(--v4-cyan-soft);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.v4-sim__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--v4-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--v4-green);
    letter-spacing: 0.14em;
}

.v4-sim__stage {
    position: relative;
    height: 260px;
}

.v4-sim__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.v4-sim__core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.v4-sim__core-label { color: var(--v4-cyan-soft); }

.v4-sim__core-halo {
    position: absolute;
    top: 42px;
    left: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 195, 212, 0.35), transparent 70%);
    filter: blur(6px);
    opacity: 0.5;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.v4-sim__core.is-pulse .v4-sim__core-halo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.6);
}

.v4-sim__core.is-pulse .v4-ring { animation: v4-sim-beat 0.4s ease; }

@keyframes v4-sim-beat {
    0% { transform: scale(1); }
    35% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.v4-sim__chips {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    z-index: 2;
}

.v4-sim__chips--in { left: 0; align-items: flex-start; }
.v4-sim__chips--out { right: 0; align-items: flex-end; }

.v4-sim-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--v4-line);
    background: rgba(8, 11, 24, 0.85);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
}

.v4-sim-chip i { color: var(--v4-cyan); }
.v4-sim-chip.is-action { border-color: rgba(53, 245, 154, 0.35); }
.v4-sim-chip.is-action i { color: var(--v4-green); }

.v4-sim__chips--in .v4-sim-chip { animation: v4-sim-chip-in 2.05s ease forwards; }
.v4-sim__chips--out .v4-sim-chip { animation: v4-sim-chip-out 2.05s ease forwards; }

@keyframes v4-sim-chip-in {
    0% { opacity: 0; transform: translateX(-26px); }
    16% { opacity: 1; transform: translateX(0); }
    62% { opacity: 1; transform: translateX(4px); }
    100% { opacity: 0; transform: translateX(30px) scale(0.86); }
}

@keyframes v4-sim-chip-out {
    0% { opacity: 0; transform: translateX(-30px) scale(0.86); }
    34% { opacity: 1; transform: translateX(0); }
    84% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(26px); }
}

.v4-sim-packet { filter: drop-shadow(0 0 6px rgba(0, 195, 212, 0.9)); }
.v4-sim-packet--out { filter: drop-shadow(0 0 6px rgba(53, 245, 154, 0.9)); }

.v4-sim__feed {
    border-top: 1px solid var(--v4-line);
    padding: 14px 20px;
    height: 118px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    gap: 7px;
}

.v4-feed-line {
    font-family: var(--v4-mono);
    font-size: 0.73rem;
    color: var(--v4-muted);
    display: flex;
    gap: 10px;
    animation: v4-feed-in 0.4s ease-out;
}

.v4-feed-line .v4-feed-time { color: rgba(246, 248, 251, 0.35); }
.v4-feed-line .v4-feed-ok { color: var(--v4-green); }
.v4-feed-line .v4-feed-ai { color: var(--v4-magenta-soft); }

@keyframes v4-feed-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Antes / después ---------- */
.v4-ba {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 26px;
    align-items: stretch;
}

.v4-ba__card {
    background: var(--v4-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--v4-line);
    border-radius: 24px;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
}

.v4-ba__card--system { border-color: rgba(0, 195, 212, 0.32); }

.v4-ba__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: 22px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.v4-ba__tag--manual {
    color: var(--v4-muted);
    border: 1px solid var(--v4-line);
    background: rgba(255, 255, 255, 0.03);
}

.v4-ba__tag--system {
    color: var(--v4-cyan-soft);
    border: 1px solid rgba(0, 195, 212, 0.4);
    background: rgba(0, 195, 212, 0.07);
}

.v4-ba__card h3 { margin: 0 0 18px; font-size: 1.35rem; font-weight: 830; letter-spacing: -0.01em; }

.v4-ba__card ul {
    margin: 0 0 22px;
    padding: 0 0 0 18px;
    color: var(--v4-muted);
    line-height: 1.9;
    flex: 1;
}

.v4-ba__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.v4-ba__status--manual { color: var(--v4-amber); }
.v4-ba__status--system { color: var(--v4-green); }

.v4-ba__bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.v4-ba__bridge-line {
    width: 2px;
    flex: 1;
    max-height: 70px;
    background: linear-gradient(180deg, transparent, var(--v4-line));
}

.v4-ba__bridge .v4-ba__bridge-line:last-child {
    background: linear-gradient(180deg, var(--v4-line), transparent);
}

.v4-ba__bridge-label {
    font-family: var(--v4-mono);
    font-size: 0.72rem;
    color: var(--v4-cyan-soft);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.v4-ba__outcomes {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 44px;
    color: var(--v4-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.v4-ba__outcomes span { display: inline-flex; align-items: center; gap: 9px; }
.v4-ba__outcomes i { color: var(--v4-green); }

/* ---------- Qué automatizamos: matriz editorial ---------- */
.v4-pain-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 54px;
    overflow: hidden;
    border: 1px solid var(--v4-line);
    border-radius: 8px;
    background: var(--v4-line);
}

#v4-sim-mode { color: var(--v4-cyan-soft); font-weight: 700; }

.v4-pain {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
    min-height: 210px;
    padding: 30px;
    background: rgba(5, 6, 17, 0.96);
    transition: background 0.3s ease;
}

.v4-pain:hover {
    background: rgba(11, 18, 34, 0.98);
}

.v4-pain > div { min-width: 0; }

.v4-pain__num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--v4-magenta-soft);
}

.v4-pain h3 { margin: 0 0 8px; font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 830; letter-spacing: 0; }
.v4-pain p { margin: 0 0 14px; color: var(--v4-muted); line-height: 1.6; }
.v4-pain__meta { color: rgba(246, 248, 251, 0.4); }

.v4-pain > i {
    font-size: 2rem;
    color: var(--v4-cyan);
    opacity: 0.7;
}

.v4-capability-statement {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-top: 38px;
    padding: 28px 0;
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
}

.v4-capability-statement strong { display: block; margin-bottom: 6px; font-size: 1.15rem; }
.v4-capability-statement p { margin: 0; color: var(--v4-muted); line-height: 1.6; }

/* ---------- Recorrido del sistema ---------- */
.v4-system-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    max-width: 1080px;
    margin: 48px auto 0;
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
}

.v4-hero__title--capability {
    font-size: 4.35rem;
}

.v4-system-flow__step {
    padding: 26px 24px;
}

.v4-system-flow__step span {
    display: block;
    margin-bottom: 10px;
    color: var(--v4-cyan-soft);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.v4-system-flow__step strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.v4-system-flow__step p {
    margin: 0;
    color: var(--v4-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.v4-system-flow > i {
    align-self: center;
    color: var(--v4-magenta-soft);
    font-size: 1.25rem;
}

/* ---------- Mapa conectado: red neuronal (MAPA B) ---------- */
.v4-map {
    position: relative;
    height: 540px;
    max-width: 920px;
    margin: 48px auto 0;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 195, 212, 0.05), transparent 60%),
        rgba(6, 9, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.v4-map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.v4-map__center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 3;
    pointer-events: none;
}

.v4-map__center strong { font-size: 1.1rem; letter-spacing: 0.03em; }
.v4-map__center small {
    max-width: 150px;
    color: rgba(246, 248, 251, 0.45);
    font-size: 0.62rem;
    line-height: 1.4;
    text-align: center;
}

.v4-map__node {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(8, 11, 24, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid var(--v4-line);
    border-radius: 15px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--v4-muted);
    transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.v4-map__node i { font-size: 1.25rem; color: var(--v4-cyan); }
.v4-map__node--output i { color: var(--v4-magenta-soft); }
.v4-map__node--human i { color: var(--v4-green); }
.v4-map__node--human { border-color: rgba(53, 245, 154, 0.22); }

.v4-map__node.is-hit {
    border-color: rgba(140, 244, 255, 0.75);
    color: var(--v4-paper);
    box-shadow: 0 0 34px rgba(0, 195, 212, 0.35);
    transform: translate(-50%, -50%) scale(1.06);
}

/* ---------- Productos ---------- */
.v4-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.v4-product {
    background: var(--v4-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--v4-line);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
}

.v4-product:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 82, 195, 0.4);
    box-shadow: 0 26px 70px rgba(255, 82, 195, 0.12);
}

.v4-product__media { overflow: hidden; }

.v4-product__media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.v4-product:hover .v4-product__media img { transform: scale(1.035); }

.v4-product__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.v4-product__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.v4-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--v4-cyan-soft);
    border: 1px solid rgba(0, 195, 212, 0.4);
    background: rgba(0, 195, 212, 0.07);
}

.v4-product__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--v4-green);
}

.v4-product__status--beta { color: var(--v4-amber); }

.v4-product h3 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 830; letter-spacing: -0.01em; }
.v4-product p { margin: 0 0 18px; color: var(--v4-muted); line-height: 1.6; font-size: 0.95rem; flex: 1; }

.v4-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.v4-chip-row b {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--v4-cyan);
    border: 1px solid rgba(0, 195, 212, 0.28);
    background: rgba(0, 195, 212, 0.05);
}

/* ---------- Autoridad ---------- */
.v4-authority {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}

.v4-authority__actions,
.v4-rafael__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.v4-credentials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.v4-credential {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 6px;
    padding: 24px 26px;
    background: var(--v4-panel);
    backdrop-filter: blur(8px);
    border: 1px solid var(--v4-line);
    border-radius: 20px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.v4-credential:hover { border-color: rgba(0, 195, 212, 0.4); transform: translateY(-3px); }

.v4-credential i {
    grid-row: span 2;
    align-self: center;
    font-size: 1.7rem;
    color: var(--v4-cyan);
}

.v4-credential strong { font-size: 1.05rem; font-weight: 800; }
.v4-credential span { color: var(--v4-muted); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Novedades ---------- */
.v4-news__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: end;
    margin-bottom: 52px;
}

.v4-news__heading .v4-lead { margin-bottom: 0; }

.v4-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.v4-news-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--v4-panel);
    border: 1px solid var(--v4-line);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.v4-news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 195, 212, 0.42);
    box-shadow: 0 24px 60px rgba(0, 195, 212, 0.1);
}

.v4-news-card__media {
    display: block;
    overflow: hidden;
    background: rgba(0, 195, 212, 0.06);
}

.v4-news-card__media img,
.v4-news-card__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    object-fit: cover;
}

.v4-news-card__media img { transition: transform 0.5s ease; }
.v4-news-card:hover .v4-news-card__media img { transform: scale(1.035); }
.v4-news-card__placeholder i { font-size: 2rem; color: var(--v4-cyan); }

.v4-news-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.v4-news-card__meta {
    display: flex;
	flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--v4-cyan-soft);
    font-family: var(--v4-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.v4-news-card__meta a {
    color: var(--v4-cyan-soft);
    text-decoration: none;
}

.v4-news-card__meta a:hover { color: var(--v4-paper); }

.v4-news-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.28;
}

.v4-news-card h3 a { color: var(--v4-paper); text-decoration: none; }

.v4-news-card p {
    margin: 0 0 22px;
    color: var(--v4-muted);
    line-height: 1.6;
    font-size: 0.92rem;
    flex: 1;
}

.v4-news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.v4-news-card__footer > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--v4-muted);
    font-family: var(--v4-mono);
    font-size: 0.72rem;
    white-space: nowrap;
}

.v4-news-card__footer > span i { color: var(--v4-cyan); }

/* ---------- Rafael ---------- */
.v4-rafael__inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.v4-rafael__stage {
    position: relative;
    aspect-ratio: 1;
    max-width: 420px;
    margin: 0 auto;
    isolation: isolate;
}

.v4-rafael__stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.v4-ring-frame {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, var(--v4-cyan), transparent 32%, var(--v4-magenta), transparent 80%, var(--v4-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: v4-spin 7s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.v4-rafael__quote {
    margin: 0 0 34px;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    line-height: 1.5;
    font-weight: 500;
    color: rgba(246, 248, 251, 0.88);
    font-style: italic;
    min-height: 3.2em;
    transition: opacity 0.4s ease;
}

.v4-rafael__copy > .v4-lead {
    max-width: 760px;
    margin-bottom: 24px;
}

.v4-rafael__actions { margin-top: 0; }

.v4-rafael__quote.is-fading { opacity: 0; }

/* ---------- Método: timeline sticky ---------- */
.v4-method {
    display: block;
    padding: 0;
    height: 280vh;
    position: relative;
}

.v4-method__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.v4-timeline { position: relative; margin-top: 30px; }

.v4-timeline__bar {
    height: 2px;
    background: var(--v4-line);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 44px;
}

.v4-timeline__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--v4-cyan), var(--v4-magenta), var(--v4-amber));
}

.v4-timeline__track {
    display: flex;
    gap: 34px;
    will-change: transform;
}

.v4-tstep {
    flex: 0 0 min(420px, 78vw);
    background: var(--v4-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--v4-line);
    border-radius: 24px;
    padding: 38px 34px;
    opacity: 0.45;
    transform: scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.v4-tstep.is-current {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 209, 102, 0.45);
}

.v4-tstep__num {
    display: block;
    margin-bottom: 18px;
    font-size: 3rem;
    font-weight: 880;
    background: linear-gradient(120deg, var(--v4-cyan), var(--v4-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.v4-tstep h3 { margin: 0 0 12px; font-size: 1.4rem; font-weight: 830; }
.v4-tstep p { margin: 0 0 16px; color: var(--v4-muted); line-height: 1.65; }
.v4-tstep small { color: rgba(246, 248, 251, 0.42); }

/* ---------- FAQ ---------- */
.v4-faq {
    max-width: 920px;
}

.v4-faq__intro {
    max-width: 760px;
    margin: -18px 0 34px;
    color: var(--v4-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.v4-faq__item {
    border-top: 1px solid var(--v4-line);
}

.v4-faq__item:last-child { border-bottom: 1px solid var(--v4-line); }

.v4-faq__q {
    padding: 24px 44px 24px 4px;
    cursor: pointer;
    list-style: none;
    font-size: 1.08rem;
    font-weight: 750;
    position: relative;
    transition: color 0.2s ease;
}

.v4-faq__q::-webkit-details-marker { display: none; }

.v4-faq__q::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--v4-cyan);
    transition: transform 0.25s ease;
}

.v4-faq__item[open] .v4-faq__q::after { transform: translateY(-50%) rotate(45deg); }

.v4-faq__q:hover { color: var(--v4-cyan-soft); }

.v4-faq__a { padding: 0 40px 26px 4px; }
.v4-faq__a p { margin: 0; color: var(--v4-muted); line-height: 1.7; }

/* ---------- CTA final ---------- */
.v4-cta {
    padding: 150px 0 170px;
    text-align: center;
    position: relative;
}

.v4-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 55% at 50% 100%, rgba(0, 195, 212, 0.1), transparent);
    pointer-events: none;
}

.v4-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v4-cta .v4-ring { margin-bottom: 34px; }
.v4-cta .v4-display { margin-bottom: 34px; }

.v4-cta__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
}

.v4-cta__note {
    margin: 0;
    color: var(--v4-muted);
    font-size: 1rem;
    max-width: 560px;
}

/* ---------- Footer ---------- */
.v4-footer {
    border-top: 1px solid var(--v4-line);
    padding: 80px 0 130px;
}

.v4-footer__top {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 54px;
}

.v4-footer__brand img { margin-bottom: 22px; }

.v4-footer__brand h2 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    font-weight: 830;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.v4-footer__brand p {
    margin: 0 0 26px;
    color: var(--v4-muted);
    line-height: 1.65;
    max-width: 480px;
}

.v4-footer__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v4-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--v4-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.v4-footer__links a:hover { color: var(--v4-paper); }
.v4-footer__links i { color: var(--v4-cyan); }

.v4-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--v4-line);
    color: rgba(246, 248, 251, 0.45);
    font-size: 0.85rem;
}

.v4-footer__legal {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.v4-footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.v4-footer__legal a:hover,
.v4-footer__legal a:focus-visible {
    color: var(--v4-paper);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .v4-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 24px;
        left: 24px;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        background: #090b16;
        border: 1px solid var(--v4-line);
        border-radius: 8px;
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
        z-index: 60;
    }

    .v4-nav.is-open { display: flex; }
    .v4-nav a {
        padding: 10px 12px;
        color: rgba(246, 248, 251, 0.88);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .v4-nav a:last-child { border-bottom: 0; }
    .v4-nav-toggle { display: inline-flex; }
    .v4-header__actions { margin-left: auto; }
    .v4-header__inner { position: relative; }
}

@media (max-width: 1024px) {
    .v4-hero__inner { grid-template-columns: 1fr; gap: 46px; }
    .v4-hero { min-height: 0; }
    .v4-hero__title { font-size: 4rem; }
    .v4-authority { grid-template-columns: 1fr; gap: 44px; }
    .v4-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v4-news-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .v4-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 24px;
        left: 24px;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        background: #090b16;
        border: 1px solid var(--v4-line);
		border-radius: 8px;
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
        z-index: 60;
    }

    .v4-nav.is-open { display: flex; }
    .v4-nav a {
        padding: 10px 12px;
        color: rgba(246, 248, 251, 0.88);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .v4-nav a:last-child { border-bottom: 0; }
    .v4-nav-toggle { display: inline-flex; }
    .v4-header__actions { margin-left: auto; }
    .v4-header__inner { position: relative; }

    .v4-products { grid-template-columns: 1fr; }
    .v4-news__heading { grid-template-columns: 1fr; gap: 26px; }
    .v4-news__heading .wm-btn { justify-self: start; }
    .v4-rafael__inner { grid-template-columns: 1fr; gap: 44px; }
    .v4-rafael__stage { max-width: 300px; }
    .v4-pain-list { grid-template-columns: 1fr; }
    .v4-pain { grid-template-columns: auto 1fr; min-height: 0; }
    .v4-pain > i { display: none; }
    .v4-method { height: 320vh; }
    .v4-ba { grid-template-columns: 1fr; }
    .v4-ba__bridge { flex-direction: row; }
    .v4-ba__bridge-line { width: auto; height: 2px; flex: 1; max-height: none; max-width: 80px; }
    .v4-system-flow { grid-template-columns: 1fr; }
    .v4-system-flow > i { display: none; }
    .v4-system-flow__step { padding: 22px 18px; border-left: 2px solid rgba(0, 195, 212, 0.35); }
    .v4-system-flow__step + .v4-system-flow__step { border-top: 1px solid var(--v4-line); }
    .v4-map { height: 460px; }
    .v4-sim__chips { width: 130px; }
    .v4-sim__stage { height: 220px; }
    .v4-sim__feed { height: 110px; }
    .v4-sim__head { gap: 8px; }
    .v4-sim__counters { font-size: 0.68rem; }
    .v4-footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
    .v4-section { padding: 90px 0; }
    .v4-hero__title { font-size: 2.8rem; }
    .v4-pain { gap: 16px; padding: 24px 18px; }
    .v4-capability-statement { align-items: start; }
    .v4-map {
        height: auto;
        padding: 24px 14px;
        display: flex;
        flex-direction: column;
    }
    .v4-map__canvas { display: none; }
    .v4-map__center {
        position: static;
        order: 1;
        transform: none;
        margin: 0 auto 24px;
    }
    .v4-map__nodes {
        position: static;
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .v4-map__node {
        position: static;
        transform: none;
        min-height: 68px;
        gap: 4px;
        padding: 8px;
        font-size: 0.64rem;
        text-align: center;
    }
    .v4-map__node.is-hit { transform: scale(1.02); }
    .v4-map__node i { font-size: 0.92rem; }
    .v4-hero__actions .wm-btn, .v4-cta__actions .wm-btn { width: 100%; justify-content: center; }
    .v4-news__grid { grid-template-columns: 1fr; }
    .v4-news-card:last-child { grid-column: auto; }
    .v4-news__heading .wm-btn { width: 100%; justify-content: center; }
    .v4-news-card__footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .v4-reveal { opacity: 1; transform: none; transition: none; }
    .v4-grad, .v4-ring::before, .v4-ring-frame, .v4-live-dot { animation: none; }
    .v4-method { height: auto; }
    .v4-method__sticky { position: static; }
    .v4-timeline__track { flex-wrap: wrap; transform: none !important; }
    .v4-tstep { opacity: 1; transform: none; }
}
