﻿html {
  font-size: 14px;
}

:root {
    --font-table: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --sidebar-width: 310px;
    --sidebar-collapsed-width: 60px;
}

.modal {
    z-index: 1055 !important;
    position: fixed !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

#toastContainer {
    z-index: 2000 !important;
    position: fixed;
    top: 1rem;
    right: 1rem;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
    main {
        padding-bottom: 60px; /* Ajuste según la altura del menú */
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    background-size: cover; /* Asegura que la imagen cubra todo el fondo sin distorsionarse */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* Opcional: Mantiene la imagen fija al hacer scroll */
}

body, html {
    overflow-x: hidden;
}


#principal {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.90); /* Blanco con 50% de transparencia */
}

/* Estilo general del scrollbar */
.card-body::-webkit-scrollbar {
    width: 8px;
}

/* Color del "thumb" (la parte que se mueve) */
.card-body::-webkit-scrollbar-thumb {
    background-color: #6c757d; /* Gris Bootstrap */
    border-radius: 4px;
}

/* Color del track (fondo del scrollbar) */
.card-body::-webkit-scrollbar-track {
    background-color: #e9ecef; /* Gris claro */
    border-radius: 4px;
}

/* Efecto al pasar el mouse */
.card-body::-webkit-scrollbar-thumb:hover {
    background-color: #495057; /* Gris oscuro al pasar el mouse */
}

body {
    font-family: 'Inter', Arial, sans-serif;
}

.sidebar {
    background: #f4f4f5;
    min-height: 100vh;
    min-width: 230px;
    box-shadow: 1px 0 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

    .sidebar .nav-link,
    .sidebar .dropdown-item {
        color: #444;
        font-size: 1rem;
        border-radius: .8em;
        margin-bottom: 2px;
        padding: .7em 1em .7em .8em;
        transition: background .18s, color .18s;
        display: flex;
        align-items: center;
        gap: .9em;
    }

        .sidebar .nav-link.active,
        .sidebar .dropdown-item.active,
        .sidebar .nav-link:hover {
            background: #e0e7ff;
            color: #111 !important;
            font-weight: 600;
        }

        .sidebar .nav-link i,
        .sidebar .dropdown-item i {
            font-size: 1.2em;
        }

    .sidebar hr {
        border-top: 1.5px solid #ddd;
        margin: 8px 0 14px;
    }


.sidebar-footer {
    margin-top: auto;
    padding: 0.8em 0.2em 0.2em 0.2em;
    background: transparent;
}

    .sidebar-footer .avatar {
        width: 45px;
        height: 45px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #e0e7ff;
        margin-right: 0.8em;
    }

    .sidebar-footer .username {
        font-size: .98em;
        font-weight: 500;
        color: #2d2d36;
        margin-right: 0.6em;
    }

    .sidebar-footer .btn {
        padding: .25em .9em;
        font-size: .97em;
    }

.text-avatar {
    width: 45px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e0e7ff;
    margin-right: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1; /* <-- evita altura extra */
    overflow: hidden;
    padding: 0;
}

.mobile-bottom-nav {
    z-index: 1030;
    border-top: 1.5px solid #eee;
    background: rgba(255,255,255, 0.82); /* Glass effect */
    backdrop-filter: blur(10px);
    box-shadow: 0 0 14px 2px rgba(50,50,90,0.11);
    /* Eliminar margen del navegador */
    margin: 0;
}

.glass-nav {
    border-radius: 18px 18px 0 0;
    left: 4px;
    right: 4px;
    bottom: 4px;
    width: calc(100% - 8px);
    box-shadow: 0 6px 24px 0 rgba(80,80,160,0.10);
}

.mobile-bottom-nav .d-flex {
    gap: 0.3em;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6366f1;
    font-size: 1em;
    transition: all 0.17s cubic-bezier(.4,2,.3,1);
    padding: 0 0.1em;
    position: relative;
    border-radius: 100px;
    min-width: 54px;
    /* touch size */
}

    .mobile-nav-btn .icon-bg {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-bottom: 1px;
        font-size: 1.6em;
        transition: background .18s, box-shadow .18s;
    }


    .mobile-nav-btn.active {
        color: #4f46e5 !important;
    }

        .mobile-nav-btn.active .icon-bg {
            background: #6366f1 !important; /* fondo morado */
            color: #fff !important; /* icono blanco */
            box-shadow: 0 4px 14px 0 rgba(99,102,241,.14);
        }
    .mobile-nav-btn.active {
        color: inherit !important; /* así hereda el blanco del icon-bg */
    }

@media (max-width: 767.98px) {
    .fixed-bottom .nav-link.active .icon-bg i {
        color: #fff !important;
    }
}

    .mobile-nav-btn:active .icon-bg, .mobile-nav-btn:hover .icon-bg {
        background: #e0e7ff;
    }

    .mobile-nav-btn .nav-text {
        font-size: 0.70em;
        margin-top: 2px;
        color: #606486;
        letter-spacing: 0.02em;
    }

    .mobile-nav-btn.active .nav-text {
        color: #4f46e5;
        font-weight: 600;
    }

@media (max-width: 600px) {
    .glass-nav {
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }
}


@media (max-width: 767px) {
    .sidebar {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    transition: width 0.22s;
    z-index: 1040;
}

.main-content {
    /* sólo margen, sin width fijo */
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    transition: margin-left 0.22s;
    /* para que aparezca scroll interno si hace falta */
    overflow-y: auto;
    height: 100vh;
}


/* Estado inicial: sin transición para width ni margin-left */
.sidebar-colapsed-init .sidebar,
.sidebar-colapsed-init .main-content {
    transition: none !important;
}

/* Sidebar colapsado: ancho reducido */
#sidebar.sidebar-collapsed {
    width: var(--sidebar-collapsed-width) !important;
    min-width: var(--sidebar-collapsed-width) !important;
}

    /* Ocultar todo el contenido colapsado excepto el toggle */
    #sidebar.sidebar-collapsed .nav-link span,
    #sidebar.sidebar-collapsed .dropdown-item span,
    #sidebar.sidebar-collapsed .username,
    #sidebar.sidebar-collapsed .sidebar-footer hr,
    #sidebar.sidebar-collapsed .nav-link .bi-chevron-down {
        display: none !important;
    }
    /* Centrar avatar */
    #sidebar.sidebar-collapsed .avatar {
        margin: 0 auto !important;
        display: block;
    }
    /* Justificar íconos */
    #sidebar.sidebar-collapsed .nav-link,
    #sidebar.sidebar-collapsed .dropdown-item {
        justify-content: center !important;
        padding-left: 0.5em !important;
        padding-right: 0.5em !important;
    }
    /* Esconder sólo el botón Salir del footer */
    #sidebar.sidebar-collapsed .sidebar-footer .btn {
        display: none !important;
    }

/* Main contraído cuando el sidebar está colapsado */
.main-content-collapsed {
    margin-left: var(--sidebar-collapsed-width) !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.logo-toggle-wrapper .sidebar-toggle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* ajustar “0.5rem” si quieres más separación horizontal */
}

.sidebar-header {
    /* igual altura que tu logo (o la que quieras) */
    height: 80px;
    /* si tu logo ocupa 120px, pon 120px aquí */
    /* height: 120px; */
    background: #f4f4f5; /* mismo fondo que la sidebar */
    /*border-bottom: 1px solid #ddd;*/
}

    /* Asegura que el logo no desborde */
    .sidebar-header .logo-wrapper img {
        max-height: 100%;
        height: auto;
        display: block;
    }

    /* El toggle no se encoge */
    .sidebar-header .sidebar-toggle-btn {
        flex-shrink: 0;
        z-index: 1100;
    }

/* Ajuste mobile (lo tenías bien) */
@media (max-width: 767px) {
    .main-content, .main-content-collapsed {
        margin-left: 0 !important;
        width: 100vh;
        padding: 0rem;
    }
}


@media (max-width: 767.98px) {

    .container-fluid {
        padding-right: 0 !important;
        padding-left: 0 !important;
        overflow:hidden;
    }

    .ajustMarginTop {
        margin-top: 0 !important;
    }

}


/* Scrollbar moderna sin flechas */
::-webkit-scrollbar {
    width: 8px; /* tamaño finito y limpio */
    height: 8px;
}

/* Elimina flechas (en algunos navegadores modernos ya no aparecen) */
::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

/* Track (fondo de la barra) */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Pulgarcito (lo que mueves) */
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

    /* Hover en el pulgarcito */
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

@media (max-width: 767.98px) {
    .ajustMarginBottomMovil {
        margin-bottom: 60px; /* Altura del nav inferior */
    }
}

@media (max-width: 767.98px) {
    nav.fixed-bottom .dropdown-toggle::after {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .fixed-bottom .nav-link.active i {
        color: #0d6efd; /* Bootstrap primary */
    }

    .fixed-bottom .nav-link.active {
        font-weight: bold;
        color: #0d6efd;
    }
}

.nav-tabs {
    border-bottom: none;
    background: #f5f7fa;
    padding: 0.7rem 0 0.4rem 0;
    border-radius: 1.2rem 1.2rem 0 0;
    box-shadow: 0 4px 18px -6px rgba(40,48,80,0.10);
    position: relative;
    overflow-x: auto;
    scrollbar-width: thin;
}

    .nav-tabs:after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 0;
        height: 2px;
        background: #dee2e6;
        z-index: 0;
        border-radius: 2px;
    }

    .nav-tabs .nav-link {
        border: none;
        text-decoration: none; /* Quita el subrayado */
        border-radius: 0.9rem 0.9rem 0 0;
        background: transparent;
        color: #2a2f3c;
        font-weight: 500;
        padding: 0.7rem 2rem 0.7rem 2rem;
        position: relative;
        transition: color .22s, background .16s;
        z-index: 1;
        outline: none !important;
        margin: 0 0.2rem;
    }

        .nav-tabs .nav-link:after {
            content: "";
            display: block;
            position: absolute;
            left: 1.2rem;
            right: 1.2rem;
            bottom: 7px;
            height: 3.5px;
            border-radius: 2.5px;
            background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%); /* azul degradado */
            opacity: 0;
            transform: scaleX(0.4);
            transition: all .26s cubic-bezier(.4,0,.2,1);
            z-index: 2;
        }

        .nav-tabs .nav-link.active,
        .nav-tabs .nav-link:focus,
        .nav-tabs .nav-link:hover 
        {
            color: #000;
            background: #eaf2fb; /* azul MUY suave, casi blanco */
        }

        .nav-tabs .nav-link.active {
            font-weight: 600;
            box-shadow: 0 6px 18px -7px rgba(37,99,235,.09);
        }

            .nav-tabs .nav-link.active:after,
            .nav-tabs .nav-link:hover:after {
                opacity: 1;
                transform: scaleX(1);
            }


    /*.nav-tabs .nav-link {
        text-decoration: none;*/ /* Quita el subrayado */
        /*color: #515164;*/ /* Color normal del texto */
        /*font-weight: 300;*/ /* Peso medio */
    /*}

        .nav-tabs .nav-link.active {
            font-weight: 600;*/ /* Un poco más negrita cuando está activa */
            /*color: #000;*/ /* Color más oscuro al estar activo */
        /*}*/
@media (max-width: 576px) {
    .nav-tabs {
        padding: 0.4rem 0 0.3rem 0;
    }

        .nav-tabs .nav-link {
            padding-left: 0.6rem;
            padding-right: 0.6rem;
            font-size: 0.98em;
        }

            .nav-tabs .nav-link:after {
                left: 0.5rem;
                right: 0.5rem;
            }
}

.nav-tabs .nav-link:hover {
    box-shadow: 0 2px 14px -7px #2563eb33;
}


/* Scroll horizontal si hay muchas tabs en móvil */
.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    /* Opcional: animación glow en hover */
    .nav-tabs .nav-link:hover {
        box-shadow: 0 2px 18px -7px #0d6efd44;
    }


.table-responsive {
    border-radius: 1rem;
    border: none !important;
    overflow-x: auto;
}

    .table-responsive .tablaCus {
        border: 1.5px solid #e5e7eb;
        border-radius: 1rem;
    }

.tablaCus {
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-size: 1.07rem;
    border-radius: 1rem;
    box-shadow: 0 2px 14px 0 #0001;
    overflow: hidden;
}

    .tablaCus thead th {
        text-align: center !important;
        background: #f3f4f6;
        color: #23272b;
        font-weight: 600;
        border: none !important; /* Sin bordes */
        padding: 1rem 0.8rem;
        font-size: 1.01rem;
        letter-spacing: .01em;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .tablaCus th, .tablaCus td {
        text-align: center !important;
        border-left: none !important;
        border-right: none !important;
    }

    .tablaCus tbody td {
        color: #23272b;
        vertical-align: middle;
        background: #fff;
        border-top: none !important;
        border-bottom: 1.5px solid #e5e7eb;
    }

    .tablaCus tbody tr {
        transition: box-shadow 0.18s, transform 0.18s, background 0.13s;
    }

        .tablaCus tbody tr:hover {
            background: #f7fafd !important;
            box-shadow: 0 4px 16px 0 #c7d3e433;
            transform: translateY(-2px) scale(1.01);
            z-index: 2;
            position: relative;
        }

        .tablaCus tbody tr:last-child td {
            border-bottom: none;
        }

    .tablaCus thead th:first-child {
        border-radius: 1rem 0 0 0;
    }

    .tablaCus thead th:last-child {
        border-radius: 0 1rem 0 0;
    }
    .tablaCus tbody td {
        border-top: none !important;
        border-bottom: 1.5px solid #e5e7eb;
    }

    .tablaCus tbody tr:last-child td {
        border-bottom: none;
    }

    .tablaCus tbody tr.no-visto {
        background-color: #e7f1ff !important; /* azul claro */
    }

        .tablaCus tbody tr.no-visto td {
            background-color: #e7f1ff !important; /* azul claro para NO vistos */
        }

/* Contenedores principales */
.dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate {
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-size: 1rem;
    color: #23272b;
    margin-bottom: 1rem;
}

    /* Select de "mostrar N registros" */
    .dataTables_length label, .dataTables_filter label {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        font-weight: 500;
        color: #6b7280;
    }

    .dataTables_length select, .dataTables_filter input[type="search"] {
        border: 1px solid #e5e7eb !important;
        border-radius: 0.7rem !important;
        padding: 0.37rem 0.9rem !important;
        font-size: 1rem !important;
        outline: none !important;
        transition: border-color 0.18s !important;
        background: #f8fafc !important;
        margin-left: 0.5rem !important;
    }

        .dataTables_filter input[type="search"]:focus,
        .dataTables_length select:focus {
            border-color: #0d6efd;
            background: #fff;
        }

/* Info (Mostrando x a y de z registros) */
.dataTables_info {
    color: #787c85;
    font-size: 0.98rem;
    margin-top: 0.5rem;
}

/* Paginación */
.dataTables_paginate {
    display: flex;
    gap: 0.2rem;
    justify-content: flex-end;
    align-items: center;
    margin-top:0.5rem;
}

    .dataTables_paginate .paginate_button {
        background: #f3f4f6;
        color: #23272b !important;
        border: 1px solid #e5e7eb;
        border-radius: 0.7rem;
        padding: 0.32rem 0.8rem;
        margin: 0 0.12rem;
        font-size: 1rem;
        transition: background 0.18s, color 0.18s;
        box-shadow: none;
        cursor: pointer;
    }

        .dataTables_paginate .paginate_button.current,
        .dataTables_paginate .paginate_button:hover {
            background: #e5e7eb !important; /* Gris claro suave */
            color: #23272b !important; /* Texto oscuro, no blanco */
            border: 1px solid #d1d6db;
            box-shadow: 0 2px 6px #aeb8c51a;
            z-index: 2;
            position: relative;
            font-weight: 600;
            transition: background 0.18s, color 0.18s;
        }

        .dataTables_paginate .paginate_button.disabled {
            background: #f3f4f6 !important;
            color: #b0b5bb !important;
            cursor: not-allowed !important;
            border: 1px solid #e5e7eb;
        }


/* 3. Estado inicial colapsado (solo al cargar, clase inyectada en <html>) */
html.sidebar-colapsed-init .sidebar {
    width: var(--sidebar-collapsed-width) !important;
    min-width: var(--sidebar-collapsed-width) !important;
}

html.sidebar-colapsed-init .main-content {
    margin-left: var(--sidebar-collapsed-width) !important;
    width: calc(100% - var(--sidebar-collapsed-width)) !important;
}

/* —————————————————————————— */
/* 4. Estado tras toggle de usuario */
/* Cuando tu JS añade .sidebar-collapsed al <nav#sidebar> */
#sidebar.sidebar-collapsed ~ .main-content,
.main-content.main-content-collapsed {
    margin-left: var(--sidebar-collapsed-width) !important;
    width: calc(100% - var(--sidebar-collapsed-width)) !important;
}

.download-btn {
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

    .download-btn:hover {
        background-color: #f0f0f0;
    }

/* =============================================================================
   MODAL PERFIL - DROPZONE
   ============================================================================= */

#modalImagenPerfil .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#modalImagenPerfil .modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    color: white;
}

#modalImagenPerfil .modal-title {
    color: white;
    font-weight: 600;
}

#modalImagenPerfil .btn-close {
    filter: brightness(0) saturate(100%) invert(100%);
    opacity: 0.8;
}

    #modalImagenPerfil .btn-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }

/* Dropzone personalizado */
.dropzone-perfil {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .dropzone-perfil:hover {
        border-color: #6366f1;
        background: #f0f1ff;
        transform: translateY(-2px);
    }

    .dropzone-perfil.dz-drag-hover {
        border-color: #6366f1;
        background: linear-gradient(135deg, #f0f1ff 0%, #e0e7ff 100%);
        border-style: solid;
        transform: scale(1.02);
    }

    .dropzone-perfil .dz-message {
        margin: 0;
    }

        .dropzone-perfil .dz-message .btn {
            border-radius: 8px;
            padding: 0.5rem 1.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

            .dropzone-perfil .dz-message .btn:hover {
                background: #6366f1;
                border-color: #6366f1;
                color: white;
                transform: translateY(-1px);
            }

    /* Preview de imagen en dropzone */
    .dropzone-perfil .dz-preview {
        position: relative;
        display: inline-block;
        margin: 1rem 0;
        text-align: center;
    }

        .dropzone-perfil .dz-preview .dz-image {
            border-radius: 50%;
            width: 150px;
            height: 150px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
            border: 3px solid #e0e7ff;
            display: block;
        }

            .dropzone-perfil .dz-preview .dz-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

        /* Botón eliminar mejorado */
        .dropzone-perfil .dz-preview .dz-remove {
            position: absolute;
            top: -10px;
            right: 50%;
            transform: translateX(85px); /* Posicionar en la esquina de la imagen circular */
            background: #ef4444;
            color: white;
            border: 2px solid white;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s ease;
            text-decoration: none;
            z-index: 10;
        }

            .dropzone-perfil .dz-preview .dz-remove:hover {
                background: #dc2626;
                transform: translateX(85px) scale(1.1);
                text-decoration: none;
                color: white;
            }

        /* Información del archivo */
        .dropzone-perfil .dz-preview .dz-details {
            margin-top: 0.5rem;
            opacity: 0.8;
        }

        .dropzone-perfil .dz-preview .dz-size {
            font-size: 0.85rem;
            color: #6b7280;
            font-weight: 600;
        }

        .dropzone-perfil .dz-preview .dz-filename {
            font-size: 0.8rem;
            color: #374151;
            word-break: break-all;
            max-width: 200px;
            margin: 0 auto;
        }

        /* Progress bar */
        .dropzone-perfil .dz-preview .dz-progress {
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 4px;
            background: #e5e7eb;
            border-radius: 2px;
            overflow: hidden;
        }

            .dropzone-perfil .dz-preview .dz-progress .dz-upload {
                background: #10b981;
                height: 100%;
                transition: width 0.3s ease;
            }

        /* Estados de archivo */
        .dropzone-perfil .dz-preview.dz-success .dz-success-mark {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background: rgba(16, 185, 129, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            opacity: 0;
            animation: successPulse 0.6s ease-out forwards;
        }

            .dropzone-perfil .dz-preview.dz-success .dz-success-mark::before {
                content: "✓";
            }

        .dropzone-perfil .dz-preview.dz-error .dz-error-mark {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background: rgba(239, 68, 68, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
        }

            .dropzone-perfil .dz-preview.dz-error .dz-error-mark::before {
                content: "✕";
            }

/* Información de archivos */
.file-info {
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

/* Animaciones */
@keyframes successPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dropzone-perfil {
        padding: 2rem 1rem;
        min-height: 150px;
    }

        .dropzone-perfil .dz-preview .dz-image {
            width: 120px;
            height: 120px;
        }

        .dropzone-perfil .dz-preview .dz-remove {
            transform: translateX(70px);
        }

            .dropzone-perfil .dz-preview .dz-remove:hover {
                transform: translateX(70px) scale(1.1);
            }

    #modalImagenPerfil .modal-dialog {
        margin: 1rem;
    }
}