/* 2. ESTADO BASE DEL INPUT / SELECT */
.form-floating>.form-control,
.form-floating>.form-select {
    height: 3.8rem !important;
    /* Altura ideal para que el texto no se sienta apretado */
    line-height: 1.25;
    padding: 1.5rem 1rem 0.5rem !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background-color: #f8fafc !important;
    /* Fondo sutil para indicar campo */
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}

/* 3. DISEÑO DE LA ETIQUETA (LABEL) */
.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1.1rem 1rem !important;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: all 0.2s ease-in-out;
    color: #94a3b8;
    /* Gris suave */
    font-weight: 500;
}

/* 4. LA MAGIA: ETIQUETA FLOTANTE (Efecto Muesca) */
/* Cuando el input tiene foco o contenido, la etiqueta sube y "corta" el borde */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    opacity: 1 !important;
    transform: scale(0.85) translateY(-1.1rem) translateX(0.15rem) !important;
    background-color: #ffffff !important;
    /* El fondo blanco crea el recorte */
    padding: 0 8px !important;
    height: auto !important;
    color: #4b5ace !important;
    /* Azul médico de tu marca */
    font-weight: 700 !important;
    z-index: 5;
}

/* 5. REFINAMIENTO EN FOCO */
.form-floating>.form-control:focus,
.form-floating>.form-select:focus {
    background-color: #ffffff !important;
    border-color: #4b5ace !important;
    box-shadow: 0 0 0 4px rgba(75, 90, 206, 0.1) !important;
    outline: none !important;
}

/* 6. AJUSTE ESPECIAL PARA SELECTS */
/* Evita que el texto del select se encime con la etiqueta cuando está activo */
.form-floating>.form-select {
    padding-top: 1.625rem !important;
    padding-bottom: 0.625rem !important;
}

/* 7. ESTADOS DE ERROR (Opcional pero recomendado) */
.form-floating>.form-control.is-invalid {
    border-color: #ef4444 !important;
}

.form-floating>.form-control.is-invalid~label {
    color: #ef4444 !important;
}

.whatsapp-icon {
    margin-top: 13px;
}

#imagen_logo {
    filter: brightness(1.1);

    mix-blend-mode: multiply;

}

#imagen_logo {
    width: 100px;
    /* tamaño fijo o adaptable */
    height: 50px;
}

#imagen_logo {
    height: 50px;
    /* Alto del logo */
    width: auto;
    /* Ajusta el ancho automáticamente */
    object-fit: contain;
    /* Mantiene proporciones sin recortar */
}

/* ==========================================================================
   DISEÑO GOOGLE MATERIAL CLEAN 3 (SISTEMA MÉRICO EMR - PULXAR CLINICA)
   0% Cambios PHP/SQL | 100% Preservación Responsiva Móvil/Tablet
   ========================================================================== */

/* 1. ESTRUCTURA Y FONDO DEL SIDEBAR */
#layout-menu.bg-menu-theme {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.03) !important;
}

/* 2. TÍTULOS DE SECCIÓN (HEADERS GOOGLE MATERIAL) */
#layout-menu .menu-header {
    margin-top: 1.25rem !important;
    margin-bottom: 0.4rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1rem !important;
    display: flex;
    align-items: center;
}

#layout-menu .menu-header-text {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.8px !important;
}

#layout-menu .menu-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0 !important;
    margin-left: 0.8rem;
}

/* 3. ÍCONOS MONOCROMÁTICOS FORMALES (UNIFICACIÓN DE UN SOLO COLOR) */
.menu-icon,
.menu-icon-img {
    width: 20px !important;
    height: 20px !important;
    margin-right: 0.85rem !important;
    object-fit: contain;
    color: #475569 !important;
    /* Transforma íconos multicolores .ico en monocromático slate neutro formal */
    filter: grayscale(100%) opacity(0.75) brightness(0.4) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 4. ESTILO BASE DE ENLACES Y TEXTOS DEL MENÚ */
.menu-inner .menu-link {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    margin: 2px 10px !important;
    border-radius: 20px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.letra-menu,
.menu-vertical .menu-link div,
.menu-link .text-dark {
    font-size: 0.90rem !important;
    font-weight: 550 !important;
    color: #334155 !important; /* Gris pizarra legible */
    letter-spacing: -0.15px;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* 5. EFECTO HOVER GOOGLE MATERIAL (REPOSO A SELECCIÓN SUAVE) */
.menu-item:not(.active) > .menu-link:hover {
    background-color: #f1f5f9 !important; /* Fondo suave slate Google */
}

.menu-item:not(.active) > .menu-link:hover .letra-menu,
.menu-item:not(.active) > .menu-link:hover div {
    color: #0f172a !important; /* Texto más oscuro al hover */
    transform: translateX(2px);
}

.menu-item:not(.active) > .menu-link:hover .menu-icon,
.menu-item:not(.active) > .menu-link:hover .menu-icon-img {
    filter: grayscale(100%) opacity(1) brightness(0.2) !important;
    transform: scale(1.08);
}

/* 6. ÍTEM ACTIVO / SELECCIONADO (CÁPSULA GOOGLE MATERIAL 3 - AZUL GOOGLE) */
.menu-item.active > .menu-link,
.menu-item.open > .menu-link {
    background-color: rgba(26, 115, 232, 0.12) !important; /* Cápsula Azul Google #1a73e8 con opacidad */
    border-radius: 24px !important;
}

.menu-item.active > .menu-link .letra-menu,
.menu-item.active > .menu-link div,
.menu-vertical .menu-item.active .menu-link b {
    color: #1a73e8 !important; /* Azul Google puro */
    font-weight: 700 !important;
}

/* Encendido Monocromático de Íconos Activos en Azul Google */
.menu-item.active > .menu-link .menu-icon,
.menu-item.active > .menu-link .menu-icon-img {
    color: #1a73e8 !important;
    filter: invert(34%) sepia(85%) saturate(2250%) hue-rotate(203deg) brightness(97%) contrast(92%) !important; /* Tinta #1a73e8 */
    transform: scale(1.05);
}

/* 7. SUBMENÚS MINIMALISTAS ESTRUCTURADOS */
ul.menu-sub {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    padding-left: 0.8rem !important;
}

ul.menu-sub li.menu-item {
    margin-bottom: 3px !important;
}

ul.menu-sub li.menu-item .menu-link {
    padding-left: 2.4rem !important;
    border-radius: 16px !important;
    margin: 1px 8px !important;
}

ul.menu-sub li.menu-item .menu-link::before {
    content: "";
    position: absolute;
    left: 1.4rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

ul.menu-sub li.menu-item:hover .menu-link::before,
ul.menu-sub li.menu-item.active .menu-link::before {
    background-color: #1a73e8 !important;
    transform: scale(1.5);
}

ul.menu-sub li.menu-item .menu-link div {
    color: #475569 !important;
    font-size: 0.86rem !important;
}

ul.menu-sub li.menu-item:hover .menu-link div,
ul.menu-sub li.menu-item.active .menu-link div {
    color: #1a73e8 !important;
    font-weight: 600 !important;
}

/* 8. BADGES DE NOTIFICACIONES ESTILO GOOGLE RED */
.badge.bg-danger {
    background-color: #d93025 !important; /* Rojo Google */
    box-shadow: 0 2px 5px rgba(217, 48, 37, 0.25) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.3em 0.65em !important;
    border-radius: 12px !important;
}

/* 9. PESTAÑA Y COMPORTAMIENTO RESPONSIVO MÓVIL (PRESERVACIÓN 100%) */
@media (max-width: 1199.98px) {
    /* Pestaña flotante circular para reatraer el menú en celulares y tablets */
    .app-brand .layout-menu-toggle {
        width: 36px !important;
        height: 36px !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 50% !important;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #334155 !important;
        transition: transform 0.2s ease, background-color 0.2s ease !important;
    }

    .app-brand .layout-menu-toggle:active {
        transform: scale(0.92) !important;
        background-color: #f1f5f9 !important;
    }

    #layout-menu {
        z-index: 1075 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    }
}
/* 2. EL FONDO (Ultra Transparente y Elegante) */
.swal2-backdrop-show {
    /* Opacidad al 20%: se nota el fondo pero con un tinte profesional */
    background: rgba(15, 23, 42, 0.2) !important; 
    /* El blur es la clave para que no se pierda el texto blanco */
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

/* 1. EL CONTENEDOR (Card Blanca) */
.swal2-popup {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    /* Aumentamos un poco la sombra ya que el fondo es más claro */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* 3. TEXTOS */
.swal2-title {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
}

.swal2-html-container {
    color: #475569 !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

/* 4. BOTONES (Estilo Clínica Elite) */
.swal2-actions {
    gap: 12px !important;
}

.swal2-confirm {
    background: #2563eb !important;
    border-radius: 14px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel {
    background: #dc2626 !important; 
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
}

/* 5. ICONOS */
.swal2-icon {
    margin-bottom: 1.2rem !important;
}

/* Limpieza de foco */
.swal2-styled:focus {
    box-shadow: none !important;
}
/* 1. EL CONTENEDOR (Ajuste de Alto y Ancho) */
.swal2-popup {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 2rem !important; /* Padding estándar para PC */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    width: 90% !important;
    max-width: 450px !important;
    overflow-y: hidden !important; /* Evita scroll innecesario */
}

/* 2. EL FONDO (Transparencia equilibrada) */
.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.2) !important; 
    backdrop-filter: blur(5px) !important;
}

/* 3. TEXTOS (Legibles pero compactos) */
.swal2-title {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important; /* Menos espacio debajo del título */
}

.swal2-html-container {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 1.05rem !important;
    margin: 0 !important; /* Elimina márgenes extra para reducir altura */
}

/* 4. BOTONES (Limpio y adaptado) */
.swal2-actions {
    margin-top: 1.5rem !important; /* Reducido para acortar el modal */
    gap: 12px !important;
}

.swal2-confirm, .swal2-cancel {
    border-radius: 14px !important;
    padding: 10px 20px !important; /* Botones un poco más delgados */
    font-weight: 700 !important;
}

/* --- SOLUCIÓN PARA EL ALTO EN CELULARES --- */
@media (max-width: 480px) {
    .swal2-popup {
        padding: 1.2rem !important; /* Padding mínimo para reducir altura total */
        border-radius: 20px !important;
    }

    /* Reducimos drásticamente el icono para ganar altura */
    .swal2-icon {
        transform: scale(0.7) !important; 
        margin-top: -10px !important; /* Sube el icono para ahorrar espacio */
        margin-bottom: 0.5rem !important;
    }

    .swal2-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.3rem !important;
    }

    .swal2-html-container {
        font-size: 0.95rem !important;
    }

    .swal2-actions {
        margin-top: 1rem !important;
        flex-direction: row !important; /* Mantiene botones lado a lado para ahorrar alto */
        justify-content: space-around !important;
    }

    .swal2-confirm, .swal2-cancel {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        flex: 1 !important; /* Se reparten el ancho pero en una misma fila */
    }
}

/* 5. ICONOS */
.swal2-icon {
    margin-bottom: 1rem !important;
}

.swal2-styled:focus {
    box-shadow: none !important;
}

/* 1. RESET Y ESTILO BASE UNIVERSAL */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
.form-control,
.form-select {
    height: 3.5rem !important;
    /* Altura estándar profesional */
    padding: 0.75rem 1.2rem !important;
    background-color: #f8fafc !important;
    /* Fondo Slate suave */
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #1e293b !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
}

/* 2. EFECTO DE FOCO (Cuando el usuario hace clic) */
input:focus,
.form-control:focus,
.form-select:focus {
    background-color: #ffffff !important;
    border-color: #4b5ace !important;
    /* Azul clínico */
    box-shadow: 0 0 0 4px rgba(75, 90, 206, 0.1) !important;
    outline: none !important;
}

/* 3. EXCELENCIA EN FORM-FLOATING (Si se usa) */
.form-floating {
    position: relative;
}

.form-floating>label {
    padding: 1rem 1.2rem !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease-in-out;
}

/* Efecto "Muesca" para etiquetas flotantes */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    transform: scale(0.85) translateY(-1.1rem) translateX(0.15rem) !important;
    background-color: #ffffff !important;
    padding: 0 8px !important;
    color: #4b5ace !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* 4. ESTILO PARA SELECTS (Dropdowns) */
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234b5ace' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-size: 14px !important;
}

/* 5. INPUTS ESPECIALES (Fechas y de Solo Lectura) */
input[type="date"] {
    cursor: pointer;
    color: #475569 !important;
}

.form-control[readonly],
.form-control:disabled {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
}

/* 6. PLACEHOLDERS */
::placeholder {
    color: #cbd5e1 !important;
    font-weight: 400;
}

/* 7. AJUSTE PARA GRUPOS DE ENTRADA (Input Groups) */
.input-group {
    border-radius: 12px;
    overflow: hidden;
}

.input-group .btn {
    border-radius: 0 12px 12px 0 !important;
    z-index: 4;
}

/* 1. CREAR ESPACIO PARA EL BOTÓN (Padding de la primera columna) */
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
    padding-left: 45px !important;
    /* Espacio suficiente para que el botón no toque el texto */
    position: relative;
}

/* 2. RE-POSICIONAMIENTO DEL BOTÓN (+) */
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    left: 12px !important;
    /* Lo alejamos del borde izquierdo */
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* Centrado vertical perfecto */
    content: "+" !important;
    background: #ffffff !important;
    color: #4b5ace !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 4px !important;
    height: 20px !important;
    width: 20px !important;
    line-height: 18px !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* 3. ESTILO CUANDO ESTÁ ABIERTO (-) */
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before {
    content: "−" !important;
    background-color: #4b5ace !important;
    color: #ffffff !important;
    border-color: #4b5ace !important;
}

/* 4. TBODY SIN REDONDEO (Mantenemos tu estilo premium) */
table.dataTable tbody tr {
    background-color: #ffffff !important;
    border-bottom: 1px solid #edf2f7 !important;
    transition: all 0.2s ease;
}

table.dataTable tbody tr:hover {
    background-color: #f1f5f9 !important;
}

/* Acento lateral al hacer hover */
table.dataTable tbody tr td:first-child {
    border-left: 0px solid #4b5ace !important;
    transition: border-width 0.15s ease-in-out;
}

table.dataTable tbody tr:hover td:first-child {
    border-left-width: 5px !important;
}

/* 5. ELIMINAR EL COLOR AZUL DE SELECCIÓN POR DEFECTO */
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:focus {
    outline: none !important;
}

/* 6. AJUSTE DE CELDAS PARA MÁXIMA LIMPIEZA */
table.dataTable tbody td {
    padding: 12px 18px !important;
    color: #1e293b !important;
    font-size: 0.88rem !important;
    vertical-align: middle !important;
}
body {
    /* Color de base: Blanco Hueso Profesional */
    background-color: #fcfdfe; 
    
    /* Gradiente de malla (Mesh Gradient) muy sutil en las esquinas */
    background-image: 
        radial-gradient(at 0% 0%, rgba(203, 213, 225, 0.3) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 40%),
        /* Sutil trama de líneas de escáner médico */
        linear-gradient(rgba(226, 232, 240, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.2) 1px, transparent 1px);
        
    /* Tamaño de la cuadrícula técnica */
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
    
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* Efecto de viñeta para centrar la atención */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(248, 250, 252, 0.6) 100%);
    pointer-events: none;
    z-index: -1;
}
/* 1. EL CONTENEDOR PRINCIPAL (Fondo Gris Suave) */
.select2-container .select2-selection--single {
    height: 58px !important;
    background-color: #f1f5f9 !important; /* Gris suave (tipo pizarra) */
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding-top: 14px !important;
    transition: all 0.3s ease !important;
}

/* 2. EL TEXTO (Color de alto contraste) */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    font-weight: 500 !important;
    padding-left: 15px !important;
}

/* 3. ESTADO EN FOCO / ABIERTO */
.select2-container--default.select2-container--open .select2-selection--single {
    background-color: #e2e8f0 !important; /* Gris un poco más intenso al abrir */
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* 4. LA FLECHA (Estilo minimalista) */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-top: 2px !important;
}

/* 5. EL MENÚ DESPLEGABLE (Gris a Blanco) */
.select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    margin-top: 5px !important; /* Separación elegante */
    overflow: hidden;
}

/* 6. RESULTADOS / OPCIONES */
.select2-results__option {
    padding: 12px 15px !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
}

/* Opción cuando pasas el mouse (Gris médico) */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f1f5f9 !important; /* Gris muy claro */
    color: #2563eb !important; /* Texto en azul médico para resaltar */
    font-weight: 600 !important;
}

/* Opción ya seleccionada */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* 7. BUSCADOR INTERNO (Fondo Gris) */
.select2-search--dropdown {
    padding: 10px !important;
    background-color: #f8fafc !important;
}

.select2-search--dropdown .select2-search__field {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px !important;
}
/* Contenedor del grupo */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

/* Ocultar el input original */
.radio-card input[type="radio"] {
    display: none;
}

/* El card contenedor */
.radio-card {
    cursor: pointer;
    display: block;
}

.radio-content {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* El círculo personalizado */
.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* El punto interno (se expande al seleccionar) */
.radio-circle::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

/* Texto del radio */
.radio-text {
    display: flex;
    flex-direction: column;
}

.radio-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.radio-desc {
    font-size: 0.8rem;
    color: #64748b;
}

/* --- ESTADOS DE SELECCIÓN --- */

/* Cuando está seleccionado */
.radio-card input[type="radio"]:checked + .radio-content {
    border-color: #3b82f6;
    background-color: #f0f7ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.radio-card input[type="radio"]:checked + .radio-content .radio-circle {
    border-color: #3b82f6;
}

.radio-card input[type="radio"]:checked + .radio-content .radio-circle::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Efecto Hover */
.radio-card:hover .radio-content {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* ==========================================================================
   PULXAR CLINICA EMR — MENÚ LATERAL MÉDICO CLARO CON TEXTURA
   Ámbito: Exclusivamente #layout-menu (0% impacto en el resto del sistema)
   Fondo: Blanco Clínico + Micro-textura Médica SVG Sutil
   ========================================================================== */

/* 1. CONTENEDOR PRINCIPAL DEL SIDEBAR Y TEXTURA EXCLUSIVA */
html body #layout-menu,
html body #layout-menu.bg-menu-theme,
html body aside#layout-menu {
    background-color: #ffffff !important;
    /* Micro-textura médica sutil de cuadrícula técnica en marcas de agua */
    background-image: 
        radial-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%) !important;
    background-size: 20px 20px, 100% 100% !important;
    border-right: 1px solid #e2e8f0 !important;
    /* Sombra proyectada exterior de alta definición (0px impacto en layout / profundidad 3D marcada) */
    box-shadow: 
        8px 0 28px -3px rgba(15, 23, 42, 0.16),
        4px 0 10px -2px rgba(15, 23, 42, 0.10),
        1px 0 3px 0 rgba(0, 0, 0, 0.06) !important;
    font-family: 'Public Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* 2. LOGO Y BRANDING (SIN AFECTAR TAMAÑO NI POSICIÓN) */
html body #layout-menu .app-brand {
    height: 70px !important;
    padding: 0.75rem 1.25rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
}

/* 3. ÁREA DE DESPLAZAMIENTO / SCROLLBAR */
html body #layout-menu .menu-inner {
    padding: 0.75rem 0 !important;
    background: transparent !important;
}
html body #layout-menu .menu-inner::-webkit-scrollbar {
    width: 4px;
}
html body #layout-menu .menu-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
html body #layout-menu .menu-inner-shadow { display: none !important; }

/* 4. ENCABEZADOS DE SECCIÓN */
html body #layout-menu .menu-header {
    margin-top: 1.4rem !important;
    margin-bottom: 0.4rem !important;
    padding-left: 1.4rem !important;
    padding-right: 1rem !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
}

html body #layout-menu .menu-header-text {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
}

html body #layout-menu .menu-header::after {
    content: "" !important;
    flex: 1 !important;
    height: 1px !important;
    background: #e2e8f0 !important;
    margin-left: 0.75rem !important;
}

/* 5. ENLACES Y TEXTO BASE DEL MENÚ */
html body #layout-menu .menu-inner {
    position: relative !important;
}

/* 🌊 CÁPSULA FLOTANTE DESLIZANTE (SLIDING ACTIVE PILL) */
html body #menu-active-pill {
    position: absolute !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
    border-radius: 12px !important;
    background-color: #eff6ff !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25), 0 2px 8px rgba(37, 99, 235, 0.08) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 0;
    transition: none !important;
}

html body #menu-active-pill.pill-animated {
    transition: top 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), height 0.22s ease, opacity 0.2s ease !important;
}

html body #layout-menu .menu-item .menu-link {
    padding: 0.62rem 1.1rem !important;
    margin: 3px 10px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
}

/* 💧 EFECTO ONDA NACARADA (MATERIAL MEDICAL RIPPLE) */
.menu-link-ripple {
    position: absolute !important;
    border-radius: 50% !important;
    background: rgba(37, 99, 235, 0.18) !important;
    transform: scale(0) !important;
    animation: medical-ripple 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    pointer-events: none !important;
    z-index: 3 !important;
}

@keyframes medical-ripple {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* 5b. FOCO NAVEGACIÓN POR TECLADO */
html body #layout-menu .menu-item .menu-link:focus-visible {
    outline: none !important;
    background-color: #f1f5f9 !important;
    box-shadow: inset 0 0 0 2px #2563eb !important;
}

html body #layout-menu .letra-menu,
html body #layout-menu .menu-link div,
html body #layout-menu .menu-link div b,
html body #layout-menu .menu-link .text-dark {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    letter-spacing: -0.1px !important;
    display: inline-block !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

/* 6. ÍCONOS ESTILO GOOGLE MATERIAL (BOXICONS VECTORIALES) */
html body #layout-menu .menu-icon,
html body #layout-menu .menu-icon.tf-icons {
    font-size: 1.25rem !important;
    width: 22px !important;
    height: 22px !important;
    margin-right: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    filter: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 7. ESTADO HOVER & CÁPSULA SUAVE 2D */
html body #layout-menu .menu-item .menu-link {
    transition: transform 0.22s cubic-bezier(0.34, 1.46, 0.64, 1), 
                background-color 0.2s ease, 
                box-shadow 0.2s ease !important;
}

html body #layout-menu .menu-item:not(.active) > .menu-link:hover {
    background-color: #f1f5f9 !important;
    transform: translateX(6px) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}

html body #layout-menu .menu-item:not(.active) > .menu-link:hover .letra-menu,
html body #layout-menu .menu-item:not(.active) > .menu-link:hover div {
    color: #0f172a !important;
    font-weight: 600 !important;
    transform: translateX(2px) !important;
}

/* 8. ÍTEM ACTIVO BASE (AZUL MÉDICO FORMAL) */
html body #layout-menu .menu-item.active > .menu-link {
    background-color: #eff6ff !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}

html body #layout-menu .menu-item.active > .menu-link .letra-menu,
html body #layout-menu .menu-item.active > .menu-link div {
    color: #2563eb !important;
    font-weight: 700 !important;
}

/* 9. SUBMENÚS */
html body #layout-menu ul.menu-sub {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-left: 0.5rem !important;
    margin-left: 1.3rem !important;
    border-left: 1.5px solid #e2e8f0 !important;
    background: transparent !important;
    list-style: none !important;
}

html body #layout-menu ul.menu-sub li.menu-item {
    margin-bottom: 2px !important;
}

html body #layout-menu ul.menu-sub li.menu-item .menu-link {
    padding-left: 1.8rem !important;
    border-radius: 10px !important;
    margin: 1px 6px !important;
}

html body #layout-menu ul.menu-sub li.menu-item .menu-link::before {
    content: "" !important;
    position: absolute !important;
    left: 0.9rem !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background-color: #cbd5e1 !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

html body #layout-menu ul.menu-sub li.menu-item:hover .menu-link::before,
html body #layout-menu ul.menu-sub li.menu-item.active .menu-link::before {
    background-color: #2563eb !important;
    transform: scale(1.4) !important;
}

html body #layout-menu ul.menu-sub li.menu-item .menu-link div,
html body #layout-menu ul.menu-sub li.menu-item .menu-link div b {
    color: #64748b !important;
    font-size: 0.84rem !important;
    font-weight: 450 !important;
}

html body #layout-menu ul.menu-sub li.menu-item:hover .menu-link div,
html body #layout-menu ul.menu-sub li.menu-item.active .menu-link div {
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* 10. BADGES DE NOTIFICACIONES */
html body #layout-menu .badge.bg-danger {
    background-color: #ef4444 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 0.28em 0.6em !important;
    border-radius: 10px !important;
}

/* 11. RESPONSIVE Y PESTAÑA DE REATRACCIÓN EN MÓVIL/TABLET */
@media (max-width: 1199.98px) {
    html body #layout-menu .app-brand .layout-menu-toggle {
        width: 34px !important;
        height: 34px !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 50% !important;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #334155 !important;
        transition: transform 0.2s ease, background-color 0.2s ease !important;
        text-decoration: none !important;
    }

    html body #layout-menu .app-brand .layout-menu-toggle:hover {
        background-color: #f1f5f9 !important;
        color: #2563eb !important;
    }

    html body #layout-menu .app-brand .layout-menu-toggle:active {
        transform: scale(0.92) !important;
    }

    html body #layout-menu {
        z-index: 1085 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }
}

/* ==========================================================================
   1. 💎 EFECTO BRILLO DE CRISTAL / REFLEJO DE VIDRIO SOBRE EL LOGO
   ========================================================================== */
.logo-shimmer-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    padding: 4px !important;
}

.logo-glass-sheen {
    position: absolute !important;
    top: -60% !important;
    left: -160% !important;
    width: 90% !important;
    height: 220% !important;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.08) 75%,
        transparent 100%
    ) !important;
    transform: rotate(25deg) !important;
    pointer-events: none !important;
    z-index: 10 !important;
    opacity: 0;
}

.logo-shimmer-wrapper.shimmer-active .logo-glass-sheen {
    animation: logo-glass-sweep 1.25s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes logo-glass-sweep {
    0% {
        left: -160%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        left: 220%;
        opacity: 0;
    }
}

/* ==========================================================================
   2. 🔍 MAGNIFICACIÓN LENTE 2D (ESTILO macOS DOCK) Y ALEGORÍAS MULTICOLORES
   ========================================================================== */

/* Animación fluida de la cápsula al pasar el cursor */
html body #layout-menu .menu-item > .menu-link {
    transition: transform 0.22s cubic-bezier(0.34, 1.46, 0.64, 1), 
                background-color 0.2s ease, 
                box-shadow 0.2s ease !important;
}

html body #layout-menu .menu-item > .menu-link .menu-icon,
html body #layout-menu .menu-item > .menu-link .menu-icon.tf-icons {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
                color 0.2s ease, 
                filter 0.25s ease !important;
}

/* Efecto Lente de Magnificación 2D al hacer hover */
html body #layout-menu .menu-item:not(.active) > .menu-link:hover {
    transform: translateX(8px) scale(1.025) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1) !important;
}

html body #layout-menu .menu-item:not(.active) > .menu-link:hover .menu-icon,
html body #layout-menu .menu-item:not(.active) > .menu-link:hover .menu-icon.tf-icons {
    transform: scale(1.35) rotate(-3deg) !important;
}

/* ── Categoría 1: Servicio Médico / Consultorio (Cian Electrónico) ── */
html body #layout-menu .menu-item[data-cat="medico"] > .menu-link:hover .menu-icon,
html body #layout-menu .menu-item[data-cat="medico"] > .menu-link:hover .menu-icon.tf-icons,
html body #layout-menu .menu-item[data-cat="medico"].active > .menu-link .menu-icon,
html body #layout-menu .menu-item[data-cat="medico"].active > .menu-link .menu-icon.tf-icons {
    color: #0284c7 !important;
    filter: drop-shadow(0 0 6px rgba(2, 132, 199, 0.6)) !important;
}
html body #layout-menu .menu-item[data-cat="medico"].active > .menu-link {
    background-color: #f0f9ff !important;
    box-shadow: inset 0 0 0 1.5px rgba(2, 132, 199, 0.35), 0 4px 14px rgba(2, 132, 199, 0.14) !important;
}
html body #layout-menu .menu-item[data-cat="medico"].active > .menu-link .letra-menu,
html body #layout-menu .menu-item[data-cat="medico"].active > .menu-link div {
    color: #0369a1 !important;
    font-weight: 700 !important;
}

/* ── Categoría 2: Pacientes / Triaje (Verde Esmeralda Menta) ── */
html body #layout-menu .menu-item[data-cat="paciente"] > .menu-link:hover .menu-icon,
html body #layout-menu .menu-item[data-cat="paciente"] > .menu-link:hover .menu-icon.tf-icons,
html body #layout-menu .menu-item[data-cat="paciente"].active > .menu-link .menu-icon,
html body #layout-menu .menu-item[data-cat="paciente"].active > .menu-link .menu-icon.tf-icons {
    color: #059669 !important;
    filter: drop-shadow(0 0 6px rgba(5, 150, 105, 0.6)) !important;
}
html body #layout-menu .menu-item[data-cat="paciente"].active > .menu-link {
    background-color: #ecfdf5 !important;
    box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, 0.35), 0 4px 14px rgba(16, 185, 129, 0.14) !important;
}
html body #layout-menu .menu-item[data-cat="paciente"].active > .menu-link .letra-menu,
html body #layout-menu .menu-item[data-cat="paciente"].active > .menu-link div {
    color: #047857 !important;
    font-weight: 700 !important;
}

/* ── Categoría 3: Administración / Usuarios (Violeta Iris) ── */
html body #layout-menu .menu-item[data-cat="admin"] > .menu-link:hover .menu-icon,
html body #layout-menu .menu-item[data-cat="admin"] > .menu-link:hover .menu-icon.tf-icons,
html body #layout-menu .menu-item[data-cat="admin"].active > .menu-link .menu-icon,
html body #layout-menu .menu-item[data-cat="admin"].active > .menu-link .menu-icon.tf-icons {
    color: #7c3aed !important;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.6)) !important;
}
html body #layout-menu .menu-item[data-cat="admin"].active > .menu-link {
    background-color: #f5f3ff !important;
    box-shadow: inset 0 0 0 1.5px rgba(139, 92, 246, 0.35), 0 4px 14px rgba(139, 92, 246, 0.14) !important;
}
html body #layout-menu .menu-item[data-cat="admin"].active > .menu-link .letra-menu,
html body #layout-menu .menu-item[data-cat="admin"].active > .menu-link div {
    color: #6d28d9 !important;
    font-weight: 700 !important;
}

/* ── Categoría 4: Reportes / Notificaciones (Rosa Coral) ── */
html body #layout-menu .menu-item[data-cat="reportes"] > .menu-link:hover .menu-icon,
html body #layout-menu .menu-item[data-cat="reportes"] > .menu-link:hover .menu-icon.tf-icons,
html body #layout-menu .menu-item[data-cat="reportes"].active > .menu-link .menu-icon,
html body #layout-menu .menu-item[data-cat="reportes"].active > .menu-link .menu-icon.tf-icons {
    color: #e11d48 !important;
    filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.6)) !important;
}
html body #layout-menu .menu-item[data-cat="reportes"].active > .menu-link {
    background-color: #fff1f2 !important;
    box-shadow: inset 0 0 0 1.5px rgba(225, 29, 72, 0.35), 0 4px 14px rgba(225, 29, 72, 0.14) !important;
}
html body #layout-menu .menu-item[data-cat="reportes"].active > .menu-link .letra-menu,
html body #layout-menu .menu-item[data-cat="reportes"].active > .menu-link div {
    color: #be123c !important;
    font-weight: 700 !important;
}

/* ── Categoría 5: Caja / Facturación / Apps (Ámbar Dorado) ── */
html body #layout-menu .menu-item[data-cat="caja"] > .menu-link:hover .menu-icon,
html body #layout-menu .menu-item[data-cat="caja"] > .menu-link:hover .menu-icon.tf-icons,
html body #layout-menu .menu-item[data-cat="caja"].active > .menu-link .menu-icon,
html body #layout-menu .menu-item[data-cat="caja"].active > .menu-link .menu-icon.tf-icons {
    color: #d97706 !important;
    filter: drop-shadow(0 0 6px rgba(217, 119, 6, 0.6)) !important;
}
html body #layout-menu .menu-item[data-cat="caja"].active > .menu-link {
    background-color: #fffbeb !important;
    box-shadow: inset 0 0 0 1.5px rgba(217, 119, 6, 0.35), 0 4px 14px rgba(217, 119, 6, 0.14) !important;
}
html body #layout-menu .menu-item[data-cat="caja"].active > .menu-link .letra-menu,
html body #layout-menu .menu-item[data-cat="caja"].active > .menu-link div {
    color: #b45309 !important;
    font-weight: 700 !important;
}
