:root {
    --primary-color: #2c5f2d;
    --primary-dark: #1e4620;
    --secondary-color: #97c02f;
    --accent-color: #ff6f3c;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e1e8ed;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --info: #2196F3;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
    line-height: 1.2;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Badge de Notificaciones */
.notification-badge {
    background: #f44336;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(244, 67, 54, 0);
    }
}

/* Notificación Flotante */
.notificacion-flotante {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
    animation: slideInRight 0.5s ease;
    max-width: 450px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notificacion-content {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.4);
    position: relative;
    display: flex;
    gap: 1rem;
}

.notificacion-icon {
    font-size: 2.5rem;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.notificacion-body h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.notificacion-body p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.notificacion-actions {
    display: flex;
    gap: 0.5rem;
}

.notificacion-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.notificacion-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Panel de Alertas de Nuevas Solicitudes */
.panel-alertas {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #ff9800;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.panel-alertas-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panel-alertas-icon {
    font-size: 2.5rem;
    color: #ff9800;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.panel-alertas-title h3 {
    margin: 0;
    color: #e65100;
    font-size: 1.5rem;
}

.panel-alertas-title p {
    margin: 0.25rem 0 0 0;
    color: #f57c00;
    font-size: 0.9rem;
}

.lista-alertas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alerta-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alerta-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alerta-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.alerta-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.alerta-actions {
    display: flex;
    gap: 0.5rem;
}

/* Widget de Alertas en Dashboard */
.widget-alertas-dashboard {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 5px solid #ff9800;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.widget-alertas-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.widget-icon {
    font-size: 2rem;
    color: #ff9800;
    animation: pulse 2s infinite;
}

.widget-info {
    flex: 1;
}

.widget-info h3 {
    margin: 0;
    color: #e65100;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-info p {
    margin: 0.5rem 0 0 0;
    color: #f57c00;
    font-size: 0.95rem;
}

.widget-alertas-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.widget-solicitud-item {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.widget-solicitud-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.widget-solicitud-item h5 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.widget-solicitud-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Main Content */
.main {
    flex: 1;
    padding: 2rem 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Filters */
.filters {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Artículos Grid */
.articulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.articulo-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.articulo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.articulo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.articulo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.articulo-content {
    padding: 1.5rem;
}

.articulo-header {
    margin-bottom: 1rem;
}

.articulo-categoria {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.articulo-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.articulo-marca {
    color: var(--text-light);
    font-size: 0.9rem;
}

.articulo-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.articulo-estado {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

.estado-disponible {
    background-color: #e8f5e9;
    color: var(--success);
}

.estado-prestado {
    background-color: #fff3e0;
    color: var(--warning);
}

.estado-mantenimiento {
    background-color: #fce4ec;
    color: var(--danger);
}

.estado-agotado {
    background-color: #f5f5f5;
    color: var(--text-light);
}

/* Form */
.form-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Loading & No Results */
.loading,
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading i,
.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.loading p,
.no-results p {
    font-size: 1.1rem;
}

/* Reservas List */
.reservas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reserva-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--info);
}

.reserva-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.reserva-card.pendiente {
    border-left-color: var(--warning);
}

.reserva-card.aprobada {
    border-left-color: var(--success);
}

.reserva-card.rechazada,
.reserva-card.cancelada {
    border-left-color: var(--danger);
    opacity: 0.7;
}

.reserva-card.completada {
    border-left-color: var(--info);
    opacity: 0.85;
}

.reserva-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.reserva-info {
    flex: 1;
    min-width: 250px;
}

.reserva-articulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.reserva-solicitante {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reserva-contacto {
    color: var(--text-light);
    font-size: 0.9rem;
}

.reserva-estado-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

.estado-reserva-pendiente {
    background-color: #fff3e0;
    color: var(--warning);
}

.estado-reserva-aprobada {
    background-color: #e8f5e9;
    color: var(--success);
}

.estado-reserva-rechazada {
    background-color: #ffebee;
    color: var(--danger);
}

.estado-reserva-completada {
    background-color: #e3f2fd;
    color: var(--info);
}

.estado-reserva-cancelada {
    background-color: #f5f5f5;
    color: var(--text-light);
}

.reserva-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.reserva-detail-item {
    display: flex;
    flex-direction: column;
}

.reserva-detail-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.reserva-detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.reserva-motivo {
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Formulario de Reserva */
.reserva-articulo-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.reserva-articulo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.reserva-articulo-info p {
    opacity: 0.9;
}

/* Success Button */
.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Gestión de Usuarios */
.action-bar {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.usuarios-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.usuarios-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.usuarios-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.usuarios-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.usuarios-table th i {
    margin-right: 0.5rem;
}

.usuarios-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.usuarios-table tbody tr:hover {
    background-color: var(--bg-color);
}

.usuarios-table tbody tr:last-child {
    border-bottom: none;
}

.usuarios-table td {
    padding: 1rem;
    color: var(--text-dark);
}

.usuario-rol-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rol-admin {
    background-color: #fff3e0;
    color: var(--warning);
}

.rol-usuario {
    background-color: #e3f2fd;
    color: var(--info);
}

.usuario-estado-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.estado-activo {
    background-color: #e8f5e9;
    color: var(--success);
}

.estado-inactivo {
    background-color: #ffebee;
    color: var(--danger);
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.btn-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.btn-icon.delete {
    color: var(--danger);
}

.btn-icon.delete:hover {
    color: #d32f2f;
}

/* Configuración - Tabs y Paneles */
.config-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.config-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-tab:hover {
    color: var(--primary-color);
}

.config-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.config-panel {
    display: none;
}

.config-panel.active {
    display: block;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.config-items {
    display: contents;
}

.config-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
}

.config-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.config-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.config-item-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.config-item-actions {
    display: flex;
    gap: 0.5rem;
}

.config-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.config-item-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

.config-item.inactive {
    opacity: 0.5;
    border-color: var(--danger);
}

.estado-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

/* Reportes */
.reportes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.reporte-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
}

.reporte-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reporte-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.reporte-icon i {
    font-size: 1.8rem;
    color: white;
}

.reporte-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.reporte-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.reporte-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Registro de Gestiones */
.registro-gestiones-section {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.registro-gestiones-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gestiones-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.gestiones-table {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.gestiones-table table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo-text {
        align-items: center;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .articulos-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
        min-width: 150px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tabla de usuarios responsive */
    .usuarios-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .usuarios-table {
        min-width: 600px;
    }
    
    /* Tabs de configuración responsive */
    .config-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .config-tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reservas responsive */
    .reserva-card {
        padding: 1rem;
    }
    
    .reserva-header {
        flex-direction: column;
        align-items: start;
    }
    
    .reserva-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reserva-estado-badge {
        align-self: flex-start;
        margin-top: 0.5rem;
    }
    
    /* Notificaciones responsive */
    .notificacion-flotante {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notificacion-content {
        flex-direction: column;
    }
    
    .notificacion-icon {
        font-size: 2rem;
        text-align: center;
    }
    
    .notificacion-actions {
        flex-direction: column;
    }
    
    .panel-alertas-header {
        flex-direction: column;
        text-align: center;
    }
    
    .alerta-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .alerta-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .alerta-actions button {
        flex: 1;
    }
    
    .reportes-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ESTILOS PARA RECUPERACIÓN DE CONTRASEÑA
   ======================================== */

/* Body específico para login */
body.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

/* Contenedor principal de login */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    animation: slideUp 0.5s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Formulario de login */
.login-form {
    margin-bottom: 1.5rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 2;
    background: white;
    color: var(--text-dark);
}

.input-with-icon input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.4);
}

/* Enlace de recuperación de contraseña */
.forgot-password-link {
    text-align: center;
    margin: 1rem 0;
}

.forgot-password-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Credenciales de prueba */
.credentials-info {
    background: #f8f9fa;
    border-left: 4px solid var(--info);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.credentials-info h4 {
    color: var(--info);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credentials-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.credentials-info ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.credentials-info ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--info);
}

.credentials-info strong {
    color: var(--primary-color);
}

/* Mensaje de error */
.error-message {
    background: #ffebee;
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    border-left: 4px solid var(--danger);
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Pasos de recuperación */
.recovery-step {
    display: none;
}

.recovery-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mensajes informativos */
.info-message {
    background: #e3f2fd;
    border-left: 4px solid var(--info);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.info-message.warning {
    background: #fff3e0;
    border-left-color: var(--warning);
}

.info-message i {
    color: var(--info);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-message.warning i {
    color: var(--warning);
}

.info-message p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.info-message strong {
    font-weight: 700;
}

.success-message {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-message i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--success);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.success-message p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Display del token */
.token-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.token-code {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    color: white;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    user-select: all;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: white;
    color: var(--text-dark);
}

.form-group input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Input de contraseña con botón toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.btn-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.btn-toggle-password:hover {
    color: var(--primary-color);
}

/* Indicador de seguridad de contraseña */
.password-strength {
    margin-bottom: 1.5rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    background: var(--danger);
    transition: all 0.3s ease;
    border-radius: 10px;
}

.strength-text {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #388e3c 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-full {
    width: 100%;
}

/* Footer del login */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.link-back {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-back:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.separator {
    margin: 0 1rem;
    color: var(--border-color);
}

/* Toast de mensajes */
.message-toast {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    min-width: 300px;
    transition: right 0.3s ease;
}

.message-toast.show {
    right: 20px;
}

.message-toast.success {
    border-left: 4px solid var(--success);
}

.message-toast.success i {
    color: var(--success);
    font-size: 1.5rem;
}

.message-toast.error {
    border-left: 4px solid var(--danger);
}

.message-toast.error i {
    color: var(--danger);
    font-size: 1.5rem;
}

.message-toast span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Responsive para páginas de recuperación */
@media (max-width: 768px) {
    .login-box {
        padding: 2rem 1.5rem;
    }

    .token-code {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .message-toast {
        min-width: calc(100vw - 40px);
        right: -100%;
    }

    .message-toast.show {
        right: 20px;
    }

    .login-header i {
        font-size: 3rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }
}
