/* Sección ¿QUÉ HACEMOS? */
.what-we-do-section {
    position: relative; /* Necesario para el pseudo-elemento overlay */
    background-image: url('../img/Fotos_banco/22.png'); /* Tu imagen de fondo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
    z-index: 0; /* Asegura que el contenido esté sobre la imagen y el overlay */
}

/* Capa semitransparente de color vinotinto sobre la imagen de fondo */
.what-we-do-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(107, 24, 27, 0.8); /* Vinotinto (#6B181B) con 80% de opacidad */
    z-index: 1; /* El overlay debe estar sobre la imagen pero debajo del contenido */
}

.what-we-do-container,
.what-we-do-section h2,
.what-we-do-card,
.what-we-do-card h3,
.what-we-do-card p,
.what-we-do-card .btn-ver-mas,
.what-we-do-card .card-image-wrapper {
    position: relative; /* Asegura que todos los elementos estén sobre el overlay */
    z-index: 2;
}

.what-we-do-section h2 {
    color: var(--beige); /* Título principal en beige para contraste */
    font-size: 47px;
    margin-bottom: 50px;
    background: none; /* Asegura que no tenga fondo heredado */
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
     /* Sombra para mejor lectura */
}

.what-we-do-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--dorado); /* Línea debajo del título */
    margin: 15px auto 0;
    border-radius: 2px;
}

.what-we-do-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.what-we-do-container {
    max-width: 1200px; /* Reducido de 1200px */
    margin: 0 auto;
}

.what-we-do-card {
    background-color: rgba(255, 255, 255, 0.9); /* Blanco con 90% de opacidad */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--vinotinto); /* Borde vinotinto */
}

.what-we-do-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    background-color: white; /* Totalmente blanco al pasar el mouse */
    border-color: var(--vinotinto-claro);
}

.what-we-do-card .card-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--vinotinto);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.what-we-do-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.what-we-do-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.what-we-do-card h3 {
    color: var(--vinotinto); /* Título de tarjeta en vinotinto */
    font-size: 1.4em;
    margin-bottom: 15px;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.what-we-do-card p {
    color: var(--gris-texto); /* Texto de tarjeta en gris */
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 8em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.what-we-do-card .btn-ver-mas {
    background-color: #AA0C0E;
    color: var(--beige);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.what-we-do-card .btn-ver-mas:hover {
    background-color: var(--vinotinto-claro);
    color: var(--dorado);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .what-we-do-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .what-we-do-section {
        padding: 50px 15px;
    }

    .what-we-do-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .what-we-do-cards-grid {
        grid-template-columns: 1fr;
    }

    .what-we-do-card .card-image-wrapper {
        height: 150px;
    }

    .what-we-do-card h3 {
        font-size: 1.2em;
        min-height: auto;
    }

    .what-we-do-card p {
        font-size: 0.9em;
        min-height: auto;
    }
    
} 