﻿/* Hero Banner */
.hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url('../img/footer-nubes.png'); /* Mi foto de nuebes */
    background-size: cover; /* Hace que la imagen ocupe todo el espacio del contenedor */
    background-position: center; /* Centra la imagen en el contenedor */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    color: white;
    padding: 50px 200px;
    /* border-bottom: 8px solid #388e3c; */
    position: relative;
    overflow: visible; /* Permite que el contenido salga del contenedor */
    z-index: 1; /* Prioridad baja para el hero */
}

.hero-content {
    max-width: 50%;
    text-align: left;
}

    .hero-content h1 {
        font-size: 3em;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.2em;
        line-height: 1.6;
    }

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-bottom: 35px;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Services Section */
.services {
    background-color: #f9f9f9;
    padding: 0px 30px 20px 30px;
}

    .services .section-title {
        text-align: center;
        font-size: 2em;
        margin-bottom: 20px;
    }

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.service-item {
    flex: 0 1 22%;
    text-align: center;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .service-item img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .service-item h3 {
        font-size: 1.2em;
        margin: 10px 0;
    }

    .service-item p {
        font-size: 0.95em;
        color: #555;
    }

    .service-item .btn {
        margin-top: 10px;
        background-color: #4caf50;
        color: white;
        padding: 10px 15px;
        text-decoration: none;
        border-radius: 5px;
    }

    .service-item:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* TESTIMONIALS */
/* Contenedor principal */
.testimonials-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

    .testimonials-section .section-title {
        font-size: 2em;
        color: #2a2a2a;
        margin-bottom: 20px;
    }

/* Slider */
.testimonials-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Oculta elementos fuera del área visible */
}

/* Contenedor de testimonios */
.testimonials-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(350px * 3 + 45px * 2); /* 3 testimonios + espacio entre ellos */
}

/* Cada testimonio */
.testimonial {
    flex: 0 0 350px; /* Cada testimonio ocupa un ancho fijo */
    margin: 0 15px; /* Espaciado entre testimonios */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Flechas */
.arrow {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #256A21;
    transition: color 0.3s;
    z-index: 100;
    position: absolute;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.arrow:hover {
    color: #85c20f;
}

/* Ocultar la barra de desplazamiento */
.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonials-container {
    -ms-overflow-style: none; /* Internet Explorer */
}

/* Sección de Preguntas Frecuentes */
/* FAQ Layout */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin: 15px 0;
    align-items: start;
}

.faq-title-container {
    background-color: #ffffff;
    padding: 20px;
}

    .faq-title-container .section-title {
        font-size: 2em;
        color: #256A21;
        margin: 20px 50px;
        text-align: left;
    }

/* Preguntas y Respuestas */
.faq-container {
    background-color: #ffffff;
    padding: 20px;
    border-left: 3px solid #85c20f; /* Línea verde de separación */
}

.faq-item {
    border-bottom: 1px solid #85c20f; /* Línea divisoria */
    padding: 10px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

    .faq-question h4 {
        margin: 0;
        font-size: 1.1em;
        color: #256A21;
    }

.faq-toggle {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #256A21;
    transition: transform 0.2s ease;
}

    .faq-toggle.open {
        transform: rotate(45deg); /* Cambia de "+" a "-" */
    }

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

    .faq-answer p {
        margin: 0;
        padding: 10px 0;
        font-size: 1em;
        color: #444444;
    }

.faq-item.open .faq-answer {
    max-height: 200px; /* Ajusta según contenido */
    opacity: 1;
}




/* CONTACTA CON NOSOTROS*/
.cta {
    background-color: #005700;
    text-align: center;
    padding: 30px;
    color: white;
}
    .cta .btn {
        margin-top: 10px;
        background-color: #4caf50;
        color: white;
        padding: 10px 15px;
        text-decoration: none;
        border-radius: 5px;
    }

.btn:hover {
    background-color: #388e3c;
}

/* Sección "Quiénes somos" */
.about-us-section {
    padding: 25px 20px 40px 20px;
    background-image: url('../img/header-nubes.png'); /* Mi foto de nuebes */
    background-size: cover; /* Hace que la imagen ocupe todo el espacio del contenedor */
    background-position: center; /* Centra la imagen en el contenedor */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    position: relative;
    overflow: visible; /* Permite que el contenido salga del contenedor */
    z-index: 1; /* Prioridad baja para el hero */
}

/* Diseño de imagen y texto principal */
.about-us-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.about-us-image img {
    width: 350px;
    height: auto;
}

.about-us-content {
    max-width: 600px;
    text-align: left;
}

.about-us-title {
    font-size: 2em;
    color: #256A21;
    margin-bottom: 10px;
}

.about-us-content p {
    font-size: 1.1em;
    color: #555555;
    line-height: 1.6;
}

/* Tarjetas de características */
.about-us-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .about-us-cards .card {
        display: block;
        background: #ffffff;
        border: 1px solid #85c20f;
        border-radius: 8px;
        text-align: center;
        padding: 20px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        width: 250px;
    }

        .about-us-cards .card img {
            width: 80px;
            height: auto;
            margin-bottom: 15px;
        }

        .about-us-cards .card h3 {
            font-size: 1.1em !important;
            color: #256A21;
            margin-bottom: 10px;
        }

        .about-us-cards .card p {
            font-size: 0.80em !important;
            color: #555555;
            line-height: 1.5;
        }

        .about-us-cards .card:hover {
            transform: translateY(-5px);
            box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.2);
        }

