* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Poppins', sans-serif;
        background: url('../Img2/rrhh.jpg') no-repeat center center fixed;
        background-size: cover;
        min-height: 100vh;
        position: relative;
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
    }

    /* Eliminar scroll horizontal */
    html {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
    }

    .container, .container-fluid, .row, .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, 
    .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
    .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
    .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
    .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
    .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
    .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
        overflow-x: hidden !important;
    }

    /* No overlay adicional - solo la imagen de fondo */
    body::before {
        display: none;
    }

    /* Navbar con cintillo - SIN ESPACIO EN BLANCO */
    .navbar-modern {
        background: #0F3057 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        min-height: auto !important;
    }

    .navbar-modern .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Cintillo superior con la imagen */
    .top-banner {
        background: linear-gradient(135deg, #0F3057 0%, #1a4a7a 100%);
        padding: 15px 0;
        text-align: center;
        width: 100%;
        margin: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .top-banner img {
        max-height: 70px;
        width: auto;
        display: inline-block;
    }

    /* Panel Principal Moderno - con fondo semi-transparente para mejor legibilidad */
    .panel-modern {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 25px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        border: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .panel-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    }

    .panel-heading-modern {
        background: linear-gradient(135deg, #0F3057 0%, #1a4a7a 100%);
        padding: 25px 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .panel-heading-modern::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        animation: pulse 8s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); opacity: 0.3; }
        50% { transform: scale(1.1); opacity: 0.6; }
    }

    .panel-heading-modern strong {
        font-size: 18px;
        letter-spacing: 1px;
        position: relative;
        z-index: 1;
        color: white;
        font-weight: 600;
    }

    .panel-heading-modern small {
        display: block;
        margin-top: 8px;
        font-size: 12px;
    }

    .panel-body-modern {
        padding: 40px 30px;
    }

    /* Imagen de bienvenida */
    .welcome-image {
        text-align: center;
        margin-bottom: 30px;
    }

    .welcome-image img {
        max-width: 280px;
        transition: transform 0.3s ease;
        width: 100%;
        height: auto;
    }

    .welcome-image img:hover {
        transform: scale(1.05);
    }

    /* Formulario Moderno */
    .form-group-modern {
        margin-bottom: 25px;
        position: relative;
    }

    .form-group-modern label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #0F3057;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .form-group-modern .input-icon {
        position: relative;
    }

    .form-group-modern .input-icon i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #0F3057;
        font-size: 18px;
        z-index: 1;
    }

    .form-control-modern {
        width: 100%;
        padding: 14px 15px 14px 45px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        font-size: 15px;
        transition: all 0.3s ease;
        background: #f8f9fa;
        font-family: 'Poppins', sans-serif;
    }

    .form-control-modern:focus {
        outline: none;
        border-color: #0F3057;
        background: white;
        box-shadow: 0 0 0 4px rgba(15, 48, 87, 0.1);
    }

    /* Botones Modernos */
    .btn-modern {
        padding: 12px 24px;
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border: none;
        font-size: 14px;
        width: 100%;
        margin-bottom: 12px;
    }

    .btn-primary-modern {
        background: linear-gradient(135deg, #0F3057, #1a4a7a);
        color: white;
        box-shadow: 0 4px 15px rgba(15, 48, 87, 0.3);
    }

    .btn-primary-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(15, 48, 87, 0.4);
        color: white;
    }

    .btn-secondary-modern {
        background: linear-gradient(135deg, #6c757d, #5a6268);
        color: white;
        box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    }

    .btn-secondary-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
        color: white;
    }

    .btn-success-modern {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }

    .btn-success-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
        color: white;
    }

    /* Panel Footer Moderno */
    .panel-footer-modern {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        padding: 20px;
        text-align: center;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .panel-footer-modern a {
        color: #0F3057;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .panel-footer-modern a:hover {
        color: #1a4a7a;
        text-decoration: underline;
    }

    /* Footer fijo moderno */
    .footer-modern {
        background: linear-gradient(135deg, #0F3057, #1a4a7a);
        color: white;
        text-align: center;
        padding: 12px;
        position: fixed;
        bottom: 0;
        width: 100%;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.5px;
        z-index: 100;
    }

    /* Divisor */
    .divider {
        text-align: center;
        margin: 25px 0;
        position: relative;
    }

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #ccc, transparent);
    }

    .divider span {
        background: white;
        padding: 0 20px;
        position: relative;
        color: #999;
        font-size: 12px;
        text-transform: uppercase;
    }

    /* Alertas modernas */
    .alert-modern {
        border-radius: 12px;
        padding: 15px 20px;
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* ============================================= */
    /* ESTILOS MODERNOS PARA MODALES CON SCROLL Y ZOOM */
    /* ============================================= */
    
    .modal-modern .modal-content {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: none;
        border-radius: 25px;
        overflow: hidden;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    .modal-modern .modal-header {
        background: linear-gradient(135deg, #0F3057 0%, #1a4a7a 100%);
        border-bottom: none;
        padding: 1.2rem 1.5rem;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    .modal-modern .modal-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        animation: modalPulse 8s ease-in-out infinite;
    }

    @keyframes modalPulse {
        0%, 100% { transform: scale(1); opacity: 0.3; }
        50% { transform: scale(1.1); opacity: 0.6; }
    }

    .modal-modern .modal-title {
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        position: relative;
        z-index: 1;
        color: white !important;
        font-size: 1.1rem;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .modal-modern .modal-body {
        padding: 1.8rem;
        position: relative;
        background: #fff;
        text-align: center;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1 1 auto;
        max-height: calc(90vh - 140px);
    }

    .modal-modern .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-modern .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .modal-modern .modal-body::-webkit-scrollbar-thumb {
        background: #0F3057;
        border-radius: 10px;
    }

    .modal-image-container {
        position: relative;
        overflow: visible;
        border-radius: 15px;
        cursor: zoom-in;
        transition: all 0.3s ease;
        display: inline-block;
        width: auto;
        max-width: 100%;
    }

    .modal-image-container img {
        width: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 15px;
        display: block;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .modal-image-container.zoomed {
        cursor: zoom-out;
        overflow: visible;
        position: relative;
        z-index: 1050;
    }

    .modal-image-container.zoomed img {
        transform: scale(2);
        cursor: zoom-out;
    }

    .modal-image-container.zoomed::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 1049;
        pointer-events: none;
    }

    .modal-image-container.zoomed {
        position: relative;
        z-index: 1051;
    }

    .modal-image-container.zoomed img {
        position: relative;
        z-index: 1051;
    }

    .modal-modern .modal-footer {
        border-top: 1px solid rgba(0,0,0,0.05);
        background: rgba(248, 249, 250, 0.95);
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
    }

    .btn-modal {
        padding: 0.6rem 1.5rem;
        border-radius: 50px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border: none;
        font-size: 0.85rem;
    }

    .btn-siguiente-modern {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        color: white;
    }

    .btn-siguiente-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 55, 72, 0.4);
        color: white;
    }

    .btn-anterior-modern {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        color: white;
    }

    .btn-anterior-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 55, 72, 0.4);
        color: white;
    }

    .btn-cerrar-modern {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
    }

    .btn-cerrar-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
        color: white;
    }

    .modal-badge {
        position: absolute;
        top: 12px;
        right: 55px;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(5px);
        padding: 0.2rem 0.8rem;
        border-radius: 50px;
        font-size: 0.65rem;
        color: white;
        z-index: 2;
    }

    .modal-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: rgba(255,255,255,0.3);
        width: 100%;
    }

    .modal-progress-bar {
        height: 100%;
        background: white;
        width: 0%;
        transition: width 0.3s ease;
    }

    .modal.fade .modal-dialog {
        transform: scale(0.8);
        transition: transform 0.3s ease-out;
    }

    .modal.show .modal-dialog {
        transform: scale(1);
    }

    .modal-modern .close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
        transition: opacity 0.3s;
        z-index: 3;
        color: white !important;
        text-shadow: none;
        font-size: 28px;
    }

    .modal-modern .close:hover {
        opacity: 1;
    }

    .modal-image-container::before {
        content: '🔍 Haga clic para ampliar';
        position: absolute;
        bottom: 15px;
        right: 15px;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 25px;
        font-size: 10px;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
        z-index: 10;
        font-family: 'Poppins', sans-serif;
    }

    .modal-image-container:hover::before {
        opacity: 1;
    }

    /* Botón flotante moderno */
    .btn-floating-modern {
        position: fixed;
        bottom: 80px;
        right: 30px;
        z-index: 1000;
        background: linear-gradient(135deg, #0F3057 0%, #1a4a7a 100%);
        border: none;
        border-radius: 50px;
        padding: 12px 24px;
        box-shadow: 0 10px 30px rgba(15, 48, 87, 0.4);
        transition: all 0.3s ease;
        animation: float 3s ease-in-out infinite;
        color: white;
        font-weight: 600;
        font-size: 14px;
    }

    .btn-floating-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(15, 48, 87, 0.5);
        color: white;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    .btn-floating-modern i {
        margin-right: 8px;
        font-size: 1.1rem;
    }

    /* Ajustes para evitar desbordamiento en móviles */
    @media (max-width: 768px) {
        .panel-body-modern {
            padding: 25px 20px;
        }
        
        .welcome-image img {
            max-width: 200px;
        }
        
        .btn-modern {
            padding: 10px 20px;
            font-size: 13px;
        }
        
        .modal-modern .modal-body {
            padding: 1rem;
            max-height: calc(90vh - 120px);
        }
        
        .btn-floating-modern {
            bottom: 70px;
            right: 20px;
            padding: 10px 18px;
            font-size: 12px;
        }
        
        .modal-image-container.zoomed img {
            transform: scale(1.5);
        }
        
        .panel-heading-modern strong {
            font-size: 14px;
        }
        
        .panel-heading-modern small {
            font-size: 10px;
        }
        
        .top-banner img {
            max-height: 50px;
        }
    }

    @media (max-width: 576px) {
        .form-control-modern {
            padding: 12px 15px 12px 40px;
            font-size: 14px;
        }
        
        .modal-image-container.zoomed img {
            transform: scale(1.3);
        }
        
        .top-banner {
            padding: 10px 0;
        }
        
        .top-banner img {
            max-height: 45px;
        }
    }

    /* Asegurar que no haya márgenes no deseados */
    body, .container, .container-fluid, .row {
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }