* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e53e30; /* Rojo OraSystem */
    --color-secondary: #2c3e50; /* Azul oscuro */
    --color-accent: #1d1d1d; /* Negro/gris oscuro */
    --color-light: #f8f9fa; /* Gris claro */
    --color-white: #ffffff;
    --color-gray: #7f8c8d;
    --color-border: #e0e0e0;
    --color-success: #27ae60;
    --color-danger: #e74c3c;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-light);
    color: var(--color-accent);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout principal */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all var(--transition-speed) ease;
}

.logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h2 {
    color: var(--color-white);
    font-size: 24px;
    margin-bottom: 5px;
}

.ora-text {
    color: var(--color-primary);
    font-weight: bold;
}

.logo-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-style: italic;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-primary);
}

/* Contenido principal */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 0;
    transition: all var(--transition-speed) ease;
}

/* Header superior */
.top-header {
    background-color: var(--color-white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search input {
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px 0 0 4px;
    width: 300px;
    outline: none;
}

.header-search button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 9px 15px;
    cursor: pointer;
}

.header-actions button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color var(--transition-speed);
    display: flex;
    align-items: center;
}

.header-actions button i {
    margin-right: 5px;
}

button#refresh-btn:hover {
    background-color: #c62a20; /* Rojo OraSystem más oscuro */
}

/* Panel de contenido */
.content-panel {
    padding: 30px;
    display: none;
}

.content-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h1 {
    color: var(--color-secondary);
    font-size: 24px;
}

.panel-actions select {
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-white);
    outline: none;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: var(--color-gray);
}

.loading i {
    margin-right: 8px;
}

/* Mensaje de error */
.error-message {
    display: none;
    text-align: center;
    padding: 15px;
    margin: 15px 0;
    background-color: #f8d7da;
    color: var(--color-danger);
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Tabla */
.table-container {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: var(--color-secondary);
    font-weight: 600;
    color: var(--color-white);
    position: sticky;
    top: 0;
}

tbody tr:hover {
    background-color: rgba(229, 62, 48, 0.05); /* Rojo OraSystem con opacidad baja */
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0 5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.pagination button:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination span {
    padding: 0 10px;
    color: var(--color-gray);
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .header-search input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-search input {
        width: 100%;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .chart-container.full-width {
        grid-column: span 1;
    }
    
    .chart-container {
        height: 350px;
    }
    
    #chart-timeline, #chart-donut, #chart-area {
        height: 280px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .footer {
        padding: 10px;
        font-size: 12px;
    }
}

/* Estadísticas */
.stats-container {
    margin-top: 20px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    background-color: rgba(229, 62, 48, 0.1); /* Fondo rojo claro */
    color: var(--color-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
}

.stat-details h3 {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-details p {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0;
}

/* Gráficos */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 20px;
    height: 400px;
}

.chart-container.full-width {
    grid-column: span 2;
}

.chart-container h3 {
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

#chart-timeline, #chart-donut, #chart-area {
    width: 100%;
    height: 330px;
}

/* Config container */
.config-container {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 20px;
    min-height: 200px;
}

/* Responsive para estadísticas */
@media (max-width: 1200px) {
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pie de página */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
    padding: 15px;
    font-size: 14px;
    position: relative;
    z-index: 100;
}

/* Estilos para el modal de edición y formulario */
.modal-content-large {
    width: 80%;
    max-width: 1000px;
}

.form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1;
    min-width: 250px;
}

.form-full-width {
    width: 100%;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background-color: #e73c30;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #c42d21;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Estilos para botones de Excel */
.excel-all-btn {
    background-color: #1e7e34;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
}

.excel-all-btn:hover {
    background-color: #15601f;
}

.excel-btn i {
    color: #1e7e34;
}

.edit-btn i {
    color: #ffc107;
}

/* Estilos para modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

/* Cuando el modal está activo */
.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content,
.modal-content-large {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--color-primary);
}

/* Mensaje de éxito */
.mensaje-exito {
    display: inline-block;
    color: #28a745;
    font-weight: 600;
    margin-left: 15px;
    padding: 8px 15px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.mensaje-exito i {
    margin-right: 5px;
}

/* Botón deshabilitado */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Estilos para el Foro de Imágenes */
.carousel-preview {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-slides {
    width: 100%;
    height: 400px;
}

.carousel-slide {
    position: relative;
    min-height: 300px;
    display: none;
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.carousel-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Estilos para diferentes proporciones de imagen */
.carousel-image-container img.landscape {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.carousel-image-container img.portrait {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.carousel-image-container img.square {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    text-align: center;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-loading, .carousel-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #333;
}

.carousel-error {
    background-color: #e74c3c;
}

.carousel-error i, .carousel-loading i {
    font-size: 48px;
    margin-bottom: 15px;
}

.image-thumbnail {
    width: 80px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.image-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-preview {
    margin-top: 10px;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.btn-warning {
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.btn-warning i {
    margin-right: 5px;
}

.btn-warning:hover {
    background-color: #d35400;
}

/* Estilos para el componente de información de usuario */
.user-info {
    display: flex;
    align-items: center;
    margin-left: 20px;
    padding: 0 15px;
    border-left: 1px solid #e0e0e0;
}

.user-name {
    font-weight: 500;
    margin-right: 10px;
    text-transform: capitalize;
}

#logout-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

#logout-btn:hover {
    color: #d9534f;
}

/* Ajustes para el header con la información de usuario */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive header */
@media (max-width: 768px) {
    .top-header {
        padding: 10px 15px;
    }
    
    .header-search input {
        width: 200px;
    }
    
    .btn-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-search input {
        width: 150px;
    }
    
    .header-actions button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* Estilos mejorados para acciones en la lista de postulaciones */
.action-btn {
    margin: 0 3px;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

.view-btn {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.view-btn:hover {
    background-color: #0d6efd;
    color: #ffffff;
}

.download-btn {
    background-color: #e8f5e9;
    color: #28a745;
}

.download-btn:hover {
    background-color: #28a745;
    color: #ffffff;
}

.edit-btn {
    background-color: #fff3cd;
    color: #ffc107;
}

.edit-btn:hover {
    background-color: #ffc107;
    color: #212529;
}

.excel-btn {
    background-color: #d4edda;
    color: #198754;
}

.excel-btn:hover {
    background-color: #198754;
    color: #ffffff;
}

.delete-btn {
    background-color: #f8d7da;
    color: #dc3545;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: #ffffff;
}

/* Mejora del contenedor de acciones para mejor organización */
td:last-child {
    min-width: 160px;
    text-align: center;
}

/* Responsive sidebar overlay */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        background-color: rgba(44, 62, 80, 0.95);
        backdrop-filter: blur(5px);
    }
    
    .sidebar.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Panel actions responsive */
.panel-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 576px) {
    .panel-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .panel-actions select,
    .panel-actions button {
        flex: 1;
        min-width: 120px;
    }
}

/* Table improvements */
.table-responsive {
    margin-bottom: 1rem;
}

.table-responsive table {
    border-collapse: collapse;
    background-color: white;
}

.table-responsive th,
.table-responsive td {
    border: 1px solid var(--color-border);
    vertical-align: middle;
}

.table-responsive th {
    background-color: var(--color-light);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Loading and error improvements */
.loading {
    background-color: var(--color-light);
    border-radius: 8px;
    margin: 1rem 0;
}

.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Stats cards improvements */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Form responsive improvements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(229, 62, 48, 0.1);
}

/* Button improvements */
.btn-primary,
.btn-secondary,
.btn-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #c62a20;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-gray);
    color: white;
}

.btn-secondary:hover {
    background-color: #6c7b7d;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000;
        --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.4);
    }
}

/* Print styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .header-actions,
    .action-buttons,
    .pagination {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .table-responsive {
        overflow: visible !important;
    }
    
    .table-responsive table {
        min-width: auto !important;
    }
}

/* ==========================================
   ESTILOS PARA EVALUACIONES DE SEGURIDAD
   ========================================== */

/* Badges para nivel de interés */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-alto {
    background-color: #e74c3c;
    color: white;
}

.badge-medio {
    background-color: #f39c12;
    color: white;
}

.badge-bajo {
    background-color: #95a5a6;
    color: white;
}

.badge-info {
    background-color: #3498db;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Marca para alta prioridad */
.marca-alta-prioridad {
    background-color: #fff5f5;
    border-left: 4px solid var(--color-danger);
}

.marca-alta-prioridad:hover {
    background-color: #fee2e2;
}

/* Modal de detalles de evaluación */
.evaluacion-detalles {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.evaluacion-detalles h3 {
    color: var(--color-secondary);
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
    font-size: 18px;
}

.evaluacion-detalles h3:first-child {
    margin-top: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    background-color: var(--color-light);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
}

.info-item strong {
    color: var(--color-secondary);
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.motores-bd {
    margin-bottom: 20px;
}

.motores-bd .badge {
    margin-right: 8px;
    margin-bottom: 4px;
}

.respuestas-evaluacion {
    background-color: var(--color-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.respuesta-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.respuesta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.respuesta-item strong {
    color: var(--color-secondary);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.respuesta-item p {
    background-color: var(--color-white);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Estilos responsivos para evaluaciones */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .respuestas-evaluacion {
        padding: 15px;
    }
    
    .respuesta-item strong {
        font-size: 14px;
    }
    
    .respuesta-item p {
        padding: 8px;
        font-size: 13px;
    }
    
    .badge {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Mejoras en la tabla para evaluaciones */
.evaluaciones-table-body tr.marca-alta-prioridad td {
    font-weight: 500;
}

.evaluaciones-table-body .badge {
    font-weight: 600;
}

/* Tooltip mejorado para texto truncado */
.truncated-text:hover::after {
    content: attr(data-full-text);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    max-width: 300px;
    z-index: 1000;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
    word-wrap: break-word;
}

.truncated-text:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-secondary);
    z-index: 1001;
}

/* Estadísticas específicas para evaluaciones */
.stats-grid .stat-card .stat-icon {
    background: linear-gradient(135deg, var(--color-primary), #c62a20);
}

.stats-grid .stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stats-grid .stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.stats-grid .stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* ===== ESTILOS PARA EL MÓDULO DE CONFIGURACIÓN ===== */

.config-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.config-section {
    background: var(--color-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.config-section h3 {
    color: var(--color-secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-section h3 i {
    color: var(--color-primary);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 14px;
}

.config-item input[type="text"],
.config-item input[type="email"],
.config-item input[type="tel"],
.config-item input[type="time"],
.config-item select {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color var(--transition-speed);
}

.config-item input:focus,
.config-item select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(229, 62, 48, 0.1);
}

.config-item input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.config-item label[for*="checkbox"] {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* ===== ESTILOS PARA EL CALENDARIO DE ENTREVISTAS ===== */

.calendar-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
}

.calendar-container {
    background: var(--color-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.calendar-nav-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.calendar-nav-btn:hover {
    background: #c62a20;
}

.calendar-current-month {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-secondary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: var(--color-white);
    min-height: 120px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.today {
    background: rgba(229, 62, 48, 0.1);
    border: 2px solid var(--color-primary);
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: var(--color-gray);
}

.calendar-day-number {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.calendar-day.other-month .calendar-day-number {
    color: var(--color-gray);
}

.calendar-interview {
    background: var(--color-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-interview:hover {
    background: #c62a20;
}

.calendar-interview.completada {
    background: var(--color-success);
}

.calendar-interview.cancelada {
    background: var(--color-danger);
}

.calendar-interview.en-proceso {
    background: #f39c12;
}

.calendar-interview.reprogramada {
    background: #9b59b6;
}

.interviews-list {
    background: var(--color-white);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.interviews-list h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.interview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all var(--transition-speed);
}

.interview-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.interview-info {
    flex: 1;
}

.interview-candidate {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.interview-details {
    font-size: 14px;
    color: var(--color-gray);
}

.interview-time {
    font-weight: 600;
    color: var(--color-primary);
}

.interview-actions {
    display: flex;
    gap: 10px;
}

.calendar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.calendar-stats .stat-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* Responsive para calendario */
@media (max-width: 768px) {
    .calendar-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .calendar-day-number {
        font-size: 14px;
    }
    
    .calendar-interview {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .calendar-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-current-month {
        font-size: 20px;
    }
}

/* Estilos para modales de entrevistas */
.modal-content-large {
    max-width: 800px;
    width: 90%;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* Estados de entrevistas en el calendario */
.calendar-day.has-interviews {
    background: rgba(229, 62, 48, 0.05);
}

.calendar-day.multiple-interviews {
    background: rgba(229, 62, 48, 0.1);
}

/* Indicador de conflictos de horario */
.calendar-interview.conflict {
    background: #e74c3c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== ESTILOS PARA NOTIFICACIONES ===== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    max-width: 400px;
    word-wrap: break-word;
}

.notification-success {
    background: var(--color-success);
    color: white;
}

.notification-error {
    background: var(--color-danger);
    color: white;
}

.notification-info {
    background: #3498db;
    color: white;
}

.notification-warning {
    background: #f39c12;
    color: white;
}

.notification i {
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== ESTILOS PARA BOTONES PEQUEÑOS ===== */

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* ===== ESTILOS PARA BADGES ===== */

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
    color: white;
}

.badge.programada {
    background: var(--color-primary);
}

.badge.en-proceso {
    background: #f39c12;
}

.badge.completada {
    background: var(--color-success);
}

.badge.cancelada {
    background: var(--color-danger);
}

.badge.reprogramada {
    background: #9b59b6;
}

/* ===== ESTILOS PARA FORMULARIOS DE ENTREVISTAS ===== */

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.form-actions button {
    min-width: 120px;
}

/* ===== ESTILOS PARA FILTROS DEL CALENDARIO ===== */

.calendar-filters .filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(229, 62, 48, 0.1);
}

/* ===== ESTILOS PARA DÍAS DEL CALENDARIO CON ENTREVISTAS ===== */

.calendar-day.has-interviews {
    background: rgba(229, 62, 48, 0.05);
}

.calendar-day.multiple-interviews {
    background: rgba(229, 62, 48, 0.1);
}

.calendar-day.has-interviews:hover {
    background: rgba(229, 62, 48, 0.1);
}

.calendar-day.multiple-interviews:hover {
    background: rgba(229, 62, 48, 0.15);
}

/* ===== ESTILOS PARA CONFLICTOS DE HORARIO ===== */

.calendar-interview.conflict {
    background: #e74c3c;
    animation: pulse 2s infinite;
    position: relative;
}

.calendar-interview.conflict::after {
    content: '⚠️';
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 8px;
    background: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ESTILOS PARA RESPONSIVE DEL CALENDARIO ===== */

@media (max-width: 480px) {
    .calendar-filters {
        padding: 15px;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .calendar-container {
        padding: 15px;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 3px;
    }
    
    .calendar-day-number {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .calendar-interview {
        font-size: 9px;
        padding: 2px 4px;
        margin-bottom: 2px;
    }
    
    .calendar-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-columns {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions button {
        min-width: auto;
    }
}

/* ===== ESTILOS PARA EL DASHBOARD DE INICIO ===== */

.dashboard-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c62a20 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.current-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.quick-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* KPIs Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.kpi-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
}

.kpi-card.kpi-success::before {
    background: var(--color-success);
}

.kpi-card.kpi-warning::before {
    background: #f39c12;
}

.kpi-card.kpi-info::before {
    background: #3498db;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.kpi-card .kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-primary), #c62a20);
}

.kpi-card.kpi-success .kpi-icon {
    background: linear-gradient(135deg, var(--color-success), #229954);
}

.kpi-card.kpi-warning .kpi-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.kpi-card.kpi-info .kpi-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.kpi-content h3 {
    color: var(--color-secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.8;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.kpi-change.positive {
    color: var(--color-success);
}

.kpi-change.negative {
    color: var(--color-danger);
}

.kpi-change.neutral {
    color: var(--color-gray);
}

/* Dashboard Charts */
.dashboard-charts {
    margin-bottom: 30px;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.chart-row:last-child {
    margin-bottom: 0;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-container {
    background: var(--color-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.chart-header h3 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-header h3 i {
    color: var(--color-primary);
}

.chart-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chart-period-select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.chart-refresh-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chart-refresh-btn:hover {
    background: #c62a20;
}

.chart-legend {
    display: flex;
    gap: 20px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.contactos {
    background: var(--color-primary);
}

.legend-color.postulaciones {
    background: var(--color-success);
}

.legend-color.evaluaciones {
    background: #3498db;
}

.chart-content {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    font-style: italic;
}

/* Dashboard Bottom */
.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.recent-activity,
.notifications-panel {
    background: var(--color-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.section-header h3 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--color-primary);
}

.view-all-btn,
.mark-all-read-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-btn:hover,
.mark-all-read-btn:hover {
    background: #c62a20;
    transform: translateY(-2px);
}

.activity-list,
.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item,
.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.activity-item:last-child,
.notification-item:last-child {
    border-bottom: none;
}

.activity-item:hover,
.notification-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
}

.activity-icon,
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.activity-icon.contact {
    background: var(--color-primary);
}

.activity-icon.application {
    background: var(--color-success);
}

.activity-icon.interview {
    background: #f39c12;
}

.activity-icon.evaluation {
    background: #3498db;
}

.notification-icon.info {
    background: #3498db;
}

.notification-icon.warning {
    background: #f39c12;
}

.notification-icon.success {
    background: var(--color-success);
}

.notification-icon.error {
    background: var(--color-danger);
}

.activity-content,
.notification-content {
    flex: 1;
}

.activity-title,
.notification-title {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.activity-time,
.notification-time {
    font-size: 12px;
    color: var(--color-gray);
}

.notification-item.unread {
    background: rgba(52, 152, 219, 0.05);
    border-left: 3px solid #3498db;
    padding-left: 12px;
}

/* Daily Summary */
.daily-summary {
    background: var(--color-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.summary-header h3 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-header h3 i {
    color: var(--color-primary);
}

.summary-date {
    color: var(--color-gray);
    font-size: 14px;
    font-weight: 500;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    background: linear-gradient(135deg, var(--color-primary), #c62a20);
}

.summary-item:nth-child(2) .summary-icon {
    background: linear-gradient(135deg, var(--color-success), #229954);
}

.summary-item:nth-child(3) .summary-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.summary-item:nth-child(4) .summary-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.summary-content h4 {
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.8;
}

.summary-content p {
    color: var(--color-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .chart-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-action-btn {
        justify-content: center;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .chart-legend {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 15px;
        border-radius: 12px;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .current-time {
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    .kpi-card {
        padding: 20px;
    }
    
    .kpi-value {
        font-size: 2rem;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .summary-item {
        padding: 15px;
    }
    
    .summary-content p {
        font-size: 1.5rem;
    }
}

/* ===== ESTILOS PARA EL MÓDULO DE REPORTERÍA ===== */

.reporteria-menu-container {
    background: var(--color-white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.reporteria-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.menu-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.menu-category:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.menu-category h3 {
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.menu-category h3 i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.submenu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submenu-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-secondary);
}

.submenu-item:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.submenu-item.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 600;
}

.submenu-item .item-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.submenu-item:not(.active) .item-count {
    background: var(--color-gray);
    color: white;
}

.reporteria-content {
    background: var(--color-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.reporteria-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.reporteria-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.reporteria-filters .filter-group label {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 14px;
}

.reporteria-filters .filter-group input,
.reporteria-filters .filter-group select {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color var(--transition-speed);
}

.reporteria-filters .filter-group input:focus,
.reporteria-filters .filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(229, 62, 48, 0.1);
}

/* Estilos para la tabla de reportería */
#reporteria-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#reporteria-table th,
#reporteria-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

#reporteria-table th {
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

#reporteria-table tbody tr:hover {
    background-color: rgba(229, 62, 48, 0.05);
}

#reporteria-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges para estados en reportería */
.badge-activo {
    background-color: var(--color-success);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-inactivo {
    background-color: var(--color-gray);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pendiente {
    background-color: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive para reportería */
@media (max-width: 768px) {
    .reporteria-menu {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-category {
        padding: 15px;
    }
    
    .reporteria-filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .reporteria-filters .filter-group {
        min-width: 100%;
    }
    
    .reporteria-content {
        padding: 15px;
    }
    
    #reporteria-table th,
    #reporteria-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .reporteria-menu-container {
        padding: 15px;
    }
    
    .menu-category h3 {
        font-size: 1rem;
    }
    
    .submenu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .reporteria-filters {
        padding: 10px;
    }
    
    .reporteria-content {
        padding: 10px;
    }
}

/* ===== ESTILOS PARA MANTENEDORES Y REPORTES ===== */

/* Instrucciones de uso */
.reporteria-instructions {
    margin-bottom: 25px;
}

.instruction-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.instruction-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-card p {
    margin: 8px 0;
    color: var(--color-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.instruction-card p:first-of-type {
    margin-top: 0;
}

.instruction-card p:last-of-type {
    margin-bottom: 0;
}

/* Estilos para menús desplegables */
.menu-category-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.menu-category-header:hover {
    color: var(--color-primary);
}

.menu-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.menu-category.active .menu-arrow {
    transform: rotate(180deg);
}

.menu-category.active .submenu-items {
    display: block;
}

.menu-category {
    margin-bottom: 20px;
}

.menu-category.active .menu-arrow {
    transform: rotate(180deg);
}

.submenu-items {
    display: block;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.submenu-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.submenu-actions .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.submenu-list {
    max-height: 300px;
    overflow-y: auto;
}

.submenu-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 5px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.submenu-list-item:hover {
    background: #f8f9fa;
    border-color: var(--color-primary);
}

.submenu-list-item .item-info {
    flex: 1;
}

.submenu-list-item .item-name {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.submenu-list-item .item-details {
    font-size: 12px;
    color: var(--color-gray);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.submenu-list-item .item-details span {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.submenu-list-item .item-details .cliente {
    background: #e3f2fd;
    color: #1976d2;
}

.submenu-list-item .item-details .componente {
    background: #f3e5f5;
    color: #7b1fa2;
}

.submenu-list-item .item-details .hh {
    background: #e8f5e8;
    color: #2e7d32;
}

.submenu-list-item .item-actions {
    display: flex;
    gap: 5px;
}

.submenu-list-item .item-actions button {
    padding: 4px 8px;
    font-size: 11px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submenu-list-item .item-actions .edit-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.submenu-list-item .item-actions .edit-btn:hover {
    background: #1976d2;
    color: white;
}

.submenu-list-item .item-actions .delete-btn {
    background: #ffebee;
    color: #d32f2f;
}

.submenu-list-item .item-actions .delete-btn:hover {
    background: #d32f2f;
    color: white;
}

.no-items {
    text-align: center;
    padding: 20px;
    color: var(--color-gray);
    font-style: italic;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed var(--color-border);
}

/* Estilos para modales de mantenedores */
.modal-content-large {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Estilos para reportes */
.report-options {
    padding: 20px 0;
}

.report-type-selection h3,
.report-filters h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.report-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.report-type-btn:hover {
    border-color: var(--color-primary);
    background: rgba(229, 62, 48, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.report-type-btn.selected {
    border-color: var(--color-primary);
    background: rgba(229, 62, 48, 0.1);
    color: var(--color-primary);
}

.report-type-btn i {
    font-size: 2rem;
    color: var(--color-primary);
}

.report-type-btn span {
    font-weight: 600;
    font-size: 14px;
}

.report-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Responsive para mantenedores */
@media (max-width: 1200px) {
    .reporteria-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reporteria-menu {
        grid-template-columns: 1fr;
    }
    
    .submenu-actions {
        flex-direction: column;
    }
    
    .submenu-actions .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    .report-types {
        grid-template-columns: 1fr;
    }
    
    .report-type-btn {
        padding: 15px;
    }
    
    .modal-content-large {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .submenu-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .submenu-list-item .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .report-type-btn i {
        font-size: 1.5rem;
    }
    
    .report-type-btn span {
        font-size: 12px;
    }
}

/* ===== ESTILOS ADICIONALES PARA EL DASHBOARD ===== */

.no-activity {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-gray);
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed var(--color-border);
}

.no-activity::before {
    content: '📭';
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* Mejoras en los gráficos del dashboard */
.chart-content {
    position: relative;
}

.chart-content.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-gray);
}

/* Indicadores de estado en tiempo real */
.dashboard-status {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--color-success);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-status.offline {
    background: var(--color-danger);
}

.dashboard-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

/* Mejoras en las tarjetas KPI */
.kpi-card .kpi-value {
    position: relative;
}

.kpi-card .kpi-value::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    opacity: 0.3;
}

.kpi-card.kpi-success .kpi-value::after {
    background: var(--color-success);
}

.kpi-card.kpi-warning .kpi-value::after {
    background: #f39c12;
}

.kpi-card.kpi-info .kpi-value::after {
    background: #3498db;
}

/* Animaciones para las tarjetas KPI */
.kpi-card {
    animation: slideInUp 0.6s ease-out;
}

.kpi-card:nth-child(1) { animation-delay: 0.1s; }
.kpi-card:nth-child(2) { animation-delay: 0.2s; }
.kpi-card:nth-child(3) { animation-delay: 0.3s; }
.kpi-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón de detalle */
.btn-detail {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background: var(--color-primary-dark);
}

.btn-detail i {
    font-size: 10px;
}

/* Modal de detalle de servicio */
.service-detail-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px 0;
}

/* Estilos específicos para el modal de detalle de proyectos */
.detail-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.detail-section h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-item span {
    color: #212529;
    font-size: 0.95em;
    padding: 5px 0;
}

/* Estilos específicos para diferentes tipos de datos */
.highlight {
    font-weight: 600;
    color: #007bff !important;
}

.partnership.has-partnership {
    color: #28a745 !important;
    font-weight: 600;
}

.partnership.no-partnership {
    color: #6c757d !important;
    font-style: italic;
}

.project-name {
    font-weight: 600;
    color: #212529 !important;
    font-size: 1.05em;
}

.project-type.external {
    color: #dc3545 !important;
    font-weight: 600;
}

.project-type.internal {
    color: #17a2b8 !important;
    font-weight: 600;
}

.project-status.in-progress {
    color: #ffc107 !important;
    font-weight: 600;
}

.project-status.completed {
    color: #28a745 !important;
    font-weight: 600;
}

.project-status.pending {
    color: #6c757d !important;
    font-weight: 600;
}

.team-member {
    color: #007bff !important;
    font-weight: 500;
}

.contact {
    color: #495057 !important;
}

.email {
    color: #007bff !important;
    font-family: monospace;
    font-size: 0.9em;
}

.date {
    color: #6c757d !important;
    font-weight: 500;
}

.detail-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    color: var(--color-text);
    font-size: 14px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
    min-height: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* Responsive para modal de detalle */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-content {
        max-height: 60vh;
    }
}