/* 
Theme Name: Ramirez (Hello Elementor Child)
Theme URI: https://github.com/elementor/hello-theme/
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: 1.0.1
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
*/

/* -- filtre projectes -- */


/* Contenedor de filtros */
.exs_filter-container {
    text-align: left;
    margin-bottom: 20px;
}
/* Enlaces del filtro */
.exs_filter-link {
    display: inline-block;
    margin: 0 10px;
    padding:0;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    font-size: 20px;
}
.exs_filter-link.exs_active {
    color: #aeaeae;
}
/* Grid de proyectos */
#exs_projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 columna */
    gap: 5px;
    padding: 5px;
}
/* Elementos del grid */
.exs_grid-item {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 440px; /* Mobile: 360px */
    display: block;
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0.5s;
    text-decoration: none;
    color: inherit;
}
/* Estado de ocultación animada */
.exs_grid-item.exs_hidden {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
    pointer-events: none;
}
/* Contenido interno: ocupa todo el área, fondo verde, textos en negro, alineados a la izquierda, oculto inicialmente */
.exs_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #6AFF99;
    color: #000;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: normal;
    opacity: 0;
    transition: opacity 0.5s ease;
}
/* Mostrar el contenido al hacer hover sobre el item */
.exs_grid-item:hover .exs_content {
    opacity: 1;
}
.exs_content h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
}
.exs_content p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0px;
}

@media (min-width: 768px) {
    #exs_projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .exs_grid-item {
        height: 440px;
    }
}
@media (min-width: 1024px) {
    #exs_projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .exs_grid-item {
        height: 440px;
    }
}
@media (min-width: 1440px) {
    #exs_projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .exs_grid-item {
        height: 520px;
    }
}
@media (min-width: 1680px) {
    #exs_projects-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .exs_grid-item {
        height: 640px;
    }
    .exs_content h3, .exs_content p {
        font-size: 20px;
    }
}


