body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.navbar {
    background-color: #3498db !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

#camera {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

#video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

#camera canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#custom-alert {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    border-bottom: 2px solid #3498db;
}

.nav-tabs .nav-link {
    border: none;
    color: #333;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #eaf2f8;
}

.nav-tabs .nav-link.active {
    color: #3498db;
    background-color: transparent;
    border-bottom: 2px solid #3498db;
}

.nav-pills .nav-link {
    color: #3498db;
    background-color: #f8f9fa;
    border: 1px solid #3498db;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #eaf2f8;
}

.nav-pills .nav-link.active {
    color: #fff;
    background-color: #3498db;
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
}

#entrada-btn, #salida-btn {
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#entrada-btn:hover, #salida-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#entrada-btn {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

#entrada-btn:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

#salida-btn {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

#salida-btn:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

#registro-status {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10;
    width: 80%;
    text-align: center;
}

/* Añadir al final del archivo */

#camera {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

#video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

#registro-status {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10;
    width: 80%;
    text-align: center;
}

#camera canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

#customAlert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
}

#photoPreview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

#cameraModal .modal-body {
    position: relative;
    padding-bottom: 75%; /* Aspecto 4:3 */
}

#cameraFeed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Asegúrate de que estos estilos estén presentes y sean los únicos para los mensajes personalizados */
.custom-message {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    z-index: 9999;
    display: none;
}

.custom-message.success {
    background-color: #28a745;
}

.custom-message.error {
    background-color: #dc3545;
}

.custom-message.info {
    background-color: #17a2b8;
}

/* Eliminar cualquier otro estilo relacionado con alertas o mensajes personalizados */

/* Estilos para la sección de departamentos */
.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    cursor: pointer;
}

.card-header {
    border-bottom: none;
}

.table th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
    border-bottom: 2px solid #3498db;
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-radius: 15px 15px 0 0;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-edit {
    color: #fff;
    background-color: #f39c12;
    border-color: #f39c12;
}

.btn-edit:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    color: #fff;
}

.btn-delete {
    color: #fff;
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-delete:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* Animaciones para los elementos de la tabla */
.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover td {
    transform: translateX(5px);
}

/* Estilos para los inputs de tiempo */
input[type="time"] {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

input[type="time"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Estilos para el dropdown del navbar */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para los mensajes de estado */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background-color: #2ecc71;
    color: white;
}

.status-inactive {
    background-color: #95a5a6;
    color: white;
}

/* Estilos para notificaciones modernas */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 20px;
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.success i {
    color: #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.error i {
    color: #e74c3c;
}

.notification.info {
    border-left: 4px solid #3498db;
}

.notification.info i {
    color: #3498db;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.9rem;
    color: #666;
}

/* Botón de retorno */
.btn-return {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: #3498db;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-return:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    background-color: #2980b9;
    color: white;
}

/* Estilos para el buscador */
.search-container {
    transition: all 0.3s ease;
}

.search-container input {
    border-radius: 50px;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-container input:focus {
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
}

.search-container i {
    font-size: 1.2rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.search-container input:focus + i {
    color: #0d6efd;
}

/* Estilos para la paginación */
.pagination-container {
    display: flex;
    align-items: center;
}

.pagination-container .btn-group .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-container .btn-group .btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.pagination-container .btn-group .btn:hover:not(.active) {
    background-color: #e9ecef;
}

.entries-info {
    font-size: 0.9rem;
}

/* Animación para la tabla */
.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    transform: translateX(5px);
    background-color: #f8f9fa;
}

/* Estilos para los botones de acción */
.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    margin: 0 0.2rem;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: scale(1.1);
}

/* Estilos para la importación masiva */
.import-steps {
    padding: 1rem 0;
}

.step {
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.step-number {
    width: 24px;
    height: 24px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.import-progress {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #3498db;
}

.import-status {
    font-size: 0.9rem;
    color: #666;
}

.import-results {
    margin-top: 1.5rem;
}

.warning-list {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.warning-list li {
    margin-bottom: 0.25rem;
}

/* Animaciones para los pasos */
.step {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-2px);
}

.step.active {
    transform: translateY(0);
    border-left: 4px solid #3498db;
}

/* Estilos para los inputs de archivo */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
}

.input-group-text i {
    font-size: 1.1rem;
}

.input-group .form-control:focus + .input-group-text {
    border-color: #3498db;
    color: #3498db;
}

/* Animación para el progreso */
@keyframes progress-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 0;
    }
}

/* Estilos para reportes */
.card-reporte {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card-reporte:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-reporte .card-body {
    padding: 1.5rem;
}

#reportes-container .form-control,
#reportes-container .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

#reportes-container .form-control:focus,
#reportes-container .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#reportes-container label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

#reportes-container .btn-primary {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grafico-container {
    position: relative;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grafico-container canvas {
    max-width: 100%;
}

.grafico-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

#tablaReporte {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#tablaReporte thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

#tablaReporte tbody tr {
    transition: all 0.3s ease;
}

#tablaReporte tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.01);
}

.reporte-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Estilos para los botones de exportar e imprimir */
#exportarReporte,
#imprimirReporte {
    transition: all 0.3s ease;
    font-weight: 500;
}

#exportarReporte:hover,
#imprimirReporte:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Animaciones para los gráficos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grafico-container {
    animation: fadeInUp 0.5s ease-out;
}

/* Estilos para la paginación de reportes */
#pageNumbersReporte .btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin: 0 2px;
    border-radius: 20px;
}

#pageNumbersReporte .btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Responsive design para reportes */
@media (max-width: 768px) {
    .reporte-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grafico-container {
        margin-bottom: 1rem;
    }
    
    #reportes-container .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .reporte-stats {
        grid-template-columns: 1fr;
    }
}

/* Estilos para filas con tardanza */
#tablaReporte tbody tr.tardanza {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    transition: all 0.3s ease;
}

#tablaReporte tbody tr.tardanza:hover {
    background-color: rgba(231, 76, 60, 0.15);
    transform: translateX(5px);
}

#tablaReporte tbody tr.tardanza td {
    position: relative;
    color: #c0392b;
}

#tablaReporte tbody tr.tardanza td:first-child {
    padding-left: 1rem;
}

/* Badge de estado */
#tablaReporte .estado-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#tablaReporte .estado-badge.tardanza {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

#tablaReporte .estado-badge.a-tiempo {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

#tablaReporte .estado-badge.sin-horario {
    background-color: rgba(149, 165, 166, 0.15);
    color: #7f8c8d;
}

/* Estilos para el loading message animado */
.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(245, 247, 250, 0.95);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 320px;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.scanning-interface {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    position: relative;
}

.scan-area {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 10px;
}

.scan-outline {
    width: 100%;
    height: 100%;
    position: relative;
    border: 2px solid rgba(13, 110, 253, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

.corner-tl, .corner-tr, .corner-bl, .corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #0d6efd;
}

.corner-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(13, 110, 253, 0) 0%,
        rgba(13, 110, 253, 0.8) 50%,
        rgba(13, 110, 253, 0) 100%);
    animation: scan 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.5);
}

.scan-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0d6efd;
    border-radius: 50%;
    opacity: 0;
}

.p1 { top: 30%; left: 20%; animation: pointPulse 2s infinite 0.2s; }
.p2 { top: 40%; right: 25%; animation: pointPulse 2s infinite 0.4s; }
.p3 { top: 60%; left: 35%; animation: pointPulse 2s infinite 0.6s; }
.p4 { top: 70%; right: 30%; animation: pointPulse 2s infinite 0.8s; }
.p5 { top: 45%; left: 50%; animation: pointPulse 2s infinite 1s; }
.p6 { top: 55%; right: 40%; animation: pointPulse 2s infinite 1.2s; }

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

.status-text {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(13, 110, 253, 0.2),
        rgba(13, 110, 253, 0.8),
        rgba(13, 110, 253, 0.2));
    animation: progress 2s linear infinite;
    transform: translateX(-100%);
}

@keyframes scan {
    0% {
        top: 0;
    }
    50% {
        top: calc(100% - 2px);
    }
    100% {
        top: 0;
    }
}

@keyframes pointPulse {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Estilos para la pestaña de reconocimiento facial */
.recognition-header {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.recognition-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.recognition-icon i {
    font-size: 2.5rem;
    color: white;
}

.recognition-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recognition-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.camera-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.camera-overlay .corner-tl,
.camera-overlay .corner-tr,
.camera-overlay .corner-bl,
.camera-overlay .corner-br {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #3498db;
}

.camera-overlay .corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.camera-overlay .corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.camera-overlay .corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.camera-overlay .corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.recognition-btn {
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recognition-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Estilos para la pestaña de registro de usuario */
.registration-header {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.registration-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.registration-icon i {
    font-size: 2.5rem;
    color: white;
}

.registration-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.registration-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.modern-form .form-floating {
    margin-bottom: 1.5rem;
}

.modern-form .form-control,
.modern-form .form-select {
    border-radius: 10px;
    padding: 1rem 1rem 1rem 3rem;
    height: calc(3.5rem + 2px);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.modern-form .form-control:focus,
.modern-form .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.modern-form .form-floating label {
    padding-left: 3rem;
    color: #7f8c8d;
}

.modern-form .form-floating label i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    transition: all 0.3s ease;
}

.modern-form .form-control:focus ~ label i,
.modern-form .form-select:focus ~ label i {
    color: #3498db;
}

.photo-upload-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.photo-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.photo-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.photo-btn,
.photo-upload-btn label {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-btn:hover,
.photo-upload-btn label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-container {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.preview-container img {
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cancel-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
}

.submit-btn {
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, #27ae60, #219a52);
}

/* Estilos para la configuración de empresa */
#empresa-config .form-floating {
    position: relative;
}

#empresa-config .form-floating > label {
    padding-left: 2.5rem;
}

#empresa-config .form-floating > label i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    transition: all 0.3s ease;
}

#empresa-config .form-floating > input:focus ~ label i,
#empresa-config .form-floating > textarea:focus ~ label i {
    color: #0d6efd;
}

#empresa-config .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#empresa-config .alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
}

#empresa-config .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#empresa-config .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#empresa-config .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

#volverHomeEmpresa {
    transition: all 0.3s ease;
}

#volverHomeEmpresa:hover {
    transform: translateY(-2px);
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animación para el formulario */
#empresaForm {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Estilos responsivos para reconocimiento facial */
@media (max-width: 768px) {
    .recognition-title {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .recognition-subtitle {
        font-size: 1rem;
    }

    .recognition-icon {
        width: 60px;
        height: 60px;
    }

    .recognition-icon i {
        font-size: 1.8rem;
    }

    .recognition-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }

    #entrada-btn, #salida-btn {
        width: 100%;
        margin: 0;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .camera-container {
        margin-bottom: 1rem;
    }

    .camera-overlay .corner-tl,
    .camera-overlay .corner-tr,
    .camera-overlay .corner-bl,
    .camera-overlay .corner-br {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .recognition-title {
        font-size: 1.5rem;
    }

    .recognition-subtitle {
        font-size: 0.9rem;
    }

    .recognition-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .recognition-icon i {
        font-size: 1.5rem;
    }

    .recognition-header {
        padding: 0.8rem 0;
    }

    #registro-status {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .camera-overlay .corner-tl,
    .camera-overlay .corner-tr,
    .camera-overlay .corner-bl,
    .camera-overlay .corner-br {
        width: 15px;
        height: 15px;
        border-width: 2px;
    }
}

#qr-acceso-container .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

#qrcode {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

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

.url-display {
    width: 100%;
    max-width: 500px;
    word-break: break-all;
    font-family: monospace;
    font-size: 1.1rem;
    color: #2c3e50;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    #qrcode {
        width: 200px;
        height: 200px;
    }
    
    .url-display {
        font-size: 0.9rem;
    }
}

/* Estilos para FAQ */
.faq-category-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
}

.faq-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.faq-category-card.active {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-count {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.section-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    padding: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    background-color: white;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
    box-shadow: none;
}

.accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
    color: #34495e;
    line-height: 1.6;
}

.accordion-body ul,
.accordion-body ol {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

/* Animaciones para FAQ */
.faq-section {
    animation: fadeIn 0.5s ease-out;
}

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

/* Estilos responsivos para FAQ */
@media (max-width: 768px) {
    .faq-category-card {
        padding: 1rem;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Estilos para el buscador de FAQ */
#searchFaq {
    transition: all 0.3s ease;
}

#searchFaq:focus {
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    border-color: #3498db;
}

/* Estilos para las categorías de FAQ */
.faq-categories {
    margin: 2rem 0;
}

[data-category="general"] .category-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

[data-category="reconocimiento"] .category-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

[data-category="registro"] .category-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

[data-category="reportes"] .category-icon {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

/* Estilos para el footer */
.footer {
    background: linear-gradient(to right, #f8f9fa, #ffffff, #f8f9fa);
    padding: 1rem 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    position: relative;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer .copyright {
    color: #6c757d;
    line-height: 1.5;
}

.footer .copyright a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer .copyright a:hover {
    color: #0d6efd !important;
}

.youtube-btn-container {
    display: flex;
    justify-content: center;
}

.btn-youtube {
    background-color: #ff0000;
    color: white;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.btn-youtube:hover {
    background-color: #cc0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .footer {
        padding: 0.8rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer .copyright {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .btn-youtube {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        gap: 0.8rem;
    }

    .footer .copyright {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
    
    .btn-youtube {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

.plan-widget {
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.plan-widget .alert {
    margin-bottom: 0;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plan-widget .alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.plan-widget .alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.plan-widget .alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.plan-widget .btn-outline-primary {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.plan-widget .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.plan-widget .btn-close {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .plan-widget .alert {
        flex-direction: column;
        text-align: center;
    }
    
    .plan-widget .btn-outline-primary {
        margin-top: 1rem;
        width: 100%;
    }
}

/* Estilos para alertas personalizadas de vencimiento */
.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    max-width: 600px;
    padding: 1.5rem;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-alert.show {
    opacity: 1;
}

.custom-alert.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.custom-alert.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.custom-alert .alert-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.custom-alert p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.custom-alert .btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.custom-alert .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-alert .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.custom-alert .btn-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .custom-alert {
        width: 90%;
        margin: 0 auto;
    }
}
