/* ════════════════════════════════════════════
   ROCHSTONE GROUP · Hoja de estilos compartida
   ════════════════════════════════════════════ */

:root {
    --bg-base: #010409;
    --glass-bg: rgba(15, 23, 42, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.25);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-faint: rgba(255, 255, 255, 0.42);
    --accent: #5EA6F2;
    --accent-soft: #8CC4FF;
    --success: #10B981;
    --danger: #F87171;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --f: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --fs: 'Newsreader', Georgia, 'Times New Roman', serif;
    --fm: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--f); scroll-behavior: smooth; }
body { background-color: var(--bg-base); color: var(--text-main); overflow-x: hidden; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }

/* ════ FONDO CINEMÁTICO ════ */
.bg-container { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-layer { position: absolute; inset: -5%; width: 110%; height: 110%; background-size: cover; background-position: center; will-change: opacity, transform; }
.bg-mountain { background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2500&auto=format&fit=crop'); z-index: 1; filter: brightness(0.5) contrast(1.15); }
.bg-valley { background-image: url('https://images.unsplash.com/photo-1486870591958-9b9d0d1dda99?q=80&w=2500&auto=format&fit=crop'); z-index: 2; opacity: 0; filter: brightness(0.75); }
.fog-layer { position: absolute; bottom: 0; width: 100%; height: 70vh; background: linear-gradient(to top, #010409 15%, rgba(1,4,9,0.4) 60%, transparent 100%); z-index: 3; will-change: opacity, transform; }

/* ════ NAVEGACIÓN ════ */
.top-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 26px 60px; display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(1,4,9,0.7) 0%, transparent 100%);
    transition: all 0.5s var(--ease);
}
.top-nav.scrolled { padding: 18px 60px; background: rgba(1, 4, 9, 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--glass-border); }
.logo-group { text-decoration: none; color: inherit; display: block; }
.logo-group h1 { font-family: var(--fm); font-size: 14px; font-weight: 500; letter-spacing: 3.4px; text-transform: uppercase; }
.logo-group span { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; display: block; margin-top: 2px; }

.menu-container { position: relative; }
.menu-trigger { background: transparent; border: none; color: #fff; font-size: 26px; cursor: pointer; padding: 6px; line-height: 1; }
.dropdown-panel {
    position: absolute; top: 100%; right: 0; margin-top: 18px;
    background: rgba(11, 19, 41, 0.94); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border); border-radius: 20px; padding: 16px;
    display: flex; flex-direction: column; gap: 4px; min-width: 262px;
    opacity: 0; visibility: hidden; transform: translateY(-15px); transition: all 0.4s var(--ease);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.dropdown-panel.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link { padding: 12px 20px; border-radius: 12px; color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: 0.3s; }
.dropdown-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dropdown-link.current { color: #fff; background: rgba(94,166,242,0.12); }
.dropdown-btn { background: #fff; color: #000; padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; margin-top: 10px; border: none; cursor: pointer; transition: 0.3s; }
.dropdown-btn:hover { background: var(--accent-soft); }

/* ════ BOTONES ════ */
.btn-solid { display: inline-block; background: #fff; color: #000; padding: 16px 32px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; transition: 0.3s var(--ease); border: none; cursor: pointer; }
.btn-solid:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-ghost { display: inline-block; background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); color: #fff; padding: 16px 32px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--glass-border); transition: 0.3s var(--ease); cursor: pointer; }
.btn-ghost:hover { border-color: var(--glass-border-hover); background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ════ HERO (portada) ════ */
.hero-viewport {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; z-index: 10; padding: 130px 24px 80px;
}
.hero-badge {
    font-family: var(--fm); display: inline-flex; align-items: center; gap: 9px;
    background: rgba(15,23,42,0.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); padding: 9px 18px; border-radius: 100px;
    font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 30px; font-weight: 500;
}
.hero-main-title { font-family: var(--fs); font-size: clamp(40px, 6.4vw, 78px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; margin-bottom: 24px; text-shadow: 0 15px 40px rgba(0,0,0,0.6); }
.hero-main-title em { font-style: italic; color: var(--accent); }
.hero-lead { font-size: clamp(15px, 1.5vw, 18px); color: var(--text-muted); font-weight: 300; max-width: 680px; line-height: 1.7; text-shadow: 0 5px 15px rgba(0,0,0,0.4); }
.hero-lead + .hero-lead { margin-top: 12px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 38px 0 0; }
.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-family: var(--fm); font-size: 9.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-faint); }

/* ════ HERO (páginas internas) ════ */
.page-hero {
    min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; z-index: 10; padding: 170px 24px 60px;
}
.page-hero .w-meta { margin-bottom: 18px; }
.page-hero h1 { font-family: var(--fs); font-size: clamp(33px, 4.6vw, 57px); font-weight: 400; letter-spacing: -0.012em; line-height: 1.12; margin-bottom: 20px; max-width: 900px; text-shadow: 0 15px 40px rgba(0,0,0,0.6); }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .hero-lead { max-width: 720px; }

/* ════ LAYOUT ════ */
.dashboard-wrapper { max-width: 1300px; margin: 0 auto; padding: 40px 24px 40px; position: relative; z-index: 10; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

.widget {
    background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: 28px; padding: 44px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3); transition: transform 0.5s var(--ease), border-color 0.5s, background 0.5s;
}
.widget:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); }
.widget-clickable { cursor: pointer; }
.widget-clickable:hover { background: rgba(15, 23, 42, 0.65); border-color: rgba(255,255,255,0.35); }
.widget-accent { border-color: rgba(94,166,242,0.32); background: linear-gradient(135deg, rgba(94,166,242,0.08), var(--glass-bg)); }
.widget-bare { background: transparent; border: none; box-shadow: none; padding: 0; }
.widget-bare:hover { transform: none; border: none; }

.w-full { grid-column: span 12; }
.w-half { grid-column: span 6; }
.w-third { grid-column: span 4; }

/* ════ TIPOGRAFÍA INTERNA ════ */
.w-meta { font-family: var(--fm); font-size: 10px; letter-spacing: 2.6px; color: var(--accent); text-transform: uppercase; margin-bottom: 20px; display: block; font-weight: 500; }
.w-headline { font-family: var(--fs); font-size: 33px; font-weight: 400; margin-bottom: 16px; letter-spacing: -0.008em; line-height: 1.24; }
.w-sub { font-family: var(--fs); font-size: 25px; font-weight: 400; margin-bottom: 12px; letter-spacing: -0.006em; line-height: 1.3; }
.w-body-text { font-size: 15.5px; color: var(--text-muted); line-height: 1.72; margin-bottom: 28px; font-weight: 300; }
.w-body-text:last-child { margin-bottom: 0; }
.w-body-text strong { color: var(--text-main); font-weight: 600; }
.w-note { font-size: 12.5px; color: var(--text-faint); line-height: 1.65; margin-top: 18px; font-weight: 300; }
.w-lead-max { max-width: 800px; }

/* ════ CIFRAS DE CONFIANZA ════ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust-val { font-family: var(--fs); font-size: 48px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 10px; }
.trust-val.acc { color: var(--accent); }
.trust-lbl { font-size: 13.5px; color: var(--text-muted); font-weight: 300; line-height: 1.6; max-width: 250px; }
sup { font-size: 12px; color: var(--text-muted); }

/* ════ BLOQUES DE PASOS ════ */
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps-2 { grid-template-columns: repeat(2, 1fr); }
.step-block { padding-top: 10px; }
.step-idx { font-family: var(--fm); font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--glass-border); padding-bottom: 8px; display: block; margin-bottom: 16px; }
.step-txt h4 { font-family: var(--fs); font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.step-txt p { font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 1.6; }

/* ════ MECANISMO / PROCESO NUMERADO ════ */
.mech-list { max-width: 860px; margin-top: 34px; }
.mech-step { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mech-step:last-child { border-bottom: none; padding-bottom: 0; }
.mech-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(94,166,242,0.1); border: 1px solid rgba(94,166,242,0.34); display: flex; align-items: center; justify-content: center; font-family: var(--fm); font-weight: 400; color: var(--accent); font-size: 17px; }
.mech-step h4 { font-family: var(--fs); font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.mech-step p { font-size: 14.5px; color: var(--text-muted); font-weight: 300; line-height: 1.65; }
.mech-step p strong { color: var(--text-main); font-weight: 600; }

.proc-list { max-width: 820px; margin-top: 30px; }
.proc-step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.proc-step:last-child { border-bottom: none; padding-bottom: 0; }
.proc-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-family: var(--fm); font-weight: 400; color: var(--accent); font-size: 16px; }
.proc-step h4 { font-family: var(--fs); font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.proc-step p { font-size: 14.5px; color: var(--text-muted); font-weight: 300; line-height: 1.65; }
.proc-step p strong { color: var(--text-main); font-weight: 600; }

/* ════ FIGURAS Y TABLAS ════ */
.figure { background: rgba(0,0,0,0.28); border: 1px solid var(--glass-border); border-radius: 18px; padding: 14px; margin: 34px 0 0; }
.figure img { width: 100%; display: block; border-radius: 10px; }
.fcap { font-size: 12px; color: var(--text-faint); margin-top: 14px; padding: 0 6px; line-height: 1.6; }

.table-wrap { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: 18px; background: rgba(0,0,0,0.22); margin-top: 32px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.table-wrap tr:last-child td { border-bottom: none; }
th { color: var(--text-muted); font-weight: 500; font-size: 9.5px; letter-spacing: 1.9px; text-transform: uppercase; font-family: var(--fm); }
td { color: var(--text-main); font-weight: 300; }
td.mut { color: var(--text-muted); }
td.num { text-align: right; font-family: var(--fm); font-weight: 400; font-size: 16px; }
tr.hl td { background: rgba(94,166,242,0.07); }
.pos { color: var(--success); } .neg { color: var(--danger); }

.mini-table { width: 100%; font-size: 14px; margin-top: 4px; }
.mini-table td { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-weight: 300; }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table td:last-child { text-align: right; font-family: var(--fm); font-weight: 400; font-size: 13.5px; }

/* ════ TRACK RECORD ════ */
.strat-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; gap: 14px; }
.strat-header h3 { font-family: var(--fs); font-size: 26px; font-weight: 500; letter-spacing: -0.008em; }
.strat-sub { font-size: 13px; color: var(--text-muted); font-weight: 300; margin-top: 6px; }
.pill-badge { font-family: var(--fm); background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); padding: 6px 14px; border-radius: 100px; font-size: 9.5px; font-weight: 400; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pulse-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.mets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 14px; margin-bottom: 22px; }
.met b { display: block; font-family: var(--fs); font-size: 25px; font-weight: 500; letter-spacing: -0.01em; }
.met span { font-size: 9.5px; color: var(--text-muted); letter-spacing: 1.1px; text-transform: uppercase; font-family: var(--fm); }
.vlink { font-size: 13.5px; color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(94,166,242,0.34); transition: 0.3s; }
.vlink:hover { border-color: var(--accent); }

/* Franja compacta de track record (portada) */
.kpi-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.07); border-radius: 18px; overflow: hidden; margin-top: 30px; }
.kpi-strip.kpi-4 { grid-template-columns: repeat(4, 1fr); }
.kpi-cell { background: rgba(0,0,0,0.24); padding: 26px; transition: background 0.4s; }
.kpi-cell:hover { background: rgba(0,0,0,0.1); }
.kpi-name { font-family: var(--fm); font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.kpi-val { font-family: var(--fs); font-size: 32px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
.kpi-meta { font-size: 12.5px; color: var(--text-muted); font-weight: 300; margin-top: 8px; }

/* ════ AVISOS ════ */
.warn { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.24); border-radius: 16px; padding: 20px; margin-top: 24px; font-size: 13px; color: var(--text-muted); font-weight: 300; line-height: 1.7; }
.warn b { color: #FCA5A5; font-weight: 600; }

/* ════ TIERS ════ */
.tier { display: flex; flex-direction: column; position: relative; }
.tier.featured { border-color: rgba(94,166,242,0.4); background: linear-gradient(160deg, rgba(94,166,242,0.09), var(--glass-bg)); }
.rib { position: absolute; top: -12px; left: 44px; background: var(--accent); color: #061020; font-size: 9px; font-weight: 500; letter-spacing: 1.4px; padding: 6px 14px; border-radius: 6px; text-transform: uppercase; font-family: var(--fm); }
.tier h3 { font-family: var(--fs); font-size: 28px; font-weight: 400; letter-spacing: -0.01em; }
.tier-min { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; font-weight: 300; }
.price { font-family: var(--fs); font-size: 32px; font-weight: 400; margin: 18px 0 6px; letter-spacing: -0.015em; }
.price small { font-size: 13px; color: var(--text-muted); font-weight: 300; letter-spacing: 0; }
.tier ul { list-style: none; margin: 24px 0; flex: 1; }
.tier li { padding: 10px 0 10px 26px; position: relative; font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 1.6; }
.tier li:before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 1.5px; background: var(--accent); }
.tier li b { color: var(--text-main); font-weight: 600; }

/* ════ CALCULADORA ════ */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 34px; }
.calc-panel { background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; }
label { display: block; font-family: var(--fm); font-size: 9.5px; letter-spacing: 1.9px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; font-weight: 500; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; background: rgba(255,255,255,0.14); border-radius: 2px; outline: none; margin-bottom: 8px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--bg-base); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--bg-base); }
.rng { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 11px 18px; border: 1px solid var(--glass-border); border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 13px; transition: all 0.3s; }
.chip:hover { border-color: var(--glass-border-hover); }
.chip.on { border-color: var(--accent); color: var(--accent); background: rgba(94,166,242,0.1); }
.res { background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; }
.rrow { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 14px; }
.rrow:last-child { border-bottom: none; padding-bottom: 0; padding-top: 20px; }
.rrow span { color: var(--text-muted); font-weight: 300; }
.rrow b { font-family: var(--fm); font-size: 16px; font-weight: 400; white-space: nowrap; }
.rrow.big b { font-family: var(--fs); font-size: 27px; color: var(--accent); letter-spacing: -0.015em; }

/* ════ FORMULARIO ════ */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.inner-card { background: rgba(0,0,0,0.22); border: 1px solid var(--glass-border); border-radius: 20px; padding: 28px; }
.inner-card h4 { font-family: var(--fs); font-size: 20px; font-weight: 500; margin-bottom: 14px; }
.inner-card p { font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 1.65; margin-bottom: 10px; }
.inner-card p:last-child { margin-bottom: 0; }
.form-panel { background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; }
.fg { margin-bottom: 18px; }
input[type=text], input[type=email], input[type=tel], select {
    width: 100%; padding: 15px 18px; background: rgba(0,0,0,0.35); border: 1px solid var(--glass-border);
    border-radius: 12px; color: #fff; font-size: 14px; outline: none; transition: border-color 0.3s;
}
input:focus, select:focus { border-color: rgba(255,255,255,0.4); }
select option { background: #0B1329; color: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.consent span { font-size: 12px; color: var(--text-muted); font-weight: 300; line-height: 1.6; }

/* ════ FAQ ════ */
.faq { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq:last-of-type { border-bottom: none; }
.fq { width: 100%; text-align: left; background: none; border: none; color: var(--text-main); padding: 22px 0; font-family: var(--fs); font-size: 19px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; }
.fq span { color: var(--accent); transition: transform 0.3s var(--ease); flex-shrink: 0; font-weight: 400; }
.fq.on span { transform: rotate(45deg); }
.fa { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.fa p { padding-bottom: 22px; font-size: 15.5px; color: var(--text-muted); font-weight: 300; line-height: 1.75; }

/* ════ NAVEGACIÓN ENTRE PÁGINAS ════ */
.next-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.next-card {
    display: block; text-decoration: none; color: inherit;
    background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 32px;
    transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.next-card:hover { transform: translateY(-4px); border-color: var(--glass-border-hover); background: rgba(15,23,42,0.66); }
.next-card .w-meta { margin-bottom: 14px; }
.next-card h4 { font-family: var(--fs); font-size: 22px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.006em; }
.next-card p { font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 1.6; margin-bottom: 16px; }
.next-card .arrow { font-family: var(--fm); font-size: 12.5px; color: var(--accent); font-weight: 400; }

/* ════ BANDA CTA ════ */
.cta-band { text-align: center; }
.cta-band .w-headline { font-size: 36px; margin-bottom: 14px; }
.cta-band .w-body-text { max-width: 620px; margin: 0 auto 30px; }
.cta-band .hero-cta { margin-top: 0; }

/* ════ WHATSAPP ════ */
.wa { position: fixed; bottom: 24px; right: 24px; z-index: 900; background: #25D366; color: #fff; padding: 15px 25px; border-radius: 100px; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 10px 34px rgba(37,211,102,0.35); display: flex; align-items: center; gap: 9px; transition: transform 0.3s var(--ease); }
.wa:hover { transform: scale(1.05); }

/* ════ FOOTER ════ */
footer { position: relative; z-index: 10; background: rgba(1,4,9,0.75); backdrop-filter: blur(24px); border-top: 1px solid var(--glass-border); padding: 60px 0 48px; margin-top: 60px; }
.footer-inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.footer-logo h1 { font-family: var(--fm); font-size: 14px; font-weight: 500; letter-spacing: 3.4px; text-transform: uppercase; margin-bottom: 24px; }
.fnav { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 34px; }
.fnav a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: 0.3s; }
.fnav a:hover { color: #fff; }
.fl { font-size: 12px; color: var(--text-faint); line-height: 1.8; font-weight: 300; max-width: 960px; }
.fl h4 { font-family: var(--fm); font-size: 9.5px; letter-spacing: 2.1px; text-transform: uppercase; color: var(--text-muted); margin: 28px 0 8px; font-weight: 500; }
.fl a { color: var(--accent); text-decoration: none; }

/* ════ RESPONSIVE ════ */
@media (max-width: 1100px) {
    .w-half, .w-third { grid-column: span 12; }
    .steps-container, .steps-2, .trust-grid, .calc-grid, .access-grid, .next-nav, .kpi-strip, .kpi-strip.kpi-4 { grid-template-columns: 1fr; }
    .top-nav { padding: 22px 30px; }
    .top-nav.scrolled { padding: 16px 30px; }
    .dashboard-wrapper { padding: 30px 16px 30px; }
    .widget { padding: 32px 26px; border-radius: 24px; }
    .rib { left: 26px; }
    .page-hero { padding: 140px 24px 40px; min-height: auto; }
}
@media (max-width: 560px) {
    .mets-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta a { width: 100%; text-align: center; }
    .w-headline { font-size: 26px; }
    .cta-band .w-headline { font-size: 26px; }
}

/* ════════════════════════════════════════════
   TRACK RECORD · Componentes de ficha de sistema
   Añadido por el sistema de auditoría. Reutiliza
   los tokens existentes: sin colores nuevos.
   ════════════════════════════════════════════ */

/* ── Estado de carga de datos ── */
[data-roch-state="nodata"] { color: var(--text-faint) !important; }
.roch-updated { font-family: var(--fm); font-size: 10px; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--text-faint); }

/* ── Cabecera de la ficha ── */
.sysbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; justify-content: center; }
.sysbar .chip { cursor: default; font-family: var(--fm); font-size: 11px; padding: 8px 15px; }
.sysbar .chip b { color: var(--text-main); font-weight: 500; }

/* ── Curvas ── */
.curve-head { display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.curve-box { position: relative; width: 100%; height: 340px; }
.curve-box canvas { width: 100% !important; height: 100% !important; }
.curve-empty { display: flex; align-items: center; justify-content: center; height: 260px;
    color: var(--text-faint); font-size: 14px; font-weight: 300; text-align: center; }

/* ── Tira de estadísticas en tres columnas ── */
.statcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 8px; }
.statcols h4 { font-family: var(--fm); font-size: 9.5px; letter-spacing: 1.8px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-weight: 500; }
.srow { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13.5px; }
.srow:last-child { border-bottom: none; }
.srow span:first-child { color: var(--text-muted); font-weight: 300; }
.srow span:last-child { font-family: var(--fm); font-size: 13px; white-space: nowrap; }

/* ── Calendario mensual ── */
.cal-grid { display: grid; grid-template-columns: auto repeat(12, 1fr); gap: 4px; margin-top: 26px; }
.cal-grid .ch { font-family: var(--fm); font-size: 9.5px; color: var(--text-faint);
    text-align: center; padding: 4px 0; letter-spacing: .5px; }
.cal-grid .cy { font-family: var(--fm); font-size: 11px; color: var(--text-muted);
    display: flex; align-items: center; padding-right: 10px; }
.cal-grid .cc { aspect-ratio: 1.4; border-radius: 8px; display: flex; align-items: center;
    justify-content: center; font-family: var(--fm); font-size: 10.5px;
    border: 1px solid rgba(255,255,255,0.05); transition: transform .25s var(--ease); }
.cal-grid .cc:hover { transform: scale(1.09); border-color: var(--glass-border-hover); }
.cal-grid .cc.void { background: rgba(255,255,255,0.02); }

/* ── Desgloses ── */
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.bd-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.bd-row { display: grid; grid-template-columns: 78px 1fr 82px; align-items: center; gap: 14px;
    font-size: 13px; }
.bd-row .bl { color: var(--text-muted); font-weight: 300; }
.bd-row .bv { font-family: var(--fm); font-size: 12.5px; text-align: right; }
.bd-track { height: 7px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.bd-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bd-track i.neg { background: var(--danger); }

/* ── Tabla de operaciones ── */
.ops-wrap { max-height: 480px; overflow-y: auto; border: 1px solid var(--glass-border);
    border-radius: 18px; background: rgba(0,0,0,0.22); margin-top: 26px; }
.ops-wrap::-webkit-scrollbar { width: 9px; }
.ops-wrap::-webkit-scrollbar-track { background: transparent; }
.ops-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.13); border-radius: 5px; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ops-table thead th { position: sticky; top: 0; background: rgba(6,11,22,0.97);
    backdrop-filter: blur(10px); font-family: var(--fm); font-size: 9.5px; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--text-muted); font-weight: 400;
    padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--glass-border); }
.ops-table thead th:first-child, .ops-table tbody td:first-child { text-align: left; }
.ops-table tbody td { padding: 12px 18px; text-align: right; font-family: var(--fm);
    font-size: 12.5px; font-weight: 400; border-bottom: 1px solid rgba(255,255,255,0.045); }
.ops-table tbody tr:last-child td { border-bottom: none; }
.ops-table tbody tr:hover { background: rgba(255,255,255,0.028); }
.side { font-family: var(--fm); font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 5px; }
.side.buy { background: rgba(16,185,129,0.13); color: var(--success); }
.side.sell { background: rgba(248,113,113,0.13); color: var(--danger); }

/* ── Matriz de correlación ── */
.corr-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.corr-table th { font-family: var(--fm); font-size: 10px; letter-spacing: 1px; font-weight: 400;
    color: var(--text-muted); padding: 10px 6px; text-align: center; }
.corr-table tbody th { text-align: left; color: var(--text-main); font-size: 12px; padding-left: 2px; }
.corr-table td { text-align: center; font-family: var(--fm); font-size: 12.5px;
    padding: 13px 8px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.05); }
.corr-table td.self { color: var(--text-faint); }

/* ── Sparkline en tarjeta ── */
.spark { margin: 20px 0 18px; min-height: 62px; }
.spark svg { display: block; }
.spark[data-roch-state="nodata"]::after { content: "Sin operativa registrada"; display: block;
    text-align: center; padding: 22px 0; color: var(--text-faint); font-size: 12.5px; font-weight: 300; }

/* ── Enlace de la tarjeta a la ficha ── */
.card-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ── Responsive ── */
@media (max-width: 1000px) {
    .statcols { grid-template-columns: 1fr; gap: 22px; }
    .bd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .cal-grid { grid-template-columns: auto repeat(6, 1fr); }
    .cal-grid .ch:nth-child(n+8) { display: none; }
    .curve-box { height: 260px; }
    .ops-table thead th:nth-child(2), .ops-table tbody td:nth-child(2) { display: none; }
}

/* ── Jerarquía de enlaces en las tarjetas de sistema ── */
.card-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: baseline; }
.vlink-main { font-size: 14.5px; font-weight: 500; }
.vlink-ext {
    font-size: 12px; color: var(--text-faint); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.12); transition: 0.3s;
}
.vlink-ext:hover { color: var(--text-muted); border-color: var(--text-faint); }
.chip-link { text-decoration: none; color: var(--accent) !important;
    border-color: rgba(94,166,242,0.34); cursor: pointer !important; }
.chip-link:hover { border-color: var(--accent); background: rgba(94,166,242,0.1); }
