/* ═══════════════════════════════════════════════════════════════
           PERFIL - ESTILOS MEJORADOS CON PATRONES UX/UI MODERNOS
        ═══════════════════════════════════════════════════════════════ */

/* Variables CSS para consistencia */
:root {
    --profile-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --profile-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --profile-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --profile-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --profile-radius: 12px;
    --profile-gap: 1.5rem;
}

/* Card del perfil mejorada */
.profile-card-enhanced {
    background: linear-gradient(195deg, #54A7B8 0%, #39828C 100%);
    border-radius: var(--profile-radius);
    box-shadow: var(--profile-shadow-md);
    transition: var(--profile-transition);
    position: relative;
    overflow: hidden;
}

.profile-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.profile-card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: var(--profile-shadow-lg);
}

/* Avatar mejorado */
.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--profile-transition);
}

.profile-avatar:hover img {
    transform: scale(1.05);
    border-color: #fff;
}

/* Badge de estado mejorado */
.status-badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--profile-transition);
    animation: slideInUp 0.5s ease-out;
}

.status-badge-enhanced.success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge-enhanced.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge-enhanced .material-icons-round {
    font-size: 14px;
}

/* Datos del perfil en la sidebar */
.profile-data-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    transition: var(--profile-transition);
}

.profile-data-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.profile-data-item .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-data-item .value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-data-item .value .material-icons-round {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.profile-text-white {
    color: #fff;
}

.profile-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 1.5rem 0;
}

/* Cards de información mejoradas */
.info-card-enhanced {
    background: #fff;
    border-radius: var(--profile-radius);
    box-shadow: var(--profile-shadow-sm);
    transition: var(--profile-transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.info-card-enhanced:hover {
    box-shadow: var(--profile-shadow-md);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Título de sección mejorado */
.section-title-enhanced {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title-enhanced .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(195deg, #54A7B8 0%, #39828C 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.section-title-enhanced .material-icons-round {
    font-size: 20px;
    color: #fff;
}

/* Grid de datos mejorado */
.data-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* Item de dato mejorado */
.data-item-enhanced {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    transition: var(--profile-transition);
    border: 1px solid transparent;
}

.data-item-enhanced:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.data-item-enhanced .label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.data-item-enhanced .value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.data-item-enhanced .value .material-icons-round {
    font-size: 18px;
    color: #667eea;
}

.data-item-enhanced.empty-state {
    background: #fef3c7;
    border-color: #fde68a;
}

.data-item-enhanced.empty-state .value {
    color: #92400e;
    font-style: italic;
    font-size: 0.85rem;
}

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

/* Cards de documentos mejoradas */
.document-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--profile-transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: var(--profile-transition);
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--profile-shadow-md);
    border-color: #667eea;
}

.document-card:hover::before {
    opacity: 1;
}

.document-card:active {
    transform: translateY(-2px);
}

.document-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: var(--profile-transition);
}

.document-card:hover .document-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.document-icon-wrapper .material-symbols-rounded {
    font-size: 32px;
    color: #fff;
}

.document-card .document-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .data-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
}

/* Toast notification styles */
.swal2-popup {
    border-radius: var(--profile-radius) !important;
}
.btn-outline-primary.custom-hover:hover {
    background-color: #0d6efd !important;;
    color: #fff !important;;
    border-color: #0d6efd;
}

.btn-info.custom-hover:hover {
    background-color: #fff !important;;
    color: #0a58ca !important;;
    border-color: #0a58ca !important;
    box-shadow: 0 14px 26px -12px rgba(26, 115, 232, 0.4), 0 4px 23px 0 rgba(26, 115, 232, 0.15), 0 8px 10px -5px rgba(26, 115, 232, 0.2);
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
}

.btn-secondary.custom-hover:hover {
    background-color: #fff !important;;
    color: #7b809a !important;;
    border-color: #7b809a !important;
    box-shadow: 0 14px 26px -12px rgba(123, 128, 154, 0.4), 0 4px 23px 0 rgba(123, 128, 154, 0.15), 0 8px 10px -5px rgba(123, 128, 154, 0.2);
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
}

.btn-danger.custom-hover:hover {
    background-color: #fff !important;;
    color: #F44335 !important;;
    border-color: #F44335 !important;
    box-shadow: 0 14px 26px -12px rgba(244, 67, 53, 0.4), 0 4px 23px 0 rgba(244, 67, 53, 0.15), 0 8px 10px -5px rgba(244, 67, 53, 0.2);
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
}



.info_reg{
    display: none;
}

#mensajes{
    display:none;
}

.password-toggle-icon {
    position: absolute;
    top: 60%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle-icon i {
    font-size: 18px;
    line-height: 1;
    color: #333;
    transition: color 0.3s ease-in-out;
}

.password-toggle-icon i:hover {
    color: #000;
}

.password-toggle-icon-confirm {
    position: absolute;
    top: 60%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle-icon-confirm i {
    font-size: 18px;
    line-height: 1;
    color: #333;
    transition: color 0.3s ease-in-out;
}

.password-toggle-icon-confirm i:hover {
    color: #000;
}

.ag-format-container {
    width: 1142px;
    margin: 0 auto;
}


body {
    background-color: #000;
}
.ag-courses_box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    padding: 50px 0;
}
.ag-courses_item {
    -ms-flex-preferred-size: calc(33.33333% - 30px);
    flex-basis: calc(33.33333% - 30px);

    margin: 0 15px 30px;

    overflow: hidden;

    border-radius: 28px;
}
.ag-courses-item_link {
    display: block;
    padding: 30px 20px;
    background-color: #121212;

    overflow: hidden;

    position: relative;
}
.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
    text-decoration: none;
    color: #FFF;
}
.ag-courses-item_link:hover .ag-courses-item_bg {
    -webkit-transform: scale(10);
    -ms-transform: scale(10);
    transform: scale(10);
}
.ag-courses-item_title {
    min-height: 87px;
    margin: 0 0 25px;

    overflow: hidden;

    font-weight: bold;
    font-size: 30px;
    color: #FFF;

    z-index: 2;
    position: relative;
}
.ag-courses-item_date-box {
    font-size: 18px;
    color: #FFF;

    z-index: 2;
    position: relative;
}
.ag-courses-item_date {
    font-weight: bold;
    color: #f9b234;

    -webkit-transition: color .5s ease;
    -o-transition: color .5s ease;
    transition: color .5s ease
}
.ag-courses-item_bg {
    height: 128px;
    width: 128px;
    background-color: #39828C;

    z-index: 1;
    position: absolute;
    top: -75px;
    right: -75px;

    border-radius: 50%;

    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}
.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
    background-color: #3ecd5e;
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
    background-color: #e44002;
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
    background-color: #952aff;
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
    background-color: #cd3e94;
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
    background-color: #4c49ea;
}

/*.btn-info:hover:not(.active) {*/
/*    transform: scale(.95);*/
/*    background-color: #1A73E8 !important;*/
/*    color: #FFFFFF !important;*/
/*}*/

.dropdown-toggle {
    margin-top: 0 !important;
}


@media only screen and (max-width: 979px) {
    .ag-courses_item {
        -ms-flex-preferred-size: calc(50% - 30px);
        flex-basis: calc(50% - 30px);
    }
    .ag-courses-item_title {
        font-size: 24px;
    }
}

@media only screen and (max-width: 767px) {
    .ag-format-container {
        width: 96%;
    }

}
@media only screen and (max-width: 639px) {
    .ag-courses_item {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    }
    .ag-courses-item_title {
        min-height: 72px;
        line-height: 1;

        font-size: 24px;
    }
    .ag-courses-item_link {
        padding: 22px 40px;
    }
    .ag-courses-item_date-box {
        font-size: 16px;
    }
}

.botonMT {
    min-height: 60px;
    font-size: 14px;
    width: 100%;
}
/* Pasos del formulario */
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.step {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.step .circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.step.active .circle,
.step.completed .circle {
    background: #0d6efd;
    color: #fff;
}

.step .label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

@media (max-width: 576px) {
    .step .label {
        font-size: 0.75rem;
    }

    .step .circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

.custom-alert {
    color: white !important;
    font-weight: 700;
}

.custom-alert i {
    color: white !important;
    font-weight: 700;
}

.custom-alert {
    padding: 0.35rem 0.75rem !important;
    font-size: 1rem;
    line-height: 1.2;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

#progreso {
    width: 100%;
    height: 25px;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
}
#barra {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    text-align: center;
    color: white;
    line-height: 25px;
}

.proceso {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
}

 .sidenav-toggler-inner {
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     width: 24px;
     height: 18px;
 }

.sidenav-toggler-line {
    height: 3px;
    width: 100%;
    background-color: #000; /* usa #fff si tu fondo es oscuro */
    border-radius: 2px;
}

td.text-center {
    max-width: 200px;
    max-height: 70px;
    overflow: auto;
    white-space: normal;
    word-wrap: break-word;
}

#bitacoraTable td {
    white-space: normal !important;
    word-break: break-word;
    max-width: 500px;
}
#sidenav-main {
    transition: all 0.3s ease-in-out;
    width: 250px;
    opacity: 1;
    visibility: visible;
}

#sidenav-main.collapsed {
    width: 0;
    opacity: 0;
    visibility: hidden;
}
.circle.error-step {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.6);
}
.circle.success-step {
    background-color: #198754 !important; /* verde */
    border-color: #198754 !important;
    color: #fff !important;
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.6);
}

.icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.file-slot { border: 1px solid #e6eef3; border-radius: .5rem; padding: .6rem; background:#fff; display:flex; gap:.75rem; align-items:flex-start; }
.file-meta { flex:1 1 auto; min-width:0; }
.file-actions { display:flex; gap:.5rem; align-items:center; }
.pdf-preview { width: 100%; height: 420px; border: 1px solid #cfd8dc; border-radius: .375rem; }
.required::after { content: " *"; color: #f44336; }
.small-muted { font-size:.85rem; color:#6c757d; }
.label-input { max-width:320px; }
.slot-header { font-weight:600; margin-bottom:.25rem; }

.chart-container.afiliacionesChart{
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px; /* Altura mínima para asegurar visibilidad */
}

.card-body,
.p-0,
.container {
    height: 100%;
}

.card.mb-4.flex-fill {
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1 1 auto;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Flechas negras solo para el carousel de la izquierda */
#iconsCarousel .carousel-control-prev,
#iconsCarousel .carousel-control-next {
    position: relative;
    width: auto;
    margin: 0 10px;
}
#iconsCarousel .carousel-control-prev-icon,
#iconsCarousel .carousel-control-next-icon {
    filter: invert(100%) grayscale(100%) brightness(0);
}

/* Estilos para la Gráfica Radial */
.radial-progress {
    --percentage: 0; /* Se sobreescribe con Thymeleaf */
    --size: 150px;
    --thickness: 15px;
    --color: #0d6efd; /* primary de bootstrap */

    width: var(--size);
    height: var(--size);
    display: grid;
    place-content: center;
    border-radius: 50%;
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color);
    /* Gradiente cónico para el efecto de progreso */
    background: radial-gradient(closest-side, white 80%, transparent 0 99.9%, white 0),
    conic-gradient(var(--color) calc(var(--percentage) * 1%), #e9ecef 0);
}

.radial-progress::after {
    content: counter(percentage) "%";
    counter-reset: percentage var(--percentage);
}

/* Variables actualizadas para responsividad */
:root {
    --gauge-value: 0;
    --gauge-rotation: calc((var(--gauge-value) / 10) * 180deg);
    --primary-color: #3b82f6;
    --secondary-color: #64748b;
    --secondary-color: #64748b;
    --danger-color: #ef4444;
}

.gauge-wrapper {
    position: relative;
    width: 100%;           /* Ocupa el ancho del contenedor */
    max-width: 280px;      /* Límite máximo para que no se deforme en pantallas grandes */
    aspect-ratio: 2 / 1;   /* Mantiene la proporción de semicírculo automáticamente */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 auto;        /* Centrado horizontal */
}

/* El semicírculo de fondo ahora es responsivo */
.gauge-body {
    position: absolute;
    top: 0;
    width: 100%;
    height: 200%;          /* El doble del wrapper para formar el círculo completo */
    border-radius: 50%;
    background: conic-gradient(
            from 270deg,
            #dc3545 0deg,  /* Rojo */
            #ffc107 90deg,   /* Amarillo */
            #198754 180deg,  /* Verde */
            #e9ecef 180deg
    );
    /* Ajuste de la máscara para que el grosor sea proporcional */
    mask: radial-gradient(circle, transparent 65%, white 66%);
    -webkit-mask: radial-gradient(circle, transparent 65%, white 66%);
}

/* La Aguja responsiva */
.gauge-needle {
    position: absolute;
    bottom: 0;
    width: 2%;             /* Ancho relativo al contenedor */
    min-width: 3px;
    height: 90%;           /* Altura relativa al wrapper */
    background: #212529;
    border-radius: 4px;
    transform-origin: bottom center;
    transform: rotate(calc(var(--gauge-rotation) - 90deg));
    transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 10;
}

/* Centro de la aguja */
.gauge-center {
    position: absolute;
    bottom: -5%;           /* Posicionamiento relativo */
    width: 10%;            /* Tamaño relativo */
    aspect-ratio: 1 / 1;
    min-width: 15px;
    background: #212529;
    border-radius: 50%;
    z-index: 11;
}

/* Etiquetas responsivas */
.gauge-labels {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 10px 5% 0;    /* Padding lateral porcentual */
    font-weight: bold;
    color: #6c757d;
    font-size: 0.8rem;     /* Tamaño de fuente ajustable */
}

.logo-sismi{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 10px 0;
    text-decoration: none;
    cursor: pointer;
}

.logo-sismi img{
    height: 70px;
    width: auto;
    display: block;
}

.select2-container--bootstrap-5 .select2-selection {
    border: none !important;
    background-color: transparent !important;
}
.input-group-outline.is-filled .select2-container {
    margin-top: 5px;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 12px !important;
    color: #495057;
}

/* Permite que el texto del select se ajuste al contenido y no se corte */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.2 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Ajusta la altura del contenedor para que crezca con el texto */
.select2-container .select2-selection--single {
    height: auto !important;
    min-height: 40px !important;
}

/* Alinea el label cuando el select crece */
.input-group-outline.is-filled .form-label {
    background-color: white;
}

.profile-card { text-align: center; }
.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: scale-down;
    border: 4px solid #f1f5f9;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #dcfce7;
    color: #166534;
}

.status-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.success {
    background: #dcfce7;
    color: #166534;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

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

.data-item { display: flex; flex-direction: column; }
.label { font-size: 0.75rem; color: #64748b; font-weight: 500; margin-bottom: 4px; }
.value { font-size: 0.95rem; font-weight: 600; color: #334155; }

.icon-value { display: flex; align-items: center; gap: 8px; }
.icon-value i { color: var(--primary-color); width: 16px; }

.emergency { color: var(--danger-color) !important; }
.full-width { grid-column: 1 / -1; }

.strength-meter { height: 6px; background-color: #e9ecef; border-radius: 3px; overflow: hidden; }
.strength-meter-fill { height: 100%; width: 0%; transition: all 0.4s ease; }
.strength-text { font-size: 0.75rem; font-weight: 700; margin-top: 5px; text-transform: uppercase; }

.bg-weak { background-color: #dc3545 !important; }
.bg-medium { background-color: #ffc107 !important; }
.bg-strong { background-color: #198754 !important; }

.requirement-item { font-size: 0.8rem; color: #adb5bd; transition: 0.3s; }
.requirement-item.valid { color: #198754; font-weight: 500; }
.input-group-text { cursor: pointer; background: transparent; border-left: none; }
.has-feedback input { border-right: none; }

.icon-shape {
    width: 48px;
    height: 48px;
    background-position: center;
    border-radius: 0.75rem;
}

btn-pdf-download {
    transition: all 0.3s ease;
}

.btn-pdf-download:hover {
    transform: scale(1.2);
    color: #dc3545 !important;
}

.atencion-general { border-left: 5px solid #7928ca; }
.atencion-especialidad { border-left: 5px solid #2dce89; }
.atencion-urgencia { border-left: 5px solid #f5365c; }

/* ═══════════════════════════════════════════════════════════════
           ESTILOS PARA CAMPOS EDITABLES
        ═══════════════════════════════════════════════════════════════ */

.campo-editable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.campo-editable:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6 !important;
}

.campo-editable:hover .edit-icon {
    opacity: 1;
    transform: translateX(0);
}

.edit-icon {
    font-size: 14px !important;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
    color: #3b82f6;
}

.campo-vacio {
    color: #f59e0b !important;
    font-style: italic;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #f59e0b;
}

/* Modal mejorado */
.modal-header-custom {
    background: linear-gradient(195deg, #54A7B8 0%, #39828C 100%);
    color: white;
    border-bottom: none;
}

.modal-header-custom .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body-custom {
    padding: 2rem;
}

.form-label-custom {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label-custom .material-icons-round {
    font-size: 18px;
    color: #3b82f6;
}

.form-control-custom {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-guardar-custom {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-guardar-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-cancelar-custom {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-cancelar-custom:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Tooltip info */
.campo-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.campo-info .material-icons-round {
    font-size: 14px;
}