/* estilos del modal container existente solo para custom modals */
/* Centrado del dialog */
#customModalContainer .modal-dialog {
    position: relative !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    z-index: 100000 !important;
    min-height: 100vh !important;
}

/* Estilos específicos para modal de pantalla completa de resumen de cuenta */
#customModalContainer.fullscreen-modal .modal-dialog {
    margin: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    min-height: 100vh !important;
}

#customModalContainer.fullscreen-modal .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    background: #fff !important;
}

#customModalContainer .modal-content {
    border: none !important;
    border-radius: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    width: auto !important;
    max-width: 1200px !important;
}

body .modal-body {
    padding: 0 !important;
}

body .modal {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop.in {
    opacity: 0.25 !important;
}

/* Estilos de la modal personalizada */
.modal-content-custom {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 0 auto;
    font-family: Relaway, sans-serif !important;
   
}

.modal-header-custom {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 24px;
    border-radius: 12px 12px 0 0;
    position: relative;
    flex-shrink: 0;
}

.modal-close-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close-btn:hover {
    color: #000;
}

.modal-title-main {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 600;
    text-align: left;
    font-family: Relaway, sans-serif !important;
}

.modal-title-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title-secondary {
    font-size: 20px;
    color: #333333;
    margin: 6px 0 -3px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.modal-title-secondary i {
    color: #333333;
    border-radius: 4px;
    margin-right: 12px;
    font-size: 16px;
}

.modal-project-title {
    font-size: 16px;
    color: #07496B;
    margin: 2px 25px 0;
    font-weight: 500;
}

.modal-body-custom {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    background: #fff;
    min-height: 0;
}

/* Forzar fuente Raleway en todos los elementos dentro del modal-body, EXCEPTO iconos */
.modal-body-custom *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal) {
    font-family: Raleway, sans-serif !important;
}

.modal-body-custom p,
.modal-body-custom span,
.modal-body-custom div,
.modal-body-custom a,
.modal-body-custom b,
.modal-body-custom strong,
.modal-body-custom em,
.modal-body-custom u {
    font-family: Raleway, sans-serif !important;
}

/* Asegurar que los iconos de Font Awesome mantengan su fuente */
.modal-body-custom i.fa,
.modal-body-custom i.fas,
.modal-body-custom i.far,
.modal-body-custom i.fab,
.modal-body-custom i.fal {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "FontAwesome" !important;
}


/* Asegurar que el textarea sea editable */
.modal-content-contactconsulta textarea.form-control-custom {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    resize: vertical !important;
    outline: none !important;
    padding: 8px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    background: #fff !important;
    color: #333 !important;
    cursor: text !important;
}


.modal-content-contactconsulta textarea.form-control-custom:disabled,
.modal-content-contactconsulta textarea.form-control-custom[readonly] {
    background: #f5f5f5 !important;
    cursor: not-allowed !important;
}

.section-title-custom {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin: 20px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left !important;
}

.section-title-custom:first-child {
    margin-top: 0;
}

.form-group-custom {
    margin-bottom: 16px;
}

.label-custom {
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
    text-align: left !important;
}

.label-login {
    font-size: 12px;
    color: #333333;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
    text-align: left !important;
}

.label-custom-radio {
    font-size: 12px;
    color: #333333;
    margin-bottom: 8px;
    display: block;
    text-align: left !important;
    font-weight: inherit !important;
}

.form-control-custom {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    background: transparent;
    transition: border-bottom-color 0.2s ease;
    box-sizing: border-box;
     line-height: 0px !important; /* Por defecto para Firefox */
}



/* Método alternativo para Chrome usando webkit appearance */
.form-control-custom[type="date"]::-webkit-datetime-edit {
    line-height: 10px !important;
}

/* Estilos específicos para Firefox */
@-moz-document url-prefix() {
    .form-control-custom[type="date"] {
        line-height: 0px !important;
    }
}

/* Selector específico para Chrome */
@supports (-webkit-appearance: none) {
    .form-control-custom[type="date"] {
        line-height: 10px !important;
    }
}

.form-control-custom:focus {
    outline: none;
    border-bottom-color: #0398E3;
    box-shadow: none;
}

.form-control-custom::placeholder {
    color: #999;
}

.file-upload-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.file-upload-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
    gap: 12px;
}

.file-upload-icon {
    font-size: 20px;
    color: #999;
    margin-top: 8px;
    flex-shrink: 0;
}

.file-upload-text-container {
    flex: 1;
}

.file-upload-title {
    font-size: 14px;
    color: #333333;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: block;
}

.file-upload-text {
    font-size: 14px;
    color: #333;
    margin: 0;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    width: 100%;
    display: block;
    transition: border-bottom-color 0.2s ease;
}


.file-upload-button-container {
    flex-shrink: 0;
    margin-top: 8px;
}

.file-upload-btn {
    background: #0398E3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-upload-btn i {
    color: #fff !important;
}

.file-upload-btn:hover {
    background: #0398E3;
}

.modal-footer-custom {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    text-align: right;
    border-radius: 0 0 12px 12px;
    background: #fff;
    flex-shrink: 0;
}

.btn-custom {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s ease;
    font-family: Relaway, sans-serif !important;
}

.btn-cancel-custom {
    background: #FFFFFF;
    color: #0398E3;
    border: 1px solid #0398E3;
}

.btn-cancel-custom:hover {
    background: #FFFFFF;
    color: #0398E3;
}

.btn-submit-custom {
    background: #0398E3;
    color: #fff;
}

.btn-submit-custom i {
    color: #fff !important;
}

.btn-submit-custom .fa {
    margin-right: 5px;
}

.btn-submit-custom:hover {
    background: #0398E3;
}


.btn-filter-custom {
    background: #FFFFFF;
    color: #0398E3;
    border: 1px solid #0398E3 !important;
}

.btn-filter-custom i {
     background: #FFFFFF;
     color: #0398E3;
}

.btn-filter-custom:hover {
    background: #FFFFFF;
    color: #0398E3;
}


.row-custom {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.col-custom {
    padding: 0 8px;
    flex: 1;
    min-width: 200px;
}

.col-custom-half {
    padding: 0 8px;
    flex: 0 0 50%;
    min-width: 150px;
}

.col-custom-third {
    padding: 0 8px;
    flex: 0 0 33.333%;
    min-width: 120px;
}

.col-custom-quarter {
    padding: 0 8px;
    flex: 0 0 25%;
    min-width: 200px;
}



.inputfile {
    display: none;
}

/* Ocultar scroll de inputs number */
.hide-spinner::-webkit-outer-spin-button,
.hide-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hide-spinner[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.modal-content-video {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    min-width: 600px;
    max-height: 85vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: auto;
    position: relative;
    align-self: center;
}

.modal-body-video {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    background: #fff;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-responsive {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    overflow: hidden;
    min-height: 400px;
    max-width: 100%;
}

.video-container-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



/* Estilo específico para el botón de cerrar de la modal de video */
.modal-content-video .btn-cancel-custom {
    background: #0398E3 !important;
    color: #fff !important;
    border: 1px solid #0398E3 !important;
}

.modal-content-video .btn-cancel-custom:hover {
    background: #0099ee !important;
    color: #fff !important;
    border: 1px solid #0099ee !important;
}

/* Sobrescribir estilos del container para fotos */
#customModalContainer:has(.modal-content-photo) .modal-dialog {
    margin: 0 auto !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 100000 !important;
    min-height: 100vh !important;
}

.modal-content-photo {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    min-width: 600px;
    max-height: 90vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: auto;
    position: relative;
    align-self: center;
}

.modal-content-history {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    min-width: 800px;
    max-height: 90vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: auto;
    position: relative;
    align-self: center;
}

.modal-content-all-informes {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 1000px;
    min-width: 700px;
    max-height: 90vh;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: auto;
    position: relative;
    align-self: center;
}

/* Modal Resumen Cuenta */
.modal-content-resumen-cuenta {
    max-width: 100%;
    width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Estilos específicos para modal de resumen de cuenta en pantalla completa */
.modal-fullscreen-resumen {
    width: 85vw !important;
    height: 85vh !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-fullscreen-resumen .modal-header-custom {
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 24px;
}

.modal-fullscreen-resumen .contenedorResumenCuenta {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px !important;
    min-height: auto;
    max-height: none;
    max-height: calc(90vh - 120px); /* Altura ajustada para 85vh menos header y footer */
}

/* Estilos específicos para contenedor de informes con scroll */
.contenedorAllinformes {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    min-height: 200px;
    max-height: calc(90vh - 120px); /* Reservar espacio para header y footer */
}

/* Estilos para enlaces dentro del contenedor de informes */
.contenedorAllinformes a {
    text-decoration: none !important;
    color: #039AE5 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
}

.contenedorAllinformes a:hover {
    text-decoration: none !important;
    color: #039AE5 !important;
}

.contenedorAllinformes a:visited {
    text-decoration: none !important;
    color: #039AE5 !important;
}

.contenedorAllinformes a:focus {
    text-decoration: none !important;
    color: #039AE5 !important;
    outline: none !important;
}

.contenedorAllinformes a:active {
    text-decoration: none !important;
    color: #039AE5 !important;
}

/* Estilos para texto normal dentro del contenido expandido */
.contenedorAllinformes .panel-body {
    padding: 15px 20px 0px !important;
    background: #fff !important;
    border: none !important;
    margin-bottom: 0px !important;
    color: #333333 !important; /* Color base para texto normal */
}

.contenedorAllinformes .panel-body .flexContainer {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.contenedorAllinformes .panel-body .flexContainer:last-child {
    border-bottom: none !important;
}

.contenedorAllinformes .panel-body .flexContainer .flexGrow {
    flex: 1 !important;
    margin-right: 15px !important;
}

/* Títulos principales en azul */
.contenedorAllinformes .panel-body .flexContainer .flexGrow b {
    color: #039AE5 !important; /* Títulos principales en azul */
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
    display: block !important;
    margin-bottom: 5px !important;
}

/* Descripciones en gris */
.contenedorAllinformes .panel-body .flexContainer .flexGrow span {
    color: #666666 !important; /* Color gris para descripciones */
    font-size: 14px !important;
    font-weight: 400 !important;
    font-family: Relaway, sans-serif !important;
    line-height: 1.4 !important;
}

/* Enlaces de descarga en azul */
.contenedorAllinformes .panel-body .flexContainer .flexGrow a {
    color: #039AE5 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.contenedorAllinformes .panel-body .flexContainer .flexGrow a:hover {
    color: #0288d1 !important;
    text-decoration: none !important;
}

.contenedorAllinformes .panel-body .flexContainer .flexGrow a i {
    color: #039AE5 !important;
    font-size: 14px !important;
}

/* Texto de descarga en verde */
.contenedorAllinformes .panel-body .flexContainer .flexGrow.col-xs-12.col-lg-2 .informeDescarga {
    color: #02B875 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-family: Relaway, sans-serif !important;
    display: block !important;
    margin-top: 5px !important;
    align-self: end !important;
}

.contenedorInformes:nth-child(2n) {
    background-color: #FFFFFF !important;
}

/* Contenedor de descarga alineado a la izquierda y centrado */
.contenedorAllinformes .flexGrow.col-xs-12.col-lg-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
}

/* Enlaces dentro del contenedor de descarga */
.contenedorAllinformes .flexGrow.col-xs-12.col-lg-2 a {
    display: flex !important;
    align-self: end !important;
    gap: 8px !important;
    margin-bottom: 5px !important;
}

/* Imagen de descarga */
.contenedorAllinformes .styleImgInformeDescargado {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

.contenedorAllinformes .panel-title,
.contenedorAllinformes .panel-title a,
.contenedorAllinformes .panel-heading h1,
.contenedorAllinformes .panel-heading h2,
.contenedorAllinformes .panel-heading h3,
.contenedorAllinformes .panel-heading h4,
.contenedorAllinformes .panel-heading h5,
.contenedorAllinformes .panel-heading h6 {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
}

.contenedorAllinformes .panel-heading h4 {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Títulos de las preguntas principales */
.contenedorAllinformes .collapsableDefault .panel-title,
.contenedorAllinformes .collapsableDefault .panel-title a,
.contenedorAllinformes .collapsableDefault .panel-heading a {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    text-decoration: none !important;
}

.contenedorAllinformes .collapsableDefault .panel-title a:hover,
.contenedorAllinformes .collapsableDefault .panel-heading a:hover {
    color: #039AE5 !important;
    text-decoration: none !important;
}

.contenedorAllinformes .panel-default .panel-heading a {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    text-decoration: none !important;
}

.contenedorAllinformes .flexGrow.col-xs-12.col-lg-6 b,
.contenedorAllinformes .flexContainer .flexGrow b {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    font-weight: 700 !important;
}

/* Títulos de preguntas en elementos b dentro de flexGrow */
.contenedorAllinformes .panel-body .flexContainer .flexGrow.col-xs-12.col-lg-6 b {
    color: #333333 !important;
}

.contenedorAllinformes .panel-body .flexContainer .flexGrow.col-xs-12.col-lg-2 b {
    color: #039AE5 !important;
}

.contenedorAllinformes .panel-body .panel-heading .panel-title h4 {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
/* Botón de descarga */
.contenedorAllinformes .panel-body .flexContainer .btn {
    background: #039AE5 !important;
    color: #fff !important;
    border: 1px solid #039AE5 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.contenedorAllinformes .panel-body .flexContainer .btn:hover {
    background: #0288d1 !important;
    border-color: #0288d1 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.contenedorAllinformes .panel-body .flexContainer .btn i {
    color: #fff !important;
    font-size: 12px !important;
}

/* Asegurar que el modal mantenga estructura flex */
.modal-content-all-informes .modal-header-custom {
    flex-shrink: 0;
}

.modal-content-all-informes .modal-footer-custom {
    flex-shrink: 0;
}

.modal-body-photo {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.photo-container-responsive {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container-responsive img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    opacity: 1;
}


/* Estilo específico para el botón de cerrar de la modal de fotos */
.modal-content-photo .btn-cancel-custom {
    background: #0398E3 !important;
    color: #fff !important;
    border: 1px solid #0398E3 !important;
}

.modal-content-photo .btn-cancel-custom:hover {
    background: #0099ee !important;
    color: #fff !important;
    border: 1px solid #0099ee !important;
}

/* Container principal de la modal personalizada */
#customModalContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* modal-content en custom container */
#customModalContainer .modal-content {
    position: relative !important;
    border: none !important;
    border-radius: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    width: auto !important;
    max-width: 1200px !important;
    min-width: 300px !important;
    min-height: 200px !important;
}

#customModalContainer .modal-body {
    padding: 0 !important;
    min-width: 300px !important;
    min-height: 200px !important;
}

/*  centrado para contenido de videos */
#customModalContainer .modal-content-video {
    position: relative !important;
    margin: 0 auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/*  centrado para contenido de fotos */
#customModalContainer .modal-content-photo {
    position: relative !important;
    margin: 0 auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* estilo de Bootstrap que interfiera */
#customModalContainer.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    outline: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

#customModalContainer.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Estilos para pantalla de carga */
#customModalContainer .modal-loading {
    margin-top: 50px;
    color: white;
    text-align: center;
}

#customModalContainer .loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #0398E3;
    animation: spin 1s ease-in-out infinite;
}

/* Animación de rotación para spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Override de estilos Bootstrap para evitar conflictos */
#customModalContainer.modal.fade {
    opacity: 1 !important;
}

#customModalContainer.modal.fade.show {
    opacity: 1 !important;
}

/* Estado oculto */
#customModalContainer.modal.fade:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Centrado absoluto del container */
div#customModalContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Centrado del contenido */
div#customModalContainer .modal-content {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

/* Centrado específico para videos y fotos */
div#customModalContainer .modal-content-video,
div#customModalContainer .modal-content-photo {
    position: relative !important;
    margin: 0 auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}


 .panel
 {
    margin: 5px 20px 5px 20px !important;
    padding: 15px !important;
    gap: 23px !important;
    border: 1px solid !important;
    background: #ffffff !important;
    border-color: #b8b8b8 !important;
}

.panel-body .flexContainer .flexGrow b {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
    color: #333333 !important;
}

.panel-body .flexContainer .flexGrow a {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;

}

/* Sidebar derecho */
.sidebar-resumen {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* Sección saldo total */
.saldo-total-section {
    text-align: center;
    margin-bottom: 20px;
    /*padding: 15px 0;*/
}

.saldo-amount {
    font-size: 24px;
    font-weight: 700;
    color: #74B963;
    font-family: Opensans, sans-serif;
    margin-bottom: 5px;
}

.saldo-label {
    font-size: 18px;
    color: #333333;
    font-weight: 500;
    font-family: Relaway, sans-serif;
}

/* Contenido principal izquierdo */
.contenido-principal {
    padding-right: 0px;
}

/* Header del proyecto */
.proyecto-header {
    margin-bottom: 20px;
}

.proyecto-nombre {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    font-family: Relaway, sans-serif;
    margin-bottom: 5px;
}

.proyecto-nombre i {
    color: #333333;
    margin-right: 0px;
}

.proyecto-ubicacion {
    color: #07496B;
    font-size: 16px;
    font-weight: 500;
    font-family: Relaway, sans-serif;
    padding-left: 25px !important;
}

/* Sección de filtros */
.filtros-section {
    background: white;
    padding: 5px;
    /*margin-bottom: 20px;*/
}


.filtros-section .btn {
    background: #FFFFFF;
    border-color: #039AE5;
    color: #039AE5;
    font-weight: 600;
    font-family: Relaway, sans-serif;
}

.filtros-section .btn:hover {
    background: #FFFFFF;
    border-color: #039AE5;
}


.seccion-saldo-pendiente {
    margin-left: 5px;
}
/* Tabla de pagos */
.tabla-pagos-section {
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 30px;
    /*border: 1px solid #e9ecef;*/
}

/* Tabla de movimientos */
.tabla-section {
    background: white;
    padding: 5px;
    border-radius: 8px;
    /*border: 1px solid #e9ecef;*/
}

.tabla-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    font-family: Relaway, sans-serif;
    margin-bottom: 15px;
    /*border-bottom: 2px solid #039AE5;
    padding-bottom: 8px;*/
    display: inline-block;
    margin: 5px 0px !important;
}

.movimientos-table {
    margin-bottom: 0;
    border: 1px solid #ddd;
}

.movimientos-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    font-family: Relaway, sans-serif;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
}

.movimientos-table td {
    padding: 10px 8px;
    font-family: Relaway, sans-serif;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.movimientos-table tbody tr:hover {
    background: #f8f9fa;
}

/* QR Download Link */
.qr-download {
    text-align: center;
    /*margin-top: 10px;*/
}

.qr-download a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2196F3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: Relaway, sans-serif;
}

.qr-download a:hover {
    background-color: #f0f8ff;
    color: #1976D2;
    text-decoration: none;
}

.qr-download a i {
    font-size: 14px;
}

/* Estilos existentes para cliente datos y QR */
.resumen-cuenta-cliente-info {
    background: #f8f9fa;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cliente-datos {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    line-height: 1.0 !important;
}

.cliente-datos h4 {
    color: #666666;
    font-size: 14px;
    font-weight: 700;
    font-family: Relaway, sans-serif;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.datos-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
    margin-bottom: 8px;
    text-align: center;
}

.datos-item:last-child {
    margin-bottom: 0;
}

.dato-label {
    font-weight: normal;
    color: #666;
    font-family: Relaway, sans-serif;
    font-size: 12px;
    margin-right: 5px;
}

.dato-valor {
    font-weight: 600;
    color: #333;
    font-family: Relaway, sans-serif;
    font-size: 12px;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 10px;
    margin-bottom: 20px;
}

.qr-container {
    width: 180px !important;
    height: 180px !important;
    background: #fff;
    /*border: 1px solid #ddd;
    border-radius: 5px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*margin-bottom: 12px;*/
}

.qr-code {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain;
}

#qr-code-container {
    width: 180px !important;
    height: 180px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-code-container canvas {
    max-width: 180px;
    max-height: 180px;
}

.qr-info {
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
    font-family: Relaway, sans-serif;
}

.qr-info small {
    color: #333333;
    font-size: 12px;
    font-family: Relaway, sans-serif;
    line-height: 1.4;
    font-weight: 500;
}

.btn-descargar-qr {
    background: #039AE5;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: Relaway, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-descargar-qr:hover {
    background: #0288d1;
    color: white;
    text-decoration: none !important;
}

.btn-descargar-qr:active,
.btn-descargar-qr:focus {
    background: #0288d1;
    color: white;
    text-decoration: none !important;
    outline: none;
}

.btn-descargar-qr i {
    font-size: 12px;
    color: white;
}

@media (max-width: 1024px) {

    .modal-content-photo {
        width: 95%;
        max-width: 800px;
        min-width: 500px;
        max-height: 85vh;
        min-height: 450px;
    }
    
    .photo-container-responsive {
        max-height: 65vh;
        min-height: 350px;
    }
    
    .photo-container-responsive img {
        max-height: 65vh;
    }

    .modal-content-video {
        width: 95%;
        max-width: 800px;
        min-width: 500px;
        max-height: 85vh;
        min-height: 450px;
    }

    .col-custom-quarter {
        flex: 0 0 50%;
        min-width: 200px;
    }
    
    .col-custom-third {
        flex: 0 0 50%;
    }
    
    .modal-content-custom {
        width: 98%;
        max-width: 950px;
    }
}

@media (max-width: 768px) {

    .modal-content-custom {
        width: 95%;
        max-height: 90vh;
    }
    
    .col-custom,
    .col-custom-half,
    .col-custom-third,
    .col-custom-quarter {
        flex: 0 0 100%;
        min-width: auto;
    }
    
    .modal-header-custom {
        padding: 12px 16px;
    }
    
    .modal-body-custom {
        padding: 16px;
    }
    
    .modal-footer-custom {
        padding: 12px 16px;
    }
    
    .section-title-custom {
        margin: 16px 0 8px;
    }
    
    .form-group-custom {
        margin-bottom: 12px;
    }
    
    .file-upload-section {
        margin: 12px 0;
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .file-upload-content {
        width: 100%;
    }
    
    .file-upload-button-container {
        margin-top: 0;
        align-self: flex-end;
    }

    .modal-content-video {
        width: 95%;
        max-width: 95vw;
        min-width: 400px;
        max-height: 90vh;
        min-height: 400px;
        margin: 5vh auto;
    }
    
    .modal-body-video {
        min-height: 300px;
        padding: 15px;
    }
    
    .video-container-responsive {
        min-height: 300px;
    }
    
    .modal-title-main {
        font-size: 14px;
        line-height: 1.3;
        padding-right: 30px;
    }

     .modal-fullscreen-resumen .modal-header-custom {
        padding: 10px 16px;
    }
    
    .modal-fullscreen-resumen .modal-title-main {
        font-size: 14px;
    }
    
    .modal-fullscreen-resumen .modal-close-btn {
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .modal-fullscreen-resumen .contenedorResumenCuenta {
        padding: 20px !important;
        height: calc(90vh - 100px);
    }

     /* Cambiar contenedorResumenCuenta a flexbox con dirección columna */
    .contenedorResumenCuenta {
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
    }
    
    /* Eliminar estructura de rows y cols completamente */
    .contenedorResumenCuenta .row {
        display: contents !important;
    }
    
    .contenedorResumenCuenta .col-md-9,
    .contenedorResumenCuenta .col-md-3 {
        display: contents !important;
    }
    
    .contenedorResumenCuenta .contenido-principal {
        display: contents !important;
    }
    
    /* AHORA SÍ APLICAR ORDER A LOS ELEMENTOS DIRECTOS */
    
    /* 1. Header del proyecto PRIMERO */
    .contenedorResumenCuenta .proyecto-header {
        order: 1 !important;
        padding: 15px;
        border-radius: 8px;
        margin: 0 0 20px 0;
    }
    
    /* 2. Sidebar SEGUNDO */
    .contenedorResumenCuenta .sidebar-resumen {
        order: 2 !important;
        border-radius: 8px;
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 0 20px 0;
    }
    
    /* 3. Filtros TERCERO */
    .contenedorResumenCuenta .filtros-section {
        order: 3 !important;
        padding: 15px;
        margin: 0 0 20px 0;
        margin-bottom: 20px;
    }
    
    /* 4. Tablas de movimientos CUARTO */
    .contenedorResumenCuenta .tabla-section:not(.tabla-pagos-section) {
        order: 4 !important;
        padding: 10px;
        margin: 0 0 20px 0;
    }
    
    /* 5. Saldo pendiente QUINTO */
    .contenedorResumenCuenta .seccion-saldo-pendiente {
        order: 5 !important;
        margin: -20px 0 60px 0;
    }
    
    /* 6. Tabla de pagos SEXTO */
    .contenedorResumenCuenta .tabla-pagos-section {
        order: 6 !important;
        padding: 10px;
        /*margin: 0 0 20px 0;*/
    }
    
    /* 7. Medios de pago SÉPTIMO */
    .contenedorResumenCuenta .col-md-9:has(span.fontPortales) {
        order: 7 !important;
        display: contents !important;
    }
    
    .contenedorResumenCuenta span.fontPortales {
        order: 7 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #333 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin: 0 !important;
    }
    
    
    /* Ajustar saldo en mobile */
    .contenedorResumenCuenta .saldo-total-section {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .contenedorResumenCuenta .saldo-amount {
        font-size: 24px !important;
        font-weight: bold;
        color: #28a745;
    }
    
    .contenedorResumenCuenta .saldo-label {
        font-size: 14px;
        color: #666;
        margin-top: 5px;
    }
    
    /* QR responsive */
    .contenedorResumenCuenta .qr-section {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .contenedorResumenCuenta .qr-container {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .contenedorResumenCuenta .qr-container img {
        max-width: 150px;
        height: auto;
    }
    
    /* Datos del cliente responsive */
    .contenedorResumenCuenta .cliente-datos {
        width: 100%;
    }
    
    .contenedorResumenCuenta .cliente-datos h4 {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
        color: #333;
    }
    
    .contenedorResumenCuenta .datos-item {
        display: flex;
        flex-direction: inherit;
        margin-bottom: 10px;
        padding: 8px 0;
    }
    
    .contenedorResumenCuenta .datos-item:last-child {
        border-bottom: none;
    }
    
    .contenedorResumenCuenta .dato-label {
        font-size: 12px;
        color: #666;
        font-weight: 600;
        margin-bottom: 3px;
    }
    
    .contenedorResumenCuenta .dato-valor {
        font-size: 12px;
        color: #333;
        word-break: break-word;
    }
    
    /* Select de moneda responsive */
    .contenedorResumenCuenta .datos-item select {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin-top: 5px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    
    .contenedorResumenCuenta .proyecto-nombre {
        font-size: 18px !important;
        margin-bottom: 8px;
    }
    
    .contenedorResumenCuenta .proyecto-ubicacion {
        font-size: 14px;
        color: #666;
        padding-left: 15px !important;
    }
    
    .contenedorResumenCuenta .tabla-section {
        margin-bottom: 20px;
        padding: 10px;
    }
    
    .contenedorResumenCuenta .tabla-section h3 {
        font-size: 16px !important;
        margin-bottom: 15px;
        text-align: center;
        color: #333;
    }
    
    /* ===== MEDIOS DE PAGO ===== */
    .contenedorResumenCuenta .col-md-9 span.fontPortales {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #333 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Asegurar que las tablas sean responsive */
    .contenedorResumenCuenta .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 5px !important;
    }

    
    /* Ajustar botones en mobile */
    .contenedorResumenCuenta .btn-custom {
        width: 100%;
        margin-left: 0px !important;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Ajustar inputs en filtros */
    .contenedorResumenCuenta .form-control-custom {
        font-size: 14px;
        padding: 10px 5px;
    }
    
    /* Ajustar labels */
    .contenedorResumenCuenta .label-custom {
        font-size: 12px;
        margin-bottom: 5px;
    }

      .modal-content-photo {
        width: 95%;
        max-width: 95vw;
        min-width: 400px;
        max-height: 90vh;
        min-height: 400px;
        margin: 5vh auto;
    }
    
    .modal-body-photo {
        padding: 15px;
        min-height: 300px;
    }
    
    .photo-container-responsive {
        max-height: 60vh;
        min-height: 300px;
    }
    
    .photo-container-responsive img {
        max-height: 60vh;
        border-radius: 6px;
    }
    
    .modal-title-main {
        font-size: 14px;
        line-height: 1.3;
        padding-right: 30px;
    }
    
    /* Responsive para modal de informes */
    .modal-content-all-informes {
        width: 95%;
        min-width: 300px;
        max-height: 95vh;
    }
    
    .contenedorAllinformes {
        padding: 15px;
        max-height: calc(95vh - 100px);
    }
    
    /* Responsive para contenido expandido de informes */
    .contenedorAllinformes .panel-body .flexContainer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow {
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow b {
        color: #039AE5 !important;
        font-size: 15px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow span {
        font-size: 13px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow a {
        font-size: 15px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .btn {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }

     .contenedorResumenCuenta {
        padding: 10px;
    }
    
    .contenido-principal {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .sidebar-resumen {
        margin-bottom: 20px;
    }
    
    .saldo-amount {
        font-size: 20px;
    }
    
    .proyecto-nombre {
        font-size: 18px;
    }
    
    .filtros-section {
        padding: 15px;
    }
    
    .tabla-section {
        padding: 15px;
    }
    
    .movimientos-table {
        font-size: 12px;
    }
    
    .movimientos-table th,
    .movimientos-table td {
        padding: 8px 4px;
    }
    
    .resumen-cuenta-cliente-info {
        padding: 15px;
        margin-top: 20px;
    }
    
    .cliente-datos {
        margin-bottom: 20px;
    }
    
    .cliente-datos h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .qr-container {
        width: 100px;
        height: 100px;
    }
    
    .qr-code,
    #qr-code-container {
        width: 80px;
        height: 80px;
    }
    
    #qr-code-container canvas {
        max-width: 80px;
        max-height: 80px;
    }
    
    .datos-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 6px 0;
    }
    
    .dato-label,
    .dato-valor {
        font-size: 13px;
    }

     /* Ajustes al contenedor de dirección */
    #addressDataContainer .col-custom-quarter {
        flex: 0 0 100% !important;
    }

    /* Contenedor principal del formulario */
    #datosUsuarioContainer {
        min-width: auto !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
    
    /* Ajustes a las filas del formulario */
    #formRegister .row-custom {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
    
    /* Ajustes a las columnas */
    #formRegister .col-custom,
    #formRegister .col-custom-quarter {
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Form groups */
    #formRegister .form-group-custom {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: initial !important;
    }
    
    /* Labels */
    #formRegister .label-custom {
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 8px !important;
    }
    
    /* Form controls */
    #formRegister .form-control-custom,
    #formRegister .form-control {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        text-align: left !important;
        padding: 0px !important;
    }
    
    /* Campos de autocompletado */
    #formRegister .autocompleteContainter {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    #formRegister .autocompleteContainter .tt-input,
    #formRegister .autocompleteContainter .tt-hint {
        width: 100% !important;
        text-align: left !important;
    }
    
    /* Checkboxes */
    #formRegister .checkbox-container {
        justify-content: center !important;
        width: 100% !important;
    }

    #formRegister .checkbox-container .label-custom {
        font-size: 10px !important;
    }
    
    /* Títulos de sección */
    #formRegister .section-title-custom {
        text-align: left !important;
        margin-bottom: 20px !important;
    }
    
    /* Título principal */
    #formRegister .post-header-inherit h2 {
        text-align: center !important;
        padding-left: 0 !important;
    }

    /* Botón de confirmación */
    #formRegister .btn-confirm {    
        font-size: 13px !important;
        font-weight: 400 !important;
        padding: 8px 30px !important;
    }

    /* Contenedor de botón de registro */
    #registerButtonContainer {
        justify-content: center !important;
    }
    
    /* Estado civil en móvil */
    .checkbox-class .row-custom {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .checkbox-class .col-custom {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .checkbox-class .form-group-custom {
        justify-content: center !important;
        text-align: center !important;
    }

    .card-project-layout {
        flex-direction: column;
    }
    
    .card-project-image {
        flex: none;
        height: 160px;
        min-height: 160px;
    }
    
    .card-project-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .card-project-balance {
        text-align: left;
        margin-left: 0;
    }
    
    .card-project-info-buttons {
        justify-content: space-around;
        gap: 10px;
    }
    
    .card-project-info-btn {
        min-width: 80px;
        max-width: 100px;
    }
    
    .card-project-main-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .card-project-dropdown-btn,
    .card-project-portal-btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-project-dropdown-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 150px;
        margin-bottom: 0;
    }

     .card-project-layout {
        flex-direction: column;
    }
    
    .card-project-image {
        flex: none;
        height: 200px;
    }
    
    .card-project-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-project-balance {
        text-align: left;
        margin-left: 0;
    }
    
    .card-project-info-buttons {
        justify-content: space-around;
    }
    
    .card-project-main-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-project-dropdown-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 150px;
    }

    .modal-body-two-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-body-section-text {
        padding-right: 0;
    }
    
    .modal-body-section-qr {
        flex: none;
        width: 100%;
    }

     .modal-content-formulariouif {
        min-width: 95vw !important;
        max-width: 95vw !important;
        width: 95vw !important;
        min-height: 95vh !important;
        max-height: 95vh !important;
        height: 95vh !important;
        margin: 2.5vh auto !important;
        border-radius: 8px !important;
    }
    
    .modal-content-formulariouif .modal-header-custom {
        padding: 15px 20px !important;
        flex-shrink: 0;
    }
    
    .modal-content-formulariouif .modal-body-custom {
        flex: 1;
        overflow-y: auto;
        padding: 15px 20px !important;
        font-size: 14px;
    }
    
    .modal-content-formulariouif .modal-footer-custom {
        padding: 15px 20px !important;
        flex-shrink: 0;
    }
    
    /* Ajustes específicos para las tablas en móvil */
    .modal-content-formulariouif .table-responsive {
        font-size: 12px;
        overflow-x: auto;
    }
    
    .modal-content-formulariouif .table th,
    .modal-content-formulariouif .table td {
        padding: 8px 6px !important;
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Ajustar títulos y textos */
    .modal-content-formulariouif .modal-title-main {
        font-size: 18px !important;
    }
    
    .modal-content-formulariouif .modal-title-secondary {
        font-size: 16px !important;
    }
    
    .modal-content-formulariouif .modal-project-title {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    
    /* Botones más táctiles en móvil */
    .modal-content-formulariouif .btn-custom {
        padding: 12px 20px !important;
        font-size: 14px !important;
        min-height: 44px;
    }
    
    /* Alertas más legibles */
    .modal-content-formulariouif .info-alert-custom,
    .modal-content-formulariouif .info-danger-alert-custom {
        padding: 12px 15px !important;
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    /* Mejoras para botón cerrar en móvil */
    .modal-content-formulariouif .modal-close-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 24px !important;
        line-height: 40px !important;
        padding: 0 !important;
    }
    
    /* Enlaces más táctiles */
    .modal-content-formulariouif a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 4px;
    }
    
    /* Iconos de acciones más grandes */
    .modal-content-formulariouif .fa {
        font-size: 18px !important;
    }
    
    /* Botones del modal de confirmación en móvil */
    .modal-confirm .btn-custom,
    .modal-confirm .btn-cancel-custom,
    .modal-confirm .btn-submit-custom,
    .modal-confirm .btn-success,
    #modalConfirmSendDocuments .btn-custom,
    #modalConfirmSendDocuments .btn-cancel-custom,
    #modalConfirmSendDocuments .btn-submit-custom,
    #modalConfirmSendDocuments #btnConfirmarEnvio {
        min-width: 140px !important;
        width: 140px !important;
        max-width: 140px !important;
        padding: 14px 10px !important;
        font-size: 12px !important;
        margin: 0 5px !important;
        line-height: 1.2 !important;
    }

    .modal-content-mediopago {
        max-height: 95vh;
    }
    
    .modal-content-mediopago .modal-body-custom {
        max-height: calc(95vh - 100px);
        padding: 15px 20px;
    }

}

@media (max-width: 480px) {

    .modal-content-video {
        width: 98%;
        max-width: 98vw;
        min-width: 320px;
        max-height: 95vh;
        min-height: 350px;
        margin: 2.5vh auto;
        border-radius: 8px;
    }
    
    .modal-body-video {
        min-height: 250px;
        padding: 10px;
    }
    
    .video-container-responsive {
        min-height: 250px;
    }
    
    .modal-header-custom {
        padding: 10px 12px;
    }
    
    .modal-title-main {
        font-size: 13px;
        line-height: 1.2;
        padding-right: 35px;
    }
    
    .modal-close-btn {
        font-size: 20px;
        right: 15px;
        width: 28px;
        height: 28px;
    }
    
    .modal-footer-custom {
        padding: 10px 12px;
    }
    
    .btn-custom {
        padding: 8px 16px;
        font-size: 13px;
    }

    .modal-content-photo {
        width: 98%;
        max-width: 98vw;
        min-width: 320px;
        max-height: 95vh;
        min-height: 350px;
        margin: 2.5vh auto;
        border-radius: 8px;
    }
    
    .modal-body-photo {
        padding: 10px;
        min-height: 250px;
    }
    
    .photo-container-responsive {
        max-height: 55vh;
        min-height: 250px;
    }
    
    .photo-container-responsive img {
        max-height: 55vh;
        border-radius: 4px;
    }
    
    .modal-title-main {
        font-size: 13px;
        line-height: 1.2;
        padding-right: 35px;
    }
    
    .modal-close-btn {
        font-size: 20px;
        right: 15px;
        width: 28px;
        height: 28px;
    }

    .modal-content-all-informes {
        width: 98%;
        min-width: 280px;
        max-height: 98vh;
        margin: 1vh auto;
        border-radius: 8px;
    }
    
    .contenedorAllinformes {
        padding: 10px;
        max-height: calc(98vh - 80px);
    }
    
    .contenedorAllinformes .panel-body {
        padding: 10px 15px !important;
        margin-bottom: 8px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer {
        padding: 8px 0 !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow b {
        color: #039AE5 !important;
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow span {
        font-size: 12px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow a {
        font-size: 14px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }

    .modal-body-two-columns {
        gap: 15px;
    }
    
    .modal-body-section-qr {
        padding: 15px;
    }

    .modal-content-formulariouif {
        min-width: 98vw !important;
        max-width: 98vw !important;
        width: 98vw !important;
        margin: 1vh auto !important;
        min-height: 98vh !important;
        max-height: 98vh !important;
    }
    
    .modal-content-formulariouif .modal-body-custom {
        padding: 10px 15px !important;
    }
    
    .modal-content-formulariouif .modal-header-custom,
    .modal-content-formulariouif .modal-footer-custom {
        padding: 10px 15px !important;
    }
    
    .modal-content-formulariouif .table th,
    .modal-content-formulariouif .table td {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }

    .modal-content-contactconsulta {
        width: 95vw !important;
        height: 80vh !important;
        max-width: 95vw !important;
        max-height: 80vh !important;
        min-width: 320px !important;
        min-height: 400px !important;
    }
    
    .modal-content-contactconsulta .modal-body-custom {
        max-height: calc(80vh - 100px);
        padding: 15px;
    }


}

/* Responsive para tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .resumen-cuenta-cliente-info {
        padding: 20px;
    }
    
    .qr-container {
        width: 110px;
        height: 110px;
    }
    
    .qr-code,
    #qr-code-container {
        width: 90px;
        height: 90px;
    }
    
    #qr-code-container canvas {
        max-width: 90px;
        max-height: 90px;
    }
}

/* Estilos específicos para Chrome/WebKit */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .form-control-custom[type="date"] {
        line-height: 10px !important;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-fullscreen-resumen .contenedorResumenCuenta {
        padding: 20px !important;
    }
}


/* ========================================
   FORMULARIO DE REGISTRO ESTILOS BASE - CLASES Y SELECTORES
   ======================================== */

/* Contenedor principal del formulario */
#datosUsuarioContainer {
    min-width: 1050px !important;
    min-height: 600px !important;
}

/* Estilos para form-group de autocompletado */
#street .form-group,
#country .form-group,
#province .form-group,
#city .form-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-bottom: 0px !important;
    margin-top: -5px !important;
}

/* Estilos para form-control de autocompletado */
#street .form-control,
#country .form-control,
#province .form-control,
#city .form-control,
#nacionalidad .form-control,
#profesion .form-control {
    border-bottom: 1px solid #ddd !important;
    font-size: 14px !important;
}

#street .form-control:focus,
#country .form-control:focus,
#province .form-control:focus,
#city .form-control:focus,
#nacionalidad .form-control:focus,
#profesion .form-control:focus {
    border-color: transparent !important;
    box-shadow: none !important;
    border-bottom-color: #0398E3 !important;
}

/* Estilos del formulario */
#formRegister i.fa {
    color: #07496B;
}

#formRegister span {
    text-align: left !important;
    display: block !important;
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 3px !important;
}

/* Botón de confirmación */
.btn-confirm {
    background-color: #02B875 !important;
    color: #FFF !important;
    /*text-transform: uppercase !important;*/
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.btn-confirm i.fa {
    color: #FFF !important;
}

/* Contenedor de checkbox */
.checkbox-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 5px !important;
}

.checkbox-container .checkbox-fa {
    margin: 0 !important;
    list-style: none !important;
    cursor: pointer !important;
}

.checkbox-container .login-label {
    margin: 0 !important;
    cursor: pointer !important;
    user-select: none !important;
    font-size: 1.3rem !important;
}

/* Input group */
.input-group {
    display: block !important;
}

/* Estilos de navegación pills */
.pillsRegisterForm .nav-pills > li.active > a, 
.pillsRegisterForm .nav-pills > li.active > a:focus {
    color: #0AF !important;
    border-bottom: 3px solid #0AF !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: #FFF !important;
    box-shadow: none !important;
    outline: none !important;
}

.pillsRegisterForm .nav-pills > li.active > a:focus:hover {
    color: #0AF !important;
    border-bottom: 3px solid #0AF !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: #FFF !important;
    box-shadow: none !important;
    outline: none !important;
}

.pillsRegisterForm .nav-pills > li > a {
    background-color: #FFF !important;
    color: #333333 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Título principal */
.post-header-inherit h2 {
    color: #333333 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Contenedor de botón de registro */
#registerButtonContainer {
    display: flex !important;
    align-items: end !important;
    justify-content: end !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    text-align: left !important;
}

#registerButtonContainer > div {
    display: flex !important;
    align-items: center !important;
}

#registerButtonContainer .checkbox-container {
    margin: 0 !important;
}

#registerButtonContainer .text-center {
    text-align: left !important;
}

/* Estilos para estado civil (maritalStatusContainer) */
.checkbox-class .row-custom {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
}

.checkbox-class .col-custom {
    flex: none !important;
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

.checkbox-class .form-group-custom {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    gap: 5px !important;
}

.checkbox-class input[type="radio"] {
    margin: 0 5px 0 0 !important;
}

.checkbox-class .label-custom {
    margin: 0 !important;
    white-space: nowrap !important;
}

/* Estilos para dirección (addressDataContainer) */
#addressDataContainer .row-custom {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

#addressDataContainer .col-custom-quarter {
    flex: 0 0 calc(25% - 12px) !important;
    min-width: 200px !important;
    display: flex !important;
    flex-direction: column !important;
}

#addressDataContainer .form-group-custom {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

#addressDataContainer .label-custom {
    margin-bottom: 5px !important;
    font-weight: bold !important;
}

/* Alerta de estado */
.info-alert-custom {
    display: table !important;
    text-align: left !important;
    width: auto !important;
    margin: 10px 0 0 0 !important;
    padding: 8px 12px !important;
    background-color: #D9EDF7 !important;
    border: 1px solid #D9EDF7 !important;
    border-radius: 1px !important;
    font-size: 13px !important;
    color: #31708F !important;
}

.info-danger-alert-custom {
    display: inline-block !important;
    text-align: left !important;
    width: auto !important;
    margin: 10px 0 0 0 !important;
    padding: 8px 12px !important;
    background-color: #D9EDF7 !important;
    border: 1px solid #D9EDF7 !important;
    border-radius: 1px !important;
    font-size: 13px !important;
    color: #a94442 !important;
}


/* ========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ======================================== */

/* Breakpoints para contenedor principal */
@media (max-width: 1200px) {
    #datosUsuarioContainer {
        min-width: 900px !important;
        min-height: 650px !important;
    }
    
    #addressDataContainer .col-custom-quarter {
        flex: 0 0 calc(50% - 12px) !important;
    }

    .col-custom-quarter {
        flex: 0 0 50%;
        min-width: 250px;
    }
}

@media (max-width: 992px) {
    #datosUsuarioContainer {
        min-width: 100% !important;
        min-height: 700px !important;
        padding: 0 15px !important;
    }
}

/* Media query específico para webkit */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    #personalDataContainer3 .form-control-custom[type="date"] {
        line-height: 22px !important;
    }
}

/* ======================================================================= */
/* ESTILOS PARA CARD PROJECTS - NUEVA ESTRUCTURA */
/* ======================================================================= */

/* Container principal de las tarjetas de proyecto */
.card-project-new {
    background: #FFFFFF;
    border-radius: 2px;
    margin-bottom: 25px;
    overflow: visible;
    /*transition: box-shadow 0.3s ease;*/
    border: 1px solid #B8B8B8;
    position: relative;
    margin-left: 0px !important;
    margin-right: 0px !important;
}

/* Layout principal con imagen a la izquierda y contenido a la derecha */
.card-project-layout {
    display: flex;
    min-height: 180px;
    border-radius: 6px;
    overflow: hidden;
    margin: 20px;
    transform: none !important;
    transition: none !important;
}

/* Imagen del proyecto - lado izquierdo */
.card-project-image {
    flex: 0 0 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 180px;
    border-radius: 5px;
    transform: none !important;
    transition: none !important;
    contain: layout style paint;
    isolation: isolate;
}

/* Contenido del proyecto - lado derecho */
.card-project-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 0 6px 6px 0;
}

/* Header con título y saldo */
.card-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-project-title {
    font-size: 20px;
    font-weight: 700;
    color: #0398E3;
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

.card-project-balance {
    text-align: right;
    flex: 0 0 auto;
    margin-left: 20px;
}

.card-project-balance-label {
    font-size: 10px;
    color: #333333;
    margin: 0 0 2px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.card-project-balance-amount {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: #74B963;
    font-family: Opensans, sans-serif;
}

.card-project-balance-amount a {
    color: inherit;
    text-decoration: none;
}

.card-project-balance-amount a:hover {
    text-decoration: none;
    color: inherit;
}

/* Línea divisora */
.card-project-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0 0 12px 0;
}

/* Sección de botones de información */
.card-project-info-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-project-info-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    flex: 1;
    max-width: 150px;
    border: 1px solid transparent;
}

.card-project-info-btn:hover {
    background-color: #e3f2fd;
    text-decoration: none;
    color: #0398E3;
    border: 1px solid #0398E3;
    box-shadow: 0 2px 8px rgba(3, 152, 227, 0.2);
}

.card-project-info-btn i {
    font-size: 24px;
    color: #0398E3;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
    transform-origin: center;
    display: inline-block;
    padding: 10px;
}

.card-project-info-btn:hover i {
    transform: scale(1.2);
}

.card-project-info-btn span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #333;
}

.card-project-info-btn small {
    font-size: 10px;
    color: #666;
    display: block;
    margin-top: 4px;
}

/* Sección de botones principales */
.card-project-main-buttons {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Botón de gestión con dropdown */
.card-project-dropdown {
    position: relative;
    display: inline-block;
}

.card-project-dropdown-btn {
    background: #ffffff;
    border: 1px solid #0398E3;
    color: #0398E3;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.card-project-dropdown-btn:hover {
    background: #ffffff;
    border-color: #0398E3;
    color: #0398E3;
}

.card-project-dropdown-content {
    display: none;
    position: fixed;
    top: auto;
    right: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    min-width: 150px;
    margin-top: 4px;
    white-space: nowrap;
}

.card-project-dropdown.show .card-project-dropdown-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.card-project-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.3s ease;
    font-size: 10px;
    font-weight: 600;
}

.card-project-dropdown-item-custom {
    padding: 10px 20px !important;
}

.card-project-dropdown-item:last-child {
    border-bottom: none;
}

.card-project-dropdown-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #07496B;
}

.card-project-dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: #333333;
}

/* Botón principal de ingresar al portal */
.card-project-portal-btn {
    background: #0398E3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.card-project-portal-btn:hover {
    background: #0398E3;
    color: white;
    text-decoration: none;
}

/* Estados especiales del saldo */
.card-project-balance-calculating {
    color: #ffc107;
}

.card-project-balance-unavailable {
    color: #dc3545;
}

.card-project-balance-no-liquidation {
    color: #6c757d;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .card-project-image {
        flex: 0 0 220px;
    }
    
    .card-project-info-buttons {
        gap: 15px;
    }
    
    .card-project-info-btn {
        min-width: 85px;
        max-width: 110px;
    }
}

.card-project-balance-no-liquidation {
    color: #6c757d;
}


/* Estilos para modal de medio de pago en dos columnas */
.modal-body-two-columns {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 400px;
}

.modal-body-section-text {
    flex: 1;
    padding-right: 20px;
}

.modal-body-section-qr {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.modal-body-section-qr .contentQR {
    margin-bottom: 10px;
}

.modal-body-section-qr p {
    margin: 5px 0 0 0;
    color: #495057;
    font-size: 14px;
}

/* Overlay para modales */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-overlay.show {
    display: flex !important;
}

/* Estilos específicos para modal de contacto consulta */
.modal-content-uploadfile {
    width: 400px !important;
    /* height: 400px !important; */
    max-width: 400px !important;
    max-height: 450px !important;
    min-width: 400px !important;
    min-height: 450px !important;
    display: flex;
    flex-direction: column;
}

/* Estilos específicos para modal de confirmacion */
.modal-content-confirmacion {
    width: 300px !important;
    /*height: 400px !important;*/
    max-width: 300px !important;
    max-height: 300px !important;
    min-width: 400px !important;
    min-height: 300px !important;
    display: flex;
    flex-direction: column;
    
}

/* Estilos específicos para modal de contacto consulta */
.modal-content-contactconsulta {
    width: 800px !important;
    /*height: 400px !important;*/
    max-width: 800px !important;
    max-height: 600px !important;
    min-width: 800px !important;
    min-height: 500px !important;
    display: flex;
    flex-direction: column;
}

.modal-content-formulariouif {
    /*width: 800px !important;*/
    /*height: 400px !important;*/
    max-width: 1000px !important;
    max-height: 600px !important;
    min-width: 800px !important;
    min-height: 500px !important;
    display: flex;
    flex-direction: column;
}

/* Estilos para modal de confirmación */
.modal-confirm {
    max-width: 500px !important;
    width: 90% !important;
    min-width: auto !important;
}

.modal-confirm .modal-body-custom {
    padding: 30px 20px !important;
    text-align: center;
}

.modal-confirm .info-message {
    color: #333 !important;
}

.modal-confirm .info-message p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-confirm .info-message p strong {
    font-weight: 600;
    color: #000;
}

.modal-confirm .modal-footer-custom {
    justify-content: center;
    gap: 15px;
}

/* Asegurar que ambos botones tengan el mismo ancho */
.modal-confirm .btn-custom,
.modal-confirm .btn-cancel-custom,
.modal-confirm .btn-submit-custom,
.modal-confirm .btn-success,
#modalConfirmSendDocuments .btn-custom,
#modalConfirmSendDocuments .btn-cancel-custom,
#modalConfirmSendDocuments .btn-submit-custom,
#modalConfirmSendDocuments #btnConfirmarEnvio {
    min-width: 160px !important;
    width: 160px !important;
    max-width: 160px !important;
    text-align: center !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 0 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.modal-confirm .btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.modal-confirm .btn-success:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.modal-content-contactconsulta .modal-header-custom {
    flex-shrink: 0;
}

.modal-content-contactconsulta .modal-body-custom {
    flex: 1;
    overflow-y: auto;
    max-height: calc(600px - 120px); /* Resta altura del header y footer */
    padding: 20px 24px;
}

.modal-content-contactconsulta .modal-footer-custom {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    z-index: 10;
}

/* Responsive para modal de contacto consulta */
@media (max-width: 900px) {
    .modal-content-contactconsulta {
        width: 90vw !important;
        height: 70vh !important;
        max-width: 90vw !important;
        max-height: 70vh !important;
        min-width: 400px !important;
        min-height: 500px !important;
    }
    
    .modal-content-contactconsulta .modal-body-custom {
        max-height: calc(70vh - 120px);
        padding: 15px 20px;
    }
}

.modal-content-mediopago {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content-mediopago .modal-header-custom {
    flex-shrink: 0;
}

.modal-content-mediopago .modal-body-custom {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* Resta altura del header y footer */
    padding: 20px 24px;
}

.modal-content-mediopago .modal-footer-custom {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    z-index: 10;
}


/* Fix para z-index del dropdown de intl-tel-input */
.iti__dropdown-content {
    z-index: 9999 !important;
}

.iti {
    z-index: 1000;
}

.iti__country-list {
    z-index: 9999 !important;
}