/* Estilos para botones de la página */
.btn-abrir-filtro {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    margin: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.btn-abrir-filtro:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

/* OVERLAY BACKDROP */
.filtro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filtro-overlay.visible {
    display: flex;
    opacity: 1;
}

/* CONTENEDOR PRINCIPAL DEL FILTRO */
.fo-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.filtro-overlay.visible .fo-container {
    transform: scale(1) translateY(0);
}

/* HEADER DEL OVERLAY */
.fo-header {
    padding: 15px 40px 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(to right, rgba(249, 250, 251, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    position: relative;
}

.fo-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.fo-subtitle {
    color: #64748b;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* BOTÓN CERRAR */
.fo-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(241, 245, 249, 0.9);
    color: #64748b;
    border: none;
    /* width: 40px; */
    /* height: 40px; */
    /* border-radius: 50%; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fo-close:hover {
    background: #e2e8f0;
    color: #334155;
    transform: scale(1.05);
}

/* SECCIÓN DE BÚSQUEDA */
.fo-search-section {
    padding: 10px 40px 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
}

.fo-search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.fo-search-input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fo-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.fo-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.fo-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #64748b;
}

.fo-search-status {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    opacity: 0;
    transition: all 0.3s ease;
    font-style: italic;
    margin-top: 8px;
}

.fo-search-status.visible {
    opacity: 1;
}

/* SECCIÓN DE RESULTADOS */
.fo-results-section {
    display: none;
    margin-top: -35px;
}

.fo-results-section.visible {
    display: block;
}

/* .fo-results-info {
    padding: 20px 40px 15px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(to right, rgba(241, 245, 249, 0.7) 0%, rgba(248, 250, 252, 0.7) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
} */

.fo-results-container {
    max-height: 250px;
    overflow-y: auto;
    background: #ffffff;
}

.fo-results-container::-webkit-scrollbar {
    width: 8px;
}

.fo-results-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.fo-results-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
    border: 2px solid #f1f5f9;
}

/* TABLA */
.fo-table {
    width: 100%;
    border-collapse: collapse;
}

.fo-table th {
    background: #f8fafc;
    color: #334155;
    padding: 18px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.fo-table th:first-child {
    width: 70%;
}

.fo-table th:last-child {
    width: 30%;
    text-align: center;
}

.fo-table td {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.fo-table td:last-child {
    text-align: center;
}

.fo-table tr:hover {
    background: #f8fafc;
}

.fo-page-btn {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.fo-page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

/* .fo-pagination {
    padding: 25px 40px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.fo-pagination button {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    margin: 0 3px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fo-pagination button:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.fo-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fo-pagination button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
} */

.fo-no-results {
    padding: 60px 40px;
    text-align: center;
    color: #64748b;
    background: #ffffff;
    display: none;
}

.fo-no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #334155;
}

.fo-no-results p {
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.fo-highlight {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    margin: 2px;
}

.fo-coincidences {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .filtro-overlay {
        padding: 15px;
    }

    .fo-container {
        max-height: 95vh;
        border-radius: 20px;
    }

    .fo-header {
        padding: 25px 25px 20px;
    }

    .fo-title {
        font-size: 1.5rem;
    }

    .fo-search-section,
    .fo-results-info,
    .fo-pagination {
        padding-left: 25px;
        padding-right: 25px;
    }

    .fo-table th,
    .fo-table td {
        padding: 15px 20px;
        font-size: 14px;
    }

    .fo-results-container {
        max-height: 320px;
    }
}

.columns {
    padding-left: 0;
    padding-right: 0;
}

.fo-results-info,
.fo-pagination {
    padding: 15px 25px;
    background: linear-gradient(to right, rgba(248, 250, 252, 0.85), rgba(241, 245, 249, 0.85));
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-top: none;
}

.fo-results-info {
    justify-content: flex-start;
}

.fo-pagination {
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.fo-pagination button {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 0 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fo-pagination button:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.fo-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fo-pagination button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.fo-pagination {
    display: flex !important;
    justify-content: center; /* ⬅️ Centra horizontalmente */
    align-items: center;     /* ⬅️ Centra verticalmente */
    flex-wrap: wrap;
    gap: 5px;
}