/* ═══════════════════════════════════════════════════════════════════
   Vera S2P — Design system v2 (Brand Book)
   Fuente de verdad: design_handoff_procure_home (sept 2026)
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Marca */
    --ink: #0B2447;
    --ink-soft: #1A3155;
    --blue: #337AFF;
    --blue-deep: #005EFF;
    --cyan: #00C4FF;
    --cyan-soft: #B8ECFB;
    --lime: #8CE64A;

    /* Superficies */
    --cream: #FAF6F1;
    --cream-2: #F2EDE3;
    --paper: #FFFFFF;
    --mute: #3A4D6E;
    --line: rgba(11, 36, 71, .10);
    --line-2: rgba(11, 36, 71, .18);

    --bg: var(--cream);
    --fg: var(--ink);
    --accent: var(--blue);

    /* Tipografía */
    --font-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 17px;
    line-height: 1.55;
    /* clip recorta sin crear un scroll container: hidden rompería position:sticky */
    overflow-x: hidden;
    overflow-x: clip;
}

html { overflow-x: hidden; overflow-x: clip; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em.brand { color: var(--blue); font-style: normal; }
blockquote, q, cite { font-style: normal; font-weight: 300; }
h1, h2, h3, h4 { font-family: var(--font-display); }
.tabular, .num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ── Tipografía ── */
.display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: .96;
    letter-spacing: -0.03em;
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
}

.section { padding: 96px 0; position: relative; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    max-width: 900px;
    margin: 12px 0 0;
}

.lede {
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--mute);
    max-width: 60ch;
    line-height: 1.55;
    margin-top: 18px;
}

.tabular { font-variant-numeric: tabular-nums; }
.microlabel { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* ── Botones ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn-ghost:hover { background: rgba(11, 36, 71, .06); }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: var(--blue); color: var(--paper); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ── Card y regla ── */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.rule { height: 1px; width: 100%; background: var(--line); }

/* ── Animaciones ── */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flow-x { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.float { animation: float 7s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
}

/* ── Nav ── */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: color-mix(in oklab, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 400; opacity: .75; position: relative; }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.024em; line-height: 1; }
.wordmark svg { height: 34px; width: auto; }
.wordmark .wm-s2p { font-weight: 600; font-size: .58em; letter-spacing: .03em; margin-left: .22em; }

/* Menú móvil */
.nav-burger { display: none; background: none; border: none; padding: 8px; color: inherit; }
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 60;
    background: var(--cream); padding: 24px 32px;
    flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }
.mobile-menu-close { align-self: flex-end; background: none; border: none; font-size: 28px; color: inherit; padding: 8px; }

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .nav-burger { display: block; }
    .nav-cta { display: none; }
}

/* ── Hero ── */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 76px); margin: 16px 0 0; }
.hero .lede strong { color: var(--fg); }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-photo { width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--line); }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-photo { max-width: 420px; margin: 0 auto; }
}

/* ── Franja de prueba ── */
.proof { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-row { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: center; }
.proof-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--mute); font-weight: 400; }
.dot-cyan { width: 6px; height: 6px; border-radius: 99px; background: var(--cyan); flex-shrink: 0; }

/* ── El modelo ── */
.modelo-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.modelo-head .lede { margin-top: 0; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.pillar { border-left: 2px solid var(--cyan); padding-left: 16px; }
.pillar h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; margin: 0; }
.pillar p { font-size: 13.5px; color: var(--mute); margin: 4px 0 0; line-height: 1.5; }

@media (max-width: 900px) { .modelo-head { grid-template-columns: 1fr; gap: 20px; } }

/* Diagrama */
.diagram-video { width: 100%; height: auto; display: block; border-radius: 12px; }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) {
    .diagram-scroll svg { min-width: 720px; }
}
.diagram-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 12px; font-size: 13px; }
.diagram-legend .swatch { display: inline-block; width: 18px; height: 2px; }
.node-badge {
    background: var(--paper); color: var(--ink); border: 1px solid var(--line);
    border-radius: 16px; padding: 14px 18px; min-width: 150px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 1px 0 rgba(11, 27, 61, .04), 0 16px 40px -24px rgba(11, 27, 61, .25);
    font-family: var(--font-sans);
}
.node-badge.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
.node-badge .nb-label { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.node-badge .nb-sub { font-size: 11.5px; opacity: .65; margin-top: 2px; }
.node-note { font-size: 11.5px; color: var(--mute); padding-left: 4px; margin-top: 8px; font-family: var(--font-sans); }
.diagram-path { stroke-dashoffset: 200; }
.in .diagram-path-1 { animation: flow-x 1.4s ease-out forwards; }
.in .diagram-path-2 { animation: flow-x 1.4s ease-out .4s forwards; }
.in .diagram-path-3 { animation: flow-x 1.4s ease-out .8s forwards; }
.in .diagram-path-4 { animation: flow-x 1.4s ease-out 1.2s forwards; }

/* ── Tres maneras (tabs) ── */
.models-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs { display: inline-flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); padding: 4px; border-radius: 999px; margin-top: 36px; max-width: 100%; overflow-x: auto; }
.tab { padding: 10px 18px; border-radius: 999px; border: none; background: transparent; color: var(--fg); font-weight: 500; font-size: 14px; transition: all .2s ease; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.model-panel { margin-top: 24px; padding: 0; overflow: hidden; background: var(--bg); }
.model-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.model-left { padding: 36px; border-right: 1px solid var(--line); }
.model-left h3 { font-size: 38px; margin: 8px 0 16px; }
.model-left .desc { color: var(--mute); max-width: 480px; line-height: 1.55; margin: 0; }
.model-right { padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.kpi-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.kpi-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; }
.flow-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.flow-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; }
.flow-chip.first { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.flow-arrow { color: var(--mute); font-size: 12px; }
.ideal { margin-top: 28px; }
.ideal-value { margin-top: 6px; font-weight: 400; }

@media (max-width: 900px) {
    .model-grid { grid-template-columns: 1fr; }
    .model-left { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ── Antes / Después ── */
.ba-table { margin-top: 48px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.ba-head, .ba-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; }
.ba-head { background: var(--bg); }
.ba-head > div { padding: 16px 28px; }
.ba-row { border-top: 1px solid var(--line); }
.ba-row:nth-child(odd) { background: var(--bg); }
.ba-row:nth-child(even) { background: var(--paper); }
.ba-before { padding: 20px 28px; color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(11, 27, 61, .25); }
.ba-arrow { text-align: center; color: var(--blue); font-size: 20px; font-weight: 800; }
.ba-after { padding: 20px 28px; font-weight: 500; }

@media (max-width: 720px) {
    .ba-head { display: none; }
    .ba-row { grid-template-columns: 1fr; }
    .ba-before { padding: 18px 20px 4px; }
    .ba-before::before { content: "Hoy"; display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-decoration: none; margin-bottom: 4px; }
    .ba-arrow { transform: rotate(90deg); padding: 2px 0; }
    .ba-after { padding: 4px 20px 18px; }
    .ba-after::before { content: "Con Vera S2P"; display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
}

/* ── Servicios (4 tarjetas) ── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 56px; }
.svc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.svc-num { font-size: 13px; font-weight: 500; color: var(--mute); letter-spacing: .1em; }
.svc-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.svc-card p { color: var(--mute); font-size: 14.5px; margin-top: 10px; line-height: 1.55; }
.svc-bullets { list-style: none; padding: 16px 0 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.svc-bullets li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; }
.dot-sm { width: 4px; height: 4px; background: var(--cyan); border-radius: 99px; flex-shrink: 0; }

/* ── Quiénes somos ── */
.founders-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.founders-grid .section-title { font-size: clamp(28px, 3.5vw, 44px); }
.founders-bio { font-size: 17px; line-height: 1.6; color: var(--mute); margin: 0; }
.founders-people { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.founder-photo { width: 72px; height: 72px; border-radius: 99px; object-fit: cover; border: 1px solid var(--line); }
.founder-name { margin-top: 14px; font-weight: 700; }
.founder-cred { font-size: 12.5px; color: var(--mute); margin-top: 5px; line-height: 1.5; }

@media (max-width: 860px) { .founders-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 540px) { .founders-people { grid-template-columns: 1fr; } }

/* ── Trayectoria (casos, navy) ── */
.tray-title { font-size: clamp(30px, 4.2vw, 56px); text-wrap: nowrap; }
@media (max-width: 720px) { .tray-title { text-wrap: wrap; } }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.case-card {
    display: flex; flex-direction: column;
    background: var(--ink); border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 22px; padding: 28px; color: var(--paper);
    transition: transform .24s ease, border-color .24s ease;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.case-head { display: flex; flex-direction: column; gap: 5px; border-bottom: 1px solid rgba(255, 255, 255, .14); padding-bottom: 14px; }
.case-head .eyebrow { color: var(--cyan); }
.case-city { font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.case-kpi { font-family: var(--font-display); font-size: clamp(32px, 2.9vw, 40px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: -0.02em; margin-top: 22px; color: var(--lime); }
.case-kpi-label { font-size: 14px; color: rgba(255, 255, 255, .78); margin-top: 8px; line-height: 1.45; }
.case-story { margin-top: 20px; font-size: 14.5px; color: rgba(255, 255, 255, .7); line-height: 1.6; flex: 1; }
.case-where { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; color: rgba(255, 255, 255, .58); line-height: 1.4; }

/* ── Vera S2P (navy) ── */
.tech-section { background: var(--ink); color: var(--paper); }
.tech-section .eyebrow { color: var(--cyan); }
.tech-section .section-title { color: var(--paper); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tech-card { border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 28px; background: rgba(255, 255, 255, .04); }
.tech-num { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .12em; color: var(--cyan); }
.tech-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 18px 0 0; letter-spacing: -0.01em; line-height: 1.2; }
.tech-card p { font-size: 14.5px; color: rgba(255, 255, 255, .68); margin-top: 10px; line-height: 1.55; }
.tech-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tech-note { font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* ── Conocimiento ── */
.insights-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.insights-head .section-title { font-size: clamp(30px, 4vw, 52px); }
.insights-list { margin-top: 44px; border-top: 1px solid var(--line); }
.insight-row {
    display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 32px;
    padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.insight-row .eyebrow { color: var(--blue); }
.insight-meta { font-size: 12.5px; color: var(--mute); margin-top: 8px; font-family: var(--font-sans); font-weight: 400; }
.insight-row h3 { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; margin: 0; letter-spacing: -0.015em; line-height: 1.25; transition: color .18s ease; }
.insight-row:hover h3 { color: var(--blue); }
.insight-hook { font-size: 14.5px; color: var(--mute); margin-top: 10px; line-height: 1.55; max-width: 62ch; }
.insight-arrow { font-size: 20px; color: var(--blue); font-weight: 800; }

@media (max-width: 820px) {
    .insight-row { grid-template-columns: 1fr; gap: 12px; }
    .insight-arrow { display: none; }
}

/* ── CTA grande ── */
.big-cta-wrap { padding: 72px 0; }
.big-cta {
    background: var(--ink); color: var(--paper);
    border-radius: 28px; padding: clamp(40px, 6vw, 72px);
    position: relative; overflow: hidden;
}
.big-cta .eyebrow { color: var(--cyan); }
.big-cta h2 { font-size: clamp(36px, 5vw, 64px); margin: 16px 0 0; color: var(--paper); }
.big-cta p { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .7); margin-top: 20px; max-width: 580px; }
.big-cta-inner { max-width: 720px; position: relative; }
.big-cta-mark { position: absolute; right: -60px; bottom: -80px; width: 380px; opacity: .85; }
.big-cta .btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, .3); }
.big-cta .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* ── Contacto ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; }
.contact-grid .section-title { font-size: clamp(32px, 4.5vw, 56px); }
.contact-rows { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-row .value { font-weight: 400; font-size: 17px; margin-top: 4px; overflow-wrap: anywhere; }

.form-card { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.field-optional { color: var(--mute); font-weight: 500; }
.field-error { color: #D4453B; font-weight: 500; display: none; }
.field.invalid .field-error { display: inline; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #D4453B; }

.form-card input, .form-card select, .form-card textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg);
    font: inherit; color: inherit; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    border-color: var(--blue); box-shadow: 0 0 0 4px rgba(51, 122, 255, .16);
}
.form-card textarea { resize: vertical; min-height: 90px; }
.form-submit { justify-content: center; margin-top: 8px; padding: 16px 22px; font-size: 15px; }
.form-note { font-size: 12px; color: var(--mute); text-align: center; margin: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-success { padding: 56px; text-align: center; max-width: 640px; margin: 0 auto; }
.form-success .check { width: 64px; height: 64px; border-radius: 99px; background: var(--cyan); margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--ink); }
.form-success h2 { font-size: 36px; margin: 24px 0 0; }
.form-success p { color: var(--mute); margin-top: 12px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Footer ── */
.footer-v2 { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.footer-grid-v2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-desc { margin-top: 18px; font-size: 14px; color: var(--mute); max-width: 320px; line-height: 1.6; }
.foot-col ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col a { font-size: 14px; opacity: .85; overflow-wrap: anywhere; }
.foot-col a:hover { opacity: 1; color: var(--blue); }
.footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--mute); }

@media (max-width: 860px) { .footer-grid-v2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid-v2 { grid-template-columns: 1fr; } }

/* ── Barra fija móvil ── */
.mobile-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
    background: color-mix(in oklab, var(--cream) 88%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 12px 14px; font-size: 14px; }
@media (max-width: 720px) {
    .mobile-bar { display: flex; }
    body { padding-bottom: 68px; }
    .container { padding: 0 20px; }
    .section { padding: 64px 0; }
}
@media (max-width: 540px) { .form-card { padding: 24px 20px; } }

/* Datos necesarios para el diagnóstico (sección contacto) */
.data-req { margin-top: 32px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.data-req-intro { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }
.data-req-group { margin-top: 16px; }
.data-req-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); }
.data-req-tag.must { background: var(--cyan); border-color: var(--cyan); }
.data-req ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.data-req li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.45; }
.data-req li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 99px; background: var(--cyan); }
.data-req-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--mute); border-top: 1px solid var(--line); padding-top: 12px; }
.form-note a { color: var(--ink); text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════════
   Portafolio S2P (lote 1): navegación por etapas, recorrido, dos modos,
   ANS, FAQ, planes y modalidades de mandato. Mismos tokens de arriba.
   ═══════════════════════════════════════════════════════════════════ */

/* Accesibilidad: foco visible y área táctil ≥ 44 px */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.nav-links a, .foot-col a { display: inline-block; padding: 10px 0; line-height: 24px; }
.nav-links { gap: 24px; }
.foot-col ul { gap: 0; }
.nav-cta { background: var(--blue); }
.nav-cta:hover { background: var(--blue-deep); }

/* ── Desplegable "Servicios" (5 etapas) ── */
.nav-dd { position: relative; }
.nav-dd-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; padding: 10px 0; margin: 0;
    font: inherit; font-size: 14px; line-height: 24px; color: inherit; opacity: .75;
}
.nav-dd-btn svg { width: 12px; height: 12px; transition: transform .18s ease; }
.nav-dd:hover .nav-dd-btn, .nav-dd.open .nav-dd-btn { opacity: 1; }
.nav-dd:hover .nav-dd-btn svg, .nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu {
    display: none; position: absolute; top: 100%; left: -14px; z-index: 60;
    min-width: 360px; padding-top: 8px;
}
.nav-dd-menu::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: block; }
.nav-dd-panel {
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 8px;
    box-shadow: 0 24px 48px -24px rgba(11, 36, 71, .35);
}
.nav-dd-panel a {
    display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 10px;
    padding: 10px 12px; border-radius: 12px; line-height: 1.35; opacity: 1;
}
.nav-dd-panel a::after { display: none; }
.nav-dd-panel a:hover, .nav-dd-panel a:focus-visible { background: var(--cream); }
.nav-dd-num { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--blue-deep); font-variant-numeric: tabular-nums; padding-top: 3px; }
.nav-dd-panel strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.nav-dd-panel small { display: block; font-size: 12.5px; color: var(--mute); }
.nav-dd-all { grid-template-columns: 1fr !important; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px !important; color: var(--blue-deep); font-weight: 500; font-size: 13.5px; }

/* Menú móvil: grupo de etapas */
.mobile-menu { overflow-y: auto; }
.mobile-menu .mm-group { border-bottom: 1px solid var(--line); padding: 12px 0; }
.mobile-menu .mm-group > span { display: block; font-size: 22px; font-weight: 700; padding: 6px 0; }
.mobile-menu .mm-group a { display: block; font-size: 17px; font-weight: 500; border: none; padding: 10px 0 10px 18px; }
.mobile-menu .mm-group a small { display: block; font-size: 13px; font-weight: 400; color: var(--mute); }

/* ── Cabecera de página de etapa ── */
.stage-hero { padding: 36px 0 8px; }
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 13.5px; color: var(--mute); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 6px; opacity: .5; }
.breadcrumb a { display: inline-block; padding: 10px 0; line-height: 24px; }
.breadcrumb a:hover { color: var(--blue-deep); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.stage-kicker { margin-top: 18px; }
.stage-kicker .eyebrow { color: var(--blue-deep); }
.stage-hero h1 { font-size: clamp(36px, 5.2vw, 68px); margin: 12px 0 0; max-width: 18ch; }
.stage-hero .lede { max-width: 66ch; color: var(--ink-soft); }
.stage-section { padding: 56px 0; }
.stage-section h2, .h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 10px; }
.stage-section .sub { color: var(--mute); max-width: 64ch; margin: 0; line-height: 1.6; }

/* ── Recorrido de 5 etapas ── */
.journey { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.journey-step { position: relative; padding-right: 28px; display: flex; }
.journey-step:last-child { padding-right: 0; }
.journey-step::before { content: ""; position: absolute; right: 2px; top: 50%; width: 26px; height: 2px; background: var(--cyan); }
.journey-step::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); transform: translateY(-50%) rotate(45deg); }
.journey-step:last-child::before, .journey-step:last-child::after { display: none; }
.journey-step a {
    display: flex; flex-direction: column; width: 100%;
    padding: 24px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
    transition: transform .2s ease, border-color .2s ease;
}
.journey-step a:hover { transform: translateY(-4px); border-color: var(--blue); }
.journey-num { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .12em; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.journey-step h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 6px; }
.journey-step p { font-size: 14.5px; color: var(--mute); margin: 0 0 16px; line-height: 1.5; flex: 1; }
.journey-more { font-size: 13.5px; font-weight: 500; color: var(--blue-deep); }
.journey-step a:hover .journey-more { text-decoration: underline; }
@media (max-width: 1000px) {
    .journey { grid-template-columns: 1fr; }
    .journey-step { padding: 0 0 34px; }
    .journey-step:last-child { padding-bottom: 0; }
    .journey-step::before { right: auto; left: 34px; top: 100%; width: 2px; height: 34px; transform: translateY(-34px); }
    .journey-step::after { right: auto; left: 30px; top: calc(100% - 16px); transform: rotate(135deg); }
}

/* ── Dos formas de recorrerlo / Tú la operas · Nosotros la operamos ── */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.mode { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.mode.mode-vera { border-top-color: var(--cyan); }
.mode .eyebrow { color: var(--blue-deep); }
.mode.mode-vera .eyebrow { color: var(--ink); }
.mode h2, .mode h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 6px; line-height: 1.1; }
.mode-sub { color: var(--mute); font-size: 15px; margin: 0; line-height: 1.55; }
.mode ul { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mode li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.mode li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 99px; background: var(--cyan); }
.mode.mode-vera li::before { background: var(--blue); }
.mode li strong { font-weight: 600; }
.mode-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); line-height: 1.55; }
.modes-note { margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); }
.tag { display: inline-block; margin-left: 6px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute); vertical-align: middle; white-space: nowrap; }
.tag-plan { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } .mode { padding: 24px 20px; } }

/* ── Bloques de texto destacado ── */
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 18px; padding: 24px 28px; margin-top: 28px; }
.callout h2, .callout h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.25; }
.callout p { margin: 0; line-height: 1.6; font-size: 15.5px; }
.callout p + p { margin-top: 10px; }
.callout-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); border-left-color: var(--cyan); }
.callout-ink p { color: rgba(255, 255, 255, .82); }
.callout-ink .kpi { font-family: var(--font-display); font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.callout-quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.deliverable { margin-top: 28px; background: var(--cream-2); border-radius: 18px; padding: 24px 28px; }
.deliverable h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; }
.deliverable p { margin: 0; line-height: 1.6; font-size: 15.5px; }
.stage-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
@media (max-width: 720px) { .stage-cols { grid-template-columns: 1fr; } .callout, .deliverable { padding: 20px; } }

/* ── ANS ── */
.ans-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ans-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.ans-val { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ans-lab { display: block; font-size: 14px; color: var(--mute); line-height: 1.45; margin-top: 6px; }
.ans-note { font-size: 14px; color: var(--ink-soft); margin: 16px 0 0; line-height: 1.6; max-width: 70ch; }

/* ── FAQ (details nativo, sin JS) ── */
.faq { margin-top: 24px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 0; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--blue-deep); flex-shrink: 0; width: 28px; text-align: center; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 44px 20px 0; color: var(--ink-soft); line-height: 1.65; font-size: 15.5px; }
.faq .faq-a p { margin: 0; }

/* ── Siguiente etapa ── */
.next-stage { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--cream-2); border-radius: 22px; padding: 28px 32px; }
.next-stage p { margin: 6px 0 0; font-size: 18px; font-weight: 500; max-width: 48ch; }
@media (max-width: 720px) { .next-stage { padding: 22px 20px; } .next-stage .btn { width: 100%; } }

/* ── Tabla de planes (4 planes × 5 etapas) ──
   Escritorio: rejilla alineada por filas (como tabla). Móvil: tarjeta por plan. */
.plans { display: grid; grid-template-columns: 112px repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; margin-top: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.plans-labels, .plan, .plan dl { display: contents; }
.plans-labels > div, .plan-head, .plan-row { padding: 16px 18px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.plans-labels > div { font-family: var(--font-display); font-weight: 800; font-size: 15px; background: var(--cream); }
.plans-labels > div:first-child, .plan-head { border-top: none; }
.plan-head { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.2; background: var(--cream); border-left: 1px solid var(--line); }
.plan-price { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 13px; color: var(--blue-deep); margin-top: 6px; }
.plan-row { border-left: 1px solid var(--line); margin: 0; }
.plan-row dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan-row dd { margin: 0; }
.plan-row .none { color: var(--mute); }
.plan-row .hl { font-weight: 600; }
.plan-row .cupos { display: inline-block; background: var(--cyan); padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.plan-mid .plan-head { background: var(--ink); color: var(--paper); }
.plan-mid .plan-price { color: var(--cyan); }
.plans-notes { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-soft); max-width: 78ch; }
.plans-notes p { margin: 0; line-height: 1.6; }
@media (max-width: 860px) {
    .plans { display: flex; flex-direction: column; gap: 14px; background: transparent; border: none; overflow: visible; }
    .plans-labels { display: none; }
    .plan { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
    .plan dl { display: block; margin: 0; }
    .plan-head { border-left: none; padding: 16px 18px; }
    .plan-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; border-left: none; padding: 12px 18px; }
    .plan-row dt { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); }
}

/* ── Modalidades del mandato ── */
.mandate { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mandate li { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.mandate-num { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .12em; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.mandate h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.mandate dl { margin: 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.mandate dt { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.mandate dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; }
.mandate dd.yes { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .mandate { grid-template-columns: 1fr; } }

/* ── Fuentes legales ── */
.sources { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sources li { padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; font-size: 15px; line-height: 1.55; }
.sources strong { font-weight: 600; display: block; margin-bottom: 2px; }

/* ── Cierre ── */
.scarcity { font-size: 14.5px; color: rgba(255, 255, 255, .7); margin-top: 14px; }
