/**
 * Dashboard Miembro - Estilos Modernos
 * Color principal: #721d48 (Borravino/Púrpura)
 * Diseño: Moderno, limpio y claro
 */

/* Prevenir scroll horizontal */
body.dashboard-page {
    overflow-x: hidden;
}

/* Variables de color */
:root {
    --primary-color: #721d48;
    --primary-light: #9d2f66;
    --primary-dark: #4a1230;
    --primary-lighter: #c87ba3;
    --secondary-color: #dab9ca;
    --background-light: #f1f5f8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
}

/* Container principal */
.dashboard-miembro {
    padding: 20px;
    background-color: white;
    min-height: calc(100vh - 100px);
    overflow-x: hidden;
}

.dashboard-miembro * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dashboard-miembro {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-miembro {
        padding: 10px 5px;
    }
}

/* Header de bienvenida */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dashboard-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dashboard-header .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.dashboard-header .user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
}

.dashboard-header .user-avatar i {
    font-size: 32px;
    color: white;
}

.dashboard-header .welcome-text h2 {
    margin: 0 0 5px 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.dashboard-header .welcome-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.dashboard-header .header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.dashboard-header .btn-header {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dashboard-header .btn-header:hover {
    background-color: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dashboard-header .btn-header i {
    font-size: 16px;
}

.dashboard-header .btn-header.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dashboard-header .btn-header.disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: rgba(255,255,255,0.2);
}

.dashboard-header .header-alert {
    background-color: transparent !important;
    color: white;
    border: none;
    margin-top: 15px;
    margin-bottom: 0;
    padding: 12px 15px;
    border-radius: 6px;
}

.dashboard-header .header-alert strong {
    font-weight: 700;
}

#matricula-numero {
    font-size: 20px;
  
}

#monto-deuda-actual {
    font-size: 18px;
}

#monto-plan, #monto-plan-vencido {
    font-size: 18px;
}

#deuda-plan{
    gap: 0px !important;
}

/* Alerta clickeable para notificaciones */
.alert-clickable {
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.alert-clickable:hover {
    text-decoration: none;
    color: white;
}

/* Alerta de matrícula provisoria */
.matricula-provisoria-alert {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.matricula-provisoria-alert .alert-icon {
    color: var(--warning-color);
    flex-shrink: 0;
}

.matricula-provisoria-alert .alert-content h4 {
    margin-top: 0;
    color: var(--text-dark);
}

.matricula-provisoria-alert .distrito-info {
    background-color: rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.matricula-provisoria-alert .distrito-info p {
    margin: 5px 0;
}

/* ================================================
   INFO CARDS HORIZONTAL - Estilo Profesional
   ================================================ */

.info-cards-horizontal {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.info-card-section {
    flex: 1;
    padding: 25px 30px;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.info-card-section:not(:last-child) {
    border-right: 1px solid #e8e8e8;
}

.info-card-section.border-green {
    border-bottom-color: #28a745;
}

.info-card-section.border-red {
    border-bottom-color: #dc3545;
}

.info-card-section.section-disabled {
    opacity: 0.6;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-header i {
    font-size: 14px;
    color: #aaa;
}

.info-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.info-main {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.info-main.success {
    color: #28a745;
}

.info-main.danger {
    color: #dc3545;
}

.info-subtitle {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
    max-width: 280px;
}

.info-subtitle .btn-sm {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.info-subtitle .btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.info-subtitle .btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.info-subtitle .text-warning {
    color: #f0ad4e;
    font-weight: 600;
}

.info-status {
    margin-top: 5px;
}

.info-vencimiento {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.info-vencimiento small {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-vencimiento .text-danger {
    color: #dc3545;
}

.info-vencimiento .text-muted {
    color: #6c757d;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Grid de Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Cards */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.dashboard-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.dashboard-card .card-header i {
    font-size: 24px;
}

.dashboard-card .card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.dashboard-card .card-header .badge {
    background-color: rgba(255,255,255,0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.dashboard-card .card-body {
    padding: 20px;
}

/* Card de Matrícula */
.card-matricula .matricula-number {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.card-matricula .matricula-number .label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.card-matricula .matricula-number .value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.card-matricula .matricula-status {
    margin-bottom: 15px;
}

.card-matricula .badge {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
}

.card-matricula .badge-success {
    background-color: var(--success-color);
}

.card-matricula .badge-warning {
    background-color: var(--warning-color);
}

.card-matricula .badge-danger {
    background-color: var(--danger-color);
}

.card-matricula .matricula-vencimiento {
    color: var(--text-light);
    font-size: 14px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-top: 10px;
}

.card-matricula .matricula-vencimiento i {
    margin-right: 5px;
}

.card-matricula .matricula-vencimiento.vencimiento-alerta {
    background-color: #fff3cd;
    color: var(--text-dark);
    border-left: 3px solid var(--warning-color);
    font-weight: 500;
}

.card-matricula .matricula-vencimiento.vencimiento-alerta strong {
    color: var(--danger-color);
}

/* Card de Deuda */
.card-deuda.has-debt {
    border: 2px solid var(--danger-color);
}

.card-deuda.has-debt .card-header {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c82333 100%);
}

.card-deuda .deuda-total {
    text-align: center;
    margin-bottom: 20px;
}

.card-deuda .deuda-total .label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.card-deuda .deuda-total .value {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.card-deuda .deuda-total .alert-value {
    color: var(--danger-color);
}

.card-deuda .deuda-detalle {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.card-deuda .deuda-detalle ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.card-deuda .deuda-detalle li {
    margin: 5px 0;
}

.card-deuda .no-deuda {
    text-align: center;
    padding: 20px;
}

.card-deuda .no-deuda i {
    color: var(--success-color);
    margin-bottom: 15px;
}

.card-deuda .no-deuda p {
    color: var(--text-light);
    margin: 0;
}

/* Card de Notificaciones */
.card-notificaciones.has-notifications .card-header {
    background: linear-gradient(135deg, var(--info-color) 0%, #138496 100%);
}

.card-notificaciones .notificaciones-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-notificaciones .notificaciones-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.card-notificaciones .notificaciones-list li:last-child {
    border-bottom: none;
}

.card-notificaciones .notif-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.card-notificaciones .notif-content small {
    color: var(--text-light);
    font-size: 12px;
}

.card-notificaciones .no-notifications {
    text-align: center;
    padding: 20px;
}

.card-notificaciones .no-notifications i {
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-notificaciones .no-notifications p {
    color: var(--text-light);
    margin: 0;
}

/* ================================================
   Card de Multas - Diseño Profesional
   ================================================ */

.card-multas.has-multas {
    border-left: 4px solid #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.card-multas .card-header-multas {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.card-multas .card-header-multas .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-multas .card-header-multas i {
    font-size: 24px;
}

.card-multas .card-header-multas h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.card-multas .badge-multas {
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.4);
}

.card-multas .card-body-multas {
    padding: 0;
}

.card-multas .multas-section {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.card-multas .multas-section:last-of-type {
    border-bottom: none;
}

.card-multas .multas-section.multas-sancion {
    background: linear-gradient(to right, #fff5e6 0%, white 50%);
    border-left: 3px solid #f39c12;
}

.card-multas .multas-section.multas-no-votar {
    background: linear-gradient(to right, #ffe6e6 0%, white 50%);
    border-left: 3px solid #dc3545;
}

.card-multas .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.card-multas .multas-sancion .section-header i {
    color: #f39c12;
    font-size: 20px;
}

.card-multas .multas-no-votar .section-header i {
    color: #dc3545;
    font-size: 20px;
}

.card-multas .section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.card-multas .count-badge {
    background: #f8f9fa;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.card-multas .multas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-multas .multa-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.card-multas .multa-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateX(2px);
}

.card-multas .multa-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-multas .multa-concepto {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.card-multas .multa-fecha {
    font-size: 12px;
    color: #999;
}

.card-multas .multa-monto {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.card-multas .monto-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.card-multas .monto-valor {
    font-size: 18px;
    font-weight: 700;
    color: #dc3545;
}

.card-multas .card-actions-multas {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 2px solid #e8e8e8;
    text-align: center;
}

.card-multas .btn-ver-multas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.card-multas .btn-ver-multas:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    text-decoration: none;
    color: white;
}

.card-multas .btn-ver-multas.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-multas .btn-ver-multas.disabled:hover {
    transform: none;
    box-shadow: none;
}

.card-multas .card-actions-multas .text-muted {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* Responsive para multas */
@media (max-width: 768px) {
    .card-multas .card-header-multas {
        padding: 15px 20px;
    }
    
    .card-multas .card-header-multas h3 {
        font-size: 18px;
    }
    
    .card-multas .multas-section {
        padding: 15px 20px;
    }
    
    .card-multas .multa-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-multas .multa-monto {
        align-items: flex-start;
    }
}

/* Acciones de Cards */
.card-actions {
    margin-top: 20px;
}

.card-actions .btn-block {
    width: 100%;
}

.card-actions .btn-link {
    color: var(--primary-color);
    text-decoration: none;
}

.card-actions .btn-link:hover {
    text-decoration: underline;
}

/* Accesos Rápidos */
.accesos-rapidos {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.accesos-rapidos h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 22px;
}

.accesos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.acceso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.acceso-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(114, 29, 72, 0.3);
    text-decoration: none;
}

.acceso-item .acceso-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.acceso-item .acceso-icon img {
    max-width: 100%;
    max-height: 100%;
    filter: invert(17%) sepia(45%) saturate(1847%) hue-rotate(295deg) brightness(86%) contrast(92%);
    opacity: 1;
    transition: all 0.3s ease;
}

.acceso-item:hover .acceso-icon img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.acceso-item span {
    font-size: 14px;
    font-weight: 600;
}

/* Información del Distrito */
.distrito-contacto {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.distrito-contacto h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 22px;
}

.distrito-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.distrito-info-grid .info-item {
    display: flex;
    gap: 15px;
}

.distrito-info-grid .info-item i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.distrito-info-grid .info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.distrito-info-grid .info-item p {
    margin: 0;
    color: var(--text-light);
}

/* Vista de login (usuarios no logueados) */
.login-options {
    margin-bottom: 30px;
}

.login-options .info-cards-horizontal {
    margin-bottom: 0;
    width: 100%;
}

.login-options .info-card-section {
    padding: 0;
   border-bottom: none;
    width: 100%;
}

.login-options .logo-welcome {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.logo-welcome img {
    width: 250px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.logo-welcome h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.option-card {
    background-color: transparent;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    min-height: 100%;
}

.option-card:hover {
    transform: translateY(-3px);
}

.option-card h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 18px;
}

.option-card p {
    color: var(--text-light);
    margin: 0 0 15px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    flex-grow: 1;
}

.option-card .btn-teal,
.option-card .btn-purple,
.option-card .btn-orange {
    margin-top: auto;
}

/* Botones */
.btn-teal {
    background-color: #009688;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    max-width: 100%;
    word-wrap: break-word;
}

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

.btn-purple {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    max-width: 100%;
    word-wrap: break-word;
}

.btn-purple:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-orange {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    max-width: 100%;
    word-wrap: break-word;
}

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

/* ================================================
   ESTILOS PARA PERMISOS - ELEMENTOS DESHABILITADOS
   ================================================ */

/* Card deshabilitada - visible pero no interactiva */
.card-disabled {
    opacity: 0.6;
    position: relative;
}

.card-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    border-radius: 10px;
}

.card-disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: not-allowed;
}

.card-disabled .card-header .badge-warning {
    background-color: var(--warning-color);
    color: var(--text-dark);
}

/* Acceso rápido deshabilitado */
.acceso-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    position: relative;
}

.acceso-disabled:hover {
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

.acceso-disabled .acceso-icon {
    position: relative;
}

.acceso-disabled .acceso-icon img {
    filter: grayscale(1) !important;
    opacity: 0.4 !important;
}

.acceso-disabled:hover .acceso-icon img {
    filter: grayscale(1) !important;
    opacity: 0.4 !important;
}

/* Lock overlay para iconos deshabilitados */
.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lock-overlay i {
    color: var(--danger-color);
    font-size: 16px;
}

/* Botones deshabilitados */
.btn.disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    position: relative;
}

.btn.disabled:hover,
.btn[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Texto informativo para elementos deshabilitados */
.text-muted {
    color: var(--text-light) !important;
    font-size: 12px;
    font-style: italic;
}

.text-muted i {
    margin-right: 3px;
}

/* Mejoras visuales en tooltips de elementos deshabilitados */
.card-disabled[title],
.acceso-disabled[title],
.btn.disabled[title] {
    cursor: help;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .accesos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .distrito-contacto {
        text-align: center;
    }
    
    .distrito-info-grid {
        grid-template-columns: 1fr;
    }
    
    .distrito-info-grid .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-welcome {
        margin-bottom: 25px;
    }
    
    .logo-welcome img {
        width: 180px;
    }
    
    .option-card {
        padding: 25px 20px;
    }
    
    .option-card h3 {
        font-size: 16px;
    }
    
    .option-card p {
        font-size: 13px;
    }
    
    .option-card p {
        min-height: auto;
        font-size: 14px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .info-cards-horizontal {
        flex-direction: column;
    }
    
    .info-card-section:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .info-card-section {
        padding: 20px 25px;
    }
    
    .dashboard-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-header .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .dashboard-header .btn-header {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-header .welcome-text h2 {
        font-size: 20px;
    }
    
    .dashboard-header .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .dashboard-header .user-avatar i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .accesos-grid {
        grid-template-columns: 1fr;
    }
    
    .distrito-contacto {
        padding: 20px 15px;
    }
    
    /* Login específico móvil */
    .login-options .info-cards-horizontal {
        overflow-x: hidden;
    }
    
    .login-options .info-card-section {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .option-card {
        padding: 20px 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .option-card .btn-teal,
    .option-card .btn-purple,
    .option-card .btn-orange {
        width: 90%;
        max-width: 280px;
        padding: 12px 20px;
    }
    
    .logo-welcome {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .logo-welcome {
        margin-bottom: 20px;
    }
    
    .logo-welcome img {
        width: 150px;
        margin-bottom: 15px;
    }
    
    .logo-welcome h1 {
        font-size: 24px;
    }
    
    .logo-welcome p {
        font-size: 14px;
    }
    
    .option-card {
        padding: 20px 15px;
    }
    
    .option-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .option-card p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .card-matricula .matricula-number .value {
        font-size: 24px;
    }
    
    .card-deuda .deuda-total .value {
        font-size: 28px;
    }
    
    .dashboard-header .header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .dashboard-header .welcome-text h2 {
        font-size: 18px;
    }
    
    .info-card-section {
        padding: 18px 20px;
    }
    
    .info-main {
        font-size: 22px;
    }
    
    .info-subtitle {
        font-size: 12px;
    }
}