/**
 * Estilos del Sistema de Reservas INACAP - Versión Profesional
 * Colores institucionales: Rojo (#E2001A), Blanco (#FFFFFF), Negro (#000000)
 */


/* Variables CSS */
:root {
    --inacap-rojo: #E2001A;
    --inacap-rojo-hover: #b50015;
    --inacap-rojo-light: #ff1a35;
    --inacap-blanco: #FFFFFF;
    --inacap-negro: #000000;
    --gris-muy-claro: #F8F9FA;
    --gris-claro: #E9ECEF;
    --gris-medio: #6C757D;
    --gris-oscuro: #343A40;
    --color-exito: #28A745;
    --color-advertencia: #FFC107;
    --color-error: #DC3545;
    --color-info: #17A2B8;
    --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --sidebar-width: 260px;
    --header-height: 70px;
    --sombra-sm: 0 2px 4px rgba(0,0,0,0.08);
    --sombra-md: 0 4px 6px rgba(0,0,0,0.1);
    --sombra-lg: 0 10px 25px rgba(0,0,0,0.15);
    --sombra-xl: 0 20px 40px rgba(0,0,0,0.2);
    --sombra-inacap: 0 4px 15px rgba(226, 0, 26, 0.2);
}


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

body, .card, .btn, .sidebar-nav ul li a, .table tbody tr {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo, .card, .btn-inacap, .sidebar-nav ul li a, .stat-card,
.table tbody tr, .nav-principal ul li a, .btn-user, .btn-notificaciones {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

body {
    font-family: var(--fuente-principal);
    font-size: 14px;
    line-height: 1.6;
    color: var(--inacap-negro);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--inacap-rojo);
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--inacap-rojo-hover);
}


/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translate3d(30px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes pulse {
    0%, 100% { transform: scale3d(1, 1, 1); }
    50%       { transform: scale3d(1.05, 1.05, 1.05); }
}

@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}


/* Header */
.header-inacap {
    background: linear-gradient(135deg, var(--inacap-blanco) 0%, #f8f9fa 100%);
    box-shadow: var(--sombra-lg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--inacap-rojo);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover { transform: scale(1.05); }

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-hover) 100%);
    border-radius: 12px;
    box-shadow: var(--sombra-inacap);
    transition: all 0.3s ease;
}

.logo-icon i { font-size: 28px; color: var(--inacap-blanco); }

.logo:hover .logo-icon {
    transform: rotate(360deg);
    box-shadow: var(--sombra-xl);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--gris-medio);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.header-nav .nav-link {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, #c8001a 100%);
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(226, 0, 26, 0.3);
}

.header-nav .nav-link:hover {
    background: linear-gradient(135deg, #c8001a 0%, #a00015 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(226, 0, 26, 0.4);
}

.header-nav .nav-link:active { transform: translateY(0); }
.header-nav .nav-link i { font-size: 1rem; }

.user-info { display: flex; align-items: center; gap: 15px; }

.btn-user {
    background: linear-gradient(135deg, var(--inacap-blanco) 0%, #f8f9fa 100%);
    border: 2px solid var(--gris-claro);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--sombra-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--inacap-negro);
    will-change: border-color, box-shadow, transform;
    transform: translateZ(0);
}

.btn-user:hover {
    border-color: var(--inacap-rojo);
    box-shadow: var(--sombra-inacap);
    transform: translate3d(0, -2px, 0);
    color: var(--inacap-rojo);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--inacap-rojo);
    box-shadow: var(--sombra-sm);
}

.btn-notificaciones {
    position: relative;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--gris-claro) 0%, #dee2e6 100%);
    border-radius: 50%;
    color: var(--inacap-negro);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--sombra-sm);
    will-change: background, transform;
    transform: translateZ(0);
}

.btn-notificaciones:hover {
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-hover) 100%);
    color: var(--inacap-blanco);
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--sombra-inacap);
}

.btn-notificaciones .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff1744 0%, #f50057 100%);
    color: var(--inacap-blanco);
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: var(--sombra-md);
    animation: pulse 2s infinite;
}


/* Layout Principal */
.main-container {
    display: flex;
    min-height: calc(100vh - var(--header-height) - 100px);
}


/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--inacap-blanco) 0%, #f8f9fa 100%);
    box-shadow: var(--sombra-lg);
    padding: 20px 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    border-right: 1px solid rgba(226, 0, 26, 0.1);
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--inacap-rojo); border-radius: 10px; }

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--inacap-negro);
    will-change: background, transform;
    transform: translateZ(0);
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-nav ul li a::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 100%;
    background: linear-gradient(90deg, rgba(226, 0, 26, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.sidebar-nav ul li a:hover::before,
.sidebar-nav ul li a.active::before { width: 100%; }

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    background: linear-gradient(90deg, #fff0f0 0%, transparent 100%);
    border-left-color: var(--inacap-rojo);
    color: var(--inacap-rojo);
    transform: translateX(5px);
    box-shadow: inset 0 0 10px rgba(226, 0, 26, 0.1);
}

.sidebar-nav ul li a i { width: 25px; margin-right: 10px; text-align: center; }

.sidebar-divider {
    font-size: 11px;
    font-weight: 700;
    color: var(--gris-medio);
    padding: 15px 20px 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-sidebar {
    margin-left: auto;
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-hover) 100%);
    color: var(--inacap-blanco);
    border-radius: 15px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: var(--sombra-sm);
    animation: pulse 2s infinite;
}


/* Área de Contenido */
.content-area { flex: 1; padding: 30px; background: transparent; }


/* Botones */
.btn-inacap {
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-hover) 100%);
    color: var(--inacap-blanco);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--sombra-md);
    position: relative;
    overflow: hidden;
}

.btn-inacap::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-inacap:hover::before { width: 300px; height: 300px; }

.btn-inacap:hover {
    background: linear-gradient(135deg, var(--inacap-rojo-hover) 0%, #8b0011 100%);
    color: var(--inacap-blanco);
    transform: translateY(-3px);
    box-shadow: var(--sombra-xl);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gris-medio) 0%, var(--gris-oscuro) 100%);
    color: var(--inacap-blanco);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--sombra-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gris-oscuro) 0%, #1a1d20 100%);
    transform: translateY(-3px);
    box-shadow: var(--sombra-xl);
}

.btn-outline-inacap {
    background: transparent;
    color: var(--inacap-rojo);
    border: 2px solid var(--inacap-rojo);
    padding: 10px 26px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-inacap::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-hover) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-outline-inacap:hover::before { left: 0; }

.btn-outline-inacap:hover {
    color: var(--inacap-blanco);
    border-color: var(--inacap-rojo-hover);
    transform: translateY(-2px);
    box-shadow: var(--sombra-inacap);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-error) 0%, #b71c1c 100%);
    border: none;
    color: var(--inacap-blanco);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%);
    transform: translateY(-2px);
    box-shadow: var(--sombra-lg);
}


/* Tarjetas */
.card {
    background: linear-gradient(145deg, var(--inacap-blanco) 0%, #fafbfc 100%);
    border-radius: 15px;
    box-shadow: var(--sombra-lg);
    padding: 0;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-xl);
    border-color: rgba(226, 0, 26, 0.2);
}

.card-header {
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-hover) 100%);
    color: var(--inacap-blanco);
    padding: 18px 25px;
    border-radius: 15px 15px 0 0;
    font-weight: 600;
    font-size: 17px;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.card-body { padding: 25px; }


/* Page Header */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--inacap-rojo);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 100px; height: 3px;
    background: linear-gradient(90deg, var(--inacap-rojo) 0%, transparent 100%);
}

.page-header h1 {
    color: var(--inacap-rojo);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-header h1 i {
    margin-right: 15px;
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Tablas */
.table-responsive { border-radius: 15px; overflow: hidden; box-shadow: var(--sombra-md); }

.table { width: 100%; background-color: var(--inacap-blanco); margin: 0; }

.table thead {
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-hover) 100%);
    color: var(--inacap-blanco);
}

.table thead th {
    padding: 18px 15px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid var(--gris-claro);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, #fff5f5 0%, var(--inacap-blanco) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(226, 0, 26, 0.1);
}

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

.table tbody td { padding: 15px; vertical-align: middle; }

.table-sm td,
.table-sm th { padding: 0.5rem; font-size: 0.9rem; }


/* Formularios */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gris-claro);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, var(--inacap-blanco) 0%, #fafbfc 100%);
}

.form-control:focus {
    outline: none;
    border-color: var(--inacap-rojo);
    box-shadow: 0 0 0 0.3rem rgba(226, 0, 26, 0.15), var(--sombra-md);
    transform: translateY(-2px);
    background: var(--inacap-blanco);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--inacap-negro);
    font-size: 14px;
}

.form-group { margin-bottom: 25px; }


/* Mensajes */
.messages-container { margin-bottom: 25px; }

.alert {
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--sombra-md);
    position: relative;
    overflow: hidden;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border-left: 5px solid var(--color-exito);
    color: #155724;
}

.alert-error,
.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #ffebee 100%);
    border-left: 5px solid var(--color-error);
    color: #721C24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fffde7 100%);
    border-left: 5px solid var(--color-advertencia);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #e1f5fe 100%);
    border-left: 5px solid var(--color-info);
    color: #0c5460;
}


/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--sombra-sm);
    transition: all 0.3s ease;
}

.badge:hover { transform: scale(1.1); box-shadow: var(--sombra-md); }

.badge-pendiente { background: linear-gradient(135deg, var(--color-advertencia) 0%, #ffb300 100%); color: var(--inacap-negro); }
.badge-aprobada  { background: linear-gradient(135deg, var(--color-exito) 0%, #1e7e34 100%); color: var(--inacap-blanco); }
.badge-rechazada { background: linear-gradient(135deg, var(--color-error) 0%, #bd2130 100%); color: var(--inacap-blanco); }
.badge-cancelada { background: linear-gradient(135deg, var(--gris-medio) 0%, #545b62 100%); color: var(--inacap-blanco); }
.badge-finalizada{ background: linear-gradient(135deg, var(--gris-oscuro) 0%, #1d2124 100%); color: var(--inacap-blanco); }

.bg-inacap {
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-hover) 100%) !important;
}


/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--inacap-blanco) 0%, #fafbfc 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--sombra-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--inacap-rojo) 0%, var(--inacap-rojo-light) 100%);
}

.stat-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--sombra-xl); }

.stat-card .stat-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--inacap-rojo) 0%, var(--inacap-rojo-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.stat-card h3 { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; color: var(--inacap-rojo); }
.stat-card p  { color: var(--gris-medio); font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.stat-content h3 { margin: 0; font-size: 2rem; font-weight: bold; }
.stat-content p  { margin: 0; font-size: 0.9rem; }
.stat-icon       { font-size: 3rem; margin-right: 20px; opacity: 0.8; }


/* Acciones Rápidas */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    position: relative;
}

.quick-action-btn:hover {
    background: var(--inacap-rojo);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(226, 0, 26, 0.3);
}

.quick-action-btn i { font-size: 2rem; margin-bottom: 10px; }

.quick-action-btn .badge { position: absolute; top: 10px; right: 10px; }


/* Footer */
.footer-inacap {
    background: linear-gradient(135deg, var(--inacap-negro) 0%, #1a1d20 100%);
    color: var(--inacap-blanco);
    padding: 50px 0 25px;
    margin-top: 60px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    position: relative;
}

.footer-inacap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--inacap-rojo) 0%, var(--inacap-rojo-light) 50%, var(--inacap-rojo) 100%);
}

.footer-inacap a        { color: var(--gris-claro); transition: all 0.3s ease; }
.footer-inacap a:hover  { color: var(--inacap-rojo-light); transform: translateX(5px); }
.footer-inacap h5       { color: var(--inacap-rojo); margin-bottom: 15px; }

.footer-links            { list-style: none; padding: 0; }
.footer-links li         { margin-bottom: 8px; }
.footer-links a          { color: var(--gris-claro); }
.footer-links a:hover    { color: var(--inacap-blanco); }


/* Responsive */
@media (max-width: 768px) {
    .main-container { flex-direction: column; }
    .sidebar { width: 100%; position: relative; height: auto; }
    .nav-principal ul { flex-direction: column; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 1.5rem; }
}


/* Utilidades */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-3        { margin-top: 1rem; }
.mb-3        { margin-bottom: 1rem; }
.p-3         { padding: 1rem; }


/* ─────────────────────────────────────────────────────────────────
   LOGIN
───────────────────────────────────────────────────────────────── */
body.login-page {
    /* Fondo claro institucional con toque muy sutil de rojo */
    background: linear-gradient(135deg, #fdf4f4 0%, #f8f5f5 50%, #f4f4f4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13), 0 0 0 2px rgba(226, 0, 26, 0.18);
    overflow: hidden;
    max-width: 960px;
    width: 100%;
}

/* Panel izquierdo — rojo INACAP */
.login-left {
    background: linear-gradient(160deg, #E2001A 0%, #b50015 60%, #8b000f 100%);
    color: white;
    padding: 60px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decoración circular sutil */
.login-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.logo-login {
    max-width: 190px;
    margin-bottom: 30px;
}

.login-brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
    font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    line-height: 1.2;
}

.login-brand-sub {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    margin-bottom: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.1px;
}

/* Bloques de feature en panel izquierdo */
.login-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.login-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.login-feature h6 {
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
    font-size: 0.95rem;
}

.login-feature p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.5;
}

.login-feature strong {
    color: white;
    font-weight: 600;
}

/* Panel derecho — formulario */
.login-right {
    padding: 60px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header h3 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.login-form-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Campos del formulario */
.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Estilos para los inputs renderizados por Django */
.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #f8f9fa;
    color: #333;
    transition: all 0.25s ease;
    outline: none;
}

.login-form input[type="text"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #E2001A;
    background: white;
    box-shadow: 0 0 0 4px rgba(226, 0, 26, 0.1);
}

.login-error {
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 5px;
}

/* Fila recordar + olvidaste */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.login-options .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.login-options .form-check-input {
    width: 17px;
    height: 17px;
    min-width: 17px;
    border: 2px solid #adb5bd;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
    accent-color: #E2001A;
}

.login-options .form-check-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #3a3a3a;
    cursor: pointer;
    margin: 0;
    line-height: 1;
    user-select: none;
}

.login-forgot {
    font-size: 0.88rem;
    color: #E2001A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-forgot:hover { color: #b50015; text-decoration: underline; }

/* Botón principal de login — sin depender de Bootstrap .btn */
.btn-login-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #E2001A 0%, #c0001a 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(226, 0, 26, 0.3);
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #c0001a 0%, #8b000f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 0, 26, 0.4);
    color: white;
}

.btn-login-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(226, 0, 26, 0.3);
}

/* Responsive */
@media (max-width: 767px) {
    .login-left  { padding: 40px 30px; }
    .login-right { padding: 40px 30px; }
    .login-container { border-radius: 12px; }
}




/* ─────────────────────────────────────────────────────────────────
   DASHBOARD ADMIN — Calendario compacto semanal
───────────────────────────────────────────────────────────────── */
.week-calendar { display: flex; gap: 8px; flex-wrap: wrap; }

.day-card { background: linear-gradient(180deg,#e2001a,#c70015); border-radius: 6px; padding: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); color: #fff; }
.day-card .very-small   { font-size: 0.72rem; color: rgba(255,255,255,0.9); }
.day-card .day-label    { font-size: 0.72rem; color: rgba(255,255,255,0.85); }
.day-card .day-date     { font-size: 0.82rem; font-weight: 600; color: #fff; }
.day-card a.small       { font-size: 0.78rem; color: #fff; text-decoration: underline; }
.day-card .badge        { background: rgba(255,255,255,0.12); color: #fff; border: none; }
.day-card a.small:hover { color: #ffecec; }

.compact-week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.compact-day-column {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.compact-day-column.today { border-color: #2196f3; box-shadow: 0 0 8px rgba(33, 150, 243, 0.3); }

.compact-day-header {
    background: linear-gradient(135deg, #495057, #6c757d);
    color: white;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.7rem;
}

.compact-day-column.today .compact-day-header { background: linear-gradient(135deg, #2196f3, #1976d2); }

.day-name   { display: block; font-weight: 600; text-transform: uppercase; font-size: 0.65rem; margin-bottom: 2px; }
.day-number { display: block; font-size: 0.85rem; font-weight: bold; }

.compact-day-content { padding: 4px; max-height: 200px; overflow-y: auto; }

.compact-reserva {
    padding: 4px 6px;
    margin-bottom: 3px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compact-reserva:hover { transform: translateX(2px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.reserva-time  { font-weight: bold; font-size: 0.75rem; margin-bottom: 2px; color: #212529; }
.reserva-space { font-size: 0.65rem; color: #495057; }

.no-reservas { text-align: center; color: #adb5bd; font-size: 0.7rem; padding: 8px 4px; font-style: italic; }

.compact-day-content::-webkit-scrollbar       { width: 4px; }
.compact-day-content::-webkit-scrollbar-track { background: #f1f3f5; }
.compact-day-content::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 2px; }
.compact-day-content::-webkit-scrollbar-thumb:hover { background: #6c757d; }


/* ─────────────────────────────────────────────────────────────────
   DASHBOARD SOLICITANTE — Mini calendario semanal
───────────────────────────────────────────────────────────────── */
.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mini-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.mini-day:hover           { background: #e9ecef; transform: translateY(-2px); }
.mini-day.today           { background: linear-gradient(135deg, #e3f2fd, #bbdefb); border: 2px solid #2196f3; font-weight: bold; }
.mini-day.has-reservas    { background: linear-gradient(135deg, #fff3e0, #ffe0b2); border: 2px solid #ff9800; }
.mini-day.today.has-reservas { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); border: 2px solid #4caf50; }

.reservas-count {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--inacap-rojo);
    color: white;
    border-radius: 50%;
    width: 16px; height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}


/* ─────────────────────────────────────────────────────────────────
   ESPACIOS — Lista
───────────────────────────────────────────────────────────────── */
.espacio-card { transition: transform 0.3s, box-shadow 0.3s; }

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

.espacio-info { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }

.info-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }

.info-item i { width: 20px; color: var(--inacap-rojo); }


/* ─────────────────────────────────────────────────────────────────
   ESPACIOS — Crear / Editar (form-section compartido)
───────────────────────────────────────────────────────────────── */
.form-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: #003c71;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0066cc;
}

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

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label.required::after { content: '*'; color: #dc3545; margin-left: 0.25rem; }

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--inacap-rojo);
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-text { margin-top: 0.5rem; color: #6c757d; font-size: 0.875rem; }

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.form-check-input    { width: 20px; height: 20px; cursor: pointer; }
.form-check-label    { cursor: pointer; margin: 0; font-weight: 600; }

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.error-message { color: #dc3545; font-size: 0.875rem; margin-top: 0.5rem; }

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
}


/* ─────────────────────────────────────────────────────────────────
   RESERVAS — Crear
───────────────────────────────────────────────────────────────── */
.form-label-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
}

.form-label-modern i { color: var(--inacap-rojo); margin-right: 10px; }

.form-control-modern {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.05rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.form-control-modern:focus {
    border-color: var(--inacap-rojo);
    box-shadow: 0 0 0 4px rgba(226, 0, 26, 0.1);
    outline: none;
}

.time-input-group {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.time-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.duration-badge {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
    text-align: center;
    border: 2px solid #90caf9;
}

.duration-badge i  { margin-right: 8px; }

#id_fecha_inicio,
#id_fecha_fin,
#fecha_fin_date { display: none; }

#id_espacio {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.05rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

#id_espacio:focus {
    border-color: var(--inacap-rojo);
    box-shadow: 0 0 0 4px rgba(226, 0, 26, 0.1);
    outline: none;
}

.form-control,
.form-select { border-radius: 8px; border: 1px solid #ddd; padding: 10px 15px; }

.form-control:focus,
.form-select:focus {
    border-color: var(--inacap-rojo);
    box-shadow: 0 0 0 0.2rem rgba(226, 0, 26, 0.25);
}


/* ─────────────────────────────────────────────────────────────────
   RESERVAS — Detalle (timeline de eventos)
───────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 30px; }

.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background-color: var(--inacap-rojo);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--inacap-rojo);
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -24px; top: 12px; bottom: -20px;
    width: 2px;
    background-color: #ddd;
}

.timeline-item:last-child:before { display: none; }

.timeline-content {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}


/* ─────────────────────────────────────────────────────────────────
   NOTIFICACIONES
───────────────────────────────────────────────────────────────── */
.notification-card { transition: all 0.3s; border-left: 4px solid var(--inacap-rojo); }
.notification-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.notification-read { opacity: 0.7; border-left-color: #6c757d; }

.notification-icon { color: var(--inacap-rojo); }
.notification-read .notification-icon { color: #6c757d; }

.badge.bg-pendiente { background-color: #ffc107 !important; }
.badge.bg-enviada   { background-color: #17a2b8 !important; }
.badge.bg-leida     { background-color: #6c757d !important; }


/* ─────────────────────────────────────────────────────────────────
   APROBACIONES
───────────────────────────────────────────────────────────────── */
/* Reutiliza .stat-card del bloque Dashboard Stats */


/* ─────────────────────────────────────────────────────────────────
   AUDITORÍA
───────────────────────────────────────────────────────────────── */
/* Reutiliza .table-sm definido en Tablas */


/* ─────────────────────────────────────────────────────────────────
   REPORTES
───────────────────────────────────────────────────────────────── */
.report-card { height: 100%; transition: all 0.2s ease; }
.report-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-xl); }
.report-icon { padding: 20px; }
.report-card .card-title { color: var(--inacap-negro); font-weight: 600; font-size: 1.2rem; }
.report-card .card-text  { color: var(--gris-medio); font-size: 0.95rem; min-height: 48px; }


/* ─────────────────────────────────────────────────────────────────
   RECURSOS
───────────────────────────────────────────────────────────────── */
.form-check-input:checked {
    background-color: var(--inacap-rojo);
    border-color: var(--inacap-rojo);
}


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

/* stat-card en lista_usuarios usa layout diferente al general */
.stats-grid .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
}

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

.stat-icon.bg-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-icon.bg-success { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.stat-icon.bg-warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-icon.bg-info    { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.stat-info h3 { font-size: 2rem; font-weight: 700; margin: 0; color: #2d3748; }
.stat-info p  { margin: 0; color: #718096; font-size: 0.9rem; }

.filters-form { display: flex; flex-direction: column; gap: 1rem; }

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-group { display: flex; flex-direction: column; position: relative; }

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.suggestions-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 0.5rem;
}

.suggestions-dropdown.show  { display: block; }
.suggestion-item            { padding: 0.75rem 1rem; cursor: pointer; border-bottom: 1px solid #f7fafc; transition: background 0.2s ease; }
.suggestion-item:hover      { background: #f7fafc; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-name            { font-weight: 600; color: #2d3748; display: block; }
.suggestion-email           { font-size: 0.85rem; color: #718096; display: block; }
.suggestion-rut             { font-size: 0.85rem; color: #a0aec0; display: block; }
.no-suggestions             { padding: 1rem; text-align: center; color: #a0aec0; }

.user-info              { display: flex; align-items: center; gap: 0.75rem; }

.user-avatar-placeholder {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.9rem;
}

.email-link        { color: #4299e1; text-decoration: none; }
.email-link:hover  { text-decoration: underline; }

.badge-rol           { padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; font-size: 0.85rem; }
.badge-administrador { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.badge-docente       { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: white; }
.badge-solicitante   { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }

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

.pagination-container { margin-top: 2rem; display: flex; justify-content: center; }

.pagination         { display: flex; gap: 0.5rem; }
.page-item .page-link      { border-radius: 8px; padding: 0.5rem 1rem; border: 1px solid #e2e8f0; color: #4299e1; text-decoration: none; }
.page-item.active .page-link { background: #4299e1; color: white; border-color: #4299e1; }

@media (max-width: 1024px) {
    .filter-row { grid-template-columns: 1fr; }
    .filter-actions { justify-content: stretch; }
    .filter-actions .btn { flex: 1; }
}

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


/* ─────────────────────────────────────────────────────────────────
   CALENDARIO
───────────────────────────────────────────────────────────────── */
.week-navigation { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.calendar-week-view { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }

.calendar-day-column {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}

.calendar-day-column.today { border-color: #2196f3; box-shadow: 0 0 12px rgba(33,150,243,0.3); }

.calendar-day-header { background: linear-gradient(135deg, #495057, #6c757d); color: white; padding: 12px 8px; text-align: center; }
.calendar-day-column.today .calendar-day-header { background: linear-gradient(135deg, #2196f3, #1976d2); }

.day-name-cal   { display: block; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 4px; }
.day-number-cal { display: block; font-size: 1.2rem; font-weight: bold; }

.calendar-day-content { padding: 8px; max-height: 500px; overflow-y: auto; }

.calendar-reserva {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    color: #212529;
}

.calendar-reserva:hover { transform: translateX(3px); box-shadow: 0 3px 8px rgba(0,0,0,0.15); text-decoration: none; }

.reserva-hora    { font-weight: bold; font-size: 0.9rem; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.reserva-espacio { font-size: 0.85rem; color: #495057; margin-bottom: 2px; }
.reserva-motivo  { font-size: 0.75rem; color: #6c757d; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.no-reservas-cal { text-align: center; color: #adb5bd; font-size: 0.85rem; padding: 20px 8px; font-style: italic; }

.calendar-day-content::-webkit-scrollbar       { width: 6px; }
.calendar-day-content::-webkit-scrollbar-track { background: #f1f3f5; }
.calendar-day-content::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 3px; }
.calendar-day-content::-webkit-scrollbar-thumb:hover { background: #6c757d; }

.legend      { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-color{ width: 20px; height: 20px; border-radius: 4px; }


/* ─────────────────────────────────────────────────────────────────
   PREFIJO TELÉFONO  (+56)  y CAMPO TELÉFONO
───────────────────────────────────────────────────────────────── */
.phone-group { display: flex; align-items: stretch; }

.phone-prefix-tag {
    background: #E2001A;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 14px;
    border: 2px solid #E2001A;
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* El input dentro del phone-group pierde el borde izquierdo */
.phone-group .form-control,
.phone-group input[type="text"],
.phone-group input[type="tel"] {
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    flex: 1;
}

.phone-group .form-control:focus,
.phone-group input:focus {
    border-color: #E2001A;
    box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.12);
    z-index: 2;
}



