/* ==========================================================================
   Kimana Style System - Ultra Premium Glassmorphic Design (Option 1)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-dark: #090a15;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-dark: rgba(13, 17, 34, 0.45);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.22);
    
    --primary: #0a84ff;        /* Azul eléctrico moderno de Apple */
    --primary-glow: rgba(10, 132, 255, 0.3);
    --secondary: #bf5af2;      /* Violeta premium del mockup */
    --secondary-glow: rgba(191, 90, 242, 0.25);
    
    --emerald-green: #30d158;
    
    --text-main: #ffffff;
    --text-muted: #cbd5e1;     /* Gris slate-300 muy contrastado y fácil de leer */
    --text-dark: #0f172a;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --card-blur: blur(40px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 85px; /* Compensa la cabecera fija de 75px + margen visual */
}

body {
    background-color: var(--bg-dark);
    /* Fondo premium con ondas suaves y fluidas de azul eléctrico y violeta profundo */
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(0, 82, 255, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(191, 90, 242, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(0, 82, 255, 0.25) 0%, transparent 65%),
        radial-gradient(circle at 10% 85%, rgba(191, 90, 242, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 82, 255, 0.22) 0%, transparent 60%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding: 0;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Fondo de Partículas */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -10;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 150px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 150px 240px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 250px 250px;
    opacity: 0.08;
}

/* Contenedores y Estilos Comunes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Insignias Premium (Badge) */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(10, 132, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(10, 132, 255, 0.2);
    margin-bottom: 1.5rem;
}

/* Contenedor Principal de la App (macOS Window) */
.app-window {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(10, 12, 22, 0.25);
    backdrop-filter: blur(40px) saturate(220%);
    -webkit-backdrop-filter: blur(40px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 50px 100px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    position: relative;
}

/* Controles de Ventana */
.window-top-bar {
    height: 44px;
    background: rgba(10, 12, 22, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control-dot.red { background-color: #ff5f56; }
.control-dot.yellow { background-color: #ffbd2e; }
.control-dot.green { background-color: #27c93f; }

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    pointer-events: none;
    letter-spacing: 0.05em;
}

/* Glassmorphism Tarjetas Claras (Contraste y legibilidad mejorados con fondo más oscuro) */
.glass {
    background: rgba(13, 17, 34, 0.55);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-color);
    border-radius: 20px; /* squircle */
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 12px 35px 0 rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.glass:hover {
    border-color: var(--border-hover);
    background: rgba(13, 17, 34, 0.65);
    box-shadow: 
        inset 0 1px 1.5px rgba(255, 255, 255, 0.25),
        0 20px 45px rgba(0, 0, 0, 0.35);
}

/* Glassmorphism Tarjetas Oscuras */
.glass-dark {
    background: rgba(13, 17, 34, 0.65);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-color);
    border-radius: 20px; /* squircle */
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 12px 35px 0 rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.glass-dark:hover {
    border-color: var(--border-hover);
    background: rgba(13, 17, 34, 0.75);
    box-shadow: 
        inset 0 1px 1.5px rgba(255, 255, 255, 0.22),
        0 20px 45px rgba(0, 0, 0, 0.35);
}

.hide { display: none !important; }

/* Botones con Esquinas Squircle */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 9999px; /* Pill buttons like mockup */
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

/* Botones en píldora con degradado de azul eléctrico a violeta */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.5), 0 0 12px rgba(191, 90, 242, 0.3);
    color: #ffffff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(191, 90, 242, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-small {
    padding: 0.45rem 1.25rem;
    font-size: 0.82rem;
}

/* ==========================================================================
   Header & Navegación Interna de Ventana
   ========================================================================== */
.header {
    width: 100%;
    height: 75px;
    background: rgba(10, 12, 22, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
    top: 15px;
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 65px;
    border-radius: 9999px;
    background: rgba(13, 17, 34, 0.65);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem !important;
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.03);
}

.logo-accent {
    color: var(--primary);
    background: linear-gradient(135deg, #0a84ff 0%, #bf5af2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(10, 132, 255, 0.35));
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 9999px;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 0.45rem 1.25rem;
    font-size: 0.82rem;
    border-radius: 9999px; /* Pill button like mockup */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(191, 90, 242, 0.15) 100%);
    border-color: rgba(10, 132, 255, 0.5);
    box-shadow: 
        0 0 15px rgba(10, 132, 255, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 75px;
    right: -100%;
    width: 280px;
    height: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    border-radius: 20px;
    background: rgba(10, 12, 22, 0.85);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 1.5rem;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-link:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Hero Section - Glass Card Centrado (Idéntico a Mockup)
   ========================================================================== */
.hero-section {
    padding: 12rem 0 8rem 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-container-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-card-glass {
    width: 100%;
    max-width: 820px;
    background: rgba(13, 17, 34, 0.55);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 5rem 4rem;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.hero-card-glass:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(13, 17, 34, 0.65);
    box-shadow: 
        inset 0 1px 1.5px rgba(255, 255, 255, 0.3),
        0 40px 80px rgba(0, 0, 0, 0.45);
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.65;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.75rem;
    width: 100%;
    justify-content: center;
}

.trust-item {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trust-item i {
    color: #0a84ff;
}

/* Consola de Texto */
.console-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.7;
}

.console-text p {
    margin-bottom: 0.5rem;
}

.console-text span {
    color: var(--text-muted);
}

/* ==========================================================================
   Servicios Estrella - Estructura de Tarjeta con Resplandor de Icono
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a84ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-description {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.servicio-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 17, 34, 0.55);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.servicio-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(13, 17, 34, 0.65);
}

/* Iconos de Cristal con Brillo Underneath (como en Mockup) */
.servicio-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px);
}

.servicio-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    filter: blur(12px);
    z-index: -1;
    opacity: 0.4;
    top: 4px;
    left: 4px;
}

.icon-blue {
    color: #0a84ff;
    border-color: rgba(10, 132, 255, 0.3);
}
.icon-blue::after { background: #0a84ff; }

.icon-purple {
    color: #bf5af2;
    border-color: rgba(191, 90, 242, 0.3);
}
.icon-purple::after { background: #bf5af2; }

.icon-glow {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.3);
}
.icon-glow::after { background: #00f0ff; }

.icon-cyan {
    color: #30d158;
    border-color: rgba(48, 209, 88, 0.3);
}
.icon-cyan::after { background: #30d158; }

.servicio-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.servicio-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.servicio-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.servicio-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0a84ff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.servicio-link:hover {
    color: #bf5af2;
    text-shadow: 0 0 8px rgba(191, 90, 242, 0.3);
    transform: translateX(4px);
}

/* ==========================================================================
   Simuladores Interactivos
   ========================================================================== */
.simulator-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.sim-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 12px; /* squircle */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.sim-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.sim-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.sim-tab-content {
    display: none;
}

.sim-tab-content.active {
    display: grid;
}

.simulador-container {
    grid-template-columns: 0.95fr 1.1fr 0.95fr;
    border-radius: 20px; /* squircle */
    overflow: hidden;
}

.sim-panel {
    padding: 2.25rem;
    height: 540px;
    display: flex;
    flex-direction: column;
}

.sim-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-left-mobile, .panel-left-upload {
    border-right: 1px solid var(--border-color);
    background: rgba(10, 11, 16, 0.15);
}

.panel-center-console {
    border-right: 1px solid var(--border-color);
    background: rgba(10, 11, 16, 0.35);
}

.panel-right-erp {
    background: rgba(10, 11, 16, 0.25);
}

/* WhatsApp Mobile Mockup */
.mobile-shell {
    width: 100%;
    max-width: 290px;
    height: 100%;
    margin: 0 auto;
    background: rgba(10, 11, 16, 0.7);
    border: 6px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.mobile-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.whatsapp-header {
    background: rgba(25, 35, 45, 0.7);
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-wa {
    font-size: 1.5rem;
    color: #8596a0;
}

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.wa-status {
    font-size: 0.6rem;
    color: var(--emerald-green);
}

.whatsapp-chat-body {
    flex-grow: 1;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    background: rgba(10, 11, 16, 0.45);
}

.wa-message {
    max-width: 85%;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-message.received {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wa-message.sent {
    background: rgba(10, 132, 255, 0.15);
    border-color: rgba(10, 132, 255, 0.3);
    color: #ffffff;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.wa-message.system-info {
    background: rgba(255, 255, 255, 0.04);
    border-color: transparent;
    color: var(--text-muted);
    font-size: 0.6rem;
    align-self: center;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
}

.whatsapp-footer {
    padding: 0.6rem;
    background: rgba(25, 35, 45, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-wa-send {
    padding: 0.6rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

.typing {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.8rem !important;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Consola de Servidor (Logs) */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.badge-console {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--emerald-green);
    box-shadow: 0 0 6px var(--emerald-green);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.console-box {
    flex-grow: 1;
    overflow-y: auto;
    background: rgba(10, 11, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.console-placeholder {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    max-width: 280px;
}

.console-placeholder i {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.06);
    margin-bottom: 1rem;
    display: block;
}

.console-log-line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    animation: logFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.log-time { color: var(--text-muted); }
.log-agent { color: var(--primary); font-weight: 700; }
.log-content { color: #ffffff; }
.log-content strong { color: var(--secondary); }

/* Freshdesk Mockup */
.freshdesk-mock, .erp-mock {
    background: rgba(10, 11, 16, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.freshdesk-header, .erp-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.fd-badge, .erp-badge {
    color: var(--primary);
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.erp-badge {
    color: var(--secondary);
    background: rgba(191, 90, 242, 0.1);
    border: 1px solid rgba(191, 90, 242, 0.2);
}

.freshdesk-ticket-list, .erp-factura-list {
    padding: 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fd-ticket, .erp-factura {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
}

.fd-ticket.urgent {
    border-left: 3px solid #ff453a;
}

.fd-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
}

.fd-priority {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.fd-priority.urgent {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
}

.fd-ticket-body {
    font-size: 0.75rem;
}

.fd-ticket-body strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.15rem;
}

.fd-ticket-body p {
    color: var(--text-muted);
}

.fd-draft-response {
    margin-top: 0.5rem;
    padding: 0.6rem;
    background: rgba(10, 132, 255, 0.06);
    border: 1px dashed rgba(10, 132, 255, 0.25);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.7rem;
}

.fd-draft-response strong {
    color: var(--primary);
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.animate-ticket {
    animation: ticketAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.empty-state {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 0.75rem;
}

/* Area de Ingesta Bancaria */
.drag-drop-area {
    flex-grow: 1;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    gap: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.01);
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.drag-drop-area p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.drag-drop-area span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.drag-drop-area.dragover {
    border-color: var(--primary);
    background: rgba(10, 132, 255, 0.08);
    box-shadow: 0 0 20px var(--primary-glow);
}

.drag-drop-area.dragover .upload-icon {
    color: var(--primary);
    transform: scale(1.1);
}

/* Facturas ERP */
.erp-factura {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.fact-info {
    display: flex;
    flex-direction: column;
}

.fact-info strong {
    color: #ffffff;
}

.fact-info span {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.fact-amount {
    font-weight: 700;
    color: #ffffff;
}

.fact-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.fact-status.pending {
    background: rgba(255, 159, 10, 0.1);
    color: #ff9f0a;
}

.fact-status.overdue {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
}

.fact-status.paid {
    background: rgba(48, 209, 88, 0.15) !important;
    color: var(--emerald-green) !important;
    box-shadow: 0 0 8px var(--emerald-glow);
}

/* Notificación Google Chat */
.google-chat-alert {
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 69, 58, 0.2);
    background: rgba(255, 69, 58, 0.06);
    border-left: 3px solid #ff453a;
    animation: alertAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.alert-body {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #ffffff;
}

/* Notificación Flotante Google Chat */
.gchat-floating-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    max-width: 320px;
    padding: 1.25rem;
    border-radius: 16px; /* squircle */
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 11, 16, 0.85);
    border-left: 4px solid var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    font-size: 0.8rem;
    line-height: 1.4;
    animation: floatIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gchat-floating-notification.fade-out {
    animation: floatOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Panel ROI Final */
.sim-roi-panel {
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: 20px; /* squircle */
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.roi-card {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 1rem;
}

.roi-card:last-child {
    border-right: none;
}

.roi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.roi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.roi-pitch {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Intranet Corporativa
   ========================================================================== */
.intranet-container {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    border-radius: 20px; /* squircle */
    overflow: hidden;
    min-height: 580px;
}

.intra-sidebar {
    background: rgba(13, 17, 34, 0.6);
    border-right: 1px solid var(--border-color);
    padding: 2.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: rgba(191, 90, 242, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(191, 90, 242, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.intra-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.intra-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px; /* squircle */
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.intra-nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.intra-nav-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    font-weight: 700;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.intra-content {
    padding: 2.5rem;
    background: rgba(13, 17, 34, 0.35);
}

.intra-tab-content {
    display: none;
    flex-direction: column;
}

.intra-tab-content.active {
    display: flex;
}

.tab-header {
    margin-bottom: 2rem;
}

.tab-header h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.tab-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Intranet CFO KPIs & Tables */
.cfo-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    padding: 1.25rem;
    text-align: center;
    border-radius: 12px;
}

.kpi-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.kpi-card strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.cfo-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.cfo-table-wrapper {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar custom para tablas y elementos con overflow */
.cfo-table-wrapper::-webkit-scrollbar {
    height: 6px;
}
.cfo-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 9999px;
}
.cfo-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    transition: var(--transition);
}
.cfo-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 132, 255, 0.3);
}

.cfo-morosidad-wrapper {
    min-width: 0;
}

.cfo-table-wrapper h4, .cfo-morosidad-wrapper h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cfo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.cfo-table th, .cfo-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.cfo-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.cfo-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge-table {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.badge-table.success {
    background: rgba(48, 209, 88, 0.1);
    color: var(--emerald-green);
}

.badge-table.warning {
    background: rgba(255, 159, 10, 0.1);
    color: #ff9f0a;
}

.morosos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.moroso-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.m-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.m-info strong {
    color: #ffffff;
}

.m-info span {
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* Borrador de Reclamación */
.morosidad-draft-display {
    padding: 1.5rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 3px solid var(--primary);
    background: rgba(10, 11, 16, 0.55);
}

.draft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.btn-close-draft {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-close-draft:hover {
    color: #ffffff;
}

.draft-body {
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

.draft-body p {
    margin-bottom: 0.5rem;
}

.draft-body p:last-child {
    margin-bottom: 0;
}

.tab-cta {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

/* Intranet Tab 2: Soporte Omnicanal */
.soporte-split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
}

.soporte-chats, .soporte-detail-container {
    min-width: 0;
}

.soporte-chats h4, .soporte-detail-container h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
}

.soporte-chats {
    border-radius: 16px;
    padding: 1.5rem;
    background: rgba(10, 11, 16, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.soporte-chat-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 10px;
    margin-bottom: 0.25rem;
}

.soporte-chat-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.soporte-chat-item.active {
    background: rgba(10, 132, 255, 0.08);
    border: 1px solid rgba(10, 132, 255, 0.2);
}

.avatar-chat {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.soporte-chat-item.active .avatar-chat {
    color: var(--primary);
    border-color: var(--primary-glow);
}

.chat-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.chat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-meta strong {
    font-size: 0.8rem;
    color: #ffffff;
}

.chat-meta span {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.chat-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.soporte-detail-container {
    padding: 1.5rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

.chat-detail-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.chat-detail-header strong {
    font-size: 0.95rem;
    color: #ffffff;
}

.chat-detail-header span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.chat-messages-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-height: 180px;
    overflow-y: auto;
}

.chat-msg-bubble {
    max-width: 80%;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-msg-bubble.received {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    align-self: flex-start;
}

.chat-msg-bubble.sent-ai {
    background: rgba(10, 132, 255, 0.06);
    border: 1px dashed rgba(10, 132, 255, 0.25);
    color: #ffffff;
    align-self: flex-end;
}

.ticket-status-box {
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ticket-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.ticket-status-header strong {
    color: var(--primary);
}

.badge-status-ticket {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.badge-status-ticket.urgent {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
}

.badge-status-ticket.resolved {
    background: rgba(48, 209, 88, 0.1);
    color: var(--emerald-green);
}

.ticket-status-body {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ticket-status-body strong {
    color: #ffffff;
}

/* Intranet Tab 3: Cotizador de Lenguaje Natural */
.cotizador-natural-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.natural-input-row textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(10, 11, 16, 0.45);
    color: #ffffff;
}

.natural-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.natural-results-box {
    padding: 1.5rem;
    border-radius: 14px;
}

.natural-results-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.natural-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: left;
}

.natural-results-table th, .natural-results-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.natural-results-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.natural-results-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.totals-area {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.totals-area span {
    color: var(--text-muted);
}

.totals-area strong {
    color: #ffffff;
}

.total-destacado {
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.25rem;
    margin-top: 0.25rem;
}

.total-destacado strong {
    color: var(--emerald-green) !important;
}

.natural-actions {
    display: flex;
    gap: 0.75rem;
}

.natural-actions .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
}

/* Intranet Tab 4: Status Hardware */
.kimana-node-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
}

.kimana-node-hardware, .kimana-node-logs {
    min-width: 0;
}

.kimana-node-hardware h4, .kimana-node-logs h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
}

.hw-metric {
    margin-bottom: 1.25rem;
}

.hw-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.hw-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.progress-fill.fill-purple {
    background: var(--secondary);
}

.hardware-specs-list {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.spec-row span {
    color: var(--text-muted);
}

.spec-row strong {
    color: #ffffff;
}

.kimana-node-logs {
    display: flex;
    flex-direction: column;
}

.kimana-node-log-entries {
    flex-grow: 1;
    background: rgba(10, 11, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 0.75rem;
    overflow-y: auto;
    height: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kimana-node-log-entries p span {
    color: var(--text-muted);
}

/* ==========================================================================
   Cotizador de ROI
   ========================================================================== */
.cotizador-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 20px; /* squircle */
    overflow: hidden;
}

.cotizador-inputs {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
}

.cotizador-inputs h3 {
    font-size: 1.45rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-labels label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.slider-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Range Sliders */
.slider-input {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border: none;
}

.slider-input::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
}

.slider-input::-moz-range-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    cursor: pointer;
    margin-top: -6px;
    transition: var(--transition);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    cursor: pointer;
    transition: var(--transition);
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: rgba(10, 11, 16, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(10, 11, 16, 0.65);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: none;
}

.cotizador-results {
    padding: 3rem;
    background: rgba(10, 11, 16, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cotizador-results h3 {
    font-size: 1.45rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.r-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.r-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.results-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.results-footer p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Contacto & Formulario
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.method-details strong {
    font-size: 1rem;
    color: #ffffff;
}

.contact-form-container {
    padding: 3rem;
    border-radius: 20px; /* squircle */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-success-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: var(--emerald-green);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: panelReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-success-msg i {
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    background: rgba(5, 6, 8, 0.6);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links, .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links h4, .footer-legal h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.footer-links a, .footer-legal a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--text-main);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Grid & Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    body {
        padding: 0;
    }
    
    .app-window {
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    
    .window-top-bar {
        display: none;
    }

    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .simulador-container {
        grid-template-columns: 1fr;
    }
    
    .panel-left-mobile, .panel-left-upload {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: auto;
        min-height: 380px;
    }
    
    .mobile-shell {
        height: 480px;
    }
    
    .panel-center-console {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: auto;
        min-height: 360px;
    }
    
    .sim-panel {
        height: auto;
        min-height: 380px;
    }
    
    .roi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .roi-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1rem;
    }
    
    .roi-card:nth-child(n+3) {
        border-bottom: none;
        padding-top: 1rem;
    }
    
    .intranet-container {
        grid-template-columns: 1fr;
    }
    
    .intra-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .intra-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .intra-nav-btn {
        flex-shrink: 0;
    }
    
    .cfo-split, .soporte-split, .kimana-node-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .cotizador-container {
        grid-template-columns: 1fr;
    }
    
    .cotizador-inputs {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .cfo-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .intra-content {
        padding: 1.5rem;
    }
    
    .cotizador-inputs, .cotizador-results {
        padding: 2rem 1.5rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-card-small {
        left: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-card-glass {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .roi-grid {
        grid-template-columns: 1fr;
    }
    
    .roi-card {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .roi-card:nth-child(n+3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .roi-card:last-child {
        border-bottom: none;
    }
    
    .cfo-kpis {
        grid-template-columns: 1fr;
    }
    
    .natural-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* ==============================================================================
   Modales Legales y Cookies
   ============================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    padding: 1.5rem;
    border-radius: 20px; /* squircle */
    z-index: 9999;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cookie-banner.hide {
    display: none !important;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 8, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.modal-overlay.hide {
    display: none !important;
}

.modal-box {
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    border-radius: 20px; /* squircle */
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body strong {
    color: #ffffff;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Primera capa de información de privacidad */
.first-layer-privacy {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.45;
    text-align: left;
}

.first-layer-privacy p {
    margin-bottom: 0.25rem;
}

.first-layer-privacy p:last-child {
    margin-bottom: 0;
}

.first-layer-privacy strong {
    color: #ffffff;
}

@media (min-width: 769px) {
    .section {
        padding: 8rem 0;
        position: relative;
    }
}

/* Botón Flotante Ir al Inicio (Back to Top) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(13, 17, 34, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 15px 30px rgba(10, 132, 255, 0.4),
        0 0 15px rgba(191, 90, 242, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.05);
    color: #ffffff;
}

.back-to-top.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

