.intro-carousel-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.intro-carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.intro-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45); /* oscurece para que destaque el texto */
}

.intro-carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 800px;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.intro-carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.intro-carousel-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #eee;
}


@media (max-width: 768px) {
    .intro-carousel-content h2 {
        font-size: 2rem;
    }

    .intro-carousel-content p {
        font-size: 1rem;
    }
}



.section-problema {
    padding: 80px 0;
    background-color: #fdfdfd;
}

.problema-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.problema-image {
    flex: 1;
    min-width: 300px;
}

.problema-image img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.problema-texto {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    color: #444;
    text-align: left;
}

.problema-texto h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.problema-texto h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #f5a623;
    bottom: -10px;
    left: 0;
    transform: translateX(0); /* No centrar: alinear a la izquierda */
}

.problema-texto p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-bottom: 15px;
    line-height: 1.7;
}



.fondo-gris {
    background-color: #e0e0e0; /* color gris claro por defecto */
}





/*Futuros con raices*/

.raices-section {
    position: relative;
    height: 450px;
    overflow: hidden; /* por si tarda en cargar el fondo */
}

.raices-parallax-bg {
 /* Añade '../' para subir un nivel */
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 150%;
    width: 100%;
    z-index: -2;
    transform: translateY(0px);
    transition: transform 0.1s ease-out;
}

.raices-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* opcional, puedes quitarlo */
    z-index: -1;
}




.raices-title {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
    color: white;
    z-index: 1;
}

.raices-title h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.raices-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #f5a623;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.raices-title p {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto;
}

