/**
 * ************************************************************************
 * Estilos para la página archive-sic-servicio.php
 * ************************************************************************
 */

/* Contenedor Tipo Masonry */
.masonry-container {
    display: flex;
    flex-wrap: wrap;
    gap: 22px; /* Espacio entre los elementos */
}

.masonry-item {
    flex: 0 1 calc(33.3333% - 15px); /* Tres elementos por fila con margen */
    box-sizing: border-box;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
}

/* Efecto de hover: zoom y overlay */
.masonry-item:hover {
    transform: scale(1.02); /* Efecto de zoom */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra más fuerte al hacer hover */
    text-decoration: none;
}

/* Overlay blanco semitransparente en hover */
.masonry-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 75%; /* Cubre solo la parte superior del contenedor */
    background: linear-gradient(to bottom, rgba(0, 93, 13, 0.6), rgba(0, 93, 13, 0));
    transition: background 1.5s ease; /* Transición suave del overlay */
    z-index: 1;
}

/* Overlay semitransparente al hacer hover */
.masonry-item:hover::before {
    background: linear-gradient(to bottom, rgba(0, 93, 13, 1), rgba(0, 93, 13, 0));
    bottom: -50%;
}

/* Estilos para el extracto */
.masonry-item .excerpt-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.9em;
    z-index: 2;
    transition: background 0.5s ease;
    text-align: center;
}

/* Estilos para el extracto en hover */
/*
.masonry-item:hover .excerpt-overlay {
    color: #000;
    background: rgba(255, 255, 255, 0.6);
}
*/

/* Título dentro de cada caja */
.masonry-item h2 {
    text-align: center;
    margin: 0;
    font-size: 1.5em;
    z-index: 2;
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    color: #fff;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

/* Cambiar el color del texto en hover */
.masonry-item:hover h2 {
    color: #000;
    background: rgba(255, 255, 255, 0.6);
}

/* Filtros */
/*
.filter-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
*/

/*
.filter-group {
    margin-right: 20px;
}
*/

label {
    margin-right: 10px;
}

/* Responsive: ajustar la cantidad de columnas según el ancho de la pantalla */
@media (max-width: 1200px) {
    .masonry-item {
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 640px) {
    .masonry-item {
        flex: 0 1 calc(100% - 15px);
    }
}

/**
 * ************************************************************************
 * Estilos para la página single-sic-servicio.php
 * ************************************************************************
 */

img.single-sic-servicio-featured-image {
    max-width: 100%;
    border-radius: 8px 8px 0px 0px !important;
}

/**
 * ************************************************************************
 * Estilos para la página template-parts/content-sic-servicio.php
 * ************************************************************************
 */

.tabbable-custom {
    box-shadow: -6px 7px 6px rgba(0, 0, 0, 0.3);
    border-radius: 8px !important;
    margin-top: 30px ;
}

.tab-pane {
    padding: 15px;
}
ul.nav-tabs {

}

ul.nav-tabs li a {

}

ul.nav-tabs li.active a {
    font-weight: 800 !important;
}

/**
 * ************************************************************************
 * Estilos generales que sobreescriben otros del tema
 * ************************************************************************
 */

.view-content {
    padding-top: 0px !important;
}

/**
 * ************************************************************************
 * Formulario de búsqueda AJAX del Catálogo de Servicios
 * ************************************************************************
 */
.is-search-form {
    margin-bottom: 15px;
}