/* ==========================================================================
   Kimana Style System
   ========================================================================== */

/* Variables de Diseño */
:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --primary: #00f5d4;        /* Verde esmeralda */
    --primary-glow: rgba(0, 245, 212, 0.3);
    --secondary: #8a2be2;      /* Morado eléctrico */
    --secondary-glow: rgba(138, 43, 226, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --card-blur: blur(12px);
    --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;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fondo Dinámico de Orbes y Estrellas */
.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.15;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -9;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: orbFloat 25s ease-in-out infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0, 245, 212, 0) 70%);
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(138, 43, 226, 0) 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 40px) scale(1.1);
    }
    100% {
        transform: translate(-30px, -20px) scale(0.9);
    }
}

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

.section {
    padding: 8rem 0;
    position: relative;
}

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

.glass {
    background: var(--bg-card);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Textos Especiales */
.gradient-text-emerald {
    background: linear-gradient(135deg, #00f5d4 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #a78bfa 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-emerald {
    color: var(--primary) !important;
}

.text-purple {
    color: var(--secondary) !important;
}

.text-red {
    color: #ef4444 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.hide {
    display: none !important;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 212, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #d8b4fe;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: var(--card-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    color: var(--secondary);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    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(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    backdrop-filter: var(--card-blur);
    border-left: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 99;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

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

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

.mobile-btn {
    margin-top: 1rem;
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
    position: relative;
}

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

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

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

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
}

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

.trust-item i {
    color: var(--primary);
}

/* Hero Visual Console Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    border-radius: 12px;
}

.hero-card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dots {
    display: flex;
    gap: 0.4rem;
}

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

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.card-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-card-body {
    padding: 1.5rem;
    min-height: 220px;
}

.console-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #38bdf8;
    line-height: 1.7;
}

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

.console-text .line-1 { color: var(--text-muted); }
.console-text .line-2, .console-text .line-3, .console-text .line-4, .console-text .line-5 { color: #f8fafc; }
.console-text .line-6 { color: var(--primary); }
.console-text .line-7 { color: var(--secondary); }

.badge-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.badge-status.online {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.blink {
    animation: cursorBlink 1s infinite;
}

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

.hero-card-small {
    position: absolute;
    bottom: -30px;
    left: -20px;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    background: rgba(10, 11, 16, 0.85);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.metric-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

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

/* Sections Header */
.section-header {
    margin-bottom: 4.5rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

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

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

/* Pilares Grid */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pilar-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.pilar-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.icon-emerald {
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.icon-purple {
    background: rgba(138, 43, 226, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.icon-emerald-purple {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.icon-blue {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.pilar-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pilar-tagline {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.pilar-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pilar-features {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.pilar-features li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pilar-features li i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Simulador de Granja Section */
.simulador-container {
    display: grid;
    grid-template-columns: 0.95fr 1.1fr 0.95fr;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 11, 16, 0.6);
    border: 1px solid var(--border-color);
}

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

.sim-config {
    border-right: 1px solid var(--border-color);
}

.sim-chat {
    border-right: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.sim-output {
    background: rgba(10, 11, 16, 0.4);
}

.sim-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Inputs & Form Group */
.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(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

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='%2394a3b8' 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;
}

.agent-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-item {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
}

.checkbox-item.checked {
    border-color: var(--primary-glow);
    background: rgba(0, 245, 212, 0.05);
    color: var(--text-main);
}

.checkbox-item i {
    color: var(--primary);
}

/* Chat Console Panel */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.panel-header h3 {
    margin-bottom: 0;
}

.badge-console {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--primary);
    background: rgba(0, 245, 212, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 245, 212, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

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

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar,
.document-viewer::-webkit-scrollbar,
.activity-log-wrapper::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb,
.document-viewer::-webkit-scrollbar-thumb,
.activity-log-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

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

.chat-placeholder i {
    font-size: 2.2rem;
    color: var(--border-hover);
    margin-bottom: 1rem;
}

.chat-placeholder p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Globos de Chat de Agentes */
.chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    animation: chatMessageAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes chatMessageAppear {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.bubble-meta {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bubble-meta .time {
    font-weight: 400;
    color: var(--text-muted);
}

.bubble-content {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 12px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

/* Colores específicos de agentes */
.chat-bubble.sofi .bubble-meta { color: var(--primary); }
.chat-bubble.sofi .bubble-content {
    border-left: 3px solid var(--primary);
    background: rgba(0, 245, 212, 0.03);
}

.chat-bubble.alex .bubble-meta { color: #f59e0b; }
.chat-bubble.alex .bubble-content {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.chat-bubble.mateo .bubble-meta { color: #38bdf8; }
.chat-bubble.mateo .bubble-content {
    border-left: 3px solid #38bdf8;
    background: rgba(56, 189, 248, 0.03);
}

.chat-bubble.lucas .bubble-meta { color: var(--secondary); }
.chat-bubble.lucas .bubble-content {
    border-left: 3px solid var(--secondary);
    background: rgba(138, 43, 226, 0.03);
}

/* Panel Derecho: Grafo y Output */
.agent-graph {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.graph-line {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.graph-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.node-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.node-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Estados de Grafo */
.graph-node.active .node-icon {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: scale(1.1);
}
.graph-node.active .node-name {
    color: var(--text-main);
    font-weight: 700;
}

.graph-node.completed .node-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.document-viewer {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.doc-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.doc-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.doc-body {
    padding: 1.25rem;
    flex-grow: 1;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-y: auto;
    font-family: var(--font-sans);
}

.placeholder-text {
    color: var(--text-muted);
    text-align: center;
    margin-top: 4rem;
}

.doc-body h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.doc-body h5 {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    margin-bottom: 0.4rem;
    color: #f8fafc;
}

.doc-body p {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

/* Panel ROI */
.sim-roi-panel {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 16px;
    animation: panelReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.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 var(--border-color);
    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;
}

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

/* Demo Intranet Section */
.intranet-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    border-radius: 20px;
    overflow: hidden;
    min-height: 520px;
}

.intra-sidebar {
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.avatar {
    width: 40px;
    height: 40px;
    background: rgba(138, 43, 226, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(138, 43, 226, 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;
}

.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.85rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    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.02);
}

.intra-nav-btn.active {
    color: var(--bg-dark);
    background: var(--primary);
    font-weight: 700;
}

.intra-content {
    padding: 2.5rem;
    background: rgba(10, 11, 16, 0.4);
    min-height: 460px;
}

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

.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;
}

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

/* Agents status grid (Tab 1) */
.agents-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.agent-status-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.status-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator.online { color: var(--primary); }
.status-indicator.online span { background-color: var(--primary); box-shadow: 0 0 6px var(--primary); }

.status-indicator.warning { color: #f59e0b; }
.status-indicator.warning span { background-color: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.agent-status-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-metrics {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.c-metric {
    display: flex;
    flex-direction: column;
}

.c-metric span {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.c-metric strong {
    font-size: 0.85rem;
    color: var(--text-main);
}

/* RAG Search Tab (Tab 2) */
.rag-search-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.search-input-wrapper input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.15);
}

.quick-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.quick-examples span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.example-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.example-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.rag-result-box {
    border-radius: 12px;
    overflow: hidden;
    animation: panelReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.result-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.confidence {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.result-body {
    padding: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Activity Log Tab (Tab 3) */
.activity-log-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    height: 300px;
    overflow-y: auto;
}

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.log-entry {
    display: flex;
    gap: 0.75rem;
    line-height: 1.5;
}

.log-time {
    color: var(--text-muted);
    flex-shrink: 0;
}

.log-agent {
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

.log-msg {
    color: #e2e8f0;
}

/* Metrics Grid (Tab 4) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-card {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
}

.metric-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.metric-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.trend {
    font-size: 0.7rem;
    font-weight: 600;
}

.trend.up { color: var(--primary); }
.trend.stable { color: var(--text-muted); }

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

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

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

.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);
}

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

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.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;
}

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

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

/* Contacto Section */
.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;
}

.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: 10px;
    background: rgba(255, 255, 255, 0.02);
    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;
}

.contact-form-container {
    padding: 3rem;
}

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

.contact-success-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    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 Section */
.footer {
    border-top: 1px solid var(--border-color);
    background: rgba(5, 6, 8, 0.8);
    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;
}

.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);
}

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

/* Responsive Grid / Layout System */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .simulador-container {
        grid-template-columns: 1fr;
    }
    
    .sim-config {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: auto;
    }
    
    .sim-chat {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sim-panel {
        height: auto;
        min-height: 480px;
    }
    
    .roi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .roi-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        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;
    }
    
    .cotizador-container {
        grid-template-columns: 1fr;
    }
    
    .cotizador-inputs {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .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;
    }
    
    .pilares-grid {
        grid-template-columns: 1fr;
    }
    
    .pilar-card {
        padding: 2rem;
    }
    
    .agents-status-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .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;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .roi-grid {
        grid-template-columns: 1fr;
    }
    
    .roi-card {
        border-bottom: 1px solid var(--border-color);
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .roi-card:last-child {
        border-bottom: none;
    }
}
