/* 
   THEME: TECH LAW DARK
   COLORS: Slate 900, Sky 500, Indigo 500
*/

:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: rgba(30, 41, 59, 0.7);

    /* Unified Border System */
    --border-blue: rgba(59, 130, 246, 0.3);
    /* Primary tech/UI borders */
    --border-blue-subtle: rgba(59, 130, 246, 0.15);
    /* Subtle backgrounds */
    --border-blue-bright: rgba(59, 130, 246, 0.5);
    /* Hover/active states */
    --border-gold: rgba(148, 163, 184, 0.15);
    /* Content/interaction borders — subtle slate */
    --border-gold-subtle: rgba(148, 163, 184, 0.08);
    /* Very subtle accents */
    --border-gold-bright: rgba(148, 163, 184, 0.25);
    /* Hover states — slightly visible */

    --primary: #3b82f6;
    /* Serious Blue */
    --primary-glow: rgba(59, 130, 246, 0.3);

    --accent: #818cf8;
    /* Indigo 400 */
    --accent-glow: rgba(129, 140, 248, 0.5);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --success: #34d399;
    --warning: #fbbf24;
    --error: #ef4444;

    --font-ui: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --scan-line-color: rgba(59, 130, 246, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- BACKGROUND FX --- */
.tech-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    pointer-events: none;
}

.glow-spot {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.glow-spot.top-right {
    top: -200px;
    right: -200px;
    background: var(--primary);
}

.glow-spot.bottom-left {
    bottom: -200px;
    left: -200px;
    background: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- ELEGANT GOLD HIGHLIGHTS --- */
strong {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-shadow: none;
    /* Text shadow breaks gradient text in some browsers or makes it blurry */
    filter: drop-shadow(0 0 2px rgba(191, 149, 63, 0.3));
    /* Use filter instead */
    letter-spacing: 0.02em;
}

ul {
    list-style: none;
}

/* --- DROPDOWN FIXES --- */
select option,
.tech-input option {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-size: 1rem;
    padding: 12px;
}

/* --- MARGINS & CONTAINERS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    /* OXYGEN TEST: Increased to 100px for a balanced premium feel */
    padding: 100px 0;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 800;
    /* TYPOGRAPHY TEST: Was 700 */
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    /* TYPOGRAPHY TEST: Tighter */
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

p,
li,
.form-steps span,
.step-desc {
    color: #94a3b8;
    /* TYPOGRAPHY TEST: Slate gray instead of plain muted */
    font-size: 1.1rem;
    font-weight: 300;
    /* TYPOGRAPHY TEST: Softer paragraphs */
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--text-main) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property for compatibility */
    -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Ripple effect on click */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Shimmer effect */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    20.1%,
    100% {
        left: -100%;
    }
}

/* --- AI SCANNER FX --- */
.scan-container {
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--scan-line-color), transparent);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.scan-container.scanning .scan-line {
    opacity: 1;
    animation: scanMove 1s infinite ease-in-out;
}

@keyframes scanMove {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.radar-pulse {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.radar-pulse.active {
    animation: radarRipple 2s infinite;
}

@keyframes radarRipple {
    0% {
        transform: scale(0.1);
        opacity: 0.35;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}


.btn-primary {
    background: var(--primary);
    color: var(--bg-darker);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--text-muted);
}

.btn-ghost:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- HEADER --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-gold);
    min-height: 80px;
    height: auto;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 40px 0 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 5px 0;
    /* Reduced padding */
    margin-top: 0;
    /* Reset margin */
}

.brand-logo-img {
    height: 48px;
    /* 50% larger core logo */
    width: auto;
    border-radius: 8px;
    margin-left: 10px;
    /* Center it out from left border */
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, #fff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: shimmerLogo 3s ease-in-out infinite;
    /* Removed explicit left margin to rely on flex gap from .brand */
}

@keyframes shimmerLogo {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.logo-accent {
    color: var(--primary);
    font-weight: 900;
    margin: 0 3px;
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand:hover .logo-text {
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.badge-tech {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.15s, height 0.15s;
    border-radius: 50%;
    color: #3b82f6;
    font-family: var(--font-mono);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle (hidden by default on desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVE MOBILE NAVIGATION --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .header-actions .btn-sm {
        display: none;
    }

    .logo-text {
        font-size: 1.3rem;
    }
}

/* --- LOGO HEADER STYLING --- */
/* --- SECTIONS SPACING --- */
.section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.problem-text-block p {
    margin-bottom: 1.5rem;
}

.problem-text-block p:last-child {
    margin-bottom: 0;
}

.metrics-section {
    /* Special tighter padding for dashboard strip */
    padding: 20px 0;
}

.calc-section {
    /* Calculator needs to stand out */
    padding: 50px 0;
    position: relative;
}

/* Ensure anchor links land correctly with fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 240px;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 160px;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    width: 100%;
    /* Ensure proper sizing */
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border-gold);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    animation: statusPulse 3s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 90%;
}

.hero-micro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- HERO VISUAL (FIXED) --- */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.jurisprudence-map-container {
    width: 100%;
    height: 350px;
    /* Fixed height for map only */
    position: relative;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
    overflow: hidden;
}

#jurisprudenceCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(15, 23, 42, 0.8) 100%);
    pointer-events: none;
}

.ai-activity-log {
    position: relative;
    /* No longer absolute */
    width: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 12px 15px;
    font-family: var(--font-mono);
    max-height: 120px;
    overflow: hidden;
    z-index: 10;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 5px;
}

.log-status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 1.5s infinite;
}

.log-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-entry {
    font-size: 0.7rem;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    color: var(--text-muted);
}

.log-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.log-ts {
    color: var(--text-muted);
    opacity: 0.6;
}

.log-type-tag {
    color: var(--accent);
}

.log-msg {
    color: #e2e8f0;
}

/* --- PROCESSING NOTICE --- */
.processing-notice {
    margin-top: 15px;
    margin-bottom: 5px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
    max-height: 500px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.processing-notice.hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.notice-header .status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: statusPulse 1.5s infinite;
}

.notice-text {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

/* --- FORM MICRO COPY --- */
.form-micro-copy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 15px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Document Visual */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.doc-header {
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.doc-title {
    font-family: var(--font-mono);
    color: var(--text-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.warning {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.doc-body {
    padding: 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #cbd5e1;
    min-height: 250px;
}

.keyword {
    color: var(--text-muted);
    margin-right: 10px;
}

.value {
    color: white;
}

.color-accent {
    color: var(--primary);
}

.cursor {
    animation: blink 1s infinite;
}

/* --- TRUST BAR --- */
.trust-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    background: rgba(2, 6, 23, 0.5);
}

.trust-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    opacity: 0.8;
}

.separator {
    color: var(--text-muted);
    opacity: 0.3;
}

/* --- FEATURE CARDS --- */
.section-header {
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.problem-header {
    max-width: 1000px;
    /* Allow title and text to fit on one line */
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--border-gold-bright);
    transform: translateY(-5px);
}

.highlight {
    border-color: var(--border-gold);
    background: var(--card-bg);
}

.service-card,
.feature-card,
.testimonial-card,
.calc-wrapper,
.form-wrapper,
.faq-item {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover,
.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.5);
}

.img-3d-icon {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* UNIFIED PREMIUM HIGH-TECH FILTER: Cinematic contrast, slightly desaturated, natural skin */
    filter: grayscale(25%) contrast(1.15) brightness(0.9);
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .img-3d-icon {
    filter: grayscale(0%) contrast(1.1) brightness(1.05) drop-shadow(0 0 12px rgba(56, 189, 248, 0.4));
}

.icon-box-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.tech-card:hover .img-3d-icon,
.feature-card:hover .img-3d-icon {
    transform: scale(1.05) translateY(-3px);
    filter: grayscale(0%) contrast(1.1) brightness(1.05) drop-shadow(0 8px 25px rgba(56, 189, 248, 0.4));
}

/* --- HUD REACTIVO SYSTEM --- */
.hud-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.4s ease;
    opacity: 0.4;
}

.hud-container:hover .hud-overlay {
    opacity: 1;
}

/* Esquinas HUD */
.hud-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid var(--border-gold);
    opacity: 0.5;
    transition: 0.3s;
}

.hud-container:hover .hud-corner {
    opacity: 1;
    width: 20px;
    height: 20px;
    border-color: var(--border-gold-bright);
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Línea de Escaneo (Scanner) */
.hud-scanner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
    box-shadow: 0 0 15px var(--border-gold);
    opacity: 0;
    z-index: 6;
}

.hud-container:hover .hud-scanner {
    animation: hudScan 4s linear infinite;
    opacity: 0.6;
}

@keyframes hudScan {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

/* Texto técnico (Metadata) */
.hud-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--border-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-container:hover .hud-label {
    opacity: 0.8;
}

.label-tl {
    top: 12px;
    left: 35px;
}

.label-br {
    bottom: 12px;
    right: 35px;
}

/* Grid de fondo sutil */
.hud-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: 0.5s;
}

.hud-container:hover .hud-grid {
    opacity: 1;
}

/* Efecto Chromatic Aberration sutil */
.hud-glitch-img {
    transition: filter 0.3s;
}

.hud-container:hover .hud-glitch-img {
    filter: contrast(1.1) brightness(1.1);
    animation: subtleGlitch 5s infinite;
}

@keyframes subtleGlitch {

    0%,
    100% {
        filter: none;
    }

    92% {
        filter: none;
    }

    94% {
        filter: drop-shadow(2px 0 0 rgba(255, 0, 0, 0.2)) drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.2));
    }

    96% {
        filter: none;
    }
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.highlight .icon-box {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- SERVICES (UPDATED) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-gold);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 30px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 1;
    pointer-events: none;
}

/* ========================================
   PRODUCT SECTION REDESIGN
   ======================================== */



/* Redesigned Product Buttons */
.product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

.btn-product-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    max-width: 480px;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(192, 132, 252, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-product-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5), 0 0 0 1px rgba(192, 132, 252, 0.4);
}

.btn-product-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-product-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

.btn-product-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    max-width: 480px;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: #c084fc;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-product-secondary:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.08);
    color: #e9d5ff;
    transform: translateY(-1px);
}

.product-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* --- DOCUMENT PREVIEW MODAL STYLES --- */
.doc-preview-container {
    background: linear-gradient(160deg,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(30, 20, 60, 0.85) 35%,
            rgba(55, 30, 90, 0.7) 60%,
            rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #f1f5f9;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 60px rgba(88, 55, 130, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    margin-bottom: 30px;
    text-align: left;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.preview-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.preview-loader p {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-top: 20px;
    font-family: var(--font-main);
}

.preview-loader small {
    color: var(--text-muted);
    font-family: var(--font-mono);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header is always clear */
.doc-preview-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.doc-preview-header h2 {
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--accent);
}

.doc-preview-header .meta-data {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #555;
    display: flex;
    justify-content: space-between;
}

/* Content Blocks */
.doc-block {
    margin-bottom: 20px;
}

.doc-block h3 {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: var(--primary);
}

/* BLUR EFFECTS - THE "TEASER" */
.no-blur {
    filter: none !important;
}

.hidden {
    display: none !important;
}

.blur-zone {
    filter: blur(4px);
    user-select: none;
    background: rgba(0, 0, 0, 0.05);
    color: transparent;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

/* Some parts are clear to show validity */
.clear-zone {
    background: rgba(255, 255, 0, 0.1);
    /* Subtle highlighter effect */
    padding: 2px 5px;
}

/* Watermark Overlay */
.doc-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 0, 0, 0.1);
    border: 5px solid rgba(255, 0, 0, 0.1);
    padding: 20px;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

/* Unlock Overlay - Floating CTA */
.unlock-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 20%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 40px;
    z-index: 20;
}

.unlock-message {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* --- TECH CARD IMPROVEMENTS --- */
.tech-card {
    border-top-width: 3px;
    /* Stronger top border */
}

.cartel-card {
    border-color: var(--border-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.insurance-card {
    border-color: var(--border-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.banking-card {
    border-color: var(--border-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.card-icon-header {
    background: transparent;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    margin-bottom: 15px;
    border: none;
}

.main-icon {
    width: 32px;
    height: 32px;
    /* Color inherits from parent card specific styles if set, or generic */
}

.cartel-card .main-icon {
    color: var(--warning);
}

.insurance-card .main-icon {
    color: #3b82f6;
}

.banking-card .main-icon {
    color: #a855f7;
}

.highlight-text {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.1), transparent);
    padding: 2px 5px;
    border-left: 2px solid var(--warning);
    display: block;
    margin: 10px 0;
    font-size: 0.9em;
    font-style: italic;
    color: #fff;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-bottom: 20px;
    color: var(--primary);
}

@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid #ccc;
    /* Paper edge */
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.blur-effect-strong {
    filter: blur(10px);
    /* Stronger blur for the whole image */
    transition: filter 0.8s ease;
}

/* Unlock Overlay adjustments for image mode */
.unlock-overlay {
    height: 100%;
    /* Cover full image */
    background: rgba(15, 23, 42, 0.8);
    /* Darker overlay */
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
}

.doc-watermark {
    z-index: 5;
    /* Above loader but below overlay */
    opacity: 0.3;
}

.tech-card:hover {
    border-color: var(--border-gold-bright);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(212, 175, 55, 0.3);
}

.tech-card:hover::before {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    border: 1px solid var(--border-gold);
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-ref {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.card-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tech-list li {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tech-list i {
    color: var(--success);
    width: 16px;
}

/* --- PROCESS (UPDATED) --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
}

.step-item {
    flex: 1;
    position: relative;
    padding-right: 20px;
}

.step-marker {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    margin-bottom: -20px;
    z-index: -1;
}

.step-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.step-connector {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin-top: 50px;
    opacity: 0.5;
}

/* --- LEGAL TEXT CONTENT --- */
.legal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.legal-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.legal-block h3 i {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.legal-block p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-block p strong {
    color: var(--text-main);
    font-weight: 600;
}

.spacer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 40px 0;
    opacity: 0.5;
}

/* --- COMPARISON TABLE --- */
.glass-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    padding: 30px;
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.tech-table th {
    text-align: left;
    padding: 15px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.tech-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-col {
    background: rgba(56, 189, 248, 0.05);
    color: white;
    font-weight: 600;
}

.positive {
    color: var(--success);
}

/* --- FORM SECTION --- */
.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #1e293b;
    /* border: 2px solid var(--border-gold); Replaced by gradient mask below */
    border: none;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Ensure positioning context for pseudo-element */
}

.form-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-progress {
    margin-bottom: 40px;
}

.progress-bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 25%;
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--primary);
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.steps-indicator .active {
    color: var(--primary);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.options-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.option-card input:checked+.opt-icon {
    color: var(--primary);
}

.option-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
}

.option-card input {
    display: none;
}

.opt-icon {
    color: var(--text-muted);
}

.opt-title {
    font-weight: 600;
    display: block;
}

.opt-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}

.tech-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-gold);
    padding: 12px 15px;
    border-radius: 6px;
    color: white;
    font-family: var(--font-ui);
    margin-bottom: 20px;
    transition: 0.3s;
}

.tech-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.form-nav {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    align-items: stretch;
    flex-wrap: wrap;
}

.prev-btn {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 10px 15px !important;
    font-size: 0.8rem !important;
    min-height: 44px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-btn,
.form-nav [type="submit"] {
    flex: 1;
    min-height: 44px;
    height: auto;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.form-nav .form-micro-copy {
    width: 100%;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .form-nav {
        flex-direction: column-reverse;
    }

    .prev-btn {
        width: 100%;
        min-width: unset;
    }
}

/* --- FAQ ACCORDION --- */
.faq-grid.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.3s ease;
}

.faq-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-header-content {
    display: flex;
    align-items: center;
    gap: 0;
    /* Gap handled by marker margin */
}

.faq-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    /* Increased by another 30% */
    height: 130px;
    background: transparent;
    border: none;
    border-radius: 50%;
    margin-right: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.faq-img-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* UNIFIED PREMIUM HIGH-TECH FILTER: Same treatment as service card images */
    filter: grayscale(25%) contrast(1.15) brightness(0.9);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-img-icon {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.1) brightness(1.05) drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}

.faq-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}

.faq-item.open .faq-icon-wrapper {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4), 0 0 0 2px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.faq-header h4 {
    margin: 0;
    font-size: 1.25rem;
    /* Larger, more readable */
    color: var(--text-main);
    font-weight: 700;
    /* Bolder for impact */
    letter-spacing: -0.02em;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-header h4 {
    color: var(--primary);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

/* Estado abierto */
.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(59, 130, 246, 0.05);
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
}

.faq-item.open .faq-body {
    max-height: 1000px;
    /* Allow expansion */
    opacity: 1;
}

.faq-item.open .accordion-icon {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-content {
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

/* Ocultar elementos HUD en FAQ para diseño limpio y circular */
.faq-icon-wrapper .hud-overlay,
.faq-icon-wrapper .hud-corner,
.faq-icon-wrapper .hud-scanner,
.faq-icon-wrapper .hud-label {
    display: none !important;
}

/* Hacer las imágenes FAQ perfectamente circulares */
.faq-icon-wrapper {
    border-radius: 50% !important;
    overflow: hidden !important;
    width: 80px !important;
    height: 80px !important;
}

.faq-img-icon {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* --- SAFE SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.pulse-effect {
    animation: softPulse 2s infinite;
}

.pulsing-btn {
    animation: pulse 1s infinite;
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    background: #020617;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.logo-footer .logo-img {
    height: 30px;
    width: auto;
}

.footer-col h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #1e293b;
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), transparent);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.success-icon {
    width: 60px;
    height: 60px;
    color: var(--success);
    margin-bottom: 15px;
}

.modal-body {
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.highlight-text {
    color: white;
    font-weight: 600;
}

.audit-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-gold);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.audit-box h5 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.check-list li {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #e2e8f0;
}

.check-list i {
    color: var(--success);
    width: 16px;
}

.crypto-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.6;
    margin-top: 15px;
}

.modal-footer {
    background: rgba(2, 6, 23, 0.5);
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.price {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.tax {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* --- SYNTAX HIGHLIGHTING --- */
.code-content .keyword {
    color: #c678dd;
}

/* Purple */
.code-content .variable {
    color: #e5c07b;
}

/* Yellow */
.code-content .key {
    color: #e06c75;
}

/* Red */
.code-content .string {
    color: #98c379;
}

/* Green */
.code-content .number {
    color: #d19a66;
}

/* Orange */
.code-content .boolean {
    color: #d19a66;
}

/* Orange */
.code-content .comment {
    color: #5c6370;
    font-style: italic;
}

/* Grey */
.code-content .function {
    color: #61afef;
}

/* Blue */
.code-content .operator {
    color: #56b6c2;
}

/* Cyan */
.code-content .param {
    color: #abb2bf;
    font-style: italic;
}

/* White */

.guarantee-text {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 15px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .cards-grid,
    .problem-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
        background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    }

    .step-item {
        text-align: center;
        width: 100%;
        padding-right: 0;
    }
}

/* --- HERO TRUST BADGES --- */
.hero-trust-badges {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    /* text-muted logic */
    letter-spacing: 1px;
    opacity: 0.8;
}

.hero-trust-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-trust-badges .sep {
    color: rgba(255, 255, 255, 0.2);
}

/* --- BRAND MARQUEE (now integrated in ticker.css) --- */

/* --- GLITCH / NEON BUTTON --- */
.glitch-btn {
    position: relative;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.glitch-btn:hover {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.8), inset 0 0 20px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    /* Expands text */
    background: rgba(56, 189, 248, 0.15);
    /* Slight fill */
}

/* Moving sheen effect */
.glitch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: -1;
    transition: none;
}

.glitch-btn:hover::before {
    left: 100%;
    transition: left 0.6s ease-in-out;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- AUDI 3D ROTATING LOGO --- */
@keyframes rotate-3d-audi {
    0% {
        transform: perspective(1000px) rotateY(0deg) translateZ(0px);
    }

    100% {
        transform: perspective(1000px) rotateY(360deg) translateZ(0px);
    }
}

.logo-3d-audi {
    animation: rotate-3d-audi 4s linear infinite;
    opacity: 0.15;
    z-index: 0;
    filter: drop-shadow(0 0 20px rgba(192, 192, 192, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4)) brightness(1.3) contrast(1.2) !important;
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
}

.logo-3d-audi:hover {
    animation-play-state: paused;
    filter: drop-shadow(0 0 30px rgba(192, 192, 192, 1)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.8)) brightness(1.5) contrast(1.3) !important;
    transform: perspective(1000px) rotateY(25deg) scale(1.3) translateZ(30px) !important;
    cursor: pointer;
}


/* --- 3D BRAND LOGOS --- */
.brand-logo {
    height: 45px;
    width: auto;
    opacity: 0.3;
    /* Start dim */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Elastic ease */
    filter: grayscale(100%);
    /* Mono start */
    transform: perspective(800px) rotateY(0deg) translateZ(0px);
    margin: 0 20px;
    /* Spacing */
    will-change: transform, filter, opacity;
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
    transform: perspective(800px) rotateY(25deg) scale(1.4) translateZ(20px);
    z-index: 100;
    /* Bring to front massive */
    cursor: help;
}

/* --- PREMIUM 3D ASSETS STYLES --- */

/* Animations */
@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes hologram-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4)) brightness(1);
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.7)) brightness(1.2);
    }
}

@keyframes icon-hover-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Hero Central Core Image */
.hero-visual-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-hero-core {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.15);
    /* Subtle blue base */
    animation: float-y 3s ease-in-out infinite, hologram-pulse 4s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Nav Logo Enhanced */
/* --- HEADER LOGO SYSTEM (DOUBLE GIANT REFINED) --- */
.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1001;
    text-decoration: none;
    padding-top: 15px;
    /* Pushed down as requested */
}

.logo-img {
    height: 130px;
    width: auto;
    margin-top: 25px;
    /* Push down significantly */
    margin-bottom: -45px;
    position: relative;
    z-index: 1000;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.6));
    mix-blend-mode: screen;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-img.left-logo {
    margin-right: 0;
}

.logo-img:hover {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 1));
}

.logo-text-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    /* Align with lowered logo */
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    background: linear-gradient(to right, #ffffff, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 0;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.8));
    /* Intense Glow */
}

/* --- FIXES FOR USER FEEDBACK --- */
.tech-card {
    position: relative;
    /* Ensure badges are positioned relative to card */
    padding-top: 50px !important;
    /* Give space for the badge and icon */
    overflow: visible;
    /* Let elements pop out if needed */
}

.card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    background: #0f172a;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

/* Specific badge colors per type */
.card-badge.warning-pulse {
    border-color: var(--primary);
    color: var(--primary);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* --- ALIGNMENT REFINEMENTS --- */
.tech-card {
    text-align: center;
    /* Center everything for symmetry */
}

.legal-ref-block {
    justify-content: center;
    /* Center flex content */
}

.tech-list-wrapper {
    text-align: left;
    /* Keep list items left-aligned for readability */
    display: inline-block;
    /* Allow the block itself to be centered */
    width: 100%;
    max-width: 90%;
    /* Contain width */
    margin: 10px auto 0;
    /* Center the block */
}

.tech-list li {
    justify-content: flex-start;
    /* Ensure icons stay left */
}

/* --- FINAL ALIGNMENT POLISH --- */
/* Problem Section Cards: Center everything to match Tech Cards */
.feature-card {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card p {
    text-align: center;
    /* Force center for harmony */
    max-width: 90%;
    /* Prevent lines being too wide */
    margin: 10px auto 0;
}

.feature-card .icon-box-3d {
    margin: 0 auto 15px;
    /* Center the 3D icon container */
    display: flex;
    justify-content: center;
}

/* Ensure 3D icons are centered everywhere */
.img-3d-icon {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

/* Hero Text Alignment refinement */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-trust-badges {
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE DESIGN - PHASE 1 CRITICAL
   ======================================== */

/* Tablet Breakpoint */
@media (max-width: 992px) {

    /* Logo: Reduce size significantly */
    .logo-img {
        height: 80px !important;
        margin-top: 10px !important;
        margin-bottom: -20px !important;
    }

    .logo-title {
        font-size: 1.6rem !important;
    }

    /* Cards: Single column */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Scale down icons for tablet */
    .img-3d-icon {
        width: 180px !important;
        height: 180px !important;
    }

    .problem-grid {
        grid-template-columns: 1fr !important;
    }

    /* Hero: Stack layout */
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
}

/* --- FAQ / ARSENAL JURIDICO (9 PILARES) --- */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.4);
}

.faq-header:hover {
    background: rgba(59, 130, 246, 0.05);
}

.faq-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.faq-icon-wrapper {
    width: 144px;
    /* Increased 20% from 120px */
    height: 144px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    /* Elegant gold border for authority */
    position: relative;
    background: #000;
}

.faq-img-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the box exactly */
    display: block;
    /* UNIFIED PREMIUM HIGH-TECH FILTER: Same treatment as all other images */
    filter: grayscale(25%) contrast(1.15) brightness(0.9);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    flex-grow: 1;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(15, 23, 42, 0.3);
}

.faq-content {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Mobile Breakpoint - Enhanced */
@media (max-width: 768px) {

    /* Logo: Much smaller */
    .logo-img {
        height: 60px !important;
        margin-top: 5px !important;
        margin-bottom: -10px !important;
    }

    .logo-title {
        font-size: 1.2rem !important;
        letter-spacing: 0 !important;
    }

    .logo {
        gap: 12px !important;
        padding-top: 5px !important;
    }

    .nav-content {
        padding: 0 15px !important;
    }

    /* Navigation: Mobile menu */
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }

    /* Scale down icons for mobile */
    .img-3d-icon {
        width: 144px !important;
        height: 144px !important;
    }

    /* Typography */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    /* Dashboard */
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* Calculator */
    .calc-wrapper {
        padding: 20px 15px;
    }

    .calc-results {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-wrapper {
        padding: 25px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo-img {
        height: 50px !important;
    }

    .logo-title {
        font-size: 1rem !important;
    }

    .nav-links {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }

    /* Show mobile menu toggle on small screens */
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* ========================================
   STICKY FLOATING CTA
   ======================================== */

.sticky-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(14, 165, 233, 0.5));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
    font-weight: 700;
    font-size: 0.95rem;
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-glow 2s infinite;
}

.sticky-cta.visible {
    display: flex;
}

.sticky-cta:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.6);
}

.sticky-cta i {
    width: 20px;
    height: 20px;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
    }

    50% {
        box-shadow: 0 8px 40px rgba(56, 189, 248, 0.7);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sticky-cta {
        bottom: 20px;
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .sticky-cta span {
        display: none;
        /* Icon only on small screens */
    }

    .sticky-cta {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for sequential cards */
.tech-card:nth-child(1).reveal-on-scroll {
    transition-delay: 0.1s;
}

.tech-card:nth-child(2).reveal-on-scroll {
    transition-delay: 0.2s;
}

.tech-card:nth-child(3).reveal-on-scroll {
    transition-delay: 0.3s;
}

.feature-card:nth-child(1).reveal-on-scroll {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2).reveal-on-scroll {
    transition-delay: 0.2s;
}

.metric-card:nth-child(1).reveal-on-scroll {
    transition-delay: 0s;
}

.metric-card:nth-child(2).reveal-on-scroll {
    transition-delay: 0.1s;
}

.metric-card:nth-child(3).reveal-on-scroll {
    transition-delay: 0.2s;
}

.metric-card:nth-child(4).reveal-on-scroll {
    transition-delay: 0.3s;
}

/* ========================================
   ACCESSIBILITY: REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   JURISPRUDENCE NETWORK MAP
   ======================================== */

.jump-to-top {
    margin-bottom: 40px;
}

.jurisprudence-map-container {
    width: 100%;
    height: 500px;
    position: relative;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    /* Serious Blue Border */
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    /* Reduced from 40px to move it up */
}

#jurisprudenceCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(15, 23, 42, 0.2) 100%);
}

/* AI Activity Log Styling (Serious & Subtle) */
.ai-activity-log {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 15px;
    font-family: var(--font-mono);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.log-header {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.log-status-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    /* Serious Blue dot */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    animation: logBlink 3s infinite;
}

@keyframes logBlink {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.2;
    }
}

.log-content {
    height: 100px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-entry {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.log-entry.visible {
    opacity: 1;
}

.log-ts {
    color: rgba(255, 255, 255, 0.3);
    min-width: 65px;
}

.log-msg {
    color: #fff;
}

.log-type-tag {
    color: rgba(59, 130, 246, 0.6);
    font-weight: 600;
}

/* Responsive adjust */
@media (max-width: 768px) {
    .jurisprudence-map-container {
        height: 350px;
    }

    .ai-activity-log {
        display: none;
        /* Hide on mobile to save vertical space */
    }
}

/* --- PROCESS MAP (CÓMO FUNCIONA) --- */
.process-section {
    background: rgba(2, 6, 23, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

/* Static base line */
.process-grid::before {
    content: '';
    position: absolute;
    top: 25px;
    /* Y-center of 50px step-number */
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: rgba(59, 130, 246, 0.15);
    z-index: 0;
}

/* Animated flow light */
.process-grid::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: flowLight 3s infinite linear;
    z-index: 0;
    box-shadow: 0 0 15px var(--primary-glow);
}

@keyframes flowLight {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Slow, elegant transition */
}

.process-step.active-step {
    transform: scale(1.15);
    /* Make it large */
    z-index: 10;
    filter: brightness(1.2);
    /* Slight highlight */
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-darker);
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    animation: stepSequence 20s infinite;
}

@keyframes stepSequence {

    0%,
    90%,
    100% {
        border-color: #d4af37;
        color: var(--text-main);
        background: var(--bg-darker);
        box-shadow: none;
        transform: scale(1);
    }

    10% {
        border-color: var(--accent);
        color: #fff;
        background: var(--primary);
        box-shadow: 0 0 30px var(--accent-glow);
        transform: scale(1.15);
    }
}

.process-step:nth-child(1) .step-number {
    animation-delay: 0s;
}

.process-step:nth-child(2) .step-number {
    animation-delay: 5s;
}

.process-step:nth-child(3) .step-number {
    animation-delay: 10s;
}

.process-step:nth-child(4) .step-number {
    animation-delay: 15s;
}

/* Enhance active step number (fallback for JS if used) */
.process-step.active-step .step-number {
    border-color: var(--accent);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.process-step p {
    font-size: 0.95rem;
}

/* --- TESTIMONIALS (CASOS DE ÉXITO) --- */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: 0.3s;
}

.testimonial-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    overflow: hidden;
    padding: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--primary);
    font-family: var(--font-mono);
}

.testimonial-content {
    font-style: italic;
    font-size: 1rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
}

.recovery-badge {
    display: inline-block;
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 20px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* Responsive fixes for new sections */
@media (max-width: 900px) {

    .process-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid::before,
    .process-grid::after {
        display: none;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 600px) {

    .process-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .faq-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }

    .faq-header h4 {
        font-size: 1rem;
    }
}

/* --- Hero Announcement Bar --- */
.hero-announcement {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.announce-badge {
    background: var(--border-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 10px;
}

.announce-text {
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.hero-announcement:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    border-color: var(--border-gold-bright);
}

/* --- TESTIMONIALS CSS --- */
.testimonials-section {
    position: relative;
    padding-bottom: 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.client-info h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #4ade80;
    margin-top: 4px;
}

.recovery-amount {
    margin-left: auto;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 20px;
    font-style: italic;
}

.case-type {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    width: 100%;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- DYNAMIC FORM STYLES --- */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dynamic-section {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-tag {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Specific step scanning effect */
.form-step.scanning::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(59, 130, 246, 0.05), transparent);
    animation: scanVertical 1.5s infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scanVertical {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Responsiveness for new grids */
@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MULTI-CAUSE CALCULATOR STYLES --- */
.calc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(15, 23, 42, 0.4);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-gold-subtle);
}

.calc-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calc-tab.active {
    background: var(--primary);
    color: var(--bg-darker);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.calc-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 800px) {
    .calc-body {
        grid-template-columns: 1fr;
    }
}

.calc-input-group {
    animation: fadeIn 0.4s ease-out;
}

.range-value-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
    text-shadow: 0 0 15px var(--primary-glow);
}

.calc-micro-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-style: italic;
}

.calc-audit-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-blue-subtle);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-card.final {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
    border: 1px solid var(--border-gold);
    flex-direction: column;
    padding: 25px;
    text-align: center;
    gap: 10px;
}

.audit-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.audit-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.audit-value-total {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    font-family: var(--font-mono);
    line-height: 1;
}

.audit-badge {
    display: inline-block;
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.calc-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-gold-subtle);
    text-align: center;
}

.calc-footer p {
    font-size: 0.75rem;
    margin-bottom: 20px;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
}

/* Live Audit Badge in inputs */
.live-audit-badge {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-blue);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    z-index: 20;
}

.live-audit-badge.active {
    opacity: 1;
    transform: translateY(0);
}

.live-audit-badge.success {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
}

/* Adjust currency inputs for badges */
.input-group {
    position: relative;
    margin-bottom: 25px;
}


/* --- ELITE PACK STYLES --- */

/* 1. Hero Particles Layout */
.hero-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(1px);
    animation: flowUp var(--d) linear infinite;
    bottom: -20px;
}

@keyframes flowUp {
    from {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    to {
        transform: translateY(-110vh) translateX(var(--x));
        opacity: 0;
    }
}

/* 2. Elite Trust Bar */
.elite-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    margin-top: 25px;
}

.trust-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-blue-subtle);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.trust-pill i,
.trust-pill svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    margin-right: 8px;
}

.trust-pill .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
}

.trust-pill:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.trust-pill:hover .shine {
    animation: pillShine 0.8s forwards;
}

@keyframes pillShine {
    to {
        left: 150%;
    }
}

/* 3. Viability Score Meter */
.viability-meter {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
    min-width: 300px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-gold);
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    animation: fadeInRight 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes fadeInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -50px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.meter-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 2s cubic-bezier(0.1, 0, 0, 1);
}

.meter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meter-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.meter-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--success);
    font-family: var(--font-mono);
}

/* --- AI SUMMARY BOX STYLES --- */
.ai-summary-box {
    margin-top: 20px;
    background: rgba(15, 23, 42, 0.85);
    border-left: 3px solid var(--primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    text-align: left;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-summary-title {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-summary-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* --- AI SUMMARY BOX (ADDED FOR VISIBILITY) --- */
.ai-summary-box {
    margin-top: 15px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    z-index: 50;
    /* Ensure it is above images */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.ai-summary-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 5px;
}

.ai-summary-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
}

/* =========================================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver target classes)
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for items within grids */
.options-grid .reveal:nth-child(1),
.testimonials-grid .reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.options-grid .reveal:nth-child(2),
.testimonials-grid .reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.options-grid .reveal:nth-child(3),
.testimonials-grid .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

/* --- PREMIUM CHATBOT --- */
.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 2000;
}

.chatbot-fab {
    width: 60px;
    height: 60px;
    border-radius: 25px 25px 0px 25px;
    background: rgba(14, 165, 233, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-gold-bright);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-fab svg,
.chatbot-fab i {
    width: 32px !important;
    height: 32px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.chatbot-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 550px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.chatbot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-reset,
.chat-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-reset:hover {
    color: #ef4444;
}

.chat-close:hover {
    color: var(--text-light);
}

.agent-avatar {
    position: relative;
    width: 60px;
    height: 60px;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.status-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.agent-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.agent-status {
    font-size: 0.75rem;
    color: var(--primary);
    font-family: var(--font-mono);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: msgIn 0.3s ease-out backwards;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-agent {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-main);
    border: 1px solid var(--border-blue-subtle);
    border-bottom-left-radius: 2px;
}

.msg-user {
    align-self: flex-end;
    background: var(--primary);
    color: var(--bg-darker);
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border-gold-subtle);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-blue-subtle);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--text-main);
    font-family: var(--font-ui);
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

#chatSendBtn {
    background: var(--primary);
    border: none;
    color: var(--bg-darker);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

#chatSendBtn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 15px;
    align-self: flex-start;
    border: 1px solid var(--border-blue-subtle);
}

.dot {
    width: 4px;
    height: 2px;
    background: var(--brand-cyan);
    box-shadow: 0 0 10px var(--brand-cyan);
    animation: hudScan 2s linear infinite;
    z-index: 2;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* =========================================================================
   FINAL VISUAL POLISH — Appended safely at EOF
   ========================================================================= */

/* 1. Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* 2. Chatbot FAB Pulse Glow Animation */
@keyframes fabPulse {
    0% {
        box-shadow: 0 10px 25px var(--primary-glow), 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 10px 25px var(--primary-glow), 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 10px 25px var(--primary-glow), 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.chatbot-fab {
    animation: fabPulse 1.5s infinite;
}

.chatbot-fab:hover {
    animation: none;
}

/* 3. Enhanced Tech Card Hover Glow */
.tech-card:hover {
    border-color: var(--border-gold-bright);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* 4. Section Header Subtle Hover Lift */
.section-header h2 {
    transition: text-shadow 0.4s ease;
}

.section-header h2:hover {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* 5. Improved Nav Link Underline Animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* 6. Form Input Focus Glow */
.form-input:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 15px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* 7. Sticky CTA Enhanced Glow */
.sticky-cta {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 0 0 0 rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* 8. Process Step Number Enhanced Glow on Hover */
.step-number:hover {
    box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(59, 130, 246, 0.15);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* 9. Footer Links Smooth Color Transition */
footer a {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* 10. Button Press Effect (Active State) */
.btn:active,
.chatbot-fab:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* 11. Selection Color */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #f8fafc;
}

/* 12. Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

/* --- ACCESSIBILITY: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }
}