/* ============================================= */
/* ARCHIVO DE ESTILOS UNIFICADO         */
/* PARA EL PROYECTO INNOVASOFT DIGITAL      */
/* ============================================= */

/* --------------------------------------------- */
/* 1. ESTILOS GLOBALES              */
/* --------------------------------------------- */

/* Define la fuente y los colores base para la mayoría de las páginas (tema claro) */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f7f4; /* Un fondo neutro y cálido de index.html */
    color: #333; /* Un color de texto oscuro y legible */
}

/* Contenedor genérico para los gráficos de Chart.js */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 700px; /* Ancho máximo generoso para adaptarse a varios diseños */
    margin-left: auto;
    margin-right: auto;
    height: 350px;
    max-height: 50vh; /* Límite de altura relativo a la pantalla */
}

/* Ajustes responsivos para los contenedores de gráficos */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
}


/* --------------------------------------------- */
/* 2. COMPONENTES COMUNES             */
/* --------------------------------------------- */

/** Menú Desplegable (Dropdown)
 * Este estilo se repetía en casi todos los archivos. Ahora está unificado.
 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100; /* Asegura que esté por encima de otros elementos */
    border-radius: 0.5rem;
    overflow: hidden;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #2980B9;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* --------------------------------------------- */
/* 3. ESTILOS DE PÁGINA ESPECÍFICOS        */
/* --------------------------------------------- */

/* === Estilos de index.html (Agent SDR) === */

.hero-gradient {
    background: linear-gradient(135deg, #6DD5FA, #2980B9);
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-tab.active {
    background-color: #2980B9;
    color: white;
    border-left-width: 4px;
    border-color: #FF7F50;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.animated-counter::after {
    content: '%';
}

.animated-counter.times::after {
    content: 'x';
}

/* === Estilos de Agent_Agenda.html === */

.page-gradient {
    background: linear-gradient(135deg, #6DD5FA, #2980B9);
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0284c7;
}

.stat-card {
    background-color: white;
    border-left: 5px solid #0284c7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.feature-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.feature-card.active, .feature-card:hover {
    background-color: #e0f2fe;
    transform: scale(1.03);
}

.industry-btn {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.industry-btn.active {
    background-color: #0284c7;
    color: white;
}


/* === Estilos de Agent_Recepcionist.html === */

.capability-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* === Estilos de Agent_Tickets.html === */

.kpi-card {
    transition: all 0.3s ease-in-out;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.capability-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out;
}

.capability-card.active .capability-card-content {
    max-height: 500px;
}

.filter-btn.active {
    background-color: #0d9488;
    color: white;
}

.case-study-card {
    display: block;
}

/* === Estilos de Agent_KPI.html === */

.tab-button.active {
    border-color: #0ea5e9;
    color: #0ea5e9;
    font-weight: 600;
}

/* Nota: .kpi-card también existe en Agent_Tickets.html. Son lo suficientemente diferentes
   como para mantenerlos separados si es necesario, pero aquí se unifican bajo el mismo efecto de hover. */


/* === Estilos de calderas.html === */

.card { /* Este es un nombre genérico, se aplicará a cualquier elemento con la clase 'card' */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.tab.active {
    background-color: #2563eb;
    color: #ffffff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}


/* --------------------------------------------- */
/* 4. TEMA OSCURO (DE industria_IoT.html)     */
/* --------------------------------------------- */
/* Estos estilos son muy diferentes y se aplican a una página específica.
   Si quieres usarlos en otras páginas, puedes agregar una clase al body,
   por ejemplo: <body class="theme-dark"> y luego prefijar estas reglas
   con .theme-dark */

.theme-dark-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #2d3748 100%);
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.theme-dark-body h1 {
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00d4ff, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.theme-dark-body .subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.theme-dark-body .nav-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-dark-body .nav-btn:hover, .theme-dark-body .nav-btn.active {
    background: linear-gradient(45deg, #00d4ff, #4facfe);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.theme-dark-body .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.theme-dark-body .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.theme-dark-body .card:hover::before {
    left: 100%;
}

.theme-dark-body .card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.theme-dark-body .card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px; /* Distancia desde la parte inferior */
    right: 40px; /* Distancia desde la parte derecha */
    background-color: #25d366; /* Color de fondo de WhatsApp */
    color: #FFF;
    border-radius: 50px; /* Para que sea circular */
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100; /* Asegura que esté por encima de otros elementos */
    display: flex; /* Para centrar la imagen */
    justify-content: center;
    align-items: center;
}

.whatsapp-float img {
    width: 35px; /* Ajusta el tamaño del icono dentro del botón */
    height: 35px;
}

/* Opcional: Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}