﻿/* Estilos específicos para el Portal Empresarial */

/* Colores corporativos */
:root {
    --enterprise-primary: #003366; /* Azul corporativo oscuro */
    --enterprise-secondary: #0066CC; /* Azul corporativo medio */
    --enterprise-accent: #FF9900; /* Naranja corporativo */
    --enterprise-light: #F0F5FF; /* Azul claro para fondos */
    --enterprise-dark: #001A33; /* Azul muy oscuro */
    --enterprise-text: #333333; /* Texto principal */
    --enterprise-gray: #E0E0E0; /* Gris claro para divisores */
}

/* Estilos Base */
.enterprise-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--enterprise-light);
    color: var(--enterprise-text);
}

/* Header */
.enterprise-header {
    background-color: #ffffff !important;
    border-bottom: 4px solid var(--enterprise-accent) !important;
}

    .enterprise-header .navbar-brand {
        color: #000000 !important;
    }

    .enterprise-header .navbar-brand small {
        color: #666666 !important;
    }

    .enterprise-header .nav-link {
        color: #000000 !important;
    }

        .enterprise-header .nav-link:hover {
            color: var(--enterprise-secondary) !important;
        }

.enterprise-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0;
}

    .enterprise-dropdown .dropdown-item {
        color: #333333;
    }

        .enterprise-dropdown .dropdown-item:hover {
            background-color: var(--enterprise-light) !important;
            color: var(--enterprise-primary);
        }

/* Contenedor Principal */
.enterprise-container {
    display: flex;
    flex: 1;
    background-color: var(--enterprise-light);
}

/* Contenido */
.enterprise-content {
    background-color: white;
    flex-grow: 1;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 15px;
}

/* Sidebar */
.enterprise-sidebar {
    min-width: 250px;
    background-color: var(--enterprise-primary);
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

    .enterprise-sidebar .nav-link {
        color: white;
        position: relative;
        padding: 15px 20px;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

        .enterprise-sidebar .nav-link:hover {
            background-color: var(--enterprise-secondary);
            border-left: 3px solid var(--enterprise-accent);
        }

        .enterprise-sidebar .nav-link.active {
            background-color: var(--enterprise-secondary);
            border-left: 3px solid var(--enterprise-accent);
        }

        .enterprise-sidebar .nav-link i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

/* Footer */
.enterprise-footer {
    background-color: var(--enterprise-primary);
    color: white;
    padding: 15px 0;
    border-top: 3px solid var(--enterprise-accent);
}

    .enterprise-footer a {
        color: white;
        transition: color 0.3s ease;
    }

        .enterprise-footer a:hover {
            color: var(--enterprise-accent);
            text-decoration: none;
        }

/* Banner Empresarial */
.enterprise-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('../images/corporate-background.jpg') no-repeat center center/cover;
    color: white;
}

    .enterprise-banner::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 51, 102, 0.8); /* Color base con transparencia */
    }

    .enterprise-banner .container {
        position: relative;
        z-index: 1;
        top: 50%;
        transform: translateY(-50%);
    }

.enterprise-banner-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 600;
}

.enterprise-banner-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
}

.enterprise-banner-buttons .btn {
    margin: 10px;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.enterprise-btn-primary {
    background-color: var(--enterprise-accent);
    border: none;
    color: white;
}

    .enterprise-btn-primary:hover {
        background-color: #e08700;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.enterprise-btn-outline {
    border: 2px solid white;
    color: white;
    background-color: transparent;
}

    .enterprise-btn-outline:hover {
        background-color: white;
        color: var(--enterprise-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* Cajas de Menu */
.enterprise-menu-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 3px solid var(--enterprise-accent);
}

    .enterprise-menu-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .enterprise-menu-box i {
        font-size: 48px;
        color: var(--enterprise-secondary);
        margin-bottom: 15px;
    }

    .enterprise-menu-box h4 {
        color: var(--enterprise-primary);
        font-weight: 600;
        margin-bottom: 10px;
    }

    .enterprise-menu-box p {
        color: var(--enterprise-text);
        margin-bottom: 15px;
    }

/* Tabs corporativos */
.enterprise-tabs .nav-link {
    color: var(--enterprise-primary);
    border: 1px solid transparent;
    border-radius: 0;
    padding: 12px 20px;
    font-weight: 500;
    position: relative;
}

    .enterprise-tabs .nav-link.active {
        color: var(--enterprise-accent);
        background-color: transparent;
        border-color: transparent;
    }

        .enterprise-tabs .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--enterprise-accent);
        }

.enterprise-tab-content {
    padding: 25px 15px;
}

/* Secciones informativas */
.enterprise-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

    .enterprise-section h2 {
        color: var(--enterprise-primary);
        font-weight: 600;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--enterprise-gray);
    }

    .enterprise-section p {
        color: var(--enterprise-text);
        line-height: 1.8;
    }

/* Estilos responsive */
@media (max-width: 992px) {
    .enterprise-sidebar {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .enterprise-container {
        flex-direction: column;
    }

    .enterprise-sidebar {
        width: 100%;
        min-width: 100%;
    }

    .enterprise-banner-title {
        font-size: 36px;
    }

    .enterprise-banner-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .enterprise-banner-title {
        font-size: 28px;
    }

    .enterprise-banner-subtitle {
        font-size: 16px;
    }

    .enterprise-banner-buttons .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
}
/* Adiciones a los estilos existentes para mejorar el uso del espacio */

/* Optimización de formularios de búsqueda */
.buscador-background {
    background-color: var(--enterprise-light);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Botones de acción */
.btn-primario-dos {
    background-color: var(--enterprise-secondary);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

    .btn-primario-dos:hover {
        background-color: var(--enterprise-primary);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

/* Títulos y encabezados */
.container-titulo_principal {
    background-color: var(--enterprise-light);
    border-radius: 4px;
    padding: 8px 0;
}

.titulo_principal {
    color: var(--enterprise-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.ico-portalpaciente {
    height: 30px;
    width: auto;
}

.header-separador {
    border-color: var(--enterprise-secondary);
    opacity: 0.2;
}

/* Optimización de tablas */
.custom-table-container {
    overflow-x: auto;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 250px); /* Altura dinámica basada en el viewport */
    position: relative;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--enterprise-primary);
}

.table {
    margin-bottom: 0;
}

    .table th {
        white-space: nowrap;
        font-size: 0.85rem;
        font-weight: 600;
        padding: 0.5rem;
    }

    .table td {
        vertical-align: middle;
        font-size: 0.85rem;
        padding: 0.5rem;
    }

/* Mejoras en modales */
.modal-header.bg-primary {
    background-color: var(--enterprise-primary) !important;
}

/* Estilos específicos para formularios */
.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px);
    font-size: 0.875rem;
}

.form-label.small {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}