/* ============================================
   VARIABLES CSS - Ideas Aval
   ============================================ */
:root {
    --font-primary: "Montserrat", sans-serif;
    --font-secondary: "Inter", sans-serif;
    
    /* Colores Primary */
    --color-primary-500: #2C42D0;
    --color-primary-600: #2537AD;
    --color-primary-700: #1A356C;
    --color-primary-900: #0E1D37;
    --color-primary: var(--color-primary-500);
    
    /* Colores Secondary */
    --color-secondary-500: #DE2012;
    --color-secondary: var(--color-secondary-500);
    
    /* Colores Gray */
    --color-gray-50: #FFFFFF;
    --color-gray-100: #F8F6F6;
    --color-gray-200: #A9A9A9;
    --color-gray-700: #555555;
    --color-gray-900: #252525;
    
    /* Colores principales */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark: #252525;
    --color-success: #05922B;
    --color-danger: #DE2012;
}

/* ============================================
   RESET Y BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
}

/* Ocultar header y footer de Liferay */
.ga-header,
.ga-footer {
    display: none !important;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
}

.layout_column_50 {
    width: 50%;
    min-width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
}

/* ============================================
   BACKGROUNDS
   ============================================ */
.bg_default {
    background-color: var(--color-gray-100);
}

.bg_primary {
    background-color: var(--color-primary);
}

/* ============================================
   BOX CONTENT
   ============================================ */
.box_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    height: 100%;
    width: 100%;
}

.box_content_logo-ideas-aval {
    width: 280px;
    margin-bottom: 2rem;
}

.box_content_colaborador {
    width: 400px;
    margin-top: 2rem;
}

.imagen-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 200px;
    background: var(--color-gray-200);
    color: white;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
.headline-1 {
    font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
    line-height: clamp(2rem, 1.75rem + 1.25vw, 2.7rem);
    margin: 0;
}

.headline-3 {
    font-size: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    line-height: clamp(1.5rem, 1.35rem + 0.75vw, 1.75rem);
    margin: 0;
}

.small {
    font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    line-height: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
}

.text_primary {
    color: var(--color-primary);
}

.text_dark {
    color: var(--color-gray-900);
}

.text-center {
    text-align: center;
}

.font-weight-bold {
    font-weight: 700;
}

.font-weight-semibold {
    font-weight: 600;
}

/* ============================================
   FORMULARIO
   ============================================ */
.form-content {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 500px;
}

.form-content h2 {
    margin-bottom: 0.5rem;
}

.form-content p {
    margin-bottom: 1rem;
}

/* ============================================
   FORM CONTROLS
   ============================================ */
.form-control {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    border-color: none !important;
    border-style: none !important;
    background-color: #fff !important;
}

label {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-gray-700);
    border-radius: none !important;
    border-color: none !important;
    border-style: none !important;
}

label i {
    font-size: 1.3rem;
    color: var(--color-primary);
}

/* ============================================
   INPUTS
   ============================================ */
.input-box {
    outline: none;
    border-radius: 0.25rem;
    background: var(--color-gray-100);
    border: 2px solid var(--color-gray-100);
    padding: 0.5rem;
    min-height: 44px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.input-box:focus {
    border: 2px solid var(--color-primary);
    background: #fff;
}

.input-line {
    outline: none;
    background: var(--color-white);
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 2px solid var(--color-gray-100);
    font-size: 0.8rem;
    padding: 0.5rem;
    color: var(--color-gray-700);
    width: 100%;
}

.input-line:focus {
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-gray-900);
}

/* Estados de error */
.input-box.error,
.input-line.error {
    border-color: var(--color-danger) !important;
    background-color: #fff5f5;
}

.input-box.error:focus,
.input-line.error:focus {
    border-color: var(--color-danger) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    display: none;
    color: var(--color-danger);
    font-size: 12px;
    margin-top: 2px;
    font-weight: normal;
}

.form-control.has-error .error-message {
    display: block;
}

/* ============================================
   SCROLL AREA
   ============================================ */
.scroll-y {
    overflow-y: auto;
    max-height: 320px;
    padding-right: 20px;
    margin-bottom: 1rem;
}

.scroll-y::-webkit-scrollbar {
    width: 6px;
}

.scroll-y::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: 3px;
}

.scroll-y::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.scroll-y::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-700);
}

/* ============================================
   INTEGRANTES
   ============================================ */
.integrante-item {
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-100);
    margin-bottom: 1rem;
}

.integrante-adicional {
    position: relative;
    padding-top: 2rem;
}

.btn-eliminar {
    position: absolute;
    top: 0.5rem;
    right: 0;
    background-color: var(--color-danger);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    z-index: 10;
}

.btn-eliminar:hover {
    background-color: #c82333;
}

/* ============================================
   BOTONES
   ============================================ */
.btn_primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn_primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 90%, black);
  border-color: color-mix(in srgb, var(--color-primary) 88%, black);
}
.btn_primary:active {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  border-color: color-mix(in srgb, var(--color-primary) 83%, black);
}

.btn_secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.btn_secondary:hover {
  background-color: color-mix(in srgb, var(--color-secondary) 90%, black);
  border-color: color-mix(in srgb, var(--color-secondary) 88%, black);
}
.btn_secondary:active {
  background-color: color-mix(in srgb, var(--color-secondary) 85%, black);
  border-color: color-mix(in srgb, var(--color-secondary) 83%, black);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.link {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    border: 0;
    background: transparent;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
}

.link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   FORM FOOTER
   ============================================ */
.form-content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-content-footer img {
    width: auto;
    height: 45px;
}

.form-content-footer-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   SUCCESS ALERT
   ============================================ */
.success-alert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #F8F6F6 0%, #FFFFFF 100%);
    border-radius: 16px;
    padding: 3rem 2rem 2rem;
    margin: auto;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.5s ease-out;
}

.success-alert__icon {
    margin-bottom: 1.5rem;
}

.success-alert__icon i {
    font-size: 4rem;
    color: var(--color-success);
    display: inline-block;
}

.success-alert__content {
    margin-bottom: 2rem;
}

.success-alert__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.success-alert__subtitle {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    margin-bottom: 0;
    line-height: 1.5;
}

.success-alert__actions {
    display: flex;
    justify-content: center;
}

.d-none {
    display: none !important;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary);
    padding: 20px 0;
}

footer img {
    max-height: 60px;
    width: auto;
}

/* ============================================
   MODAL DE NOTIFICACIONES (MANTENIDO)
   ============================================ */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.notification-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideIn 0.3s ease;
}

.notification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.notification-icon.success {
    background-color: #d4edda;
    color: #28a745;
}

.notification-icon.error {
    background-color: #f8d7da;
    color: #dc3545;
}

.notification-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.notification-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.notification-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notification-btn:hover {
    background-color: #0056b3;
}

.notification-btn.success {
    background-color: #28a745;
}

.notification-btn.success:hover {
    background-color: #218838;
}

.notification-btn.error {
    background-color: #dc3545;
}

.notification-btn.error:hover {
    background-color: #c82333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1400px) {
    .scroll-y {
        max-height: 200px;
    }
    
    .form-content {
        padding: 1rem;
    }
}

@media (max-width: 992px) {
    .layout {
        flex-direction: column;
    }

    .layout_column_50 {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .box_content {
        padding: 1.5rem 1rem !important;
    }

    .box_content_logo-ideas-aval {
        width: 200px;
    }

    .box_content_colaborador {
        width: 300px;
    }

    .form-content-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .form-content-footer-cta {
        flex-direction: column;
        width: 100%;
    }

    .form-content-footer-cta .btn {
        width: 100%;
    }

    .scroll-y {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .headline-1 {
        font-size: 1.5rem;
    }

    .headline-3 {
        font-size: 1rem;
    }

    .box_content {
        padding: 1rem;
    }

    .form-content {
        padding: 1rem;
    }

    .scroll-y {
        max-height: 200px;
    }
}

/* ==================== FASE 1 PROPUESTA - CORREGIDO ==================== */

.propuesta-fase1-layout {
    display: flex;
    min-height: 100vh;
    background: white;
}

/* COLUMNA IZQUIERDA - Fondo gris claro según mockup aprobado */
.propuesta-fase1-imagen {
    flex: 0 0 50%;
    background: var(--color-gray-100);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.propuesta-imagen-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.propuesta-logo-principal {
    max-width: 180px;
    margin-bottom: 1rem;
}

/* Textos del header - COLORES OSCUROS según mockup */
.propuesta-titulo-grande {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: var(--color-gray-900); 
    font-family: var(--font-primary);
}

.propuesta-subtitulo {
    font-size: 1.25rem;
    color: var(--color-primary); 
    margin: 0;
    font-family: var(--font-primary);
}

/* Imagen decorativa (persona) */
.propuesta-imagen-decorativa {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.propuesta-imagen-decorativa img {
    max-width: 450px;
    width: 100%;
    height: auto;
}

/* Footer logos (iconos grupo Aval) */
.propuesta-footer-logos {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.propuesta-footer-logos img {
    height: 40px;
    width: auto;
}

/* COLUMNA DERECHA - Formulario simple */
.propuesta-fase1-formulario {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--color-primary); 
}

.propuesta-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.propuesta-form-titulo {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--color-gray-900);
    font-family: var(--font-primary);
}

.propuesta-form-descripcion {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

.propuesta-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

.propuesta-autocomplete-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.propuesta-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-gray-100);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: var(--font-secondary);
    background: var(--color-gray-100);
}

.propuesta-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

.propuesta-sugerencias {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.sugerencia-item {
    display: block;
    padding: 12px 16px;
    color: var(--color-gray-900);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray-100);
    font-family: var(--font-secondary);
    transition: background 0.2s;
}

.sugerencia-item:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
}

.sugerencia-item:last-child {
    border-bottom: none;
}

.propuesta-btn-aceptar {
    width: 100%;
    padding: 1rem;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: var(--font-primary);
}

.propuesta-btn-aceptar:hover {
    background: color-mix(in srgb, var(--color-secondary) 90%, black);
}

.propuesta-terminos {
    text-align: center;
    margin-top: 1.5rem;
}

.propuesta-link-terminos {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-family: var(--font-secondary);
}

.propuesta-link-terminos:hover {
    text-decoration: underline;
}

/* ==================== FASE 2 PROPUESTA - SIN CAMBIOS ==================== */

.ia_header {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    align-items: center;
}

.ia_header_logo img {
    max-height: 200px;
}

.ia_header_copy {
    text-align: center;
    flex: 1;
    padding-top: 1.5%;
}

.layout {
    min-height: 80vh;
    display: flex;
}

.ia_section {
    width: 100%;
    max-width: 1700px;
    padding: 2rem;
}

.hero_form_content {
    width: 100%;
}

.form-content-wide {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    width: 100%;
}

.propuesta-equipo-badge-wrapper {
    padding: 0.5rem 0;
}

.badge-large {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.integrantes-header {
    margin-bottom: 1rem;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.integrantes-table {
    width: 100%;
    border-collapse: collapse;
}

.integrantes-table thead {
    background-color: #f8f9fa;
}

.integrantes-table th,
.integrantes-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.integrantes-table th {
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
}

.btn-action {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--color-primary);
    font-size: 1rem;
}

.btn-action:hover {
    color: var(--color-primary-700);
}

.file-upload-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.file-upload-box {
    flex: 1;
    border: 2px dashed #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}

.file-upload-box i {
    font-size: 2rem;
    color: var(--color-gray-700)
}

/* Responsive */
@media (max-width: 992px) {
    .propuesta-fase1-layout {
        flex-direction: column;
    }
    
    .propuesta-fase1-imagen,
    .propuesta-fase1-formulario {
        flex: 1 1 auto;
    }
    
    .propuesta-titulo-grande {
        font-size: 2rem;
        text-align: center;
    }
    
    .propuesta-subtitulo {
        font-size: 1rem;
        text-align: center;
    }
    
    .propuesta-imagen-content {
        align-items: center;
    }
    
    .ia_header {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }
    
    .file-upload-container {
        flex-direction: column;
    }
}

/* ==================== MODAL EDITAR INTEGRANTE ==================== */

/* Centrar modal verticalmente */
.modal-editar-integrante .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 60px);
    margin: 30px auto;
    max-width: 500px;
}

.modal-editar-integrante .modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Header */
.modal-editar-integrante .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

.modal-editar-integrante .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

/* Body */
.modal-editar-integrante .modal-body {
    padding: 1.5rem;
}

.modal-editar-integrante .form-group {
    margin-bottom: 1.25rem;
}

.modal-editar-integrante .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ⭐ INPUTS CON BORDES */
.modal-editar-integrante .form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 2px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-editar-integrante .form-control:focus {
    border-color: #2C42D0;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(44, 66, 208, 0.15);
}

/* Footer */
.modal-editar-integrante .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-radius: 0 0 8px 8px;
    gap: 0.75rem;
}

/* Botones */
.modal-editar-integrante .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
}

.modal-editar-integrante .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.modal-editar-integrante .btn-primary {
    background-color: #2C42D0;
    border-color: #2C42D0;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
}

.modal-editar-integrante .btn-primary:hover {
    background-color: #2337b8;
    border-color: #2033a8;
}

/* Responsive */
@media (max-width: 576px) {
    .modal-editar-integrante .modal-dialog {
        margin: 10px;
        width: calc(100% - 20px);
    }
}
/* ==================== MODAL EDITAR INTEGRANTE - BORDES INPUTS ==================== */

/* ⭐ SOBRESCRIBIR border-style: none SOLO PARA ESTE MODAL */
.modal-editar-integrante .modal-body .form-group .form-control,
.modal-editar-integrante .modal-body input.form-control,
.modal-editar-integrante .modal-body textarea.form-control,
.modal-editar-integrante .modal-body select.form-control {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 2px solid #ced4da !important; /* ⭐ FORZAR BORDE */
    border-style: solid !important; /* ⭐ FORZAR ESTILO SÓLIDO */
    border-radius: 6px !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Focus state */
.modal-editar-integrante .modal-body .form-group .form-control:focus,
.modal-editar-integrante .modal-body input.form-control:focus,
.modal-editar-integrante .modal-body textarea.form-control:focus,
.modal-editar-integrante .modal-body select.form-control:focus {
    color: #495057 !important;
    background-color: #fff !important;
    border: 2px solid #2C42D0 !important; /* ⭐ BORDE AZUL EN FOCUS */
    border-style: solid !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem rgba(44, 66, 208, 0.15) !important;
}

/* Placeholder */
.modal-editar-integrante .modal-body .form-control::placeholder {
    color: #6c757d !important;
    opacity: 0.6 !important;
}

/* Hover state (opcional) */
.modal-editar-integrante .modal-body .form-control:hover {
    border-color: #a8b2c1 !important;
}

/* Disabled state */
.modal-editar-integrante .modal-body .form-control:disabled,
.modal-editar-integrante .modal-body .form-control[readonly] {
    background-color: #e9ecef !important;
    opacity: 1 !important;
    border-color: #ced4da !important;
}

/* ==================== CENTRADO VERTICAL DEL MODAL ==================== */

.modal-editar-integrante .modal-dialog {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100vh - 60px) !important;
    margin: 30px auto !important;
    max-width: 500px !important;
}

.modal-editar-integrante .modal-content {
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
}

/* ==================== HEADER DEL MODAL ==================== */

.modal-editar-integrante .modal-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 8px 8px 0 0 !important;
}

.modal-editar-integrante .modal-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
}

.modal-editar-integrante .close {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #000 !important;
    text-shadow: none !important;
    opacity: 0.5 !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
}

.modal-editar-integrante .close:hover {
    opacity: 0.75 !important;
}

/* ==================== BODY DEL MODAL ==================== */

.modal-editar-integrante .modal-body {
    padding: 1.5rem !important;
}

.modal-editar-integrante .form-group {
    margin-bottom: 1.25rem !important;
}

.modal-editar-integrante .form-group label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 0.5rem !important;
}

/* ==================== FOOTER DEL MODAL ==================== */

.modal-editar-integrante .modal-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0 0 8px 8px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
}

/* ==================== BOTONES ==================== */

.modal-editar-integrante .modal-footer .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9375rem !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-style: solid !important;
    border-width: 1px !important;
}

.modal-editar-integrante .modal-footer .btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.modal-editar-integrante .modal-footer .btn-primary {
    background-color: #2C42D0 !important;
    border-color: #2C42D0 !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9375rem !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-style: solid !important;
    border-width: 1px !important;
}

.modal-editar-integrante .modal-footer .btn-primary:hover {
    background-color: #2337b8 !important;
    border-color: #2033a8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(44, 66, 208, 0.3) !important;
}

/* ==================== BACKDROP ==================== */

.modal-backdrop.show {
    opacity: 0.6 !important;
}

/* ==================== ANIMACIÓN ==================== */

.modal-editar-integrante.fade .modal-dialog {
    transition: transform 0.3s ease-out !important;
    transform: translate(0, -50px) !important;
}

.modal-editar-integrante.show .modal-dialog {
    transform: translate(0, 0) !important;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 576px) {
    .modal-editar-integrante .modal-dialog {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        min-height: calc(100vh - 20px) !important;
    }
    
    .modal-editar-integrante .modal-body,
    .modal-editar-integrante .modal-footer {
        padding: 1rem !important;
    }
    
    .modal-editar-integrante .form-group .form-control {
        font-size: 16px !important; /* Evitar zoom en iOS */
    }
}

/* ==================== FIX PARA INPUTS EN LIFERAY ==================== */

/* Sobrescribir cualquier regla global de Liferay que quite bordes */
.modal-editar-integrante input[type="text"].form-control,
.modal-editar-integrante input[type="email"].form-control,
.modal-editar-integrante input[type="password"].form-control,
.modal-editar-integrante input[type="number"].form-control,
.modal-editar-integrante textarea.form-control,
.modal-editar-integrante select.form-control {
    border: 2px solid #ced4da !important;
    border-style: solid !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.modal-editar-integrante input[type="text"].form-control:focus,
.modal-editar-integrante input[type="email"].form-control:focus,
.modal-editar-integrante input[type="password"].form-control:focus,
.modal-editar-integrante input[type="number"].form-control:focus,
.modal-editar-integrante textarea.form-control:focus,
.modal-editar-integrante select.form-control:focus {
    border: 2px solid #2C42D0 !important;
    border-style: solid !important;
}

/* ==================== BOTÓN ELIMINAR ==================== */

.btn-action.btn-delete {
    background-color: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.btn-action.btn-delete:hover {
    color: #c82333;
    transform: scale(1.1);
}

.btn-action.btn-delete i {
    font-size: 1.1rem;
}

/* ==================== MODAL ERROR INTEGRANTES ==================== */

.modal-error-integrantes .modal-body {
    padding: 3rem 2rem;
}

.modal-error-integrantes .error-icon {
    color: #dc3545;
}

.modal-error-integrantes h4 {
    color: #212529;
    font-size: 1.5rem;
}

.modal-error-integrantes p {
    font-size: 1rem;
    margin-bottom: 0;
}

.modal-error-integrantes .btn-danger {
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    border-radius: 6px;
}
/* ==================== MODAL CONFIRMAR ELIMINACIÓN ==================== */

.modal-confirmar-eliminacion .modal-body {
    padding: 3rem 2rem;
}

.modal-confirmar-eliminacion .warning-icon {
    color: #ffc107;
}

.modal-confirmar-eliminacion h4 {
    color: #212529;
    font-size: 1.5rem;
}

.modal-confirmar-eliminacion p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.modal-confirmar-eliminacion p strong {
    color: #212529;
}

.modal-confirmar-eliminacion .btn-secondary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    background-color: #6c757d;
    border-color: #6c757d;
}

.modal-confirmar-eliminacion .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.modal-confirmar-eliminacion .btn-danger {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
}

.modal-confirmar-eliminacion .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* ==================== MODAL ÉXITO ELIMINACIÓN ==================== */

.modal-exito-eliminacion .modal-body {
    padding: 3rem 2rem;
}

.modal-exito-eliminacion .success-icon {
    color: #28a745;
}

.modal-exito-eliminacion h4 {
    color: #212529;
    font-size: 1.5rem;
}

.modal-exito-eliminacion p {
    font-size: 1rem;
    margin-bottom: 0;
}

.modal-exito-eliminacion .btn-success {
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    border-radius: 6px;
}

.modal-exito-eliminacion .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* ==================== MODAL ERROR ELIMINACIÓN ==================== */

.modal-error-eliminacion .modal-body {
    padding: 3rem 2rem;
}

.modal-error-eliminacion .error-icon {
    color: #dc3545;
}

.modal-error-eliminacion h4 {
    color: #212529;
    font-size: 1.5rem;
}

.modal-error-eliminacion p {
    font-size: 1rem;
    margin-bottom: 0;
}

.modal-error-eliminacion .btn-danger {
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    border-radius: 6px;
}

.modal-error-eliminacion .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* ==================== ANIMACIÓN DE MODALES ==================== */

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* ==================== ICONOS DE MODALES ==================== */

.modal-body .warning-icon,
.modal-body .success-icon,
.modal-body .error-icon {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* ==================== MODALES CUSTOM ==================== */

.custom-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: auto;
    padding: 20px;
}

.custom-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.custom-modal-backdrop.show {
    display: block !important;
}

.custom-modal-dialog {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.custom-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-close:hover {
    opacity: 0.7;
}

.custom-modal-body {
    padding: 20px;
}

.custom-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.custom-modal-body.text-center {
    text-align: center;
    padding: 30px 20px;
}

.custom-modal-body .warning-icon,
.custom-modal-body .success-icon,
.custom-modal-body .error-icon {
    margin-bottom: 15px;
}

.custom-modal-body h4 {
    margin: 15px 0 10px;
    font-size: 1.25rem;
    font-weight: bold;
}

.custom-modal-body p {
    margin: 5px 0;
}

.custom-modal.show .custom-modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: auto;
    padding: 20px;
}

.custom-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.custom-modal-backdrop.show {
    display: block !important;
}

.custom-modal-dialog {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.custom-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-close:hover {
    opacity: 0.7;
}

.custom-modal-body {
    padding: 20px;
}

.custom-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.custom-modal-body.text-center {
    text-align: center;
    padding: 30px 20px;
}

.custom-modal-body .warning-icon,
.custom-modal-body .success-icon,
.custom-modal-body .error-icon {
    margin-bottom: 15px;
}

.custom-modal-body h4 {
    margin: 15px 0 10px;
    font-size: 1.25rem;
    font-weight: bold;
}

.custom-modal-body p {
    margin: 5px 0;
}

.custom-modal.show .custom-modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.custom-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: auto;
    padding: 20px;
}

.custom-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.custom-modal-backdrop.show {
    display: block !important;
}

.custom-modal-dialog {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.custom-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-close:hover {
    opacity: 0.7;
}

.custom-modal-body {
    padding: 20px;
}

.custom-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.custom-modal-body.text-center {
    text-align: center;
    padding: 30px 20px;
}

.custom-modal-body .warning-icon,
.custom-modal-body .success-icon,
.custom-modal-body .error-icon {
    margin-bottom: 15px;
}

.custom-modal-body h4 {
    margin: 15px 0 10px;
    font-size: 1.25rem;
    font-weight: bold;
}

.custom-modal-body p {
    margin: 5px 0;
}

.custom-modal.show .custom-modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.char-counter {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.danger {
    color: #dc3545;
}
@media (max-width: 600px){
    footer{
        bottom: 0;
        left: 0;
    }
    footer img{
        width: 80%;
    }
    .propuesta-footer-logos img{
        width: 80% !important;
        height: fit-content !important;
    }
}