/* ========================================
   VIALTECH DEMO — REDESIGN VISUAL TOTAL
   Stack: Bebas Neue + Space Grotesk
   ======================================== */

:root {
    --bg:          #050508;
    --bg2:         #0a0a10;
    --cyan:        #00d4ff;
    --purple:      #7c3aed;
    --green:       #10b981;
    --red:         #ef4444;
    --text:        #e8ecf0;
    --text-dim:    #8892a4;
    --card-bg:     rgba(255,255,255,0.032);
    --card-border: rgba(0,212,255,0.13);
    --glass-blur:  backdrop-filter: blur(20px);
    --font-body:   'Space Grotesk', sans-serif;
    --font-display:'Bebas Neue', sans-serif;
    --grad-main:   linear-gradient(135deg, #00d4ff, #7c3aed);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { font-size:16px; scroll-behavior:smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── CURSOR RESTORE ─────────────────────── */
body, a, button, input, select, textarea, * { cursor: auto !important; }
a, button { cursor: pointer !important; }
input, select, textarea { cursor: text !important; }
.cursor, .cursor-ring { display: none !important; }

/* ── PROGRESS BAR ────────────────────────── */
.progress-bar {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--green));
    z-index: 1000;
    transition: width 0.25s ease;
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

/* ── NAV DOTS ────────────────────────────── */
.nav-dots {
    position: fixed;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 14px;
    z-index: 999;
}
.nav-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,212,255,0.25);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}
.nav-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.3s;
}
.nav-dot.active {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.2), 0 0 14px rgba(0,212,255,0.5);
    transform: scale(1.3);
}
.nav-dot:hover:not(.active) { border-color: rgba(0,212,255,0.6); transform: scale(1.2); }

/* ── WHATSAPP FLOAT ──────────────────────── */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 54px; height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 24px rgba(37,211,102,0.45);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 32px rgba(37,211,102,0.65); }

/* ── NAV LABEL ───────────────────────────── */
.nav-section-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── SCROLL CONTAINER ────────────────────── */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
}
.scroll-container::-webkit-scrollbar { width: 3px; }
.scroll-container::-webkit-scrollbar-track { background: transparent; }
.scroll-container::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.18); border-radius: 2px; }

/* ── SECTION BASE ────────────────────────── */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 88px 40px 52px;
    overflow: hidden;
}

/* Section backgrounds */
.section-hero        { background: radial-gradient(ellipse 80% 60% at 40% 35%, rgba(0,212,255,0.09) 0%, transparent 60%), var(--bg); }
.section-calculator  { background: radial-gradient(ellipse 65% 65% at 65% 45%, rgba(124,58,237,0.09) 0%, transparent 65%), var(--bg); }
.section-diagnosis   { background: radial-gradient(ellipse 85% 55% at 50% 55%, rgba(239,68,68,0.055) 0%, rgba(16,185,129,0.055) 55%, transparent 80%), var(--bg); }
.section-chat        { background: radial-gradient(ellipse 65% 70% at 28% 48%, rgba(37,211,102,0.07) 0%, transparent 65%), var(--bg); }
.section-dispatch    { background: radial-gradient(ellipse 75% 55% at 50% 42%, rgba(0,212,255,0.07) 0%, transparent 70%), var(--bg); }
.section-botops      { background: radial-gradient(ellipse 70% 60% at 62% 52%, rgba(124,58,237,0.09) 0%, rgba(0,212,255,0.04) 50%, transparent 75%), var(--bg); }
.section-call        { background: radial-gradient(ellipse 65% 65% at 50% 50%, rgba(0,212,255,0.08) 0%, transparent 70%), var(--bg); }
.section-final       { background: radial-gradient(ellipse 65% 65% at 50% 50%, rgba(16,185,129,0.07) 0%, transparent 70%), var(--bg); }

/* Canvas backgrounds */
.scene-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.hero-particles {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section > *:not(.scene-canvas):not(.hero-particles):not(.section-number) {
    position: relative; z-index: 1;
}

/* ── SECTION NUMBER ──────────────────────── */
.section-number {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 18rem);
    color: rgba(0,212,255,0.04);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ── TEXT UTILITIES ──────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0.025em;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.section-title.center { text-align: center; }

.section-subtitle {
    font-size: 0.92rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── BUTTONS ─────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 30px;
    background: var(--grad-main);
    color: white; border: none;
    border-radius: 12px;
    font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative; z-index: 1;
    box-shadow: 0 0 0 0 rgba(0,212,255,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(0,212,255,0.45), 0 0 64px rgba(124,58,237,0.2);
}

.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 30px;
    background: transparent;
    color: var(--cyan);
    border: 1.5px solid rgba(0,212,255,0.4);
    border-radius: 12px;
    font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-secondary:hover { background: rgba(0,212,255,0.08); border-color: var(--cyan); box-shadow: 0 0 20px rgba(0,212,255,0.2); }

.btn-large { padding: 17px 38px; font-size: 1.05rem; }

/* ── DEMO LOADER ─────────────────────────── */
.demo-loader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 20px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.demo-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Loader logo */
.loader-logo-wrap {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.loader-logo-img {
    height: 52px;
    width: auto;
    animation: logoBreath 2s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(0,212,255,0.55));
    position: relative; z-index: 1;
}
.loader-logo-glow {
    position: absolute;
    width: 260px; height: 60px;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,212,255,0.18) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes logoBreath {
    0%,100% { opacity: 1;   transform: scale(1);    filter: drop-shadow(0 0 18px rgba(0,212,255,0.55)); }
    50%      { opacity: 0.8; transform: scale(0.97); filter: drop-shadow(0 0 32px rgba(0,212,255,0.9)); }
}
@keyframes glowPulse {
    0%,100% { opacity: 0.6; transform: scaleX(1); }
    50%      { opacity: 1;   transform: scaleX(1.15); }
}

.loader-bar {
    width: 220px; height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar__fill {
    height: 100%;
    width: 0%;
    background: var(--grad-main);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
    transition: width 0.1s ease;
}
.loader-text {
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

/* ================================================
   SECTION 0: HERO
   ================================================ */
.section-hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 860px; width: 100%;
    display: flex; flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 20px;
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 100px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
    animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
.hero-badge__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    animation: dotPulse 2s ease infinite;
    flex-shrink: 0;
}
@keyframes dotPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.3; transform: scale(0.8); }
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: 0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
}

/* Loss counter */
.loss-counter {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    margin-bottom: 20px;
}
.loss-amount {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 10vw, 6.5rem);
    color: var(--red);
    text-shadow: 0 0 60px rgba(239,68,68,0.5), 0 0 120px rgba(239,68,68,0.2);
    line-height: 1;
    animation: amountPulse 2.5s ease-in-out infinite;
}
@keyframes amountPulse {
    0%,100% { text-shadow: 0 0 60px rgba(239,68,68,0.5), 0 0 120px rgba(239,68,68,0.2); }
    50%      { text-shadow: 0 0 80px rgba(239,68,68,0.7), 0 0 160px rgba(239,68,68,0.3); }
}
.loss-unit {
    font-size: 0.95rem; color: var(--text-dim);
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1rem; color: var(--text-dim);
    margin-bottom: 30px; line-height: 1.65;
    max-width: 480px;
}

/* Stats row */
.hero-stats-row {
    display: flex; align-items: center; justify-content: center; gap: 0;
    margin-top: 36px; width: 100%;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 22px 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.hero-stat {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.hero-stat__num {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    color: var(--cyan); line-height: 1;
}
.hero-stat__lbl {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    text-align: center; line-height: 1.35;
    max-width: 90px;
}
.hero-stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.07); }

/* ================================================
   SECTION 1: CALCULATOR
   ================================================ */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    max-width: 1020px; width: 100%;
    position: relative; z-index: 1;
}

.calc-inputs {
    display: flex; flex-direction: column; gap: 22px;
}

.input-group {
    display: flex; flex-direction: column; gap: 9px;
}
.input-group label {
    font-size: 0.88rem; color: var(--text-dim); font-weight: 500;
    letter-spacing: 0.02em;
}
.slider-value { color: var(--cyan); font-weight: 700; }

/* Select + styled input */
select, .styled-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,212,255,0.18);
    color: var(--text);
    padding: 13px 16px;
    border-radius: 10px;
    font-family: var(--font-body); font-size: 0.96rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    backdrop-filter: blur(10px);
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300d4ff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}
select:focus, .styled-input:focus {
    border-color: rgba(0,212,255,0.5);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08), 0 0 16px rgba(0,212,255,0.15);
}
select option { background: #111827; color: var(--text); }

/* Range slider */
.styled-range {
    -webkit-appearance: none;
    width: 100%; height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    outline: none;
    cursor: pointer !important;
}
.styled-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--grad-main);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,212,255,0.5);
}
.styled-range::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--grad-main);
    cursor: pointer; border: none;
    box-shadow: 0 0 12px rgba(0,212,255,0.5);
}

/* Results card */
.calc-results {
    display: flex; align-items: center;
}
.result-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 32px;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0,212,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.result-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
}
.result-card h3 {
    font-size: 0.88rem; color: var(--text-dim);
    margin-bottom: 22px;
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}
.result-breakdown {
    display: flex; flex-direction: column; gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.result-line {
    display: flex; justify-content: space-between; align-items: center;
}
.result-line span:first-child { color: var(--text-dim); font-size: 0.88rem; }
.result-val { font-weight: 700; color: var(--red); font-size: 1rem; }

.result-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.result-total-label { font-size: 0.92rem; font-weight: 600; color: var(--text-dim); }
.result-total-amount {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--red);
    text-shadow: 0 0 24px rgba(239,68,68,0.4);
}

.result-annual {
    font-size: 0.88rem; color: var(--text-dim); margin-bottom: 24px;
}
.result-annual span:last-child { color: var(--red); font-weight: 700; }

/* Recovery bar */
.result-recovery-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}
.result-recovery-bar__fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    border-radius: 3px;
    transition: width 1s ease;
    box-shadow: 0 0 8px rgba(16,185,129,0.4);
}

/* ================================================
   SECTION 2: DIAGNOSIS
   ================================================ */
.diagnosis-cards {
    display: flex; align-items: center; gap: 14px;
    max-width: 1100px; width: 100%;
    position: relative; z-index: 1;
    flex-wrap: wrap; justify-content: center;
}

.diag-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 28px;
    flex: 1; min-width: 240px; max-width: 300px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.diag-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}
.diag-card.visible { opacity: 1; transform: translateY(0); }
.diag-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,212,255,0.06); }

.diag-without { border-color: rgba(239,68,68,0.25); }
.diag-without::before { background: linear-gradient(90deg, transparent, rgba(239,68,68,0.3), transparent); }
.diag-with    { border-color: rgba(16,185,129,0.25); }
.diag-with::before { background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3), transparent); }
.diag-result  { border-color: rgba(0,212,255,0.25); }

.diag-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.08em; margin-bottom: 20px;
}
.diag-badge.bad    { background: rgba(239,68,68,0.12);   color: var(--red);    border: 1px solid rgba(239,68,68,0.2); }
.diag-badge.good   { background: rgba(16,185,129,0.12);  color: var(--green);  border: 1px solid rgba(16,185,129,0.2); }
.diag-badge.result { background: rgba(0,212,255,0.12);   color: var(--cyan);   border: 1px solid rgba(0,212,255,0.2); }

.diag-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.diag-list li { font-size: 0.92rem; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.diag-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.diag-icon.red   { color: var(--red); }
.diag-icon.green { color: var(--green); }
.diag-profit { color: var(--green); font-weight: 600; }
.diag-roi    { color: var(--cyan); }

.diag-arrow {
    flex-shrink: 0; opacity: 0;
    transition: opacity 0.4s ease;
}
.diag-arrow.visible { opacity: 1; }

/* ================================================
   SECTION 3: CHAT WHATSAPP
   ================================================ */
.chat-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    max-width: 900px; width: 100%;
    position: relative; z-index: 1;
    align-items: start;
}

.phone-mockup {
    background: #0b141a;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.phone-header {
    background: linear-gradient(180deg, #1a2730 0%, #0d1e26 100%);
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(37,211,102,0.1);
}
.phone-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0,212,255,0.3);
}
.phone-name { font-weight: 600; font-size: 0.95rem; }
.phone-status { font-size: 0.72rem; color: #25d366; display: flex; align-items: center; gap: 4px; }
.phone-status::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: #25d366;
    animation: dotPulse 2s ease infinite;
    flex-shrink: 0;
}

.phone-chat {
    padding: 16px; min-height: 320px; max-height: 380px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E"), #0b141a;
}
.phone-chat::-webkit-scrollbar { width: 3px; }
.phone-chat::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.87rem; line-height: 1.45;
    opacity: 0; transform: translateY(8px);
    animation: msgAppear 0.35s ease forwards;
}
@keyframes msgAppear { to { opacity: 1; transform: translateY(0); } }

.chat-msg.user {
    background: linear-gradient(135deg, #005c4b, #006b56);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.chat-msg.bot {
    background: #1f2c34;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.chat-msg.typing {
    background: #1f2c34;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.typing-dots { display: inline-flex; gap: 5px; }
.typing-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%,60%,100% { transform: translateY(0); }
    30%          { transform: translateY(-5px); }
}

.phone-input-bar {
    padding: 13px 16px;
    background: #1f2c34;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.84rem; color: rgba(255,255,255,0.3);
    display: flex; align-items: center; gap: 10px;
}
.phone-input-bar::before {
    content: '●';
    color: rgba(255,255,255,0.15);
    font-size: 0.5rem;
}

/* Chat metrics */
.chat-metrics { display: flex; flex-direction: column; gap: 14px; }

.metric-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px; padding: 20px;
    backdrop-filter: blur(16px);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.metric-card:hover { border-color: rgba(0,212,255,0.25); box-shadow: 0 0 24px rgba(0,212,255,0.06); }

.metric-value { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; margin-bottom: 4px; }
.metric-value.cyan   { color: var(--cyan); text-shadow: 0 0 20px rgba(0,212,255,0.3); }
.metric-value.green  { color: var(--green); text-shadow: 0 0 20px rgba(16,185,129,0.3); }
.metric-value.purple { color: var(--purple); text-shadow: 0 0 20px rgba(124,58,237,0.3); }
.metric-label   { font-size: 0.87rem; color: var(--text-dim); }
.metric-compare { font-size: 0.77rem; color: rgba(239,68,68,0.7); margin-top: 4px; }

.chat-summary {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 12px; padding: 16px 20px;
    font-size: 0.92rem; font-weight: 600; color: var(--green);
    opacity: 0; transition: opacity 0.5s ease;
}
.chat-summary.visible { opacity: 1; }
.summary-check { font-size: 1.05rem; margin-right: 4px; }

/* ================================================
   SECTION 4: DISPATCH
   ================================================ */
/* ── DISPATCH TOP ────────────────────────── */
.dispatch-top {
    text-align: center; width: 100%; max-width: 860px;
    position: relative; z-index: 1; margin-bottom: 16px;
}

/* ── DISPATCH BODY ───────────────────────── */
.dispatch-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    max-width: 900px; width: 100%;
    position: relative; z-index: 1;
    align-items: stretch;
}

/* ── SIDEBAR ─────────────────────────────── */
.dispatch-sidebar {
    display: flex; flex-direction: column; gap: 10px;
}

/* Panel genérico */
.ds-panel {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 14px; overflow: hidden;
    backdrop-filter: blur(16px);
}
.ds-panel__hdr {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 13px;
    background: rgba(0,212,255,0.035);
    border-bottom: 1px solid rgba(0,212,255,0.07);
    font-size: 0.66rem; color: rgba(255,255,255,0.38);
    font-family: var(--font-display); letter-spacing: 0.1em;
}
.ds-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.ds-dot--purple { background: #7c3aed; box-shadow: 0 0 5px rgba(124,58,237,0.7); }
.ds-dot--green  { background: #10b981; box-shadow: 0 0 5px rgba(16,185,129,0.7); animation: dotPulse 2s ease infinite; }
.ds-badge {
    margin-left: auto;
    background: rgba(124,58,237,0.22); color: #c4b5fd;
    padding: 1px 7px; border-radius: 10px;
    font-size: 0.62rem; font-family: var(--font-body); font-weight: 600;
}
.ds-badge--green { background: rgba(16,185,129,0.18); color: #10b981; }

/* Queue items */
.queue-list { padding: 8px; }
.queue-item {
    padding: 8px 10px;
    background: rgba(124,58,237,0.05);
    border: 1px solid rgba(124,58,237,0.14);
    border-left: 3px solid rgba(124,58,237,0.5);
    border-radius: 8px; margin-bottom: 6px;
    font-size: 0.72rem; line-height: 1.45;
    transition: all 0.3s ease;
}
.queue-item.active {
    border-color: var(--cyan);
    border-left-color: var(--cyan);
    background: rgba(0,212,255,0.06);
    box-shadow: 0 0 14px rgba(0,212,255,0.12);
}
.queue-item.done {
    border-left-color: var(--green);
    border-color: rgba(16,185,129,0.2);
    background: rgba(16,185,129,0.04);
    opacity: 0.55;
}
.queue-item-time { font-size: 0.63rem; color: var(--text-dim); margin-top: 2px; }

/* Operator items */
.operator-list { padding: 8px; }
.operator-item {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px; margin-bottom: 4px;
    border-radius: 8px; font-size: 0.74rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.operator-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    font-family: var(--font-body);
}
.operator-info { flex: 1; min-width: 0; }
.operator-name { font-size: 0.73rem; color: var(--text); font-weight: 500; }
.operator-dist { font-size: 0.62rem; color: var(--text-dim); }
.operator-status { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.operator-status.libre   { background: var(--green); box-shadow: 0 0 5px rgba(16,185,129,0.6); }
.operator-status.ocupado { background: var(--red);   box-shadow: 0 0 5px rgba(239,68,68,0.6); }
.operator-status.enruta  { background: #f59e0b;      box-shadow: 0 0 5px rgba(245,158,11,0.6); }
.operator-item.selected {
    background: rgba(0,212,255,0.07);
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 0 12px rgba(0,212,255,0.1);
}
.operator-item.selected .operator-avatar {
    border-color: var(--cyan);
    background: rgba(0,212,255,0.1);
    color: var(--cyan);
}

/* KPI row */
.ds-kpi-row {
    display: flex; gap: 0;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(0,212,255,0.09);
    border-radius: 12px; overflow: hidden;
}
.ds-kpi {
    flex: 1; padding: 10px 0;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    border-right: 1px solid rgba(0,212,255,0.07);
}
.ds-kpi:last-child { border-right: none; }
.ds-kpi__n { font-family: var(--font-display); font-size: 1.25rem; color: var(--cyan); line-height: 1; }
.ds-kpi__l { font-size: 0.6rem; color: var(--text-dim); }

/* ── MAP ─────────────────────────────────── */
.dispatch-panel__map {
    position: relative;
    background: rgba(0,10,20,0.4);
    border: 1px solid rgba(0,212,255,0.12);
    border-radius: 14px; overflow: hidden;
    backdrop-filter: blur(12px);
}
.dispatch-map-label {
    position: absolute; top: 10px; left: 14px;
    font-size: 0.58rem; color: rgba(0,212,255,0.3);
    font-family: var(--font-display); letter-spacing: 0.14em;
    z-index: 2;
}
.dispatch-svg { width: 100%; height: auto; display: block; }
.op-dot { transition: all 0.35s ease; }
.op-dot.selected { fill: var(--cyan); filter: drop-shadow(0 0 10px rgba(0,212,255,0.9)); }

.dispatch-timer {
    position: absolute; bottom: 14px; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 7px;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(0,212,255,0.45);
    border-radius: 10px; padding: 8px 20px;
    font-family: var(--font-display); font-size: 1.2rem; color: var(--cyan);
    opacity: 0; transition: opacity 0.3s ease;
    backdrop-filter: blur(16px); white-space: nowrap;
    box-shadow: 0 0 20px rgba(0,212,255,0.15);
}
.dispatch-timer.visible { opacity: 1; }

/* ── COMPARE ─────────────────────────────── */
.dispatch-compare {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-top: 16px; position: relative; z-index: 1; flex-wrap: wrap;
}
.compare-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px; border-radius: 100px;
    font-size: 0.84rem; border: 1px solid;
}
.compare-pill--before {
    background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.2);
    color: rgba(255,255,255,0.5);
}
.compare-pill--before strong { color: var(--red); }
.compare-pill--after {
    background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.28);
    color: rgba(255,255,255,0.7);
}
.compare-pill--after strong { color: var(--green); }
.compare-arrow { color: rgba(255,255,255,0.2); font-size: 1.2rem; }
.compare-before strong { color: var(--red); }
.compare-arrow  { font-size: 1.4rem; color: var(--cyan); }
.compare-after  { font-size: 1rem; }
.compare-after strong { color: var(--green); }

/* ================================================
   SECTION 5: BOTOPS — inherited from demo-botops-extra.css
   ================================================ */

/* ================================================
   SECTION 6: CALL — inherited from demo-call-redesign.css
   ================================================ */

/* ================================================
   SECTION 7: FINAL ROI
   ================================================ */
.final-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 920px; width: 100%;
    position: relative; z-index: 1;
    margin-bottom: 36px;
}

.roi-summary-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 18px; padding: 28px;
    backdrop-filter: blur(20px);
    position: relative; overflow: hidden;
}
.roi-summary-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,0.5), transparent);
}
.roi-summary-card h3 {
    font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.02em;
    margin-bottom: 22px; color: var(--text);
}

.roi-summary-line {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.92rem;
}
.roi-summary-line span  { color: var(--text-dim); }
.roi-summary-line strong { color: var(--text); }

.roi-summary-line.highlight {
    background: rgba(16,185,129,0.08);
    border-radius: 10px; padding: 13px 14px;
    border: 1px solid rgba(16,185,129,0.18); margin-top: 8px;
}
.roi-summary-line.highlight strong { color: var(--green); font-size: 1.2rem; }

.timeline-7days {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 18px; padding: 28px;
    backdrop-filter: blur(20px);
}
.timeline-7days h4 {
    font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.timeline {
    display: flex; flex-direction: column; gap: 0;
    position: relative; padding-left: 24px;
}
.timeline::before {
    content: '';
    position: absolute; left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--purple));
    opacity: 0.5;
}
.tl-step {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 0; position: relative;
}
.tl-step::before {
    content: '';
    position: absolute; left: -20px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--cyan); border: 2px solid var(--bg);
    box-shadow: 0 0 8px rgba(0,212,255,0.4);
}
.tl-day { font-weight: 700; font-size: 0.82rem; color: var(--cyan); min-width: 48px; }
.tl-text { font-size: 0.88rem; color: var(--text-dim); }

.final-ctas {
    display: flex; gap: 18px; justify-content: center;
    margin-bottom: 26px;
    position: relative; z-index: 1;
    flex-wrap: wrap;
}

.guarantee {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 0.9rem; color: var(--text-dim);
    margin-bottom: 36px; position: relative; z-index: 1;
}

.testimonials {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; max-width: 820px; width: 100%;
    position: relative; z-index: 1; margin-bottom: 28px;
}
.testimonial {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px; padding: 24px;
    backdrop-filter: blur(16px);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.testimonial:hover { border-color: rgba(0,212,255,0.2); box-shadow: 0 0 30px rgba(0,212,255,0.05); }
.testimonial p { font-size: 0.88rem; font-style: italic; color: var(--text-dim); line-height: 1.55; margin-bottom: 12px; }
.testimonial-author { font-size: 0.83rem; margin-bottom: 8px; }
.testimonial-metric { font-family: var(--font-display); font-size: 1.3rem; color: var(--green); }

.final-footer { text-align: center; position: relative; z-index: 1; }
.final-footer a { color: var(--text-dim); text-decoration: none; font-size: 0.82rem; transition: color 0.3s; }
.final-footer a:hover { color: var(--cyan); }

/* ── CALL SECTION BASE ───────────────────── */
.section-call { align-items: center; justify-content: center; }
.call-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; max-width: 1000px; width: 100%;
    align-items: center;
}

.call-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0,212,255,0.28);
    border-radius: 20px; font-size: 0.72rem; letter-spacing: 0.08em;
    color: var(--cyan); margin-bottom: 24px;
    background: rgba(0,212,255,0.05);
    backdrop-filter: blur(10px);
}
.call-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.35); }
}
.call-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; margin-bottom: 16px;
}
.call-desc { font-size: 0.93rem; color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 32px; max-width: 400px; }
.call-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.call-stat  { display: flex; flex-direction: column; gap: 4px; }
.call-stat-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--cyan); line-height: 1; }
.call-stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.42); letter-spacing: 0.06em; text-transform: uppercase; }

.call-right { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* Phone animation */
.phone-anim { position: relative; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.phone-anim__rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(0,212,255,0.4); animation: ringExpand 2.4s ease-out infinite; }
.ring-1 { width: 60px;  height: 60px;  animation-delay: 0s; }
.ring-2 { width: 82px;  height: 82px;  animation-delay: 0.7s; }
.ring-3 { width: 106px; height: 106px; animation-delay: 1.4s; }
@keyframes ringExpand {
    0%   { opacity: 0.8; transform: scale(0.65); }
    100% { opacity: 0;   transform: scale(1.35); }
}
.phone-anim__icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(0,212,255,0.1);
    border: 1.5px solid rgba(0,212,255,0.3);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}

/* Call form */
.call-form-wrap { width: 100%; max-width: 380px; }
.call-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.call-form-group { margin-bottom: 14px; }
.call-form-group label { display: block; font-size: 0.73rem; color: rgba(255,255,255,0.45); margin-bottom: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.call-required { color: var(--cyan); }
.call-form-group input {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 10px; color: white;
    font-family: var(--font-body); font-size: 0.95rem;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}
.call-form-group input:focus, .call-form-group select:focus {
    border-color: rgba(0,212,255,0.55);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
    outline: none;
}
.call-form-group select {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 10px; color: var(--text);
    font-family: var(--font-body); font-size: 0.88rem;
    box-sizing: border-box; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
.call-form-group select option { background: #111827; color: var(--text); }
.call-btn {
    width: 100%; padding: 14px 24px;
    background: var(--grad-main);
    border: none; border-radius: 10px;
    color: white; font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    margin-top: 4px;
}
.call-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(0,212,255,0.35); }
.call-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.call-btn--outline { background: transparent; border: 1px solid rgba(0,212,255,0.38); color: var(--cyan); margin-top: 16px; }
.call-btn--outline:hover { background: rgba(0,212,255,0.07); }
.call-privacy { font-size: 0.7rem; color: rgba(255,255,255,0.28); text-align: center; margin-top: 10px; }

/* Call states */
.call-state { width: 100%; max-width: 340px; text-align: center; }
.calling-anim { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.calling-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--cyan);
    animation: callingBounce 1.2s ease-in-out infinite;
}
.calling-dot:nth-child(2) { animation-delay: 0.2s; }
.calling-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes callingBounce {
    0%,80%,100% { transform: scale(0.8); opacity: 0.5; }
    40%          { transform: scale(1.25); opacity: 1; }
}
.calling-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: white; }
.calling-sub  { font-size: 0.83rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.calling-timer { font-size: 0.78rem; color: rgba(0,212,255,0.7); font-variant-numeric: tabular-nums; }
.success-icon  { margin-bottom: 16px; }
.success-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.success-sub   { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.error-icon    { margin-bottom: 12px; }
.error-text    { font-size: 0.93rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }

/* ── SELECTION ───────────────────────────── */
::selection { background: rgba(0,212,255,0.25); color: white; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .calculator-layout { grid-template-columns: 1fr; gap: 28px; }
    .call-layout { grid-template-columns: 1fr; gap: 36px; padding: 0 12px; }
    .call-left { text-align: center; }
    .call-desc { max-width: 100%; }
    .call-stats { justify-content: center; }
    .dispatch-body { grid-template-columns: 1fr; }
    .dispatch-sidebar { flex-direction: row; flex-wrap: wrap; }
    .dispatch-sidebar .ds-panel { flex: 1; min-width: 160px; }
    .dispatch-queue h4, .dispatch-operators h4 { width: 100%; }
    .final-layout { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .section { padding: 72px 20px 24px; }
    .nav-dots { right: 12px; gap: 12px; }
    .nav-dot  { width: 7px; height: 7px; }
    .nav-section-label { display: none; }
    .diagnosis-cards { flex-direction: column; gap: 12px; }
    .diag-card { max-width: 100%; }
    .diag-arrow { transform: rotate(90deg); }
    .chat-layout { grid-template-columns: 1fr; gap: 24px; }
    .phone-mockup { max-width: 360px; margin: 0 auto; }
    .testimonials { grid-template-columns: 1fr; }
    .final-ctas { flex-direction: column; align-items: center; }
    .whatsapp-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
    .dispatch-compare { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .section { padding: 64px 14px 14px; }
    .result-card { padding: 20px; }
    .diag-card { padding: 20px; }
    .btn-large { padding: 14px 28px; font-size: 0.96rem; }
    .hero-stats-row { padding: 16px 0; }
    .hero-stat__num { font-size: 1.4rem; }
}
