/**
 * Estilos personalizados para el Frontend
 */

:root {
    --cpt-primary: #BF1F2D;
    --cpt-secondary: #f3f4f6;
}

/* Alpine.js x-cloak */
[x-cloak] {
    display: none !important;
}

/* Animaciones */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras de accesibilidad */
#cpt-tabla-container button:focus,
#cpt-tabla-container a:focus {
    outline: 2px solid var(--cpt-primary);
    outline-offset: 2px;
}

#cpt-tabla-container input:focus,
#cpt-tabla-container select:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    #cpt-tabla-container {
        padding: 15px !important;
    }

    #cpt-tabla-container table {
        font-size: 14px;
    }

    #cpt-tabla-container table th,
    #cpt-tabla-container table td {
        padding: 8px !important;
    }

    #cpt-tabla-container table img {
        width: 60px !important;
        height: 60px !important;
    }
}

p.filter-letter.active {
    color: rgb(191, 31, 45);
}

section.orden-filtros {
    display: flex;
    justify-content: space-between;
}

.filtros {
    display: flex;
    justify-content: left;
    align-items: center;
}

/* Contenedor general */
.contenedor-tabla {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* CONTENEDOR GENERAL */
.barra-superior {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

/* IZQUIERDA */
.barra-izquierda {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* BUSCADOR */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
}

.search-input {
    padding: 12px 14px 12px 42px;
    border-radius: 12px;
    border: 1.8px solid #111;
    font-size: 16px;
    min-width: 260px;
    outline: none;
}

.search-input:focus {
    border-color: #2563eb;
}

/* SELECT */
.select-pill {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    font-size: 16px;
    cursor: pointer;
}

/* PAGINACIÓN */
.paginacion {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: #facc15;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-btn.active {
    background: #fff;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .barra-superior {
        flex-direction: column;
        align-items: stretch;
    }

    .paginacion {
        justify-content: center;
    }
}

.letras,
.letras p {
    display: flex;
    gap: 8px;
}

/* Más específico que .elementor-kit-5 button */
.elementor-kit-5 .eon-cpt-sidebar .eon-cpt-btn {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    border-radius: 0.5rem;
    /* opcional */
}

button.eon-cpt-btn.button-cpt-normal {
    background: #f3f4f6;
    color: rgb(191, 31, 45);
}

select.select-pill {
    padding: 10px 10px;
}

span.letra.todos,
p.letra {
    cursor: pointer;
}

span.letra.todos:hover,
p.letra:hover {
    color: rgb(191, 31, 45);
}

a.whatsapp-button {
    display: flex;
    justify-content: center;
    padding: 8px 0px;
    border-radius: 10px;
    text-decoration: none !important;
    gap: 5px;
    align-items: center;
    color: white;
    background: rgb(37, 211, 102);
}

.clear-filters-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.clear-filters-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.clear-filters-btn:active {
    transform: translateY(0);
}
.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a), .woocommerce-js .woocommerce-product-details__short-description a {
    text-decoration: none !important;
}