/* Estilos Públicos - Bolsa de Trabajo MX */

.btmx-bolsa-trabajo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Botón de inicio de sesión */
.btmx-login-button-container {
    text-align: right !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
}

.btmx-btn-login {
    background-color: #03255c !important;
    padding: 10px 25px !important;
}

.btmx-btn-login:hover {
    background-color: #02193d !important;
}

/* Filtros */
.btmx-filtros-container {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btmx-filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
}

.btmx-filtros-grid input[type="text"],
.btmx-filtros-grid input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    height: 45px;
}

.btmx-filtros-grid input[type="text"]:focus,
.btmx-filtros-grid input[type="date"]:focus {
    outline: none;
    border-color: #03255c;
}

/* Botones */
.btmx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #03255c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    height: 45px;
    text-align: center;
}

.btmx-btn:hover {
    background-color: #02193d;
    color: #fff;
}

.btmx-btn-buscar {
    background-color: #03255c;
}

.btmx-btn-limpiar {
    background-color: #6c757d;
}

.btmx-btn-limpiar:hover {
    background-color: #5a6268;
}

.btmx-btn-aplicar {
    background-color: #03255c;
}

.btmx-btn-correo {
    background-color: #28a745;
}

.btmx-btn-correo:hover {
    background-color: #218838;
}

/* Botón pequeño */
.btmx-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #03255c;
    color: #fff !important;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 2px;
}

.btmx-btn-small:hover {
    background-color: #02193d;
    color: #fff !important;
}

/* Grid de vacantes */
.btmx-vacantes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .btmx-vacantes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .btmx-vacantes-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjetas de vacantes - Reset de márgenes */
.btmx-vacante-card * {
    margin: 0 !important;
    padding: 0 !important;
}

.btmx-vacante-card {
    background: #fff !important;
    padding: 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
}

.btmx-vacante-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.btmx-vacante-logo {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.btmx-vacante-logo img {
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain !important;
}

.btmx-vacante-titulo {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #03255c !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.btmx-vacante-empresa {
    font-size: 14px !important;
    color: #333 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.btmx-vacante-ubicacion,
.btmx-vacante-salario,
.btmx-vacante-fecha {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.btmx-vacante-card p {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: #555 !important;
    line-height: 1.2 !important;
}

.btmx-vacante-card p strong {
    color: #333 !important;
    font-weight: 600 !important;
}

.btmx-icon {
    margin-right: 2px !important;
    font-size: 10px !important;
}

.btmx-vacante-descripcion {
    margin: 4px 0 !important;
    padding: 0 !important;
}

.btmx-vacante-descripcion p {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #555 !important;
    margin: 0 !important;
}

.btmx-ver-mas {
    background: none !important;
    border: none !important;
    color: #03255c !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    padding: 0 !important;
    font-size: 12px !important;
    margin-left: 4px !important;
}

.btmx-vacante-acciones {
    display: flex !important;
    gap: 5px !important;
    margin: 6px 0 0 0 !important;
    padding: 4px 0 0 0 !important;
    border-top: 1px solid #eee !important;
}

.btmx-vacante-acciones .btmx-btn {
    flex: 1 !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
    height: 32px !important;
    margin: 0 !important;
}

/* Paginación */
.btmx-paginacion {
    text-align: center;
    margin: 30px 0;
}

.btmx-paginacion .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #03255c;
    text-decoration: none;
    transition: all 0.3s;
}

.btmx-paginacion .page-numbers:hover,
.btmx-paginacion .page-numbers.current {
    background-color: #03255c;
    color: #fff;
    border-color: #03255c;
}

/* Modal */
.btmx-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.btmx-modal-content {
    background-color: #fff;
    margin: 5vh auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-height: 88vh;
    overflow-y: auto;
}

.btmx-modal-large .btmx-modal-content {
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    margin: 2vh auto;
}

.btmx-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1;
}

.btmx-close:hover {
    color: #000;
}

.btmx-modal-content h2 {
    margin-top: 0;
    color: #03255c;
}

.btmx-modal-content form {
    margin-top: 20px;
}

.btmx-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.btmx-modal-content input[type="text"],
.btmx-modal-content input[type="email"],
.btmx-modal-content input[type="tel"],
.btmx-modal-content input[type="password"],
.btmx-modal-content input[type="file"],
.btmx-modal-content select,
.btmx-modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.btmx-modal-content input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.btmx-modal-content button[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

.btmx-modal-content p {
    margin: 0;
}

.btmx-modal-content a {
    color: #03255c;
    text-decoration: underline;
}

.btmx-modal-content a:hover {
    color: #02193d;
}

/* Mensajes */
.btmx-mensaje-aplicar .success,
#btmx-mensaje-registro-postulante .success,
#btmx-mensaje-login .success,
#btmx-mensaje-registro-empresa .success,
#btmx-mensaje-vacante .success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
}

.btmx-mensaje-aplicar .error,
#btmx-mensaje-registro-postulante .error,
#btmx-mensaje-login .error,
#btmx-mensaje-registro-empresa .error,
#btmx-mensaje-vacante .error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
}

/* Acceso privado */
.btmx-acceso-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.btmx-acceso-opciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .btmx-acceso-opciones {
        grid-template-columns: 1fr;
    }
}

.btmx-opcion-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.btmx-opcion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btmx-opcion-card h3 {
    color: #03255c;
    margin-bottom: 15px;
}

.btmx-opcion-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Panel de postulante y empresa */
.btmx-panel-postulante,
.btmx-panel-empresa {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btmx-panel-postulante h2,
.btmx-panel-empresa h2 {
    color: #03255c;
    margin-bottom: 20px;
}

/* Tabla estándar */
.btmx-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btmx-table th,
.btmx-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.btmx-table th {
    background-color: #03255c;
    color: #ffffff !important;
    font-weight: 600;
}

.btmx-table tr:hover {
    background-color: #f5f5f5;
}

.btmx-table td {
    vertical-align: middle;
}

/* Tabla de postulaciones en modal */
.btmx-table-postulaciones {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    font-size: 13px;
}

.btmx-table-postulaciones th,
.btmx-table-postulaciones td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.btmx-table-postulaciones th {
    background-color: #03255c;
    color: #ffffff !important;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.btmx-table-postulaciones tr:hover {
    background-color: #f5f5f5;
}

/* Responsive tables */
@media (max-width: 1200px) {
    .btmx-modal-large .btmx-modal-content {
        width: 98%;
        max-width: 98%;
    }
    
    .btmx-table-postulaciones {
        font-size: 12px;
    }
    
    .btmx-table-postulaciones th,
    .btmx-table-postulaciones td {
        padding: 8px 6px;
    }
}

@media (max-width: 768px) {
    .btmx-table,
    .btmx-table-postulaciones {
        font-size: 11px;
    }
    
    .btmx-table th,
    .btmx-table td,
    .btmx-table-postulaciones th,
    .btmx-table-postulaciones td {
        padding: 8px 5px;
    }
    
    .btmx-modal-large .btmx-modal-content {
        width: 98%;
        max-width: 98%;
        margin: 1vh auto;
        padding: 15px;
    }
    
    .btmx-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 2vh auto;
        padding: 20px;
    }
    
    .btmx-btn-small {
        font-size: 10px;
        padding: 4px 8px;
    }
}
