/* ==========================================================================
   AETHERIA AI STUDIO // OMNI-HORIZON DESIGN SYSTEM
   Modern Cyber-Luxe, Glassmorphism & High-Ticket AI Agency Aesthetics
   ========================================================================== */

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

:root {
    /* Dimensión 1: Singularity (Default) */
    --bg-base: #040208;
    --primary: #00f0ff;
    --primary-rgb: 0, 240, 255;
    --secondary: #9d4edd;
    --secondary-rgb: 157, 78, 221;
    --accent: #ff007f;
    --accent-rgb: 255, 0, 127;
    --gold: #ffd700;
    --gold-rgb: 255, 215, 0;
    --text-main: #ffffff;
    --text-dim: #d8e4f0;
    --glass-bg: rgba(6, 4, 16, 0.90);
    --glass-border: rgba(0, 240, 255, 0.32);
    --glass-glow: rgba(0, 240, 255, 0.22);
    --card-bg: rgba(8, 6, 20, 0.92);

    --font-display: 'Syne', sans-serif;
    --font-tech: 'Orbitron', monospace;
    --font-body: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Temas Dinámicos con Alto Contraste */
body.theme-matrix {
    --bg-base: #010804;
    --primary: #00ff88;
    --primary-rgb: 0, 255, 136;
    --secondary: #ffd700;
    --secondary-rgb: 255, 215, 0;
    --accent: #00ffcc;
    --accent-rgb: 0, 255, 204;
    --text-main: #ffffff;
    --text-dim: #d1fae5;
    --glass-bg: rgba(2, 16, 9, 0.92);
    --glass-border: rgba(0, 255, 136, 0.32);
    --glass-glow: rgba(0, 255, 136, 0.24);
    --card-bg: rgba(3, 22, 13, 0.94);
}

body.theme-abyss {
    --bg-base: #010610;
    --primary: #00e5ff;
    --primary-rgb: 0, 229, 255;
    --secondary: #1e88e5;
    --secondary-rgb: 30, 136, 229;
    --accent: #76ff03;
    --accent-rgb: 118, 255, 3;
    --text-main: #ffffff;
    --text-dim: #e0f2fe;
    --glass-bg: rgba(2, 14, 30, 0.92);
    --glass-border: rgba(0, 229, 255, 0.32);
    --glass-glow: rgba(0, 229, 255, 0.22);
    --card-bg: rgba(3, 20, 42, 0.94);
}

body.theme-solar {
    --bg-base: #0a0201;
    --primary: #ff9100;
    --primary-rgb: 255, 145, 0;
    --secondary: #ff3d00;
    --secondary-rgb: 255, 61, 0;
    --accent: #ff1744;
    --accent-rgb: 255, 23, 68;
    --text-main: #ffffff;
    --text-dim: #ffedd5;
    --glass-bg: rgba(24, 7, 3, 0.92);
    --glass-border: rgba(255, 145, 0, 0.32);
    --glass-glow: rgba(255, 145, 0, 0.24);
    --card-bg: rgba(34, 10, 5, 0.94);
}

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

h1, h2, h3, h4, h5, h6, p, span, a, button, label, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    transition: background-color 1.2s ease, color 0.8s ease;
    cursor: default;
}

/* Lienzo WebGL 3D Desactivado (Fondo Estático) */
#canvas-container {
    display: none !important;
}

/* Cursor Holográfico */
.custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out-expo), height 0.2s var(--ease-out-expo), border-color 0.4s ease, transform 0.05s ease-out;
    box-shadow: 0 0 15px var(--glass-glow);
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px #ffffff;
}

.custom-cursor.hovering {
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-rgb), 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.4);
}

/* Capa de Contenido UI */
.app-ui {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.interactive-panel, button, a, input, textarea, select, .slider-control, .pricing-card, .tilt-card, .currency-btn, .faq-item, .faq-question, .faq-answer, .app-tab-btn, .time-slot-btn, .service-filter-btn, .company-logo-card {
    pointer-events: auto;
}

/* HUD Superior */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.15rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(2, 1, 6, 0.92) 0%, rgba(2, 1, 6, 0) 100%);
    backdrop-filter: blur(16px);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 0 20px var(--glass-glow);
    position: relative;
    overflow: hidden;
}

.logo-symbol::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: pulseOrb 2s infinite ease-in-out;
}

.brand-text h1 {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ffffff 0%, var(--primary) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 600;
}

/* Enlaces de Navegación */
.nav-links {
    display: flex;
    gap: 1.85rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.8rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    white-space: nowrap;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glass-glow);
}

/* Menús Desplegables de Navegación (Dropdowns) */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-dropdown-toggle .chevron-icon {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glass-glow);
}

.nav-dropdown:hover .nav-dropdown-toggle .chevron-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 320px;
    background: rgba(8, 12, 18, 0.97);
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    border-radius: 14px;
    padding: 0.6rem 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(var(--primary-rgb), 0.15);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 1.25rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.82rem;
    font-family: var(--font-tech);
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.nav-dropdown-item:hover {
    color: #ffffff;
    background: rgba(var(--primary-rgb), 0.12);
    border-left-color: var(--primary);
    padding-left: 1.5rem;
}

.nav-dropdown-item .item-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-dropdown-item .item-title {
    font-weight: 600;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.nav-dropdown-item .item-sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: block;
    margin-top: 2px;
}

/* Barra de Filtro de Categorías de Servicios */
.services-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.service-filter-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-dim);
    font-family: var(--font-tech);
    font-size: 0.92rem;
    padding: 0.75rem 1.65rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-weight: 700;
}

.service-filter-btn:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.16);
}

.service-filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #000000;
    font-weight: 800;
    border-color: transparent;
    box-shadow: 0 0 20px var(--glass-glow);
}

/* Selector de Dimensiones (Oculto por directiva: ciclo cuántico rotativo automático cada 5s) */
.dimension-selector {
    display: none !important;
}

.dim-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    letter-spacing: 1px;
}

.dim-btn:hover {
    color: #ffffff;
}

.dim-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #05030a;
    font-weight: 700;
    box-shadow: 0 0 18px var(--glass-glow);
}

/* Controles de Telemetría Superior */
.hud-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.hud-cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #020106;
    font-weight: 800;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-block;
}

.hud-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(var(--primary-rgb), 0.65);
    color: #000;
}

/* ==========================================================================
   CONTENIDO PRINCIPAL
   ========================================================================== */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 7.5rem 2.5rem 6rem;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 18px;
    border-radius: 20px;
    font-family: var(--font-code);
    font-size: 0.82rem;
    color: var(--primary);
    letter-spacing: 1.5px;
    font-weight: 600;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px var(--glass-glow);
}

.hero-badge-gold {
    border-color: rgba(var(--gold-rgb), 0.5);
    color: var(--gold);
    box-shadow: 0 4px 25px rgba(var(--gold-rgb), 0.25);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulseGlow 1.5s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5.2vw, 4.4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    word-break: break-word;
}

.hero-title .glow-gradient {
    background: linear-gradient(135deg, #ffffff 10%, var(--primary) 50%, var(--secondary) 85%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    text-shadow: none;
}

.hero-description {
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    color: #e2e8f0;
    max-width: 820px;
    line-height: 1.65;
    margin-bottom: 2.2rem;
    font-weight: 400;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-description strong {
    color: #ffffff;
    font-weight: 700;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #030206;
    font-family: var(--font-tech);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 18px 38px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 30px var(--glass-glow);
    transition: all 0.3s var(--ease-out-expo);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 45px rgba(var(--primary-rgb), 0.7);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #ff8c00 100%);
    color: #030206;
    box-shadow: 0 0 30px rgba(var(--gold-rgb), 0.3);
}

.btn-gold:hover {
    box-shadow: 0 0 45px rgba(var(--gold-rgb), 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 18px 32px;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glass-glow);
    color: var(--primary);
}

/* Ticker de Métricas de Impacto Global */
.metrics-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.8rem 2.2rem;
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.metric-item {
    text-align: center;
}

.metric-num {
    font-family: var(--font-tech);
    font-size: clamp(1.8rem, 2.6vw, 2.25rem);
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(90deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

.metric-label {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #d8e4f0;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   SECCIÓN: CALCULADORA CUÁNTICA DE ROI (INTERACTIVE AI ROI CALCULATOR)
   ========================================================================== */

.roi-calculator-chamber {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(28px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px var(--glass-glow);
    margin-top: 2rem;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.roi-slider-block label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-tech);
    font-size: 0.92rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.roi-slider-block .slider-val-display {
    color: var(--primary);
    font-family: var(--font-code);
    font-size: 1.15rem;
    font-weight: 700;
}

.roi-slider-block input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    height: 8px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 4px;
}

.roi-results-card {
    background: var(--card-bg);
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    border-radius: 20px;
    padding: 2rem 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--glass-glow);
}

.roi-results-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.roi-badge {
    font-family: var(--font-code);
    font-size: 0.82rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.roi-big-metric {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 25px var(--glass-glow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roi-sub-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.4rem 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sub-metric-val {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.sub-metric-label {
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: #d8e4f0;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ==========================================================================
   SECCIÓN: SERVICIOS HIGH-TICKET (3D TILT CARDS)
   ========================================================================== */

.section-container {
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(6, 11, 24, 0.92) 0%, rgba(3, 6, 16, 0.80) 70%, transparent 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65), 0 0 35px var(--glass-glow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.6vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.section-description {
    font-size: 1.05rem;
    color: #e2e8f0;
    max-width: 760px;
    margin: 1rem auto 0;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tilt-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.2rem 1.85rem;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    transition: transform 0.2s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65);
}

.tilt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tilt-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px var(--glass-glow);
}

.tilt-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    filter: drop-shadow(0 0 14px var(--primary));
}

.card-title {
    font-family: var(--font-tech);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.card-body {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.65;
    margin-bottom: 1.35rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.card-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    color: #f8fafc;
}

.card-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
    font-weight: 500;
    font-size: 0.9rem;
}

.card-features-list li::before {
    content: '✦';
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 2px;
}

.card-telemetry {
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SECCIÓN: MATRIZ DE PRECIOS Y PAQUETES DE SERVICIO
   ========================================================================== */

.currency-toggle-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.currency-btn, .calc-cur-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-family: var(--font-code);
    font-size: 0.8rem;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-btn.active, .calc-cur-btn.active {
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--glass-glow);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.6rem 2rem;
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px var(--glass-glow);
}

.pricing-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(30, 20, 5, 0.85) 0%, rgba(15, 10, 30, 0.85) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(var(--gold-rgb), 0.25);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(var(--gold-rgb), 0.4);
}

.pricing-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--gold) 0%, #ff8c00 100%);
    color: #000;
    font-family: var(--font-tech);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 7px 18px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.5);
}

.pricing-tier {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pricing-subtitle {
    font-family: var(--font-code);
    font-size: 0.88rem;
    color: #d8e4f0;
    margin-bottom: 1.35rem;
    line-height: 1.5;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2.65rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.35rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.pricing-price .period {
    font-family: var(--font-code);
    font-size: 0.88rem;
    color: #cbd5e1;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
    font-size: 0.92rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #f8fafc;
    line-height: 1.5;
    font-weight: 500;
    font-size: 0.92rem;
}

.pricing-features li span.icon {
    color: var(--primary);
    font-size: 1.05rem;
}

/* ==========================================================================
   SECCIÓN: FORMULARIO HIGH-TICKET DE COTIZACIÓN INTELIGENTE
   ========================================================================== */

.quote-chamber {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem;
    backdrop-filter: blur(28px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px var(--glass-glow);
    max-width: 960px;
    margin: 0 auto;
}

.quote-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glass-glow);
    background: rgba(var(--primary-rgb), 0.05);
}

.form-select option {
    background: #0d091a;
    color: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.quote-submit-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 20px;
    font-size: 1rem;
}

.form-success-banner {
    display: none;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid #00ff88;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    color: #00ff88;
    font-family: var(--font-tech);
    letter-spacing: 1.5px;
    margin-top: 1.5rem;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.3);
}

/* ==========================================================================
   SECCIÓN: EL ENJAMBRE AUTÓNOMO (DISEÑO EXACTO IMAGE_14.PNG)
   ========================================================================== */

.swarm-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;
}

/* Cabecera Centrada de la Sección */
.swarm-header-group {
    text-align: center;
    margin-bottom: 30px;
    background: radial-gradient(ellipse at center, rgba(6, 11, 24, 0.92) 0%, rgba(3, 6, 16, 0.80) 70%, transparent 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65), 0 0 35px var(--glass-glow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.swarm-main-title {
    font-family: var(--font-body), sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.9rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.swarm-cyan-text {
    color: #00e5ff;
    display: inline-block;
}

.swarm-main-desc {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 760px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* El Contenedor Panel Oscuro Estructurado (Layout 2 Columnas) */
/* Glassmorphism Frame: bg-slate-950/80 backdrop-blur-xl border border-cyan-500/20 rounded-2xl shadow-[0_0_50px_rgba(6,182,212,0.1)] p-6 */
.swarm-glass-panel,
.swarm-dark-panel {
    background: rgba(2, 6, 23, 0.85); /* bg-slate-950/80 */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(6, 182, 212, 0.2); /* border-cyan-500/20 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 1.5rem; /* p-6 */
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

/* Estructura de 2 Columnas (Desktop): grid grid-cols-1 lg:grid-cols-12 gap-6 items-start */
.swarm-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* gap-6 */
    align-items: start;
    width: 100%;
}

@media (min-width: 1024px) {
    .swarm-main-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

/* Columna Izquierda: Lista de Agentes (lg:col-span-4) - flex flex-col gap-3 */
.swarm-agents-sidebar {
    grid-column: span 1 / span 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* gap-3 */
    width: 100%;
}

@media (min-width: 1024px) {
    .swarm-agents-sidebar {
        grid-column: span 4 / span 4; /* lg:col-span-4 */
    }
}

/* Tarjeta de Agente: Botón adaptable con contención segura */
.agent-selector-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.95rem;
    min-height: 60px;
    height: auto;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    outline: none;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.agent-selector-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(6, 182, 212, 0.45);
    color: #ffffff;
    transform: translateX(4px);
}

/* Estado ACTIVO: Fondo bg-cyan-950/50, borde verde/cyan neón (border-cyan-400), brillo interno y texto iluminado */
.agent-selector-card.active {
    background: rgba(8, 47, 73, 0.65);
    border: 1.5px solid #22d3ee;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), inset 0 0 15px rgba(6, 182, 212, 0.2);
    color: #ffffff;
}

/* Avatar con badge de 2 letras a la izquierda */
.agent-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-code), monospace;
    font-size: 0.85rem;
    background: #0b1329;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.agent-selector-card:hover .agent-avatar {
    border-color: rgba(6, 182, 212, 0.5);
    color: #e2e8f0;
}

.agent-selector-card.active .agent-avatar {
    background: #06b6d4;
    color: #020617;
    border-color: #22d3ee;
    font-weight: 800;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
}

/* Título en fuente bold y subtítulo técnico corto */
.agent-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agent-info h4 {
    font-family: var(--font-tech), sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.agent-selector-card.active .agent-info h4 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.agent-info p {
    font-family: var(--font-code), monospace;
    font-size: 0.76rem;
    color: #cbd5e1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.agent-selector-card.active .agent-info p {
    color: #a5f3fc;
}

/* Columna Derecha - Panel de Control y Terminal (lg:col-span-8) */
.swarm-console-view {
    grid-column: span 1 / span 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

@media (min-width: 1024px) {
    .swarm-console-view {
        grid-column: span 8 / span 8; /* lg:col-span-8 */
    }
}

/* Encabezado: Título grande sans-serif bold y badges mono */
.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-agent-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.console-agent-title h3 {
    font-family: var(--font-display), sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Badges de estado en fuente mono */
.badge-status-cyan,
.badge-cyan,
.badge {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.35);
    font-family: var(--font-code), monospace;
    font-size: 0.78rem;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.badge-status-emerald,
.badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-family: var(--font-code), monospace;
    font-size: 0.78rem;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-magenta {
    background: rgba(236, 72, 153, 0.12);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.35);
    font-family: var(--font-code), monospace;
    font-size: 0.78rem;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-weight: 700;
}

.console-tag-label {
    font-family: var(--font-code), monospace;
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Descripción: text-slate-300 text-sm leading-relaxed */
.console-agent-desc,
#console-agent-desc {
    font-size: 0.95rem;
    color: #f1f5f9;
    line-height: 1.6;
    margin: 0;
}

/* Grid de Métricas: 4 tarjetas horizontales (grid grid-cols-2 sm:grid-cols-4 gap-3 my-4) */
.console-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem; /* gap-3 */
    margin: 0.5rem 0;
}

@media (min-width: 640px) {
    .console-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* sm:grid-cols-4 */
    }
}

/* Cada tarjeta: bg-slate-900/60 border border-white/10 p-3 rounded-xl */
.console-stat-box {
    background: rgba(15, 23, 42, 0.6); /* bg-slate-900/60 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* border-white/10 */
    padding: 0.75rem 0.65rem; /* p-3 */
    border-radius: 0.75rem; /* rounded-xl */
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.25s ease, transform 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.console-stat-box:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

/* Etiqueta pequeña en gris */
.console-stat-box .stat-box-label,
.console-stat-box > span {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-family: var(--font-code), monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: block;
    font-weight: 600;
}

/* Cifra numérica destacada en neón */
.console-stat-box strong.stat-box-val,
.console-stat-box strong {
    font-family: var(--font-tech), sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Terminal de Telemetría: "FEED DE COMANDOS EN VIVO" */
.live-terminal-panel {
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 0.75rem;
    padding: 0.95rem;
    font-family: var(--font-code), monospace;
    font-size: 0.82rem;
    color: #67e8f9;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.terminal-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.terminal-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.term-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.term-dot-red { background: #ef4444; }
.term-dot-yellow { background: #eab308; }
.term-dot-green { background: #22c55e; }

.terminal-title-text {
    font-family: var(--font-code), monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 2px;
    font-weight: 700;
}

.terminal-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: #22d3ee;
    box-shadow: 0 0 8px #22d3ee;
    animation: termBlink 1s infinite;
}

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

/* Altura fija (h-48 o h-52) con overflow-y-auto y scrollbar oscuro personalizado */
.terminal-logs {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    height: 195px; /* h-48 a h-52 */
    max-height: 195px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #27272a transparent;
}

.terminal-logs::-webkit-scrollbar {
    width: 5px;
}

.terminal-logs::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-logs::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

.terminal-logs::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Formato de cada línea de comando: [HH:MM:SS] [AGENTE-ID] Acción ejecutada -> ESTADO_NEON */
.terminal-line {
    font-family: var(--font-code), monospace;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #e2e8f0;
    word-break: break-word;
}

.terminal-line .term-time {
    color: #64748b;
    margin-right: 6px;
}

.terminal-line .term-agent {
    color: #22d3ee; /* cyan-400 */
    font-weight: 700;
    margin-right: 6px;
}

.terminal-line .term-action {
    color: #e2e8f0;
}

.terminal-line .term-status-neon {
    color: #34d399; /* emerald-400 */
    font-weight: 700;
    margin-left: 6px;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

@media (max-width: 640px) {
    .console-stats-grid {
        grid-template-columns: 1fr;
    }
    .console-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   SECCIÓN: GLOBAL WAR ROOM // TELEMETRÍA PLANETARIA
   ========================================================================== */

.warroom-outer-wrap {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

/* Contenedor Principal: Tarjeta terminal flotante
   bg-slate-950/80 backdrop-blur-xl border border-indigo-500/20 rounded-2xl shadow-[0_0_50px_rgba(99,102,241,0.1)] p-6 my-12 */
.warroom-glass-panel,
.warroom-mainframe-box {
    background: rgba(2, 6, 23, 0.85); /* bg-slate-950/80 */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.22); /* border-indigo-500/20 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 1.5rem; /* p-6 */
    margin: 3rem 0; /* my-12 */
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

/* Barra Superior del Cuadro (HUD Bezel) */
.warroom-hud-header {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-code), monospace;
    font-size: 0.75rem;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-core-label {
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hud-center {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hud-chip {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hud-chip strong {
    color: #ffffff;
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 6px #22d3ee;
}

/* Estructura de 2 Columnas:
   grid grid-cols-1 lg:grid-cols-12 gap-6 items-center */
.warroom-main-grid,
.warroom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* gap-6 */
    align-items: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .warroom-main-grid,
    .warroom-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

/* Columna Izquierda - Radar / Clúster Visual (lg:col-span-5) */
.warroom-radar-col {
    grid-column: span 1 / span 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .warroom-radar-col {
        grid-column: span 5 / span 5; /* lg:col-span-5 */
    }
}

/* Área visual circular tipo radar o mapa cibernético con animación de barrido/pulsos en tono cyan/púrpura:
   bg-slate-900/50 border border-indigo-500/30 rounded-xl relative overflow-hidden aspect-square flex items-center justify-center */
.radar-map-display {
    background: rgba(15, 23, 42, 0.5); /* bg-slate-900/50 */
    border: 1px solid rgba(99, 102, 241, 0.3); /* border-indigo-500/30 */
    border-radius: 0.75rem; /* rounded-xl */
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* aspect-square */
    width: 100%;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85);
    margin: 0 auto;
}

/* Anillos concéntricos de radar */
.radar-grid-lines {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: inset 0 0 0 35px rgba(99, 102, 241, 0.03),
                inset 0 0 0 70px rgba(6, 182, 212, 0.03),
                inset 0 0 0 105px rgba(99, 102, 241, 0.03),
                inset 0 0 0 140px rgba(6, 182, 212, 0.03);
    pointer-events: none;
}

.radar-crosshair-x {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(99, 102, 241, 0.2);
    pointer-events: none;
}

.radar-crosshair-y {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    pointer-events: none;
}

/* Animación de barrido en tono cyan/púrpura */
.radar-sweep {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(99, 102, 241, 0) 0deg, rgba(6, 182, 212, 0.08) 270deg, rgba(99, 102, 241, 0.35) 360deg);
    animation: radarSweepRotate 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

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

/* Nodos interactivos del mapa */
.map-node-point {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee, 0 0 20px rgba(34, 211, 238, 0.5);
    z-index: 3;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.map-node-point:hover {
    transform: translate(-50%, -50%) scale(1.4);
}

.pulse-cyan {
    animation: pulseCyanNode 2.2s infinite;
}

@keyframes pulseCyanNode {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8), 0 0 10px #22d3ee; }
    70% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0), 0 0 14px #22d3ee; }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), 0 0 10px #22d3ee; }
}

.node-radar-tooltip {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: var(--font-code), monospace;
    font-size: 0.68rem;
    white-space: nowrap;
    color: #e2e8f0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.node-radar-tooltip strong {
    color: #22d3ee;
    display: block;
}

.map-node-point:hover .node-radar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Muestra en la parte inferior del radar los datos globales en fuente mono */
.radar-footer-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 4;
    pointer-events: none;
}

.radar-footer-label span {
    font-family: var(--font-code), monospace;
    font-size: 9.5px;
    color: #a5b4fc; /* text-indigo-300 */
    letter-spacing: 0.08em;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Columna Derecha - Feed de Acciones Neurales (lg:col-span-7) */
.warroom-feed-col,
.warroom-feed-column {
    grid-column: span 1 / span 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 1024px) {
    .warroom-feed-col,
    .warroom-feed-column {
        grid-column: span 7 / span 7; /* lg:col-span-7 */
    }
}

/* Encabezado de consola: FEED DE ACCIONES NEURALES con luz verde activa */
.feed-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-header-title {
    font-family: var(--font-code), monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #e2e8f0;
}

.pulse-emerald-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: termBlink 1.5s infinite;
}

/* Lista de registros: flex flex-col gap-2.5 max-h-80 overflow-y-auto pr-2 */
.warroom-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem; /* gap-2.5 */
    max-height: 20rem; /* max-h-80 (320px) */
    overflow-y: auto;
    padding-right: 0.5rem; /* pr-2 */
    scrollbar-width: thin;
    scrollbar-color: #27272a transparent;
}

.warroom-feed-list::-webkit-scrollbar {
    width: 5px;
}

.warroom-feed-list::-webkit-scrollbar-track {
    background: transparent;
}

.warroom-feed-list::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

.warroom-feed-list::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Filas ordenadas y limpias de feed */
.warroom-feed-card {
    background: rgba(15, 23, 42, 0.5); /* bg-slate-900/50 */
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.65rem;
    padding: 0.65rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.warroom-feed-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateX(3px);
}

.warroom-feed-card.animate-in {
    animation: feedCardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes feedCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-card-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.feed-card-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pulse-indigo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 6px #818cf8;
}

/* 1. Nombre del Agente + Ubicación: font-bold text-indigo-300 */
.feed-agent-name {
    font-family: var(--font-tech), sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #a5b4fc; /* text-indigo-300 */
    letter-spacing: 0.5px;
}

.feed-hub-city {
    font-family: var(--font-code), monospace;
    font-size: 0.72rem;
    color: #64748b;
}

/* 2. Descripción de la acción técnica realizada */
.feed-action-text {
    font-size: 0.76rem;
    color: #cbd5e1; /* text-slate-300 */
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 3. Métricas alineadas a la derecha */
.feed-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

/* Métrica en verde neón: +38% CVR */
.feed-metric-val {
    font-family: var(--font-tech), sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #34d399; /* text-emerald-400 */
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.35);
    white-space: nowrap;
}

/* Timestamp en fuente mono atenuada: 08:48:10 */
.feed-time-val {
    font-family: var(--font-code), monospace;
    font-size: 0.68rem;
    color: #475569; /* text-slate-500 */
}

/* ==========================================================================
   TERMINAL CUÁNTICA CIBERNÉTICA
   ========================================================================== */

.terminal-wrapper {
    background: rgba(4, 2, 8, 0.94);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 35px var(--glass-glow);
    font-family: var(--font-code);
}

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

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

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

.terminal-title {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.terminal-output {
    height: 320px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.term-line {
    word-break: break-word;
}

.term-highlight { color: #ffffff; font-weight: 700; }
.term-system { color: var(--primary); }
.term-dim { color: var(--text-dim); }
.term-cmd { color: var(--primary); font-weight: 700; }
.term-desc { color: var(--text-dim); }
.term-accent { color: var(--accent); font-weight: 700; }
.term-warn { color: #ffd700; }
.term-danger { color: #ff1744; font-weight: 700; }
.term-success { color: #00ff88; }
.term-matrix-code { color: #00ff88; letter-spacing: 2px; font-size: 0.75rem; }
.term-prompt { color: var(--accent); font-weight: 700; margin-right: 6px; }

.terminal-input-bar {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-input-bar span {
    color: var(--primary);
    font-weight: 700;
    margin-right: 10px;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER Y TELEMETRÍA GLOBAL
   ========================================================================== */

.hud-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.85rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(0deg, rgba(2, 1, 6, 0.95) 0%, rgba(2, 1, 6, 0) 100%);
    backdrop-filter: blur(14px);
    z-index: 100;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.hud-social-btn, .hud-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.hud-social-btn {
    background: rgba(225, 48, 108, 0.12);
    border: 1px solid rgba(225, 48, 108, 0.4);
    color: #ff529a;
}

.hud-social-btn:hover {
    background: rgba(225, 48, 108, 0.25);
    border-color: #ff529a;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.hud-wa-btn {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25d366;
}

.hud-wa-btn:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: #25d366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-brand-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
}

.footer-telemetry {
    display: flex;
    gap: 1.5rem;
}

.telemetry-item span {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================================================
   BOTÓN FLOTANTE GLOBAL DE WHATSAPP (DESKTOP & MÓVIL)
   ========================================================================== */
.floating-wa-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
}

.floating-wa-pill {
    background: rgba(14, 10, 26, 0.94);
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0.95rem;
    border-radius: 50px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
}

.floating-wa-container:hover .floating-wa-pill {
    opacity: 1;
    transform: translateX(0);
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 10px #25d366;
    animation: pulseDotGreen 1.8s infinite ease-in-out;
}

@keyframes pulseDotGreen {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

.floating-wa-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-wa-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.65);
    color: #ffffff;
}

.floating-wa-btn:active {
    transform: scale(0.95);
}

.floating-wa-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border: 2px solid #0a0614;
    border-radius: 50%;
}

@media (max-width: 900px) {
    .floating-wa-container {
        display: none; /* En móviles se usa la barra inferior táctil integrada para evitar saturar la pantalla */
    }
}

/* ==========================================================================
   BARRA FLOTANTE MÓVIL DE CONTACTO RÁPIDO (STICKY BOTTOM MOBILE BAR)
   ========================================================================== */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom));
    background: rgba(6, 4, 16, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7);
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
}

.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-wa-btn {
    background: #25d366;
    color: #03210d;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.mobile-ig-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(220, 39, 67, 0.3);
}

.mobile-quote-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
    color: #1a1200;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* ==========================================================================
   ANIMACIONES CLAVE
   ========================================================================== */

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulseOrb {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

/* Responsividad */
@media (max-width: 900px) {
    .hud-header {
        padding: 0.85rem 1rem;
    }
    .hud-footer {
        display: none; /* Reemplazado por barra móvil moderna para no obstruir pantalla */
    }
    .mobile-contact-bar {
        display: flex;
    }
    .main-content {
        padding: 5.5rem 1rem 6.5rem;
    }
    .nav-links, .dimension-selector {
        display: none;
    }
    .hud-social-btn span, .hud-wa-btn span {
        display: none; /* Mostrar solo iconos en header para pantallas estrechas */
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
        line-height: 1.15 !important;
    }
    .interactive-panel {
        padding: 1.25rem !important;
    }
    .roi-grid {
        grid-template-columns: 1fr;
    }
    .quote-form-grid {
        grid-template-columns: 1fr;
    }
    .quote-chamber {
        padding: 1.8rem;
    }
    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
}


/* ==========================================================================
   AETHERIA ENTERPRISE 30+ YRS MASTER MODULES
   WhatsApp Simulator, AppSheet Hub, N8N Workflow, Multi-Service Dynamic Calculator,
   Calendar Diagnostic & High-Level Enterprise FAQ
   ========================================================================== */

/* Barra de Credenciales y Confianza Institucional */
.trust-credentials-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0 4rem;
    background: rgba(15, 10, 30, 0.65);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}
.credential-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}
.credential-badge svg {
    color: var(--primary);
    flex-shrink: 0;
}
.credential-badge strong {
    color: var(--gold);
}

/* 1. WHATSAPP AI AGENT SIMULATOR */
.whatsapp-module-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}
.whatsapp-copy-col h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.whatsapp-copy-col p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.value-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.value-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.98rem;
    color: #e2e8f0;
}
.value-bullet-list li .bullet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Phone Mockup Frame */
.phone-mockup-wrapper {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    background: #000;
    border: 4px solid #2a2d3a;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 240, 255, 0.2), 0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
    padding-bottom: 0.75rem;
}
.phone-notch {
    width: 130px;
    height: 22px;
    background: #111;
    margin: 0 auto;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 10;
    position: relative;
}
.phone-camera-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #252836;
}
.phone-speaker {
    width: 38px;
    height: 4px;
    border-radius: 4px;
    background: #252836;
}
.wa-header {
    background: #075e54;
    color: #fff;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wa-profile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f0ff, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 0.95rem;
}
.wa-name-status h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}
.wa-name-status span {
    font-size: 0.78rem;
    color: #80cbc4;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wa-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff88;
    display: inline-block;
}
.wa-chat-body {
    background: #0b141a;
    height: 330px;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.88rem;
}
.wa-msg {
    max-width: 84%;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    line-height: 1.42;
    position: relative;
    word-break: break-word;
    font-size: 0.88rem;
}
.wa-msg-bot {
    background: #202c33;
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 2px;
}
.wa-msg-user {
    background: #005c4b;
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 2px;
}
.wa-timestamp {
    font-size: 0.72rem;
    color: #8696a0;
    text-align: right;
    margin-top: 3px;
}
.wa-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    background: #111b21;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.wa-chip-btn {
    background: rgba(0, 240, 255, 0.14);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #00f0ff;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.wa-chip-btn:hover {
    background: rgba(0, 240, 255, 0.25);
    color: #fff;
    border-color: #00f0ff;
}
.wa-input-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: #202c33;
}
.wa-input-bar input {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 16px;
    padding: 0.45rem 0.8rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}
.wa-send-btn {
    background: #00a884;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 2. APPSHEET NO-CODE SHOWCASE */
.appsheet-showcase-chamber {
    margin-top: 2rem;
}
.appsheet-tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    overflow: visible;
    padding-bottom: 0;
}
@media (max-width: 1100px) {
    .appsheet-tabs-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .appsheet-tabs-nav {
        grid-template-columns: 1fr;
    }
}
.app-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
    padding: 0.95rem 1.15rem;
    border-radius: 12px;
    font-family: var(--font-tech);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    line-height: 1.35;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
}
.app-tab-btn:hover {
    background: rgba(var(--primary-rgb), 0.12);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.25);
}
.app-tab-btn.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25) 0%, rgba(var(--secondary-rgb), 0.2) 100%);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 22px var(--glass-glow);
    font-weight: 800;
}
.app-demo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(12, 8, 24, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.app-demo-screen {
    background: #0a0e17;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 1.15rem;
    font-family: var(--font-code);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}
.screen-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.84rem;
    color: var(--primary);
    font-weight: 700;
}
.screen-row-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    background: rgba(255,255,255,0.04);
    margin-bottom: 0.4rem;
    border-radius: 6px;
    font-size: 0.84rem;
    color: #e2e8f0;
}
.screen-row-item span.status-tag {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.tag-ok { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.tag-warn { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.tag-busy { background: rgba(0, 240, 255, 0.15); color: #00f0ff; }

/* 3. N8N VISUAL ORCHESTRATOR */
.n8n-workflow-chamber {
    background: rgba(10, 6, 22, 0.92);
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: 16px;
    padding: 2.2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.n8n-nodes-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding: 1.25rem 0;
    overflow-x: auto;
}
.n8n-node {
    background: rgba(25, 18, 45, 0.92);
    border: 1px solid rgba(157, 78, 221, 0.45);
    border-radius: 12px;
    padding: 1.15rem 0.95rem;
    min-width: 155px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transition: transform 0.3s, border-color 0.3s;
}
.n8n-node:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.3);
}
.node-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
}
.n8n-node h4 {
    font-size: 0.92rem;
    font-family: var(--font-tech);
    margin-bottom: 0.3rem;
    font-weight: 700;
}
.n8n-node p {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
}
.n8n-connector {
    color: var(--secondary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    animation: flowPulse 1.8s infinite ease-in-out;
}
@keyframes flowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); color: var(--primary); }
}

/* 4. COTIZADOR INTELIGENTE DINÁMICO */
.calculator-chamber {
    background: rgba(14, 9, 28, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.calc-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3rem;
}
.calc-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.calc-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.calc-service-item:hover, .calc-service-item.selected {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--primary);
}
.calc-service-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.calc-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}
.calc-service-title {
    font-weight: 700;
    font-size: 1.02rem;
    color: #fff;
    margin-bottom: 2px;
}
.calc-service-desc {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.35;
}
.calc-service-price {
    font-family: var(--font-tech);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    text-align: right;
    white-space: nowrap;
}
.calc-summary-panel {
    background: rgba(20, 14, 38, 0.94);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.calc-total-box {
    margin: 1.25rem 0;
    padding: 1.15rem;
    background: rgba(0,0,0,0.45);
    border-radius: 10px;
    text-align: center;
    border: 1px dashed rgba(255, 215, 0, 0.35);
}
.calc-total-val {
    font-family: var(--font-tech);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    margin: 0.25rem 0;
}
.calc-total-note {
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* 5. AGENDAR SESIÓN ESTRATÉGICA 1-A-1 (30 MIN) */
.calendar-booking-card {
    background: rgba(14, 10, 26, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 16px;
    padding: 2.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.calendar-info-col h3 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    margin-bottom: 0.85rem;
}
.calendar-time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0;
}
.time-slot-btn {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-tech);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.time-slot-btn:hover, .time-slot-btn.active {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* 6. ACORDEÓN DE PREGUNTAS FRECUENTES (FAQ) */
.faq-accordion-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 2.2rem auto 0;
}
.faq-item {
    background: rgba(16, 11, 30, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.faq-item.active {
    border-color: var(--primary);
    background: rgba(20, 14, 38, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--glass-glow);
}
.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    user-select: none;
    pointer-events: auto;
    transition: color 0.25s ease;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-icon-cross {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    display: inline-block;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.active .faq-icon-cross {
    transform: rotate(45deg);
    color: var(--gold);
}
.faq-answer {
    padding: 0 1.5rem 1.4rem;
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 0.98rem;
    display: none;
    pointer-events: auto;
}
.faq-item.active .faq-answer {
    display: block;
    animation: faqFadeIn 0.3s ease-out forwards;
}
@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for new modules */
@media (max-width: 900px) {
    .whatsapp-module-grid,
    .app-demo-card,
    .calc-grid,
    .calendar-booking-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .trust-credentials-bar {
        gap: 1rem;
        padding: 1rem;
    }
    .n8n-nodes-row {
        flex-direction: column;
    }
    .n8n-connector {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

/* ==========================================================================
   BARRA MARQUEE INFINITA DE EMPRESAS Y MARCAS ESCALADAS (32 EMPRESAS)
   ========================================================================== */
.clients-marquee-section {
    padding: 3.5rem 0 3.2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(3, 2, 8, 0.98) 0%, rgba(10, 6, 22, 0.96) 50%, rgba(3, 2, 8, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 15;
}

.marquee-intro-container {
    max-width: 980px;
    margin: 0 auto 2.2rem;
    padding: 0 1.5rem;
    text-align: center;
}

.clients-marquee-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0.8rem 0 0.6rem;
    color: #ffffff;
    text-transform: uppercase;
}

.clients-marquee-countries {
    font-family: var(--font-code);
    font-size: 0.82rem;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.6rem;
}

.clients-marquee-countries span {
    color: var(--gold);
    font-size: 0.75rem;
}

.marquee-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    padding: 0.85rem 0;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: infiniteMarqueeScroll 170s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

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

.company-logo-card {
    display: inline-flex;
    align-items: center;
    gap: 1.15rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(12, 8, 26, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    padding: 0.85rem 1.6rem;
    border-radius: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    flex-shrink: 0;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.company-logo-card:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18) 0%, rgba(20, 12, 38, 0.95) 100%);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.18), 0 0 20px var(--glass-glow);
}

.company-logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(6, 4, 14, 0.96) 100%);
    border: 1px solid rgba(255, 215, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.6);
    transition: all 0.35s ease;
}

.company-logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.company-logo-card:hover .company-logo-icon {
    border-color: #FFD700;
    transform: scale(1.08);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.4), 0 6px 18px rgba(255, 215, 0, 0.35);
}

.company-logo-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.18rem;
}

.company-logo-name {
    font-family: var(--font-tech);
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.6px;
    line-height: 1.25;
}

.company-logo-niche {
    font-family: var(--font-code);
    font-size: 0.74rem;
    color: rgba(226, 232, 240, 0.72);
    letter-spacing: 0.9px;
    text-transform: uppercase;
    line-height: 1.2;
}
