/* General layout */
.section-problema {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    flex-wrap: wrap;
}

.section-problema.fondo-gris {
    background-color: #f5f5f5;
}

.problema-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

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

.problema-texto h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2d2d2d;
}

.problema-texto p,
.problema-texto li {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

.problema-texto ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.problema-texto ul li::before {
    content: "✔️";
    margin-right: 0.5rem;
    color: #FFA500;
}

.problema-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.problema-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}


.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;
    }
}






/* Estilos para la sección de servicios */
.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

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

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

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 100%;
    height: 150px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
    transform: scale(1.05);
}


.service-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.service-content h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #f5a623;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.service-content p {
    color: #666;
    line-height: 1.6;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 20px;
    }
}




.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;
}



