/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
.wpc-filters-widget-wrapper {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.wpc-filter-layout-submit-button{
    gap: 20px;
    align-items: flex-end;
}

.wpc-filter-post_meta {
    max-width: 200px;
}

a.wpc-filters-submit-button{
    height: 46px;
    background-color: black !important;
    color: white !important;
    font-family: 'Aptos', sans-serif !important;
    padding: 0 30px !important;
}
a.wpc-filters-reset-button {
    height: 46px;
    background-color: var(--e-global-color-accent) !important;
    color: white !important;
    font-family: 'Aptos', sans-serif !important;
    padding: 0 30px !important;
}
span.select2-selection__arrow, span.wpc-dropdown-default, span#select2-wpc-post_meta-dimensiones-306-container, .select2-selection span {
    font-family: 'Aptos' sans-serif !important;
    font-size: 13px;
}

.wpc-filters-section .widget-title.wpc-filter-title {
    font-family: 'Aptos';
    font-size: 14px;
}

.wpc-filter-layout-dropdown .select2-container--default .select2-selection--single, .wpc-sorting-form .select2-container--default .select2-selection--single{
    border-color: #D1D1D1 !important;
}

.wpc-filter-layout-dropdown .select2-container--default .select2-selection--single .select2-selection__arrow, .wpc-sorting-form .select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 0 !important;
    border-bottom: 1px solid #D1D1D1 !important;
    border-bottom-left-radius: 0px !important;
    border-top: 1px solid #D1D1D1 !important;
    border-top-left-radius: 0px !important;
}

/* ========================================= */
/* ESTILOS POR DEFECTO (Escritorio y Tablet) */
/* ========================================= */

.galeria-categorias-coleccion-wrap {
    display: flex; 
    /* Gap horizontal de 5px */
    gap: 5px; 
    
    width: 100%;
    /* Mantenemos el scroll horizontal para escritorio */
    overflow-x: auto; 
    padding-bottom: 20px;
    scrollbar-width: none; 
}
.galeria-categorias-coleccion-wrap::-webkit-scrollbar {
    display: none;
}

.galeria-categoria-item {
    /* En escritorio: 5 columnas (19%) que crecen para rellenar el ancho */
    flex: 1 0 19%; 
    
    text-align: center;
    text-decoration: none;
    overflow: hidden; 
}

/* Estilo para la etiqueta <img> (Altura Escritorio: 340px) */
.categoria-imagen-tag {
    width: 100%;
    height: 340px !important; 
    object-fit: cover; 
    display: block;
    margin-bottom: 10px;
}

/* Estilo para el placeholder (Escritorio: 340px) */
.categoria-imagen-placeholder {
    width: 100%;
    height: 340px;
    background-color: #f0f0f0;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
}

/* Estilo para el título */
.categoria-titulo {
    font-size: 1.1em;
    margin: 10px 0;
    font-family: "Helvetica", Sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--e-global-color-primary);
}
.coleccion_resultados_image img{
    height: 300px;
    text-align: center;
    object-fit: cover;
}

.filtros_colecciones span {
    font-family: 'Aptos', sans-serif !important;
}

/* .wpc-filters-section-304s .widget-title.wpc-filter-title {
    visibility: hidden;
    position: relative; 
}
.wpc-filters-section-304s .widget-title.wpc-filter-title::after {
    content: "Título";
    visibility: visible;
    position: absolute; 
    top: 0; 
    left: 0; 
    font-family: 'Aptos', sans-serif !important;
    font-size: 14px;
} */

/* Ocultamos los resultados del desplegable del filtro a petición de cliente */
ul.select2-results__options {
    display: none;
}

.select2-results__option.select2-results__option--selectable span {
    font-size: 14px;
    font-family: 'Aptos';
}

.shortcode_text{
    font-size: 16px;
    font-family: 'Aptos';
}

.fondo_campo_fecha{
    width: 100px !important; 
}
.fondo_campo_400{
    width: 400px !important; 
}
.fondo_campo_restaurador{
    width: 327px !important; 
}


/* ========================================= */
/* MEDIA QUERY PARA MÓVIL (Max 767px) */
/* ========================================= */

@media (max-width: 767px) {
    
    .galeria-categorias-coleccion-wrap {
        /* CAMBIO CLAVE 1: Los elementos se apilan verticalmente */
        flex-direction: column;
        
        /* Deshabilitamos el scroll horizontal */
        overflow-x: hidden;
        
        /* Ajustamos el gap a 5px en vertical también */
        gap: 5px;
    }

    .galeria-categoria-item {
        /* CAMBIO CLAVE 2: Ocupa todo el ancho (100%) y no debe achicarse o crecer más allá */
        flex: 1 0 100%;
        
        /* Opcional: añade el borde redondeado aquí si lo tenías */
        /* border-radius: 8px; */
    }

    /* Estilo para la etiqueta <img> (Altura Móvil: 150px) */
    .categoria-imagen-tag {
        height: 200px !important;
    }

    /* Estilo para el placeholder (Móvil: 150px) */
    .categoria-imagen-placeholder {
        /* CAMBIO CLAVE 4: Nueva altura para móvil */
        height: 150px;
    }
    
    /* Opcional: Ajustar el tamaño del título si es demasiado grande en móvil */
    .categoria-titulo {
        font-size: 18px; /* Ejemplo de ajuste */
    }
    .wpc-filters-widget-wrapper {
        /* 1. Cambiar a disposición vertical */
        flex-direction: column;
        
        /* Opcional: Centrar el contenido si es necesario */
        /* align-items: center; */ 
    }

    /* 2. Hacer que cada input o sección interna ocupe el 100% del ancho */
    /* * Asumiendo que los *hijos directos* de .wpc-filters-widget-wrapper son los elementos 
     * que deben apilarse y ocupar el 100% del ancho. 
     */
    .wpc-filters-widget-wrapper > * {
        width: 100%;
        /* Opcional: Asegurarse de que el margen/relleno interno no rompa el 100% */
        box-sizing: border-box; 
    }
    .filtros-fondos .e-child {
        justify-content: center;
    }
}