/* Editor de la home: Asociaci贸n y Explora San Carlos */
.home-intro-copy .home-intro-image {
    display: block;
    width: 100%;
    max-height: 320px;
    margin-top: 25px;
    border-radius: 12px;
    object-fit: cover;
}
.home-value, .explore-card { position: relative; overflow: hidden; }
.home-value-card-link { display: block; color: inherit; text-decoration: none; }
.home-value-card-link:hover { text-decoration: none; }

/* Asociaci贸n: la imagen es contenido, NO fondo. */
.home-value.has-inline-image {
    background: #fff;
    color: #173b2d;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 22px;
    min-height: 265px;
    height: auto;
}
.home-value.has-inline-image::before { content: none; }
.home-value.has-inline-image .home-value-number {
    position: static;
    display: block;
    color: #77877e;
}
.home-value-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 115px;
    flex: 0 0 115px;
    margin: 12px 0 18px;
    border-radius: 9px;
    background: #f7f8f6;
    overflow: hidden;
}
.home-value-image img {
    display: block;
    max-width: 88%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.home-value.has-inline-image strong {
    display: block;
    position: static;
    margin-top: auto;
    color: #173b2d;
}
.home-value.has-inline-image > span:last-child {
    display: block;
    position: static;
    color: #607269;
}



/* =========================================
   EXPLORA SAN CARLOS - EFECTO HOVER
========================================= */

.explore-card.has-image {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Capa oscura sobre la fotografía */
.explore-section .explore-card.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 34, 23, 0.45),
        rgba(8, 34, 23, 0.80)
    );
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* Oscurecer al pasar el mouse */
@media (hover: hover) {
    .explore-section .explore-card.has-image:hover::before {
        opacity: 1;
    }
}

/* Textos por encima de la capa */
.explore-section .explore-card.has-image > * {
    position: relative;
    z-index: 1;
    color: #fff;
}
