
:root {
    --primary-color: #0d3b66; 
    --secondary-color: #2a6f97;
    --accent-color: #468faf;
    --background-color: #f4f7fa;
    --text-color: #333;
    --input-border-color: #d1d5db;
    --white-color: #fff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-box {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 380px;
}

.logo-unam {
    width: 150px;
    margin-bottom: 0.5rem;
}

.login-box h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}


.recovery-container {
    position: relative;
    width: 420px;
}

.recovery-box {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo-unam-small {
    width: 100px;
    margin-bottom: 1rem;
}

.recovery-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}


.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label, .input-group small {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input-border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(70, 143, 175, 0.2);
}


.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}


.forgot-password, .back-to-login {
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.forgot-password:hover, .back-to-login:hover {
    text-decoration: underline;
}


.loading-spinner {
    display: none; 
    margin: 1rem auto 0;
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
}
.loading-spinner.show {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: var(--white-color);
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: translateX(calc(100% + 20px));
    transition: transform 0.5s ease-in-out;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}
.notification.success {
    background-color: var(--success-color);
}
.notification.error {
    background-color: var(--error-color);
}


.dashboard-body {
    background-color: #eef2f6;
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    
    padding-top: 60px; 
}


.main-header {
    width: 100%;
    height: 60px; 
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; 
}

.header-logo {
    height: 35px;
    margin-right: 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title i {
    font-size: 1.2rem;
    cursor: pointer;
}

.header-title h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
}

.version-tag {
    background-color: #2a6f97;
    color: #eef2f6;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-user span {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.header-user a {
    color: var(--white-color);
    font-size: 1.2rem;
    text-decoration: none;
}


.sidebar {
    width: 260px;
    background-color: #ffffff; 
    border-right: 1px solid var(--input-border-color);
    height: calc(100vh - 60px); 
    position: fixed;
    top: 60px;
    left: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding-top: 1rem;
}

.sidebar.sidebar-collapsed {
    transform: translateX(-100%);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #374151; 
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.sidebar-nav li a:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.sidebar-nav li a i {
    width: 20px;
    text-align: center;
    color: #6b7280;
}


.main-content {
    margin-left: 260px; 
    padding: 2rem;
    transition: margin-left 0.3s ease-in-out;
}

.main-content.full-width {
    margin-left: 0; 
}


.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}




.module-header {
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.module-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.module-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.asistencia-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.asistencia-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

.asistencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.asistencia-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 50%;
    background-color: #f3f4f6;
}

.asistencia-card .icon-desayuno {
    color: #a16207; 
    border-top-color: #a16207;
}
.asistencia-card .icon-almuerzo {
    color: #c2410c; 
    border-top-color: #c2410c;
}
.asistencia-card .icon-cena {
    color: #1e3a8a;
    border-top-color: #1e3a8a;
}

.asistencia-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.asistencia-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.asistencia-card .btn-primary {
    width: auto;
    padding: 0.8rem 2rem;
}


.scanner-body {
    background-color: var(--primary-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
}

.scanner-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
}

.scanner-container h1 {
    color: var(--primary-color);
    margin-top: 0;
}

#reader {
    width: 100%;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.student-info-container .student-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.student-card #student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
}

.student-card #student-name {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.student-card .student-detail {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.student-card .status-badge {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.activo {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.inactivo {
    background-color: #fee2e2;
    color: #991b1b;
}



.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
    z-index: 1001;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}

.toast.success {
    background-color: #28a745; 
}

.toast.error {
    background-color: #dc3545; 
}



.current-date {
    font-weight: 500;
    color: var(--secondary-color);
    background-color: #eef2f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}


.asistencia-container.horizontal {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.asistencia-container.horizontal .asistencia-card {
    flex: 1;
    min-width: 300px;
    position: relative; 
    overflow: hidden; 
}

.asistencia-card .horario {
    font-weight: 500;
    color: var(--primary-color);
    background-color: #eef2f6;
    padding: 0.5rem;
    border-radius: 6px;
}

.asistencia-card .disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 59, 102, 0.7); 
    color: white;
    display: none; 
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.asistencia-card .card-content {
    position: relative;
    z-index: 1;
}

.attendance-module-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: left; 
}


#form-permisos { width: 100%; max-width: 900px; }
.user-permission-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.user-info h4 { margin: 0 0 0.25rem 0; color: var(--primary-color); }
.user-info span { color: #6b7280; font-size: 0.9rem; }
.permission-checkboxes { display: flex; gap: 1.5rem; }
.permission-checkboxes label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-actions { text-align: right; margin-top: 1.5rem; }
.btn-update-permissions {
    background-color: var(--success-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}


.logs-container {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}
.log-entry {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.log-main { flex: 1; min-width: 300px; }
.log-user { font-weight: 600; color: var(--primary-color); margin-right: 0.5rem; }
.log-meta { display: flex; gap: 1rem; color: #6b7280; font-size: 0.85rem; }
.log-meta span { display: flex; align-items: center; gap: 0.4rem; }


.module-header_tramite{
     display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
    gap: 1.5rem; 
}
.tramite-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: inline-block;
}
.tramite-list .tramite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
.tramite-list .tramite-item:last-child { border-bottom: none; }
.tramite-name { font-weight: 500; color: var(--primary-color); }
.tramite-date { color: #6b7280; font-size: 0.9rem; }
.tramite-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-solicita { background-color: #e0f2fe; color: #0c4a6e; }
.status-vobo_dbu { background-color: #d1fae5; color: #065f46; }
.status-aprobado { background-color: #c7d2fe; color: #3730a3; }
.status-desaprobado { background-color: #fee2e2; color: #991b1b; }

.tramite-actions .btn-action {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--input-border-color);
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    margin-left: 0.5rem;
}
.btn-action.edit { color: #2563eb; border-color: #2563eb; }
.btn-action.send { color: #16a34a; border-color: #16a34a; }
.btn-action.delete { color: #dc2626; border-color: #dc2626; }


#form-tramite-container { padding: 1rem; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input-border-color);
    border-radius: 6px;
}
.form-actions {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 1rem;
}
.btn-secondary { background: #eee; border: 1px solid #ddd; padding: 0.8rem 1.5rem; border-radius: 6px; cursor: pointer; }




.tramite-lists-container {
    display: flex; 
    gap: 2rem;     
    width: 100%;
    align-items: flex-start; 
}

.tramite-lists-container .tramite-section {
    flex: 1; 
    margin-bottom: 0; 
}


.search-results {
    display: none;
    position: absolute;
    background-color: white;
    width: 100%;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.result-item {
    padding: 0.75rem;
    cursor: pointer;
}

.result-item:hover {
    background-color: #f3f4f6;
}


#faltas-container { margin-top: 1.5rem; }
.falta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.falta-info { font-weight: 500; }
.falta-info .servicio { text-transform: capitalize; }
.falta-info .fecha { color: #6b7280; margin-left: 1rem; }
.btn-justificar {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}


.justificacion-container { max-width: 900px; margin: 0 auto; }
.falta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.falta-info { font-weight: 500; }
.falta-info .servicio { text-transform: capitalize; }
.falta-info .fecha { color: #6b7280; margin-left: 1rem; }
.btn-justificar {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-justificar:hover { background-color: #2563eb; }
.btn-justificar:disabled { background-color: #9ca3af; cursor: not-allowed; }

.d-none { display: none !important; }




:root {
    --primary-purple: #310adf;
    --light-purple: #4e0ee6;
    --input-bg: #F3F4F6;
}


body.dashboard-body {
     background-color: #eef2f6;
}
body:not(.dashboard-body) {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
}

.login-container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    width: 100%;
}

.login-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    width: 100px;
    margin-bottom: 1.5rem;
    display: block;
    margin: auto;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.login-title strong {
    font-weight: 700;
    color: var(--primary-purple);
}
    
.options-group {
    text-align: right;
    margin-top: -1rem;
    margin-bottom: 2rem;
}
    
.forgot-password-link {
    color: var(--primary-purple);
    font-size: 0.9rem;
    text-decoration: none;
}
.forgot-password-link:hover {
    text-decoration: underline;
}
    
.btn-login {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background-image: linear-gradient(to right, var(--light-purple), var(--primary-purple));
    transition: all 0.3s ease;
}
    
.btn-login:hover {
    box-shadow: 0 4px 15px rgba(50, 38, 219, 0.4);
    transform: translateY(-2px);
}

.login-image-section {
    background-image: url('https://scontent.flim6-3.fna.fbcdn.net/v/t1.15752-9/489732335_1266990758489088_2348394629678013077_n.png?stp=dst-png_s2048x2048&_nc_cat=103&ccb=1-7&_nc_sid=0024fc&_nc_eui2=AeHn1mouokTkOPeNv3rr18PRRVJZxG6ybS9FUlnEbrJtL84-m-k_MU8mfmVo29Rcvf93UnQvt4CrKugN0hJn2xHB&_nc_ohc=pP5amySS74cQ7kNvwGmdfG1&_nc_oc=AdkcJeQTbqpO6JwmUnGlkk1lzSECZLcH2ZB-QtLI6srWwRL7tdd6gpFKqsg5pN82fOA&_nc_ad=z-m&_nc_cid=3141&_nc_zt=23&_nc_ht=scontent.flim6-3.fna&oh=03_Q7cD3wHw7CdGy09jYHE3qoQbD2Z8advHp7mJTXrDK6YDomFgBA&oe=693F523D');
    background-size: cover;
    background-position: center;
}


@media (max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr; 
    }
    .login-image-section {
        display: none; 
    }
    .login-form-section {
        padding: 1.5rem;
    }
}


:root {
    --primary-blue: #0d3b66;
    --light-blue: #3b82f6;
    --bg-gray: #f4f7fa;
    --border-gray: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
}
body.dashboard-body {
    margin: 0;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    overflow: hidden; 
}
.dashboard-wrapper { display: flex; flex-direction: column; height: 100vh; }
.main-body { display: flex; flex-grow: 1; height: calc(100vh - 65px); }
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--primary-blue); color: white;
    padding: 0.75rem 2rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.header-left .logo-link img, .header-logo { height: 30px; }
.header-left #menu-toggle-btn { font-size: 1.2rem; cursor: pointer; }
.header-left .header-title { font-size: 1.2rem; font-weight: 600; }
.header-left .version-tag { background-color: rgba(255,255,255,0.2); font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; }
.header-right { display: flex; align-items: center; gap: 1rem; }
.header-right .user-role { font-size: 0.8rem; color: #cbd5e1; }
.header-right .user-name { font-weight: 600; }
.header-right .logout-link { color: white; text-decoration: none; font-size: 1.2rem; }
.sidebar {
    width: 240px; background-color: #ffffff;
    border-right: 1px solid var(--border-gray); padding: 1.5rem 0;
    flex-shrink: 0; transition: margin-left 0.3s ease-in-out;
}
.sidebar.collapsed { margin-left: -240px; }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.5rem;
    text-decoration: none; color: var(--text-light); font-weight: 500;
    border-left: 4px solid transparent;
}
.sidebar-nav a:hover { background-color: var(--bg-gray); }
.sidebar-nav a.active { color: var(--light-blue); font-weight: 600; border-left-color: var(--light-blue); }
.sidebar-nav a i { width: 20px; text-align: center; font-size: 1.2rem; }
.content-wrapper, .content-area { flex-grow: 1; padding: 2rem; overflow-y: auto; }
.content-grid { display: grid; grid-template-columns: 2fr 1.2fr; gap: 2rem; align-items: start; }
.grid-col-1, .grid-col-2 { display: flex; flex-direction: column; gap: 2rem; }
.card { background-color: #ffffff; border-radius: 12px; padding: 1.5rem; box-shadow: var(--card-shadow); }
.card-header {
    font-size: 1.2rem; font-weight: 600; color: #1f2937; padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb; margin: -1.5rem -1.5rem 1.5rem -1.5rem; padding: 1.5rem;
}
.welcome-card { text-align: center; }
.welcome-card img { max-width: 70%; height: auto; margin-bottom: 1rem; }
.welcome-card h2 { margin: 0.5rem 0; font-size: 1.2rem; color: var(--text-light); }
.welcome-card h3 { margin: 0; font-size: 1.8rem; font-weight: 600; color: var(--primary-blue); }
.directory-card .card-header { background: var(--primary-blue); color: white; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.directory-card h5 { font-size: 1rem; color: var(--primary-blue); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.directory-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.whatsapp-button {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background-color: #25D366; color: white; padding: 0.6rem 1rem;
    border-radius: 20px; text-decoration: none; font-weight: 500;
    margin-top: 1rem; transition: background-color 0.2s;
}
.whatsapp-button:hover { background-color: #128C7E; }



@media (max-width: 768px) {

    
    .sidebar {
        position: fixed;
        z-index: 2000;
        margin-left: -260px; 
        box-shadow: 5px 0px 15px rgba(0,0,0,0.1);
    }
    

    .sidebar:not(.collapsed) {
        margin-left: 0;
    }
    
   
    .sidebar.collapsed {
        margin-left: -260px;
    }

  
    .main-body {
        
    }
    .content-wrapper {
        padding: 1rem; 
    }
    
    
    .content-grid {
        grid-template-columns: 1fr; 
    }

   
    .main-header {
        padding: 0.75rem 1rem;
    }
    .header-left .header-title, .header-left .version-tag {
        display: none; 
    }
    .header-right .user-role {
        display: none; 
    }


    .asistencia-container.horizontal {
        flex-direction: column; 
    }
}


.attendance-module-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
}


.module-header {
    width: 100%;
    max-width: 1100px; 
    text-align: center;
    margin-bottom: 2rem;
}

.module-header h1 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.module-header .current-date {
    font-weight: 500;
    color: var(--secondary-color);
    background-color: #eef2f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}


.asistencia-container.horizontal {
    display: flex;
    justify-content: center; 
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
}


.asistencia-card {
    flex: 1; 
    min-width: 280px; 
    max-width: 350px; 
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.asistencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.asistencia-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 50%;
    background-color: #f3f4f6;
}

.asistencia-card .icon-desayuno { color: #a16207; border-top-color: #a16207; }
.asistencia-card .icon-almuerzo { color: #c2410c; border-top-color: #c2410c; }
.asistencia-card .icon-cena { color: #1e3a8a; border-top-color: #1e3a8a; }

.asistencia-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.asistencia-card .horario {
    font-weight: 500;
    color: var(--primary-color);
    background-color: #eef2f6;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}


.disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 59, 102, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(2px);
}





.tramite-lists-container {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
    width: 100%;
    align-items: start; 
}


.tramite-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 0; 
}

.tramite-section h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary-blue);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.tramite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.tramite-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


@media (max-width: 992px) {
    .tramite-lists-container {
        grid-template-columns: 1fr;
    }

    .tramite-section {
        margin-bottom: 2rem; 
    }
}