/* =========================================
   COMPUGRAF 2026 - MINIMALIST AUTHENTIC
   ========================================= */

/* --- CSS Variables & Design Tokens --- */
/* --- Global Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-primary-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-accent), #e6ae00);
    border-radius: 5px;
    border: 2px solid var(--color-primary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--legal-accent, #ffc107) var(--color-primary-dark);
}

:root {
    /* Brand Colors extracted from original */
    --color-primary-dark: #001b3a;
    /* Deep Navy */
    --color-primary: #004a8e;
    /* Royal Blue */
    --color-accent: #ffc107;
    /* Golden Yellow */

    /* Neutral Palette for 2026 Dark Mode */
    --bg-base: #050d1a;
    --bg-surface: rgba(10, 25, 47, 0.6);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 74, 142, 0.15) 1px, transparent 0);
    background-size: 32px 32px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.3;
}

/* --- Animated Background Effects --- */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 193, 7, 0.15);
    /* Accent tint */
    bottom: -100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* --- Layout & Typography --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.accent-dot {
    color: var(--color-accent);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* --- Glassmorphism Utilities --- */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--color-accent);
    border-left: 2px solid var(--color-accent);
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.glass-panel:hover::before {
    opacity: 1;
    width: 60px;
    height: 60px;
}

/* --- Header & Nav --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 13, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-symbol {
    height: 55px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-text {
    height: 40px;
    width: auto;
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.logo:hover .logo-symbol {
    transform: scale(1.05);
}

.logo:hover .logo-text {
    opacity: 1;
}



.footer-logo {
    height: 120px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* --- Dropdown Menu --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.85);
    min-width: 200px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .nav-dropdown-content {
    visibility: visible;
    opacity: 1;
    top: 120%;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content a {
    color: #e2e8f0;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-dropdown-content a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding-left: 1.8rem;
}

.nav-dropdown-content a::after {
    display: none;
}

.nav-mobile-btn {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    background: #ffca28;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
    background: transparent;
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-tertiary:hover {
    color: #fff;
    transform: translateX(5px);
}

.btn-outline-accent {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-accent:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.header-actions {
    margin-left: 2rem;
}

@media (max-width: 992px) {
    .header-actions {
        display: flex;
        margin-left: auto;
        margin-right: 10px;
        order: 2;
    }

    .mobile-toggle {
        order: 3;
    }

    .logo {
        order: 1;
    }

    .desktop-only {
        display: none !important;
    }

    .header-actions .btn {
        background: var(--color-accent) !important;
        color: var(--color-primary-dark) !important;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
        white-space: nowrap;
    }
}


/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 10rem;
}

@media (max-width: 992px) {
    .hero {
        padding-top: 11rem;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: var(--color-accent);
    border-radius: 4px;
    /* More angular for tech feel */
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
}

.badge::before {
    content: '[ ';
}

.badge::after {
    content: ' ]';
}

.hero-title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Maturity & Governance Radar Chart Styling */
.maturity-visualization {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(0, 74, 142, 0.2));
    animation: floatingChart 6s ease-in-out infinite;
}

.radar-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

.grid-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.axis-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.area-objective {
    fill: var(--color-primary);
    stroke: var(--color-primary);
    stroke-width: 2;
    fill-opacity: 0.3;
}

.area-current {
    fill: var(--color-accent);
    stroke: var(--color-accent);
    stroke-width: 3;
    fill-opacity: 0.2;
}

.chart-label {
    fill: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-anchor: middle;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
}

.score-val {
    fill: #fff;
    font-size: 14px;
    font-weight: 800;
    text-anchor: middle;
    font-family: var(--font-sans);
    filter: drop-shadow(0 0 5px var(--color-accent));
    animation: pulseScore 3s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.legend-text {
    fill: var(--text-muted);
    font-size: 10px;
    font-family: var(--font-sans);
}

.legend-color.current {
    fill: var(--color-accent);
}

.legend-color.objective {
    fill: var(--color-primary);
}

@keyframes growChart {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatingChart {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulseScore {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.radar-chart {
    animation: growChart 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: 100%;
    height: auto;
    max-width: 450px;
    filter: drop-shadow(0 0 10px rgba(0, 74, 142, 0.2));
}

.radar-scan-ring {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 0.5px;
    opacity: 0.15;
    animation: radarScan 4s linear infinite;
}

.radar-sweep-line {
    stroke: var(--color-accent);
    stroke-width: 1.5px;
    opacity: 0.4;
    transform-origin: 200px 200px;
    animation: radarSweep 6s linear infinite;
}

@keyframes radarScan {
    0% {
        r: 0;
        opacity: 0.6;
    }

    100% {
        r: 180;
        opacity: 0;
    }
}

@keyframes radarSweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.score-node circle {
    fill: var(--color-accent);
    filter: blur(2px);
    animation: nodePulse 2s infinite ease-in-out;
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.8);
        opacity: 1;
    }
}




/* --- Section Headers --- */
.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-subtitle {
    color: var(--color-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
}

/* --- Somos Section --- */
.somos-card {
    padding: 4rem;
    font-size: 1.1rem;
}

.somos-card strong {
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 74, 142, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.service-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Clients Marquee --- */
.clients {
    padding-bottom: 6rem;
}

.clients-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll 100s linear infinite;
    gap: 4rem;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 2rem;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.client-logo:hover {
    color: var(--color-accent);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2rem));
    }

    /* Shift by half to seamlessly loop */
}

/* --- Footer --- */
.footer {
    background: var(--color-primary-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-contact h4,
.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-contact p,
.footer-links a {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-metrics {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', Courier, monospace;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 5px #25d366;
    animation: metricPulse 2s infinite;
}

@keyframes metricPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .maturity-visualization {
        margin-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* Add JS toggle for mobile */
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .somos-card {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-accent);
    position: relative;
    transition: var(--transition-smooth);
}

.chat-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 32px);
    max-height: 500px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--color-accent);
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.chat-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.chat-privacy-note {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

.chat-privacy-note a {
    color: var(--color-accent);
    text-decoration: underline;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.5rem;
    transition: var(--transition-smooth);
}

.chat-input-wrapper:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.1);
}

.chat-input-wrapper input {
    background: none;
    border: none;
    color: #fff;
    flex-grow: 1;
    font-size: 0.9rem;
    padding: 0.5rem;
    outline: none;
}

.chat-input-wrapper button {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.chat-input-wrapper button:hover {
    transform: scale(1.05);
    background: #fff;
}


.chat-message {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
}

.chat-message.bot {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background: var(--color-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-option {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: left;
    transition: var(--transition-smooth);
}

.chat-option:hover {
    border-color: var(--color-accent);
    background: rgba(255, 193, 7, 0.05);
}

.chat-wa-btn {
    background: #25d366;
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: auto;
        padding-top: 10rem;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .maturity-visualization {
        margin-top: 3rem;
    }

    .maturity-visualization svg {
        max-width: 320px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .logo-symbol {
        height: 50px;
    }

    .logo-text {
        height: 35px;
    }

    .header-container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-metrics {
        flex-direction: column;
        gap: 0.75rem;
        border-radius: 20px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo-symbol {
        height: 40px;
    }

    .logo-text {
        display: none;
    }

    /* Hide text to make room for the button */

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner {
        width: calc(100% - 30px);
        left: 15px;
        bottom: 15px;
        padding: 1.25rem;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -20px;
        bottom: 80px;
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 420px;
    max-width: calc(100vw - 40px);
    z-index: 2000;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

@media (max-width: 480px) {
    .cookie-banner {
        width: calc(100vw - 30px) !important;
        left: 15px !important;
        bottom: 15px !important;
        padding: 1.25rem !important;
    }
}

.cookie-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

/* --- Dashboard Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 13, 26, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-base);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 27, 58, 0.5);
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-body {
    flex-grow: 1;
    padding: 0;
    overflow: hidden;
}

@keyframes pulse-danger {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

#open-dashboard-modal:hover {
    transform: scale(1.1);
}

/* --- Chat Animations --- */
.thinking {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite;
    display: inline-block;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes typingEffect {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* --- Toggle Switch for Cookie Modal --- */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-accent);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--color-accent);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- Simulador Ley de Ciberseguridad --- */
.sim-q {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-q:last-of-type {
    border-bottom: none;
}

.sim-q p {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.sim-options {
    display: flex;
    gap: 1rem;
}

.sim-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    background: rgba(10, 20, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sim-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.sim-btn.selected[data-val="1"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: #22c55e;
    color: #22c55e;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15), inset 0 0 0 1px #22c55e;
    transform: translateY(-2px);
}

.sim-btn.selected[data-val="0"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15), inset 0 0 0 1px #ef4444;
    transform: translateY(-2px);
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out, stroke 0.5s;
}

.percentage {
    fill: #fff;
    font-family: var(--font-sans);
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: bold;
}

/* --- Ransomware Simulator --- */
.glitch-text {
    position: relative;
    animation: glitch 1s linear infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: "¡SISTEMA COMPROMETIDO!";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #00ff00;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #0000ff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(32px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(83px, 9999px, 60px, 0);
    }

    60% {
        clip: rect(98px, 9999px, 16px, 0);
    }

    80% {
        clip: rect(54px, 9999px, 73px, 0);
    }

    100% {
        clip: rect(23px, 9999px, 45px, 0);
    }
}

.blink-text {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.glass-shatter {
    animation: shatter 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes shatter {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
        filter: brightness(2) contrast(2) saturate(2);
    }

    100% {
        transform: scale(0);
        opacity: 0;
        filter: blur(10px);
    }
}

@keyframes shield-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   CURSOR: FLECHA DORADA ELEGANTE (ESTILO WINDOWS)
   ============================================================ */

/* Cursor normal: Flecha semi-transparente dorada */
html,
body {
    cursor: default;
    /* Fallback IE */
    cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJyZ2JhKDI1NSwxOTMsNywwLjM1KSIgc3Ryb2tlPSIjZmZjMTA3IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTIgMiBMMiAxNyBMNSAxNCBMOCAyMSBMMTEgMjAgTDggMTMgTDEzIDEzIFoiLz48L3N2Zz4=") 2 2, default !important;
}

/* Cursor interactivo (hover): Flecha dorada más sólida y brillante */
a,
button,
[role="button"],
input,
select,
textarea,
label,
.service-card,
.chat-option,
.slide-dot,
.client-logo {
    cursor: pointer;
    /* Fallback IE */
    cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJyZ2JhKDI1NSwxOTMsNywwLjgpIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMiAyIEwyIDE3IEw1IDE0IEw4IDIxIEwxMSAyMCBMOCAxMyBMMTMgMTMgWiIvPjwvc3ZnPg==") 2 2, pointer !important;
}

/* ============================================================
   PRINT STYLES (PDF EXPORT)
   ============================================================ */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    body * {
        visibility: hidden;
    }

    /* Solo mostrar el contenedor del escáner y sus hijos */
    #escanner,
    #escanner * {
        visibility: visible;
    }

    #escanner {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* Ocultar botones y elementos que no van en el PDF */
    .no-print,
    #scanner-input-group,
    #btn-scan,
    #btn-show-scanner-details {
        display: none !important;
    }

    /* Ajustar estilos del panel para que se vea bien en papel */
    .glass-panel {
        background: none !important;
        border: 2px solid #ccc !important;
        box-shadow: none !important;
        color: #000 !important;
    }

    #scanner-report-danger h3,
    #scanner-report-success h3 {
        color: #000 !important;
    }

    #scanner-report-danger p,
    #scanner-report-success p {
        color: #333 !important;
    }
}

/* --- Scanner Mini Video Additions --- */
.mini-radar-spin {
    animation: radarSweep 4s linear infinite;
}
.mini-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    animation: scanline 3s linear infinite;
}

/* =========================================
   PROMO SECTION (WOW FACTOR)
========================================= */
.promo-section {
    position: relative;
    padding: 6rem 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 1) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    overflow: hidden;
}

/* Subtle glow behind the section */
.promo-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.promo-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.promo-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.promo-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.promo-card {
    background: rgba(10, 20, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hover effects for the cards */
.promo-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Glowing border effect on hover */
.promo-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s;
}

.promo-card:hover::before {
    left: 150%;
}

.promo-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
    animation: floatIcon 3s ease-in-out infinite;
}

/* Delay animations so they don't sync */
.promo-card:nth-child(2) .promo-icon { animation-delay: 1s; }
.promo-card:nth-child(3) .promo-icon { animation-delay: 2s; }

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.promo-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.promo-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

.promo-btn {
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8) !important;
}

/* =========================================
   PROMO ORBS (BACKGROUND EFFECTS)
========================================= */
.promo-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    animation: orbFloat 15s infinite alternate;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: -50px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #10b981;
    top: 30%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* =========================================
   HIGH-DEFINITION & ULTRA-WIDE MONITOR SUPPORT (QHD / 4K / RETINA)
   ========================================= */
@media (min-width: 1440px) {
    html {
        font-size: 17px;
    }
    .container {
        max-width: 1380px;
    }
    .hero-title {
        font-size: 4.25rem;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
    .container {
        max-width: 1640px;
    }
    .section {
        padding: 7.5rem 0;
    }
    .hero {
        padding-top: 12rem;
    }
    .hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }
    .container {
        max-width: 2000px;
    }
}

/* High-DPI / Retina Screen Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        background-size: 16px 16px;
    }
}
