@font-face {
    font-family: Poppins-Regular;
    src: url('../fonts/poppins/Poppins-Regular.ttf');
}

@font-face {
    font-family: Poppins-Bold;
    src: url('../fonts/poppins/Poppins-Bold.ttf');
}

@font-face {
    font-family: Poppins-Medium;
    src: url('../fonts/poppins/Poppins-Medium.ttf');
}

@font-face {
    font-family: Montserrat-Bold;
    src: url('../fonts/montserrat/Montserrat-Bold.ttf');
}

#overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
  }
  .modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    z-index: 501;
    font-family: Arial, sans-serif;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;  /* Sobrescribe display: none, inline style="display:none" lo oculta */
    flex-direction: column;
}

/* Estilos específicos para el modal de mensajes #myModal */
#myModal {
    display: none;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #fff !important;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    z-index: 501 !important;
    font-family: Arial, sans-serif;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
}

/* Cuando el modal de mensajes está visible */
#myModal[style*="display: block"],
#myModal[style*="display:block"] {
    display: flex !important;
    flex-direction: column;
}
.modalbak {
    display: none;
    position: absolute;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    z-index: 501;
    font-family: Arial, sans-serif;
    min-width: 400px;
    max-width: 800px;
    width: auto;
    max-height: calc(100vh - 200px);
    overflow: hidden;
  }

.modal-header {
    background-color: #09437C;
    color: #fff;
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    /* Aumentar el tamaño de la fuente */
    font-weight: bold;
    /* Hacer la fuente más gruesa */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    /* Añadir sombra al texto */
    text-transform: uppercase;
    /* Transformar el texto a mayúsculas */
    color: #fff;
    margin: 0;
    padding: 0 0 0 15px;
}

.close {
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}
.modal-content {
    flex: 1;
    min-height: 0; /* Crítico: permite que flex + overflow funcione correctamente */
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 0;
}

/* Estilo para la barra de desplazamiento */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.modal-contentbak {
    /*padding: 20px;*/
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.modal-content p {
    margin: 0;
    padding: 0;
}
.modal-contentbak p {
    min-width: 400px;
    max-width: 800px;
    width: auto;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 20px;
}

.modal-footer {
    flex-shrink: 0;
    padding: 15px;
    text-align: right;
    border-top: 1px solid #ddd;
    border-radius: 0;
}

.modal-btn-close {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #09437C;
    color: #fff;
    transition: background-color 0.3s ease;
}

.modal-btn-close:hover {
    background-color: #286090;
}

#btn-confirm {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #09437C;
    color: #fff;
    transition: background-color 0.3s ease;
}

#btn-confirm:hover {
    background-color: #286090;
}

#btn-cancel {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #09437C;
    color: #fff;
    transition: background-color 0.3s ease;
}

#btn-cancel:hover {
    background-color: #286090;
}

.error .modal-content {
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
}

.warning .modal-content {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border-color: #faf2cc;
}

/*
.record-modal {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 300;
    overflow: hidden; 
}

.record-modal-header {
    background-color: #f2f2f2;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    flex-shrink: 0;
    position: sticky;
    top: 0;
}

.record-modal-title {
    font-size: 18px;
    font-weight: bold;
}

.record-modal-content {
    background-color: #fff;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto; 
    max-height: calc(100vh - 120px); 
}

.record-modal-footer {
    background-color: #f2f2f2;
    padding: 10px;
    border-top: 1px solid #ccc;
    text-align: right;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}
*/
/* ============================================
   NOTA: Las siguientes clases están definidas en form.css (fuente autoritativa):
   - .record-modal
   - .record-modal-header
   - .record-modal-title
   - .record-modal-content
   - .record-modal-footer
   - .record-modal-btn
   - .record-modal-btn-save
   - .record-modal-btn-cancel

   NO definir aquí para evitar conflictos de especificidad.
   ============================================ */

/* Estilos adicionales para scrollbar (complementarios) */
.record-modal-content::-webkit-scrollbar {
    width: 8px;
}

.record-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.record-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.record-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   MODAL FORM - Estilos Modernos para Formularios CRUD
   ============================================ */

/* NOTA: La definición principal de .modal-form está en form.css
   Este archivo solo contiene estilos complementarios (header, body, footer)
   para evitar duplicación y conflictos de especificidad.

   form.css es la FUENTE AUTORITATIVA para .modal-form
*/

/* La animación se mantiene aquí para uso global */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header - Cabecera moderna con gradiente */
.modal-header-form {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo sutil en header */
.modal-header-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.modal-header-form::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Título del modal en header */
.modal-header-form .modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    text-transform: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}

/* Botón cerrar en header */
.modal-header-form button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

.modal-header-form button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.modal-header-form button:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-header-form button i {
    font-size: 1rem;
}

/* Modal Body - Contenido principal */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 0; /* Importante para que flex funcione con overflow */
}

/* Scrollbar moderna para modal-body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

/* Modal Footer dentro de modal-form - Mejorado */
.modal-form .modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    border-radius: 0;
}

/* Botones dentro del footer del modal form */
.modal-form .modal-footer button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.modal-form .modal-footer button[data-modal="close-crud"] {
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}

.modal-form .modal-footer button[data-modal="close-crud"]:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Botón Guardar */
.modal-form .modal-footer .record-modal-btn-save,
.modal-form .modal-footer #btn-save {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px 0 rgba(34, 197, 94, 0.35);
    border: none;
}

.modal-form .modal-footer .record-modal-btn-save:hover,
.modal-form .modal-footer #btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px 0 rgba(34, 197, 94, 0.45);
}

.modal-form .modal-footer .record-modal-btn-save:active,
.modal-form .modal-footer #btn-save:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(34, 197, 94, 0.35);
}

/* Botón Cancelar */
.modal-form .modal-footer .record-modal-btn-cancel,
.modal-form .modal-footer #btn-cancel {
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
    margin-left: 0;
}

.modal-form .modal-footer .record-modal-btn-cancel:hover,
.modal-form .modal-footer #btn-cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* NOTA: La definición de .record-modal está en form.css
   Ambas clases (.modal-form y .record-modal) se comportan de manera idéntica.
   form.css es la FUENTE AUTORITATIVA.
*/

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive para modales */
/* NOTA: Los estilos responsive de .modal-form y .record-modal están en form.css */
@media (max-width: 768px) {
    .modal-header-form {
        padding: 1rem;
        border-radius: 0;
    }

    .modal-header-form .modal-title {
        font-size: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-form .modal-footer,
    .record-modal .modal-footer {
        padding: 1rem;
        flex-direction: column-reverse;
        border-radius: 0;
    }

    .modal-form .modal-footer button,
    .record-modal .modal-footer button {
        width: 100%;
    }
}

/* Tamaños de modal opcionales - solo para .modal-form */
.modal-form.modal-sm {
    max-width: 550px;
    height: auto;
    max-height: 80vh;
}

.modal-form.modal-md {
    max-width: 850px;
    height: 85vh;
    max-height: 85vh;
}

.modal-form.modal-lg {
    max-width: 1100px;
}

.modal-form.modal-xl {
    max-width: 1600px;
    width: 95vw;
    height: 95vh;
    max-height: 95vh;
}

.modal-form.modal-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
}

/* Variantes de color para el header */
.modal-form.modal-success .modal-header-form {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.modal-form.modal-danger .modal-header-form {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.modal-form.modal-warning .modal-header-form {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.modal-form.modal-dark .modal-header-form {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-group input[type="text"]:read-only,
.form-group input[type="password"]:read-only,
.form-group input[type="email"]:read-only,
.form-group input[type="number"]:read-only,
.form-group input[type="tel"]:read-only,
.form-group input[type="date"]:read-only,
.form-group input[type="time"]:read-only,
.form-group input[type="url"]:read-only,
.form-group textarea:read-only,
.form-group select:disabled {
    background-color: #f2f2f2;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group .checkbox-group,
.form-group .radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.form-group .checkbox-group label,
.form-group .radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.form-group .checkbox-group input[type="checkbox"],
.form-group .radio-group input[type="radio"] {
    cursor: pointer;
}

.form-group .checkbox-group input[type="checkbox"]:disabled,
.form-group .radio-group input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Estilos específicos para input type="file" */
.form-group input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

/* Estilos para placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* Estilos para autofill */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}


.form-group .search-container {
    position: relative;
    white-space: nowrap;
    padding: 8px;
    border: 1px solid #000;
  }
  
  .form-group .search-container .search-id {
    position: relative;
    display: inline-block;
    width: 5%;
    padding: 8px;
    text-align: right;
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .form-group  .search-container .search-input {
    position: relative;
    display: inline-block;
    padding: 8px 0px 8px 0px;
    width: calc(95% - 30px);
  }
  
  .form-group .search-container .search-results {
    position: fixed;  /* Cambiado de absolute a fixed */
    top: auto;  /* Eliminamos top fijo */
    left: auto;  /* Eliminamos left fijo */
    width: auto;
    max-height: 250px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-left: 60px;
    z-index: 105;  /* Aumentado para asegurar que esté por encima de todo */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .form-group .search-container .search-results.show {
    opacity: 1;
    visibility: visible;
  }
  
  .form-group .search-container .search-results li {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease, padding 0.2s ease;
    
    /* Añadimos estas propiedades para centrar verticalmente */
    display: flex;
    align-items: center;
    min-height: 12px; /* Ajusta este valor según tus necesidades */
  }
  
  .form-group .search-container .search-results li:hover {
    background-color: #f0f0f0;
  }
  
  .form-group .search-container .search-results li.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .form-group .search-container .search-results.show {
    animation: fadeIn 0.3s ease-out;
  }
  
  /* Estilizar la barra de desplazamiento */
  .form-group .search-container .search-results::-webkit-scrollbar {
    width: 5px;
  }
  
  .form-group .search-container .search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  .form-group .search-container .search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
  }
  
  .form-group .search-container .search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  


  .tabla_sesion_consejo {
    width: 100%;
    border-collapse: collapse;
    text-align: justify;
    background-color: white;
}

.tabla_sesion_consejo th {
    border: 1px solid #000;
    background-color: #555; /* Color más oscuro para el encabezado */
    color: white; /* Color del texto del encabezado */
    padding: 8px;
}

.tabla_sesion_consejo td {
    border: 1px solid #000;
    padding: 8px;
}

.tabla_sesion_consejo tr:hover {
    background-color: #f2f2f2;
}

.btn-primary {
    background-color: #007bff; /* Color azul */
    color: white; /* Color del texto */
    border: none; /* Sin borde */
    padding: 8px 12px; /* Espaciado interno */
    text-align: center; /* Centrar texto */
    text-decoration: none; /* Sin subrayado */
    display: inline-block; /* Mostrar como bloque en línea */
    border-radius: 4px; /* Bordes redondeados */
    cursor: pointer; /* Cambiar cursor al pasar el ratón */
}

.btn-danger {
    background-color: #dc3545; /* Color rojo */
    color: white; /* Color del texto */
    border: none; /* Sin borde */
    padding: 8px 12px; /* Espaciado interno */
    text-align: center; /* Centrar texto */
    text-decoration: none; /* Sin subrayado */
    display: inline-block; /* Mostrar como bloque en línea */
    border-radius: 4px; /* Bordes redondeados */
    cursor: pointer; /* Cambiar cursor al pasar el ratón */
}

.btn-warning {
    background-color: #ffc107; /* Color amarillo */
    color: black; /* Color del texto */
    border: none; /* Sin borde */
    padding: 8px 12px; /* Espaciado interno */
    text-align: center; /* Centrar texto */
    text-decoration: none; /* Sin subrayado */
    display: inline-block; /* Mostrar como bloque en línea */
    border-radius: 4px; /* Bordes redondeados */
    cursor: pointer; /* Cambiar cursor al pasar el ratón */
}

.btn-success {
    background-color: #28a745; /* Color verde */
    color: white; /* Color del texto */
    border: none; /* Sin borde */
    padding: 8px 12px; /* Espaciado interno */
    text-align: center; /* Centrar texto */
    text-decoration: none; /* Sin subrayado */
    display: inline-block; /* Mostrar como bloque en línea */
    border-radius: 4px; /* Bordes redondeados */
    cursor: pointer; /* Cambiar cursor al pasar el ratón */
}




  .votacion {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .votacion button {
    width: 200px;
    height: 80px;
    padding: 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .votacion button i {
    font-size: 24px;
    margin-right: 10px;
  }
  
  .votacion-mocion {
    background-color: #3666eb;
  }

  .votacion-favor {
    background-color: #28a745;
  }
  
  .votacion-contra {
    background-color: #dc3545;
  }
  
  .votacion-abstencion {
    background-color: #6c757d;
  }
  
  .votacion button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .votacion button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: skewX(-30deg);
    transition: left 0.5s;
  }
  
  .votacion button:hover:before {
    left: 100%;
  }
  
  .votacion button:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

/* ============================================
   MODAL FORM V2 - Estilos Modernos y Profesionales
   ============================================ */

/* Variables CSS para Modal V2 (prefijadas para evitar conflictos) */
.modal-form-v2 {
    --mf-primary: #3b82f6;
    --mf-primary-dark: #2563eb;
    --mf-primary-light: #93c5fd;
    --mf-secondary: #64748b;
    --mf-success: #22c55e;
    --mf-danger: #ef4444;
    --mf-warning: #f59e0b;
    --mf-bg: #ffffff;
    --mf-bg-header: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --mf-text: #1e293b;
    --mf-text-light: #64748b;
    --mf-border: #e2e8f0;
    --mf-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --mf-radius: 16px;
}

/* Overlay específico para Modal Form V2 (NO afecta overlays existentes) */
.modal-overlay-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay-v2.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Form V2 Container - NO afecta modales existentes */
.modal-form-v2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 501;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-form-v2.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Form Header - Moderno */
.modal-form-v2 .modal-header-form {
    background: var(--mf-bg-header);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo en header */
.modal-form-v2 .modal-header-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.modal-form-v2 .modal-header-form::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Título del modal */
.modal-form-v2 .modal-title-form {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.modal-form-v2 .modal-title-form i {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Botón cerrar */
.modal-form-v2 .modal-close-form {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.modal-form-v2 .modal-close-form:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.modal-form-v2 .modal-close-form i {
    font-size: 1.1rem;
}

/* Modal Content */
.modal-form-v2 .modal-content-form {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Scrollbar moderna */
.modal-form-v2 .modal-content-form::-webkit-scrollbar {
    width: 8px;
}

.modal-form-v2 .modal-content-form::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-form-v2 .modal-content-form::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-radius: 4px;
}

.modal-form-v2 .modal-content-form::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

/* Modal Footer */
.modal-form-v2 .modal-footer-form {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--mf-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Botones del modal V2 */
.modal-form-v2 .modal-btn-v2 {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-form-v2 .modal-btn-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.modal-form-v2 .modal-btn-v2:hover::before {
    left: 100%;
}

/* Botón Primario (Guardar) */
.modal-form-v2 .modal-btn-primary-v2,
.modal-form-v2 .modal-btn-save-v2 {
    background: linear-gradient(135deg, var(--mf-primary) 0%, var(--mf-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.modal-form-v2 .modal-btn-primary-v2:hover,
.modal-form-v2 .modal-btn-save-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
}

.modal-form-v2 .modal-btn-primary-v2:active,
.modal-form-v2 .modal-btn-save-v2:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(59, 130, 246, 0.4);
}

/* Botón Secundario (Cancelar) */
.modal-form-v2 .modal-btn-secondary-v2,
.modal-form-v2 .modal-btn-cancel-v2 {
    background: #ffffff;
    color: var(--mf-secondary);
    border: 2px solid var(--mf-border);
}

.modal-form-v2 .modal-btn-secondary-v2:hover,
.modal-form-v2 .modal-btn-cancel-v2:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Botón Éxito */
.modal-form-v2 .modal-btn-success-v2 {
    background: linear-gradient(135deg, var(--mf-success) 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.4);
}

.modal-form-v2 .modal-btn-success-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(34, 197, 94, 0.5);
}

/* Botón Peligro */
.modal-form-v2 .modal-btn-danger-v2 {
    background: linear-gradient(135deg, var(--mf-danger) 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
}

.modal-form-v2 .modal-btn-danger-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.5);
}

/* Botón Warning */
.modal-form-v2 .modal-btn-warning-v2 {
    background: linear-gradient(135deg, var(--mf-warning) 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
}

.modal-form-v2 .modal-btn-warning-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.5);
}

/* Botón Outline */
.modal-form-v2 .modal-btn-outline-v2 {
    background: transparent;
    color: var(--mf-primary);
    border: 2px solid var(--mf-primary);
}

.modal-form-v2 .modal-btn-outline-v2:hover {
    background: var(--mf-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Tamaños de botones V2 */
.modal-form-v2 .modal-btn-sm-v2 {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.modal-form-v2 .modal-btn-lg-v2 {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Estados de carga en botones V2 */
.modal-form-v2 .modal-btn-v2.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modal-form-v2 .modal-btn-v2.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spinner-v2 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes btn-spinner-v2 {
    to { transform: rotate(360deg); }
}

/* Animaciones de entrada/salida V2 */
@keyframes modalFadeInV2 {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes modalFadeOutV2 {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.modal-form-v2.animate-in {
    animation: modalFadeInV2 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-form-v2.animate-out {
    animation: modalFadeOutV2 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Variantes de Modal V2 - Tamaños */
.modal-form-v2.modal-sm-v2 {
    max-width: 500px;
}

.modal-form-v2.modal-lg-v2 {
    max-width: 1100px;
}

.modal-form-v2.modal-xl-v2 {
    max-width: 1400px;
    width: 98%;
}

.modal-form-v2.modal-fullscreen-v2 {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
}

/* Variantes de Modal V2 - Colores de Header */
.modal-form-v2.modal-success-v2 .modal-header-form {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.modal-form-v2.modal-danger-v2 .modal-header-form {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.modal-form-v2.modal-warning-v2 .modal-header-form {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.modal-form-v2.modal-dark-v2 .modal-header-form {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Responsive Modal V2 */
@media (max-width: 768px) {
    .modal-form-v2 {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .modal-form-v2 .modal-header-form {
        padding: 1rem;
    }

    .modal-form-v2 .modal-title-form {
        font-size: 1.1rem;
    }

    .modal-form-v2 .modal-content-form {
        padding: 1rem;
    }

    .modal-form-v2 .modal-footer-form {
        padding: 1rem;
        flex-direction: column;
    }

    .modal-form-v2 .modal-footer-form .modal-btn-v2 {
        width: 100%;
    }
}

/* Print styles V2 */
@media print {
    .modal-overlay-v2,
    .modal-form-v2 .modal-close-form,
    .modal-form-v2 .modal-footer-form {
        display: none !important;
    }

    .modal-form-v2 {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        max-height: none !important;
    }

    .modal-form-v2 .modal-content-form {
        overflow: visible !important;
        max-height: none !important;
    }
}