/* Estilos Generales para ambos modos */
.wis-container {
    margin: 20px 0;
    text-align: center;
}
.wis-icon-item {
    text-align: center;
    padding: 15px 5px;
}
.wis-icon-item-client{
    text-align: center;
    padding: 15px 5px;
}

.swiper-pagination-bullet-active {
    background: #283E6A !important;
}

.swiper-pagination-bullet {
    background: white !important;
}


.wis-icon-item img {
    max-width: 100px; 
    height: auto;
    display: block;
    margin: 0 auto 10px;
}
.wis-icon-item-client img{
    max-width: 200px; 
    height: auto;
    display: block;
    margin: 0 auto 10px;
}
.wis-icon-title {
    font-size: 1.1em;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    color: #283E6A !important;
}
.wis-icon-title span {
    font-size: 1.3em;
}

/* Estilos Específicos para GRID (Desktop cuando hay <= 3 posts) */
.wis-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}
.wis-grid .wis-icon-item {
    width: 30%; 
    min-width: 150px;
}
.wis-grid .wis-icon-item-client{
    width: 20%; 
    min-width: 150px;
}
@media (max-width: 768px){
    .wis-container .swiper-slide {
        width: 50% !important; 
    }
    .wis-container .swiper-slide.proyecto-slide {
        width: 100% !important;
    }
}

/* Estilos Generales del Grid */
.watercolor-recientes-grid {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
}

.watercolor-item {
    flex: 1 1 80%; 
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

@media (min-width: 1024px){
    .watercolor-item {
        flex: 1 1 30%; 
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }
}


.watercolor-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Estilos de la Imagen (Para que ocupe todo el espacio) */
.watercolor-image {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

/* Estilos del Overlay (Título, Descripción, Botón) */
.watercolor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Fondo oscuro semi-transparente */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinear el contenido a la parte inferior */
    padding: 20px;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.watercolor-text-content {
    /* El contenido visible por defecto (TÍTULO y 'Que se hizo') */
    opacity: 1;
    transition: opacity 0.3s ease;
}
.watercolor-description{
    margin-bottom: 0px !important;
}

/* El contenido que debe aparecer en hover */
.watercolor-description, .watercolor-title,
.watercolor-btn {
    opacity: 0; /* Oculto por defecto */
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    margin-top: 10px;
}

.watercolor-flex-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watercolor-title {
    font-size: 2.5vw;
    color: #C2A394;
    font-weight: 300;
    margin: 0 0 5px 0;
}

/* La Flecha (Visible por defecto, al igual que el botón en la segunda imagen) */
.watercolor-arrow {
    position: absolute;
    bottom: 20px; /* Ajustar posición */
    right: 50%;
    transform: translateX(50%);
    width: 40px; /* Ajusta el tamaño de la flecha */
    height: auto;
    opacity: 1; 
    transition: opacity 0.3s ease;
}


/* === ESTILOS HOVER === */

.watercolor-item:hover .watercolor-overlay {
    /* Aumenta un poco la oscuridad en hover */
    background: rgba(0, 0, 0, 0.6); 
}

.watercolor-item:hover .watercolor-image {
    /* Efecto sutil en la imagen, si se desea */
    filter: brightness(0.8);
}

.watercolor-item:hover .watercolor-description,
.watercolor-item:hover .watercolor-title,
.watercolor-item:hover .watercolor-btn {
    opacity: 1; 
    max-height: 200px; /* Permite que el contenido se vea */
}

/* Si quieres que la flecha aparezca/desaparezca en hover: */
.watercolor-item:hover .watercolor-arrow {
    opacity: 0;
}

/* Estilo del botón 'Ver más' */
.watercolor-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none !important;
    text-align: center;
}