/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* ── Tokens semánticos (cambian según tema) ── */
    --bg-deep:        #03060f;
    --bg-primary:     #050818;
    --bg-card:        rgba(255, 255, 255, 0.035);
    --bg-card-strong: rgba(255, 255, 255, 0.06);
    --border-subtle:  rgba(255, 255, 255, 0.08);
    --border-medium:  rgba(255, 255, 255, 0.14);
    --text-primary:   #e8eaf6;
    --text-muted:     #90a4ae;
    --grid-line:      rgba(0, 229, 255, 0.028);
    --canvas-opacity: 1;

    /* ── Acentos (estables en ambos temas) ── */
    --accent-cyan:    #00e5ff;
    --accent-yellow:  #f5c518;
    --accent-orange:  #ff6d3a;
    --accent-purple:  #7c3aed;

    /* Glow shortcuts */
    --glow-cyan:   0 0 20px rgba(0, 229, 255, 0.45), 0 0 60px rgba(0, 229, 255, 0.15);
    --glow-yellow: 0 0 20px rgba(245, 197, 24, 0.45), 0 0 60px rgba(245, 197, 24, 0.15);
    --glow-orange: 0 0 20px rgba(255, 109, 58,  0.45), 0 0 60px rgba(255, 109, 58,  0.15);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Motion */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Theme transition */
    --theme-transition: background-color 0.4s var(--ease-smooth), color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

/* ============================================================
   LIGHT THEME — overrides cuando html[data-theme="light"]
   ============================================================ */
:root[data-theme="light"] {
    --bg-deep:        #eef2f8;
    --bg-primary:     #f7f9fc;
    --bg-card:        rgba(15, 23, 42, 0.04);
    --bg-card-strong: rgba(15, 23, 42, 0.06);
    --border-subtle:  rgba(15, 23, 42, 0.08);
    --border-medium:  rgba(15, 23, 42, 0.14);
    --text-primary:   #0f172a;
    --text-muted:     #475569;
    --grid-line:      rgba(124, 58, 237, 0.05);
    --canvas-opacity: 0.35;
}

:root[data-theme="light"] body {
    background:
        radial-gradient(at 20% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(at 80% 100%, rgba(0, 229, 255, 0.10) 0%, transparent 50%),
        var(--bg-primary);
}

:root[data-theme="light"] #bg-canvas { opacity: var(--canvas-opacity); }

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--theme-transition);
}

/* ============================================================
   LAYER 0 — ANIMATED CANVAS BACKGROUND
   ============================================================ */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   LAYER 1 — SUBTLE PERSPECTIVE GRID
   ============================================================ */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    transition: background-image 0.4s var(--ease-smooth);
}

/* ============================================================
   LAYER 2 — PAGE CONTENT
   ============================================================ */
.page-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
/* IMPORTANTE: usamos selector específico por rol para no afectar los
   <header class="plans-header"> que se usan dentro de las secciones
   (servicios, planes, firma, advisor) y que sí deben quedar como
   bloques apilados — no flex horizontal. */
header[role="banner"] {
    padding: 22px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

header[role="banner"]::after {
    content: '';
    position: absolute;
    bottom: 0; left: 52px; right: 52px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.28), transparent);
}

.logo-group { display: flex; flex-direction: column; gap: 3px; }

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    opacity: 0.7;
    padding-left: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Theme toggle (sol/luna) ── */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.theme-toggle:hover {
    background: var(--bg-card-strong);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.theme-icon { width: 18px; height: 18px; }
.theme-icon-sun  { display: none; color: var(--accent-yellow); }
.theme-icon-moon { display: block; color: var(--accent-cyan); }

:root[data-theme="light"] .theme-icon-sun  { display: block; }
:root[data-theme="light"] .theme-icon-moon { display: none; }

.header-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 100px;
    background: rgba(0, 229, 255, 0.05);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 48px;
    text-align: center;
    position: relative;
}

/* ---- Ambient color orbs ---- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.orb-cyan {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0,229,255,0.18), transparent 70%);
    top: -140px; left: -140px;
    animation: drift-a 14s ease-in-out infinite alternate;
}

.orb-purple {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
    bottom: -60px; right: -100px;
    animation: drift-b 18s ease-in-out infinite alternate;
}

.orb-orange {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,109,58,0.14), transparent 70%);
    bottom: 25%; left: 8%;
    animation: drift-c 11s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(70px, 50px); } }
@keyframes drift-b { to { transform: translate(-50px, -70px); } }
@keyframes drift-c { to { transform: translate(35px, -35px); } }

/* ---- Pre-headline chip ---- */
.pre-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border: 1px solid rgba(245, 197, 24, 0.3);
    border-radius: 100px;
    background: rgba(245, 197, 24, 0.07);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: 32px;
    animation: rise 0.8s var(--ease-smooth) both;
}

/* ---- Main headline ---- */
.headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
    max-width: 880px;
    animation: rise 0.8s var(--ease-smooth) 0.1s both;
}

.headline em {
    font-style: normal;
    background: linear-gradient(130deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.headline .underline-glow {
    position: relative;
    display: inline-block;
}

.headline .underline-glow::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    filter: blur(2px);
    opacity: 0.8;
}

/* ---- Sub-headline ---- */
.sub-headline {
    font-size: clamp(0.95rem, 2vw, 1.18rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 64px;
    animation: rise 0.8s var(--ease-smooth) 0.2s both;
}

.sub-headline strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================================
   CENTRAL VISUAL — HOLOGRAPHIC ADVISOR
   ============================================================ */
.visual-wrap {
    position: relative;
    width: 400px; height: 400px;
    margin: 0 auto 80px;
    animation: rise 0.8s var(--ease-smooth) 0.15s both;
}

.ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ring-outer {
    inset: -52px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    animation: spin 32s linear infinite reverse;
}

.ring-inner {
    inset: -22px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    animation: spin 22s linear infinite;
}

.ring::before, .ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: -4px; left: 50%;
    transform: translateX(-50%);
}

.ring-inner::before {
    width: 8px; height: 8px;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px 3px rgba(0,229,255,0.7);
}

.ring-inner::after {
    width: 5px; height: 5px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px 2px rgba(0,229,255,0.5);
    top: auto; bottom: -3px; left: 50%;
    opacity: 0.5;
}

.ring-outer::before {
    width: 7px; height: 7px;
    background: var(--accent-purple);
    box-shadow: 0 0 12px 3px rgba(124,58,237,0.7);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.advisor-card {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 28px;
    background: linear-gradient(155deg, rgba(10,20,58,0.92), rgba(5,8,24,0.96));
    border: 1px solid rgba(0,229,255,0.22);
    box-shadow:
        0 0 50px rgba(0,229,255,0.08),
        0 0 120px rgba(0,229,255,0.04),
        inset 0 0 60px rgba(0,229,255,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    overflow: hidden;
}

.advisor-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.55;
}

.scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.5), transparent);
    animation: scan 5s linear infinite;
}

@keyframes scan {
    0%   { top: 0%;   opacity: 0; }
    8%   { opacity: 0.5; }
    92%  { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

.holo-figure {
    width: 110px; height: 130px;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0,229,255,0.35));
    animation: holo-breathe 4s ease-in-out infinite;
}

@keyframes holo-breathe {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0,229,255,0.35)); transform: scale(1); }
    50%       { filter: drop-shadow(0 0 20px rgba(0,229,255,0.6)); transform: scale(1.04); }
}

.advisor-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    opacity: 0.85;
}

.card-corner {
    position: absolute;
    width: 18px; height: 18px;
    border-color: rgba(0,229,255,0.35);
    border-style: solid;
}

.card-corner.tl { top: 12px;    left: 12px;  border-width: 1.5px 0 0 1.5px; }
.card-corner.tr { top: 12px;    right: 12px; border-width: 1.5px 1.5px 0 0; }
.card-corner.bl { bottom: 12px; left: 12px;  border-width: 0 0 1.5px 1.5px; }
.card-corner.br { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }

/* ---- Floating hologram data cards ---- */
.float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(5, 8, 28, 0.88);
    backdrop-filter: blur(12px);
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

.float-card .fc-icon  { font-size: 1.05rem; }
.float-card .fc-label {
    font-size: 0.58rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.float-card .fc-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
}

.fc-a {
    border: 1px solid rgba(0,229,255,0.3);
    box-shadow: 0 0 18px rgba(0,229,255,0.1);
    color: var(--accent-cyan);
    top: 10px; right: -100px;
    animation: bob-a 6s ease-in-out infinite;
}

.fc-b {
    border: 1px solid rgba(245,197,24,0.3);
    box-shadow: 0 0 18px rgba(245,197,24,0.1);
    color: var(--accent-yellow);
    bottom: 50px; right: -110px;
    animation: bob-b 7s ease-in-out infinite 0.4s;
}

.fc-c {
    border: 1px solid rgba(255,109,58,0.3);
    box-shadow: 0 0 18px rgba(255,109,58,0.1);
    color: var(--accent-orange);
    bottom: 10px; left: -100px;
    animation: bob-c 8s ease-in-out infinite 0.8s;
}

.fc-d {
    border: 1px solid rgba(124,58,237,0.3);
    box-shadow: 0 0 18px rgba(124,58,237,0.1);
    color: #a78bfa;
    top: 40px; left: -110px;
    animation: bob-d 5.5s ease-in-out infinite 0.2s;
}

@keyframes bob-a { 0%,100%{transform:translateY(0) rotate(-1deg)}  50%{transform:translateY(-10px) rotate(1deg)} }
@keyframes bob-b { 0%,100%{transform:translateY(0) rotate(1deg)}   50%{transform:translateY(9px) rotate(-1deg)} }
@keyframes bob-c { 0%,100%{transform:translateY(0) rotate(1.5deg)} 50%{transform:translateY(-12px) rotate(-1.5deg)} }
@keyframes bob-d { 0%,100%{transform:translateY(0) rotate(-2deg)}  50%{transform:translateY(7px) rotate(1deg)} }

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: rise 0.8s var(--ease-smooth) 0.3s both;
}

.cta-btn {
    position: relative;
    padding: 19px 44px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bg-deep);
    background: linear-gradient(130deg, var(--accent-cyan) 0%, #00b8d4 100%);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
    animation: cta-pulse 3.5s ease-in-out infinite;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(255,255,255,0.25) 0%, transparent 55%);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 55px rgba(0,229,255,0.65), 0 10px 30px rgba(0,0,0,0.4);
}

.cta-btn:active { transform: translateY(0) scale(0.99); }

@keyframes cta-pulse {
    0%,100% { box-shadow: 0 0 30px rgba(0,229,255,0.4), 0 4px 20px rgba(0,0,0,0.35); }
    50%      { box-shadow: 0 0 55px rgba(0,229,255,0.7), 0 4px 20px rgba(0,0,0,0.35); }
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Secondary / ghost CTA ── */
.cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 19px 38px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 100px;
    text-decoration: none;
    transition: color 0.25s var(--ease-smooth),
                background 0.25s var(--ease-smooth),
                border-color 0.25s var(--ease-smooth),
                transform 0.25s var(--ease-smooth),
                box-shadow 0.25s var(--ease-smooth);
}

.cta-ghost:hover {
    color: var(--bg-deep);
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.55), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cta-ghost:active { transform: translateY(0) scale(0.99); }

.cta-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 15, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s var(--ease-smooth);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(150deg, rgba(10,16,50,0.97), rgba(5,8,24,0.99));
    border: 1px solid rgba(0,229,255,0.22);
    border-radius: 28px;
    padding: 52px 44px 44px;
    position: relative;
    box-shadow:
        0 0 90px rgba(0,229,255,0.09),
        0 50px 100px rgba(0,0,0,0.6);
    transform: translateY(28px) scale(0.96);
    transition: transform 0.38s var(--ease-smooth);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.5;
}

.modal-close {
    position: absolute;
    top: 14px; right: 18px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: rgba(0,229,255,0.3);
    background: rgba(0,229,255,0.05);
}

.modal-eyebrow {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 30px;
}

.modal-form { display: flex; flex-direction: column; gap: 12px; }

.modal-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,229,255,0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-input::placeholder { color: var(--text-muted); opacity: 0.7; }

.modal-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 22px rgba(0,229,255,0.15), inset 0 0 12px rgba(0,229,255,0.04);
}

.modal-input.error {
    border-color: var(--accent-orange);
    box-shadow: 0 0 16px rgba(255,109,58,0.2);
}

.modal-submit {
    padding: 16px;
    background: linear-gradient(130deg, var(--accent-cyan) 0%, #00b8d4 100%);
    border: none;
    border-radius: 12px;
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 28px rgba(0,229,255,0.3);
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(0,229,255,0.5);
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-privacy {
    text-align: center;
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.55;
    margin-top: 6px;
}

/* Success state */
.modal-success {
    display: none;
    text-align: center;
    padding: 16px 0;
}

.success-icon {
    display: block;
    font-size: 3.2rem;
    margin-bottom: 18px;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.success-body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer[role="contentinfo"] {
    padding: 22px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    gap: 12px;
}

footer[role="contentinfo"]::before {
    content: '';
    position: absolute;
    top: 0; left: 52px; right: 52px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.18), transparent);
}

.footer-copy {
    font-size: 0.73rem;
    color: var(--text-muted);
    opacity: 0.55;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(0,229,255,0.18);
    border-radius: 9px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: rgba(0,229,255,0.45);
    box-shadow: 0 0 16px rgba(0,229,255,0.2);
    transform: translateY(-2px);
}

.social-link svg {
    width: 15px; height: 15px;
    fill: currentColor;
}

/* Brand-color hover per network */
.social-link.linkedin:hover  { color: #0A66C2; border-color: rgba(10,102,194,0.5);  box-shadow: 0 0 16px rgba(10,102,194,0.3); }
.social-link.facebook:hover  { color: #1877F2; border-color: rgba(24,119,242,0.5);  box-shadow: 0 0 16px rgba(24,119,242,0.3); }
.social-link.instagram:hover { color: #E1306C; border-color: rgba(225,48,108,0.5);  box-shadow: 0 0 16px rgba(225,48,108,0.3); }
.social-link.tiktok:hover    { color: #FF0050; border-color: rgba(255,0,80,0.5);    box-shadow: 0 0 16px rgba(255,0,80,0.3); }

/* ============================================================
   WHATSAPP FLOATING ACTION BUTTON
   ============================================================ */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 100;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth),
                bottom 0.3s var(--ease-smooth);
    animation: wa-pulse 2.8s ease-in-out infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 32px rgba(37,211,102,0.65);
}

.whatsapp-fab svg {
    width: 28px; height: 28px;
    fill: #ffffff;
}

.whatsapp-fab .wa-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: rgba(5,8,24,0.92);
    border: 1px solid rgba(37,211,102,0.3);
    color: #e8eaf6;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.whatsapp-fab:hover .wa-tooltip { opacity: 1; }

@keyframes wa-pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ============================================================
   SHARED ANIMATION
   ============================================================ */
@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 900 px — tuck float cards in slightly ─────────────────── */
@media (max-width: 900px) {
    .fc-a { right: -80px; }
    .fc-b { right: -90px; }
    .fc-c { left:  -80px; }
    .fc-d { left:  -90px; }
}

/* ── 768 px — tablet / large phone landscape ───────────────── */
@media (max-width: 768px) {
    header, footer          { padding-left: 24px; padding-right: 24px; }
    header::after,
    footer::before          { left: 24px; right: 24px; }

    .logo-img               { height: 50px; }
    .logo-tagline           { font-size: 0.62rem; letter-spacing: 0.16em; }
    .header-badge span:last-child { display: none; }

    .visual-wrap            { width: 280px; height: 280px; margin-bottom: 100px; }

    /* Bring cards closer so they stay within viewport on mid-range phones */
    .fc-a { right: -58px; top: 5px;     padding: 8px 10px; font-size: 0.65rem; }
    .fc-b { right: -64px; bottom: 30px; padding: 8px 10px; font-size: 0.65rem; }
    .fc-c { left:  -58px; bottom: 5px;  padding: 8px 10px; font-size: 0.65rem; }
    .fc-d { left:  -64px; top: 30px;    padding: 8px 10px; font-size: 0.65rem; }

    .cta-btn                { padding: 17px 32px; font-size: 0.76rem; }
    footer                  { flex-direction: column; gap: 14px; text-align: center; }
}

/* ── 520 px — phones portrait ──────────────────────────────── */
@media (max-width: 520px) {
    /* Clip overflow so float cards never cause horizontal scroll */
    .hero { overflow-x: clip; }

    /* Let sub-headline wrap naturally instead of forced <br> */
    .sub-headline br { display: none; }

    .visual-wrap {
        width: 220px;
        height: 220px;
        margin-bottom: 162px; /* room for the 2-row card grid below */
    }

    /* ── Float cards: 2 × 2 grid anchored below the advisor ── */
    .float-card {
        display: flex;
        font-size: 0.58rem;
        padding: 7px 10px;
        gap: 6px;
    }
    .float-card .fc-icon  { font-size: 0.82rem; }
    .float-card .fc-label { font-size: 0.46rem; }
    .float-card .fc-value { font-size: 0.64rem; }

    /* Row 1 — 12 px below the advisor */
    .fc-d { left: -10px; right: auto;  top: calc(100% + 12px); bottom: auto; }
    .fc-a { left: auto;  right: -10px; top: calc(100% + 12px); bottom: auto; }

    /* Row 2 — 70 px below the advisor */
    .fc-c { left: -10px; right: auto;  top: calc(100% + 70px); bottom: auto; }
    .fc-b { left: auto;  right: -10px; top: calc(100% + 70px); bottom: auto; }

    /* ── CTA row stacks on mobile ── */
    .cta-row  { flex-direction: column; gap: 12px; width: 100%; }
    .cta-ghost { width: 100%; justify-content: center; padding: 17px 32px; font-size: 0.76rem; }

    /* ── Modal ── */
    .modal {
        padding: 44px 24px 36px;
        max-height: 90dvh;
        overflow-y: auto;
    }
    .modal-title { font-size: 1.45rem; }

    /* ── WhatsApp FAB ── */
    .whatsapp-fab          { right: 20px; width: 52px; height: 52px; }
    .whatsapp-fab svg      { width: 24px; height: 24px; }
    .whatsapp-fab .wa-tooltip { display: none; }
}

/* ── 400 px — very small phones (iPhone SE, Galaxy A series) ── */
@media (max-width: 400px) {
    header                  { padding: 14px 16px; }
    header::after           { left: 16px; right: 16px; }
    footer                  { padding-left: 16px; padding-right: 16px; }
    footer::before          { left: 16px; right: 16px; }

    .logo-tagline           { display: none; }
    .header-badge           { padding: 5px 10px; font-size: 0.64rem; }
    .badge-dot              { width: 5px; height: 5px; }

    .headline               { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }

    .visual-wrap            { width: 185px; height: 185px; }

    .float-card             { font-size: 0.54rem; padding: 5px 8px; gap: 5px; }
    .float-card .fc-label   { font-size: 0.42rem; }
    .float-card .fc-value   { font-size: 0.60rem; }

    .cta-btn, .cta-ghost    { padding: 15px 28px; font-size: 0.74rem; }

    .modal                  { padding: 40px 18px 30px; }
    .modal-title            { font-size: 1.3rem; }
    .modal-desc             { font-size: 0.80rem; }
}

/* ============================================================
   PLANES / PRICING — sección comercial añadida en M1
   ============================================================ */

.plans {
    position: relative;
    z-index: 2;
    padding: 80px 24px 100px;
    background: linear-gradient(
        180deg,
        rgba(5, 8, 24, 0) 0%,
        rgba(124, 58, 237, 0.04) 30%,
        rgba(0, 229, 255, 0.04) 70%,
        rgba(5, 8, 24, 0) 100%
    );
}

.plans-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.plans-header {
    text-align: center;
    margin-bottom: 36px;
}

.plans-header-tight {
    margin-top: 70px;
    margin-bottom: 28px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin-top: 12px;
    letter-spacing: -0.4px;
}

.section-title-sm {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

.section-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.section-sub strong { color: var(--text-primary); font-weight: 500; }

.pre-chip-purple {
    color: var(--accent-purple);
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.08);
}

/* Toggle Mensual / Anual */
.billing-toggle {
    display: inline-flex;
    margin-top: 28px;
    padding: 5px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.billing-opt {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 200ms var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.billing-opt:hover { color: var(--text-primary); }

.billing-opt.is-active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    box-shadow: var(--glow-cyan);
}

.save-pill {
    background: var(--accent-yellow);
    color: #050818;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid de cards */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.plan-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 250ms var(--ease-smooth), border-color 250ms var(--ease-smooth);
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.3);
}

.plan-card.is-featured {
    border-color: rgba(0, 229, 255, 0.4);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.06), rgba(124, 58, 237, 0.04));
    transform: scale(1.04);
}

.plan-card.is-featured:hover { transform: scale(1.04) translateY(-4px); }

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: var(--glow-cyan);
}

.plan-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.plan-card.plan-free .plan-name    { color: var(--text-muted); }
.plan-card.plan-starter .plan-name { color: var(--accent-cyan); }
.plan-card.plan-plus .plan-name    { color: var(--accent-yellow); }
.plan-card.plan-premium .plan-name { color: var(--accent-orange); }

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    margin-bottom: 6px;
}

.price-curr {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-num {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-price-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
    min-height: 1em;
}

.plan-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.plan-features li {
    font-size: 0.85rem;
    color: var(--text-primary);
    padding: 7px 0 7px 22px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
}

.plan-cta {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 14px 20px;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 200ms var(--ease-smooth);
}

.plan-cta:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.plan-cta-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border: none;
    box-shadow: var(--glow-cyan);
}

.plan-cta-primary:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
}

.plan-cta-ghost {
    background: transparent;
}

.plans-foot {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.plans-foot strong { color: var(--text-primary); }

.plans-foot-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
}

.plans-foot-link:hover { text-decoration: underline; }

/* ── Firma Electrónica grid ── */
.firma-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.firma-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 16px;
    padding: 22px 14px;
    text-align: center;
    transition: all 250ms var(--ease-smooth);
}

.firma-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

.firma-card.is-featured {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(0, 229, 255, 0.04));
    border-color: var(--accent-purple);
}

.firma-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-purple);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.firma-time {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--accent-purple);
    font-size: 1rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.firma-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--text-primary);
    line-height: 1;
}

.firma-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 6px 0 14px;
}

.firma-cta {
    width: 100%;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 200ms var(--ease-smooth);
}

.firma-cta:hover {
    background: var(--accent-purple);
    color: #fff;
}

.firma-cta-primary {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

/* ── Combos ── */
.combo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 8px;
}

.combo-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 197, 24, 0.18);
    border-radius: 18px;
    padding: 24px;
    transition: all 250ms var(--ease-smooth);
}

.combo-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-yellow);
}

.combo-card-featured {
    background: linear-gradient(180deg, rgba(245, 197, 24, 0.10), rgba(255, 109, 58, 0.04));
    border-color: var(--accent-yellow);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.12);
}

.combo-pill {
    display: inline-block;
    background: var(--accent-yellow);
    color: #050818;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 12px;
}

.combo-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.combo-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent-yellow);
}

.combo-price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.combo-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 6px 0 14px;
}

.combo-cta {
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.3);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 200ms var(--ease-smooth);
}

.combo-cta:hover {
    background: var(--accent-yellow);
    color: #050818;
}

.combo-cta-primary {
    background: var(--accent-yellow);
    color: #050818;
    border-color: var(--accent-yellow);
}

/* ── Tabla de comparativa ── */
.compare-wrap {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-table th {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
}

.compare-table td {
    color: var(--text-primary);
}

.compare-table th.th-tribufy {
    color: var(--accent-cyan);
}

.compare-table td.td-tribufy {
    background: rgba(0, 229, 255, 0.04);
    color: var(--text-primary);
    font-weight: 500;
    border-left: 1px solid rgba(0, 229, 255, 0.15);
    border-right: 1px solid rgba(0, 229, 255, 0.15);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    padding: 0 12px 14px;
    font-style: italic;
}

/* ── Responsive (planes) ── */
@media (max-width: 1080px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-card.is-featured { transform: none; }
    .plan-card.is-featured:hover { transform: translateY(-4px); }
    .firma-grid { grid-template-columns: repeat(4, 1fr); }
    .combo-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .plans { padding: 60px 16px 80px; }
    .plans-grid { grid-template-columns: 1fr; gap: 16px; }
    .firma-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-header-tight { margin-top: 70px; }
    .compare-wrap { padding: 0; }
    .compare-table { font-size: 0.75rem; }
    .compare-table th, .compare-table td { padding: 10px 8px; }
    .billing-toggle { width: 100%; justify-content: center; }
}

@media (max-width: 460px) {
    .firma-grid { grid-template-columns: 1fr; }
    .plan-card.is-featured { transform: none; }
}

/* ============================================================
   FORMULARIOS DE LEADS — modal grande con secciones dinámicas
   ============================================================ */

.modal-lg {
    max-width: 720px;
    width: calc(100% - 32px);
    padding: 36px 32px 28px;
}

.lead-overlay { align-items: flex-start; padding: 30px 0; }
.lead-overlay .modal { max-height: calc(100vh - 60px); overflow-y: auto; }

.lead-header {
    text-align: center;
    margin-bottom: 18px;
}

.lead-header .modal-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.lead-header .modal-desc {
    font-size: 0.85rem;
}

.lead-form { text-align: left; }

.lead-fieldset {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 18px 14px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.lead-legend {
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-cyan);
    padding: 0 8px;
    font-weight: 600;
}

.lead-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.lead-row:last-child { margin-bottom: 0; }

.lead-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lead-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 200ms var(--ease-smooth);
    width: 100%;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
    color: rgba(144, 164, 174, 0.55);
}

.lead-field input:invalid:not(:placeholder-shown),
.lead-field input.is-invalid {
    border-color: var(--accent-orange);
}

.lead-field input.is-taken {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.lead-field input.is-available {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.lead-hint {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
    color: var(--text-muted, rgba(144, 164, 174, 0.85));
}

.lead-hint a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.lead-hint.is-error  { color: #ef4444; }
.lead-hint.is-ok     { color: #16a34a; }
.lead-hint.is-muted  { color: var(--text-muted, rgba(144, 164, 174, 0.85)); }

.lead-field select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Bloques que se muestran/ocultan dinámicamente.
   Usamos :not(.is-visible) + !important porque otras reglas con igual
   specificidad (como .lead-doc { display:flex }) sobreescribirían un
   simple display:none. Esto es una utility de visibility y la única
   forma robusta de garantizarla. */
[data-show]:not(.is-visible),
[data-show-firma]:not(.is-visible) {
    display: none !important;
}

/* Documentos drag-drop */
.lead-docs {
    margin-top: 10px;
}

.lead-docs-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lead-doc-list {
    display: grid;
    gap: 8px;
}

.lead-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px dashed rgba(124, 58, 237, 0.3);
    border-radius: 10px;
    transition: all 200ms var(--ease-smooth);
}

.lead-doc.is-uploaded {
    background: rgba(0, 229, 255, 0.06);
    border-color: var(--accent-cyan);
    border-style: solid;
}

.lead-doc.is-error {
    background: rgba(255, 109, 58, 0.06);
    border-color: var(--accent-orange);
}

.lead-doc-label {
    font-size: 0.78rem;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.lead-doc-label small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.lead-doc-zone {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lead-doc-cta {
    background: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 200ms var(--ease-smooth);
}

.lead-doc-zone:hover .lead-doc-cta {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

.lead-doc.is-uploaded .lead-doc-cta {
    background: var(--accent-cyan);
    color: #050818;
    border-color: var(--accent-cyan);
}

.lead-docs-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

/* Checkbox de términos */
.lead-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 8px;
}

.lead-checkbox input {
    margin-top: 2px;
    accent-color: var(--accent-cyan);
}

.lead-checkbox a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.lead-checkbox a:hover { text-decoration: underline; }

/* Resumen */
.lead-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 4px;
}

.lead-summary:empty { display: none; }

.lead-chip {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}

/* Acciones */
.lead-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.lead-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 200ms var(--ease-smooth);
}

.lead-cancel:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.lead-submit {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: var(--glow-cyan);
    transition: all 200ms var(--ease-smooth);
}

.lead-submit:hover { filter: brightness(1.08); }
.lead-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.lead-status {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    min-height: 1em;
}

.lead-status.is-error { color: var(--accent-orange); }
.lead-status.is-loading { color: var(--accent-cyan); }

/* Success */
.lead-success {
    text-align: center;
    padding: 30px 20px;
}

/* Responsive */
@media (max-width: 640px) {
    .modal-lg { padding: 28px 18px 20px; }
    .lead-row { grid-template-columns: 1fr; }
    .lead-fieldset { padding: 14px 12px 10px; }
    .lead-actions { flex-direction: column-reverse; }
    .lead-actions button { width: 100%; }
    .lead-doc { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   HERO SPLIT — rediseño v2 (texto izquierda · visual derecha)
   ============================================================ */

.hero-split {
    padding: 60px 24px 100px;
    text-align: left;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.hero-copy { text-align: left; }

.hero-copy .pre-chip {
    margin-bottom: 22px;
}

.headline-split {
    text-align: left;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 18px;
    letter-spacing: -1.5px;
}

.headline-split em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub-headline-tight {
    text-align: left;
    margin: 0 0 28px;
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.55;
}

/* Chips de servicios en el hero */
.hero-services {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-services li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.hs-icon { font-size: 1rem; line-height: 1; }
.hs-label { font-weight: 500; }

/* CTAs alineados a la izquierda */
.cta-group-left { align-items: flex-start; }
.cta-group-left .cta-row { justify-content: flex-start; }
.cta-sub-left { text-align: left; margin-top: 14px; }

.cta-ghost-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-display);
}

/* Visual a la derecha */
.visual-wrap-right {
    margin: 0;
    place-self: center;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .hero-copy { text-align: center; }
    .headline-split { text-align: center; }
    .sub-headline-tight { text-align: center; margin-left: auto; margin-right: auto; }
    .hero-services { justify-content: center; }
    .cta-group-left { align-items: center; }
    .cta-group-left .cta-row { justify-content: center; }
    .cta-sub-left { text-align: center; }
    .visual-wrap-right { order: -1; margin: 0 auto; }
}

/* ============================================================
   SERVICIOS PROFESIONALES — 4 pilares
   ============================================================ */

.servicios {
    position: relative;
    z-index: 2;
    padding: 80px 24px 0;
}

.servicios-inner { max-width: 1180px; margin: 0 auto; }

.serv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.serv-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 26px 22px;
    transition: transform 250ms var(--ease-smooth), border-color 250ms var(--ease-smooth);
}

.serv-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
}

.serv-card-cyan:hover   { border-color: var(--accent-cyan);   box-shadow: 0 12px 30px rgba(0, 229, 255, 0.15); }
.serv-card-yellow:hover { border-color: var(--accent-yellow); box-shadow: 0 12px 30px rgba(245, 197, 24, 0.15); }
.serv-card-purple:hover { border-color: var(--accent-purple); box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15); }
.serv-card-orange:hover { border-color: var(--accent-orange); box-shadow: 0 12px 30px rgba(255, 109, 58, 0.15); }

.serv-card.is-featured {
    background: linear-gradient(180deg, rgba(255, 109, 58, 0.08), rgba(124, 58, 237, 0.04));
    border-color: rgba(255, 109, 58, 0.3);
}

.serv-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-purple));
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(255, 109, 58, 0.4);
    white-space: nowrap;
}

.serv-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.serv-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.serv-card-cyan .serv-title   { color: var(--accent-cyan); }
.serv-card-yellow .serv-title { color: var(--accent-yellow); }
.serv-card-purple .serv-title { color: var(--accent-purple); }
.serv-card-orange .serv-title { color: var(--accent-orange); }

.serv-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.serv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.serv-list li {
    font-size: 0.78rem;
    color: var(--text-primary);
    padding: 5px 0 5px 18px;
    position: relative;
    line-height: 1.45;
}

.serv-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
}

@media (max-width: 1080px) {
    .serv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .servicios { padding: 60px 16px 0; }
    .serv-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DOBLE TOGGLE — Mensual/Anual + Sin firma / Firma 1y / Firma 2y
   ============================================================ */

.toggle-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.firma-toggle {
    display: inline-flex;
    padding: 5px;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.20);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.firma-opt {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 200ms var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.firma-opt:hover { color: var(--text-primary); }

.firma-opt.is-active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.4);
}

.save-pill-purple {
    background: var(--accent-purple);
    color: #fff;
}

/* Sub-precio firma debajo del precio principal */
.plan-price-firma {
    font-size: 0.78rem;
    color: var(--accent-purple);
    margin: 4px 0 12px;
    font-weight: 500;
    line-height: 1.35;
}

.plan-price-firma strong {
    color: var(--text-primary);
}

/* ============================================================
   ASESORÍA GRATUITA — cierre vendedor
   ============================================================ */

.advisor-cta {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
    background: linear-gradient(
        180deg,
        rgba(5, 8, 24, 0) 0%,
        rgba(255, 109, 58, 0.04) 50%,
        rgba(5, 8, 24, 0) 100%
    );
}

.advisor-cta-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.advisor-copy { text-align: left; }
.section-sub-left { text-align: left; margin-left: 0; }

.advisor-copy .section-title { text-align: left; }

.pre-chip-orange {
    color: var(--accent-orange);
    border-color: rgba(255, 109, 58, 0.3);
    background: rgba(255, 109, 58, 0.08);
}

.advisor-bullets {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.advisor-bullets li {
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 8px 0;
    line-height: 1.5;
}

.advisor-form {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 109, 58, 0.18);
    border-radius: 22px;
    padding: 32px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    box-shadow: 0 20px 60px rgba(255, 109, 58, 0.10);
}

.advisor-form .lead-field-full {
    grid-column: 1 / -1;
}

.advisor-form .lead-field input,
.advisor-form .lead-field select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 11px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 200ms var(--ease-smooth);
    width: 100%;
}

.advisor-form .lead-field input:focus,
.advisor-form .lead-field select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 109, 58, 0.12);
}

.advisor-submit {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    color: #050818;
    border: none;
    padding: 16px 28px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 109, 58, 0.35);
    transition: all 200ms var(--ease-smooth);
}

.advisor-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.advisor-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.advisor-status {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.85rem;
    margin: 0;
    min-height: 1em;
}

.advisor-status.is-error { color: var(--accent-orange); }
.advisor-status.is-loading { color: var(--accent-cyan); }
.advisor-status.is-success { color: var(--accent-cyan); font-weight: 500; }

@media (max-width: 980px) {
    .advisor-cta-inner { grid-template-columns: 1fr; gap: 32px; }
    .advisor-copy { text-align: center; }
    .advisor-copy .section-title,
    .section-sub-left { text-align: center; }
    .section-sub-left { margin-left: auto; margin-right: auto; }
    .advisor-bullets { display: inline-block; text-align: left; }
}

@media (max-width: 600px) {
    .advisor-cta { padding: 70px 16px; }
    .advisor-form { grid-template-columns: 1fr; padding: 24px 18px; }
}

/* ============================================================
   BADGE "Próximamente" — Advisor IA pulsante
   ============================================================ */

.serv-badge-soon {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.serv-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-dot 1.6s var(--ease-smooth) infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.serv-card.is-soon {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(0, 229, 255, 0.04));
    border-color: rgba(124, 58, 237, 0.3);
    position: relative;
    /* Importante: NO usar overflow:hidden aquí porque cortaría el badge
       "Próximamente" que se posiciona con top:-10px. El sheen se contiene
       con clip-path en el ::after. */
}

.serv-card.is-soon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    pointer-events: none;
    animation: sheen 4s var(--ease-smooth) infinite;
    border-radius: 20px;
    clip-path: inset(0 round 20px);
    z-index: 0;
}

/* Mantener el contenido encima del sheen */
.serv-card.is-soon > * {
    position: relative;
    z-index: 1;
}

@keyframes sheen {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.serv-card.is-soon .serv-title {
    color: var(--accent-purple);
}

.serv-soon-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-style: italic;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 229, 255, 0.18);
}

/* ============================================================
   RESPONSIVE — refuerzos transversales (M1 v2)
   Cubrir: header, hero, servicios, planes, firmas, combos,
   advisor, modal lead, footer y FAB en todos los anchos.
   ============================================================ */

/* Reducir padding global de secciones en pantallas medianas */
@media (max-width: 1024px) {
    .hero-split   { padding: 40px 20px 70px; }
    .servicios    { padding: 60px 20px 0; }
    .plans        { padding: 60px 20px 80px; }
    .advisor-cta  { padding: 70px 20px; }
}

/* Tablets — 720px */
@media (max-width: 720px) {
    .hero-split   { padding: 28px 16px 50px; }
    .servicios    { padding: 50px 16px 0; }
    .plans        { padding: 50px 16px 70px; }
    .advisor-cta  { padding: 60px 16px; }

    .plans-header { margin-bottom: 24px; }
    .plans-header-tight { margin-top: 50px; margin-bottom: 22px; }

    .hero-services li { font-size: 0.72rem; padding: 6px 11px; }
    .hs-icon { font-size: 0.92rem; }

    .toggle-stack { gap: 10px; }
    /* Toggles en mobile: una sola fila, opciones repartidas equitativamente.
       NO wrap — el contenido se compacta para que los 3 botones del toggle
       de firma quepan sin saltarse de línea. */
    .billing-toggle, .firma-toggle {
        width: 100%;
        max-width: 480px;
        justify-content: center;
        flex-wrap: nowrap;
    }
    .billing-opt, .firma-opt {
        flex: 1 1 0;
        min-width: 0;
        padding: 9px 10px;
        font-size: 0.74rem;
        white-space: nowrap;
        text-align: center;
        justify-content: center;
    }
    .save-pill, .save-pill-purple { font-size: 0.55rem; padding: 2px 5px; }

    /* Cards de plan en mobile: padding interior menor */
    .plan-card { padding: 24px 18px; }
    .plan-features li { font-size: 0.82rem; padding: 6px 0 6px 20px; }

    /* Visual hero en tablet — tamaño moderado */
    .visual-wrap-right { width: 280px; height: 280px; }

    /* Float cards alrededor del asesor más pequeñas */
    .visual-wrap-right .float-card { font-size: 0.6rem; padding: 5px 8px; }
}

/* Mobiles 600px */
@media (max-width: 600px) {
    .pre-chip { font-size: 0.68rem; padding: 5px 12px; }
    .hero-services { gap: 6px; }
    .hero-services li { font-size: 0.68rem; padding: 5px 10px; }
    .visual-wrap-right { width: 240px; height: 240px; }
}

/* Mobile pequeño 480px */
@media (max-width: 480px) {
    .hero-split   { padding: 20px 14px 40px; }
    .servicios    { padding: 40px 14px 0; }
    .plans        { padding: 40px 14px 56px; }
    .advisor-cta  { padding: 48px 14px; }

    .headline-split { font-size: clamp(1.85rem, 8vw, 2.4rem); letter-spacing: -1px; }
    .sub-headline-tight { font-size: 0.9rem; }

    /* CTAs apilados en mobile */
    .cta-row { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
    .cta-btn, .cta-ghost, .cta-ghost-btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 0.78rem; }

    /* Hero services: solo 4 chips visibles + mostrar el resto en otra fila ajustada */
    .hero-services { justify-content: center; }
    .hero-services li { flex: 0 0 calc(50% - 6px); justify-content: center; }

    .visual-wrap-right { width: 200px; height: 200px; }
    .visual-wrap-right .float-card { font-size: 0.55rem; padding: 4px 7px; }
    .visual-wrap-right .ring-outer { width: 200px; height: 200px; }
    .visual-wrap-right .ring-inner { width: 150px; height: 150px; }

    /* Servicios: cards más compactas */
    .serv-card { padding: 22px 18px; }
    .serv-icon { font-size: 1.8rem; margin-bottom: 10px; }
    .serv-title { font-size: 1.05rem; }
    .serv-desc { font-size: 0.84rem; }

    /* Combos en una columna ya con padding menor */
    .combo-card { padding: 20px 18px; }
    .combo-title { font-size: 0.95rem; }
    .combo-price { font-size: 1.5rem; }

    /* Firma cards — más compactas y centradas */
    .firma-card { padding: 18px 12px; }
    .firma-time { font-size: 0.85rem; }
    .firma-price { font-size: 1.4rem; }

    /* Toggle: pill más chico, manteniendo nowrap y flex:1 del breakpoint 720 */
    .billing-toggle, .firma-toggle { padding: 4px; }
    .billing-opt, .firma-opt {
        padding: 8px 6px;
        font-size: 0.68rem;
        gap: 3px;
    }
    /* En pantallas muy estrechas, ocultar el badge "Recomendado" para que
       el botón de "+ Firma 2 años" no se haga demasiado ancho y empuje los
       otros dos. El badge desaparece pero el resaltado visual (gradient)
       sigue indicando que es el recomendado. */
    .firma-opt .save-pill-purple { display: none; }

    /* Modal lead full-width */
    .modal-lg { padding: 22px 14px 16px; max-width: 100%; width: calc(100% - 16px); }
    .lead-fieldset { padding: 12px 10px 8px; }
    .lead-legend { font-size: 0.62rem; letter-spacing: 0.8px; }
    .lead-field input, .lead-field select, .lead-field textarea { font-size: 0.85rem; padding: 9px 10px; }

    /* Advisor form */
    .advisor-form { padding: 22px 16px; gap: 10px; }
    .advisor-submit { padding: 14px 20px; font-size: 0.85rem; }
    .advisor-bullets li { font-size: 0.85rem; }
}

/* Mobile muy pequeño 380px */
@media (max-width: 380px) {
    .hero-services li { flex: 1 1 100%; }
    .visual-wrap-right { width: 170px; height: 170px; }
    .plan-name { font-size: 1.1rem; }
    .price-num { font-size: 2.2rem; }
    .firma-price { font-size: 1.25rem; }
    .combo-price { font-size: 1.35rem; }
}

/* Touch targets accesibles (44x44 mínimo Apple HIG) */
@media (pointer: coarse) {
    .billing-opt, .firma-opt,
    .plan-cta, .firma-cta, .combo-cta,
    .advisor-submit, .lead-submit, .lead-cancel,
    .cta-btn, .cta-ghost, .cta-ghost-btn {
        min-height: 44px;
    }
}

/* Evitar que el WhatsApp FAB tape el form de asesoría en mobile */
@media (max-width: 768px) {
    .advisor-cta { padding-bottom: 100px; }
}

/* Mejor scroll del modal de leads en mobile (iOS) */
.lead-overlay {
    -webkit-overflow-scrolling: touch;
}

/* Reducir motion para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
    .serv-card.is-soon::after,
    .serv-badge-dot,
    .ring,
    .float-card,
    .scan-line {
        animation: none !important;
    }
    * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   WIZARD DE PASOS — toggle de planes con jerarquía clara
   ============================================================ */

/* Desktop: dos pasos lado a lado. Mobile: apilados (override en media). */
.toggle-stack {
    display: flex;
    flex-direction: row;
    gap: 36px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 28px;
    width: 100%;
}

.toggle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
}

.toggle-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.toggle-step:nth-child(2) .toggle-step-num {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.4);
}

.toggle-step-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.toggle-step-label em {
    font-style: normal;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.72rem;
    margin-left: 2px;
}

/* Tablet/mobile: stackeamos los dos pasos verticalmente.
   Breakpoint generoso (820px) para evitar que en tablets pequeñas
   los toggles se compriman al chocarse. */
@media (max-width: 820px) {
    .toggle-stack {
        flex-direction: column;
        gap: 22px;
        align-items: center;
    }
    .toggle-step { width: 100%; }
}

@media (max-width: 600px) {
    .toggle-stack { gap: 18px; margin-top: 22px; }
    .toggle-step { gap: 8px; }
    .toggle-step-num { width: 22px; height: 22px; font-size: 0.7rem; }
    .toggle-step-label { font-size: 0.74rem; }
}

/* ============================================================
   WIZARD INTERNO DEL MODAL — pasos numerados + segmented
   ============================================================ */

.lead-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 14px;
}

.lead-step:first-child { margin-top: 0; }

.lead-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.lead-step-label {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

/* Segmented control para Mensual/Anual y PN/RL */
.lead-segmented {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 14px;
}

.lead-segmented input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lead-segmented label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 200ms var(--ease-smooth);
    text-align: center;
    line-height: 1.2;
}

.lead-segmented label:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.lead-segmented input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.25);
}

.lead-segmented label small {
    display: inline-block;
    background: var(--accent-yellow);
    color: #050818;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.lead-segmented input[type="radio"]:checked + label small {
    background: rgba(255, 255, 255, 0.92);
    color: #050818;
}

@media (max-width: 480px) {
    .lead-segmented { grid-template-columns: 1fr; }
    .lead-step-num { width: 20px; height: 20px; font-size: 0.66rem; }
    .lead-step-label { font-size: 0.72rem; }
}

/* Footer meta — copy + crédito Tu Marca Digital */
.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-credit {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.2px;
}

.footer-credit a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 200ms var(--ease-smooth);
}

.footer-credit a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-meta { align-items: center; text-align: center; }
}

/* ============================================================
   PRE-CHIP HERO — duplicado mobile/desktop para reordenar
   sin reflujo del grid (en mobile aparece arriba del visual).
   ============================================================ */

/* Default desktop: ocultar el chip mobile */
.pre-chip-mobile { display: none; }

@media (max-width: 1024px) {
    /* En mobile/tablet: el chip dentro de hero-copy se oculta */
    .pre-chip-desktop { display: none; }

    /* El chip mobile aparece centrado arriba del hero-grid */
    .pre-chip-mobile {
        display: inline-flex;
        align-self: center;
        margin: 0 auto 24px;
        font-size: clamp(0.6rem, 1.8vw, 0.72rem);
        padding: 6px 14px;
        white-space: nowrap;
        max-width: calc(100% - 24px);
    }

    /* El hero-split en mobile pasa a flex column para que el chip se alinee
       correctamente arriba del grid de 1 columna. */
    .hero-split {
        display: flex;
        flex-direction: column;
    }
    .hero-split .hero-grid { width: 100%; }
}

/* En pantallas muy estrechas (<360px), permitir que el chip wrap si no cabe */
@media (max-width: 360px) {
    .pre-chip-mobile {
        white-space: normal;
        text-align: center;
        font-size: 0.6rem;
    }
}

/* ============================================================
   HERO MOBILE — visual + float-cards en grid 2×2 + headline
   Las cards se reposicionan debajo del visual (no a los lados)
   manteniendo su animación flotante (bob-a/b/c/d).
   ============================================================ */

@media (max-width: 1024px) {
    /* Espacio reservado para 2 filas de float-cards debajo del visual */
    .visual-wrap-right { margin: 0 auto 130px; }

    /* Cards más pequeñas pero visibles, sobre fondo glass */
    .visual-wrap-right .float-card {
        font-size: 0.6rem;
        padding: 6px 10px;
        gap: 6px;
    }
    .visual-wrap-right .float-card .fc-icon  { font-size: 0.85rem; }
    .visual-wrap-right .float-card .fc-label { font-size: 0.48rem; }
    .visual-wrap-right .float-card .fc-value { font-size: 0.66rem; }

    /* Reposición: 2x2 grid debajo del visual.
       Row 1 (12px abajo) — fc-d izquierda, fc-a derecha */
    .visual-wrap-right .fc-d {
        left: -8px; right: auto;
        top: calc(100% + 14px); bottom: auto;
    }
    .visual-wrap-right .fc-a {
        left: auto; right: -8px;
        top: calc(100% + 14px); bottom: auto;
    }
    /* Row 2 (60px abajo) — fc-c izquierda, fc-b derecha */
    .visual-wrap-right .fc-c {
        left: -8px; right: auto;
        top: calc(100% + 64px); bottom: auto;
    }
    .visual-wrap-right .fc-b {
        left: auto; right: -8px;
        top: calc(100% + 64px); bottom: auto;
    }

    /* Headline en una sola línea (quitamos los <br>) */
    .headline-split {
        text-align: center;
        font-size: clamp(1.5rem, 5.5vw, 2.6rem);
        line-height: 1.15;
        letter-spacing: -1px;
    }
    .headline-split br { display: none; }
}

@media (max-width: 720px) {
    .visual-wrap-right { width: 220px; height: 220px; margin-bottom: 120px; }
    .headline-split { font-size: clamp(1.4rem, 6.5vw, 1.95rem); }
}

@media (max-width: 480px) {
    .visual-wrap-right { width: 200px; height: 200px; margin-bottom: 110px; }
    .headline-split { font-size: clamp(1.25rem, 7vw, 1.65rem); }

    .visual-wrap-right .float-card {
        font-size: 0.55rem;
        padding: 5px 8px;
        gap: 5px;
    }
    .visual-wrap-right .float-card .fc-icon  { font-size: 0.78rem; }
    .visual-wrap-right .float-card .fc-label { font-size: 0.44rem; }
    .visual-wrap-right .float-card .fc-value { font-size: 0.6rem; }

    /* Row 1 — fc-d (izq) y fc-a (der) más cerca del visual */
    .visual-wrap-right .fc-d,
    .visual-wrap-right .fc-a { top: calc(100% + 10px); }
    /* Row 2 — fc-c (izq) y fc-b (der) un poco más abajo */
    .visual-wrap-right .fc-c,
    .visual-wrap-right .fc-b { top: calc(100% + 54px); }
}

@media (max-width: 360px) {
    .headline-split { white-space: normal; }
}

/* ============================================================
   PLAN FREE — aviso especial cuando se elige Tribu Inicia
   ============================================================ */

.lead-free-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 12px 0;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.10), rgba(0, 229, 255, 0.06));
    border: 1px solid rgba(245, 197, 24, 0.28);
    border-radius: 12px;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.lead-free-note[hidden] { display: none; }

.lead-free-note span:first-child {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.lead-free-note strong {
    color: var(--accent-yellow);
}

/* Contenedor del bloque de ciclo — display:none aplicado vía JS cuando FREE */
.lead-cycle-block { margin-top: 4px; }

/* ============================================================
   PUENTE LEAD → SIGNUP — botones de acción tras envío exitoso
   ============================================================ */

.lead-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: 18px;
    margin-bottom: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(124, 58, 237, 0.04));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 14px;
}

.lead-success-actions[hidden] { display: none; }

.lead-success-prompt {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 0 4px;
}

.lead-success-actions .lead-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 700;
}

.lead-success-or {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 4px 0 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   LIGHT THEME — overrides finos para superficies con rgba duras
   ============================================================
   Solo cubre lo que tiene rgba(255,255,255,...) literal y no usa
   tokens (cards, modal, inputs, footer). Acentos se quedan
   intactos para preservar la identidad visual de Tribufy.
*/
:root[data-theme="light"] header[role="banner"]::after,
:root[data-theme="light"] footer::before {
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.18), transparent);
}

:root[data-theme="light"] .pre-chip {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.10);
    color: var(--text-primary);
}

:root[data-theme="light"] .float-card,
:root[data-theme="light"] .advisor-card,
:root[data-theme="light"] .plan-card,
:root[data-theme="light"] .firma-card,
:root[data-theme="light"] .combo-card,
:root[data-theme="light"] .servicio-card,
:root[data-theme="light"] .lead-modal {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--border-medium);
    backdrop-filter: blur(14px) saturate(140%);
    color: var(--text-primary);
}

:root[data-theme="light"] .lead-modal {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

:root[data-theme="light"] .lead-fieldset {
    border-color: var(--border-medium);
    background: rgba(15, 23, 42, 0.02);
}

:root[data-theme="light"] .lead-field input,
:root[data-theme="light"] .lead-field select,
:root[data-theme="light"] .lead-field textarea {
    background: #ffffff;
    border-color: var(--border-medium);
    color: var(--text-primary);
}

:root[data-theme="light"] .lead-field input::placeholder,
:root[data-theme="light"] .lead-field textarea::placeholder {
    color: rgba(15, 23, 42, 0.40);
}

:root[data-theme="light"] .lead-field select option {
    background: #ffffff;
    color: var(--text-primary);
}

:root[data-theme="light"] .cta-ghost,
:root[data-theme="light"] .cta-ghost-btn {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

:root[data-theme="light"] .cta-ghost:hover,
:root[data-theme="light"] .cta-ghost-btn:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: var(--accent-cyan);
}

:root[data-theme="light"] .hs-icon,
:root[data-theme="light"] .hero-services li {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--border-medium);
}

:root[data-theme="light"] footer {
    color: var(--text-muted);
}

/* Fallback genérico: cualquier rgba(255,255,255,X) sobre superficies
   de fondo se ve casi invisible en light mode. Como red de seguridad,
   bajamos la opacidad del scrollbar y los hover overlays. */
:root[data-theme="light"] *::selection {
    background: rgba(124, 58, 237, 0.20);
    color: var(--text-primary);
}
