﻿/* --- VARIABLES GLOBALES Y RESET --- */
:root {
    /* Los colores --agent-color y --agent-rgb se sobreescriben en cada .aspx */
    --agent-color: #0a9d65;
    --agent-rgb: 10, 157, 101;
    /* Paleta para modo claro */
    --bg-white: #ffffff;
    --bg-subtle: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-border: rgba(var(--agent-rgb), 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(var(--agent-rgb), 0.15), 0 8px 10px -6px rgba(0,0,0,0.1);
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .tech-font {
    
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- FONDO TECNOLÓGICO SUTIL --- */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(circle at 2px 2px, rgba(var(--agent-rgb), 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    background-attachment: fixed;
}

/* --- NAVEGACIÓN --- */
.navbar {
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.agent-hero {
    padding: 100px 0 0;
    background: radial-gradient(circle at 90% 10%, rgba(var(--agent-rgb), 0.08), transparent 50%);
    position: relative;
}

.agent-badge {
    background: rgba(var(--agent-rgb), 0.1);
    color: var(--agent-color);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(var(--agent-rgb), 0.2);
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* --- COMPONENTES DE CRISTAL (Glassmorphism sobre blanco) --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .glass-panel:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--agent-color);
    }

/* --- GRID DE MÓDULOS --- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.module-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .module-item:hover {
        border-color: var(--agent-color);
        background: rgba(var(--agent-rgb), 0.02);
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(var(--agent-rgb), 0.1);
    }

    .module-item i {
        font-size: 2.5rem;
        color: var(--agent-color);
        margin-bottom: 1rem;
    }

/* --- TABLAS DE LICENCIAMIENTO --- */
.table-dark {
    background-color: #1e293b !important; /* Mantenemos las tablas oscuras para alto contraste */
    border-radius: 16px;
    overflow: hidden;
}

/* --- LÍNEA DE TIEMPO (Protocolo) --- */
.timeline-steps {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    position: relative;
}

    .timeline-steps::before {
        content: '';
        position: absolute;
        top: 55px;
        left: 5%;
        right: 5%;
        height: 3px;
        background: #e2e8f0;
        z-index: 0;
    }

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    background: var(--agent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(var(--agent-rgb), 0.4);
}

/* --- CROSS-SELLING (Nexus) --- */
.nexus-section {
    background-color: var(--bg-subtle);
    padding: 80px 0;
}

.mini-agent-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

    .mini-agent-card:hover {
        transform: scale(1.03);
        box-shadow: var(--shadow-lg);
    }

/* --- UTILIDADES --- */
.logo {
    max-width: 80%;
    filter: drop-shadow(0 20px 30px rgba(var(--agent-rgb), 0.2));
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

footer {
    padding: 60px 0;
    background: #f1f5f9;
    color: var(--text-muted);
}
.mini-agent-card {
    display: flex; /* Alinea contenido en fila */
    justify-content: space-between; /* Texto a la izquierda, imagen a la derecha */
    align-items: center; /* Centra verticalmente */
    padding: 15px 20px;
    background: #fff;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

    .mini-agent-card:hover {
        transform: translateY(-3px);
    }

.card-content {
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 50px; /* Ajusta el tamaño según necesites */
    height: 50px;
    border-radius: 50%; /* Lo hace circular */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Evita que la imagen se deforme */
        background: #0a9d65;
    }
 @media(max-width: 1020px){
    .ajustehero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-inline:2rem;
    }
    .glass-panel{
        height:100% !important;
    }
 }

/* Estilos específicos para la tabla de Licenciamiento */


    .table-dark-custom th {
        font-weight: 600;
        padding: 1.5rem 0.5rem;
        font-weight:bold;
        color:#000 !important;
    }

.table-group-header {
    background-color: #e9ecef !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.table-container-plan {
    border: 2px solid #0a9d65;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

    .table-container-plan .bi-x-lg {
        font-size: 1.2rem;
    }

    .table-container-plan td {
        padding: 1rem 0.5rem;
        border: 2px solid #0a9d65;
        font-weight: bold;
        color: #000 !important;
    }

    .table-container-plan tr:hover {
        background-color: rgba(10, 157, 101, 0.02);
    }

    .verde{
        background-color:#0a9d65 !important;
        color: #fff !important;
    }
    .gris{
        background-color: #909090 !important;
    }