/* Reset de márgenes y paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente global */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f5e1; /* Fondo claro verde */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
    height: 80px;
    line-height: 40px;
}

.navbar .logo img {
    width: 300px; /* Tamaño del logo */
    margin-top: 15px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinear a la derecha */
}

.nav-links li {
    margin-left: 10px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 16px; /* Ajustar espacio dentro de los botones */
}

.nav-links .btn {
    padding: 6px 12px;
    background-color: #9ccd7f; /* Verde */
    color: #fff;
    border-radius: 5px;
    font-size: 14px; /* Tamaño de fuente más pequeño */
    transition: background-color 0.3s;
}

.nav-links .btn:hover {
    background-color: #8db46f; /* Verde más oscuro */
}

/* Ocultar el menú de hamburguesa */
.hamburger {
    display: none;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    /* Mantener la visibilidad de los botones en pantallas pequeñas */
    .nav-links {
        justify-content: center; /* Centrar los botones en pantallas pequeñas */
    }

    .nav-links .btn {
        font-size: 12px; /* Ajustar tamaño de fuente para pantallas pequeñas */
        padding: 4px 10px; /* Reducir el tamaño del botón */
    }

    .navbar {
        justify-content: space-between; /* Asegurar que el logo y los botones estén bien alineados */
    }

    .navbar .logo img {
        width: 150px; /* Reducir el tamaño del logo para pantallas pequeñas */
    }

    /* Eliminar reglas que ocultaban los enlaces y mostraban el menú de hamburguesa */
    /* .nav-links {
        position: absolute;
        top: 80px;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        width: 200px;
        flex-direction: column;
        align-items: center;
        display: none;
        box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger.active .fa-bars {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    } */
}

@media (max-width: 576px) {
    .nav-links .btn {
        font-size: 10px; /* Reducir el tamaño de la fuente para móviles */
        padding: 4px 8px; /* Reducir aún más el tamaño del botón */
    }
}

/* --- Ajustes para dispositivos pequeños (hasta 425px) --- */
@media (max-width: 546px) {
    /* Navbar */
    .navbar {
        padding: 15px;
        height: 60px;
    }

    .main-content {
        padding-top: 50px !important;
    }

    /* Centrar el logo */
    .navbar .logo {
        display: flex;
        justify-content: center;
    }

    .navbar .logo img {
        width: 150px; /* Reducir tamaño del logo para pantallas pequeñas */
    }

    /* Reducir tamaño de fuente en Hero Section */
    .hero {
        margin-top: 0; /* Asegúrate de que no haya margen en la sección hero */
    }

    .hero-content h1 {
        font-size: 24px !important; /* Tamaño de fuente más pequeño */
        line-height: 1.1; /* Ajusta la altura de línea para reducir el espacio entre las líneas */
        margin-bottom: 15px; /* Ajusta el margen inferior para una mejor proporción */
    }

    .hero-content p {
        font-size: 16px; /* Ajustar tamaño de párrafo */
    }

    .hero-content .btn-primary {
        font-size: 16px; /* Ajustar el tamaño del botón */
        padding: 10px 20px;
    }

    /* Características Section */
    .features h2 {
        font-size: 28px; /* Reducir tamaño de fuente para pantallas pequeñas */
    }

    .feature h3 {
        font-size: 20px; /* Reducir tamaño de fuente para pantallas pequeñas */
    }

    .feature p {
        font-size: 18px; /* Ajustar tamaño de párrafo */
    }

    /* Cómo Funciona Section */
    .how-it-works h2 {
        font-size: 28px; /* Reducir tamaño de fuente para pantallas pequeñas */
    }

    .step h3 {
        font-size: 18px; /* Ajustar tamaño de fuente */
    }

    .step p {
        font-size: 18px; /* Ajustar tamaño de párrafo */
    }

    /* Testimonios Section */
    .testimonials h2 {
        font-size: 28px; /* Reducir tamaño de fuente para pantallas pequeñas */
    }

    .testimonial p {
        font-size: 18px; /* Ajustar tamaño de párrafo */
    }

    .testimonial h4 {
        font-size: 20px; /* Ajustar tamaño de fuente */
    }

    /* CTA Final Section */
    .cta h2 {
        font-size: 28px; /* Reducir tamaño de fuente */
    }

    .cta p {
        font-size: 20px; /* Ajustar tamaño de párrafo */
    }

    .cta .btn-primary {
        font-size: 20px; /* Ajustar tamaño del botón */
        padding: 14px 30px;
    }

    /* Asegurar que los contenedores de características, pasos y testimonios ocupen el 100% */
    .feature,
    .step,
    .testimonial {
        width: 100%;
        margin: 10px 0;
    }

    /* Footer */
    .footer-left img {
        width: 200px; /* Reducir tamaño del logo en el footer */
    }

    .footer-right ul li {
        margin-left: 0;
        margin: 10px 0;
    }

    .footer-right ul li a {
        font-size: 16px; /* Aumentar tamaño de fuente en el footer */
    }

    /* Nueva Sección: Comunidad */
    .community {
        padding: 40px 20px;
        text-align: center;
        background-color: #eef7e5; /* Fondo verde claro */
        max-width: 1200px;
        margin: 0 auto;
    }

    .community h2 {
        font-size: 24px;
        color: #333;
        margin-bottom: 20px;
    }

    .community p {
        font-size: 18px;
        color: #666;
    }

    .community-images {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .community-images img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .community-images img:hover {
        transform: scale(1.05);
        box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    }
}

@media (max-width: 346px) {
    /* Ajustar los botones para pantallas muy pequeñas */
    .nav-links .btn {
        font-size: 10px; /* Reducir tamaño de la fuente */
        padding: 2px 6px; /* Reducir el padding de los botones */
        margin-left: 5px; /* Reducir el margen entre los botones */
    }

    /* Reducir el tamaño del logo */
    .navbar .logo img {
        width: 100px; /* Reducir aún más el tamaño del logo */
    }

    /* Ajustar la barra de navegación */
    .navbar {
        padding: 10px; /* Reducir el padding para ajustarse a pantallas más pequeñas */
        height: 50px; /* Reducir la altura de la barra de navegación */
    }

    /* Nueva Sección: Comunidad */
    .community h2 {
        font-size: 20px;
    }

    .community p {
        font-size: 16px;
    }

    .community-images img {
        width: 120px;
        height: 120px;
    }
}

/* Contenedor Principal con Espaciado Superior */
.main-content {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px 20px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    position: relative;
    width: 100%; /* Asegura que ocupe todo el ancho */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 137, 68, 0.7); /* Superposición verde */
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px; /* Ancho máximo */
    margin: 0 auto; /* Centra el contenido si es necesario */
}

.hero-content h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-content .btn-primary {
    padding: 12px 25px;
    background-color: #9ccd7f; /* Verde */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.hero-content .btn-primary:hover {
    background-color: #8db46f; /* Verde más oscuro */
}

/* Características Section */
.features {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
}

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    width: 22%;
    margin: 10px;
    padding: 20px;
    background-color: #eef7e5; /* Fondo verde claro */
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

.feature i {
    font-size: 50px;
    color: #9ccd7f; /* Verde */
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    font-size: 16px;
    color: #666;
}

@media (max-width: 992px) {
    .feature {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .feature {
        width: 100%;
    }
}

/* Cómo Funciona Section */
.how-it-works {
    padding: 60px 20px;
    text-align: center;
    background: url('../images/how-it-works-bg.jpg') no-repeat center center/cover;
    color: #fff;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 137, 68, 0.7); /* Superposición verde */
    z-index: 1;
}

.how-it-works h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.steps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.step {
    width: 22%;
    margin: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(255,255,255,0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #9ccd7f; /* Verde */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
}

.step h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.step p {
    font-size: 16px;
    color: #ddd;
}

@media (max-width: 992px) {
    .step {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .step {
        width: 100%;
    }
}

/* Testimonios Section */
.testimonials {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    width: 30%;
    margin: 10px;
    padding: 20px;
    background-color: #eef7e5; /* Fondo verde claro */
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

.testimonial img.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial h4 {
    font-size: 18px;
    color: #333;
}

@media (max-width: 992px) {
    .testimonial {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .testimonial {
        width: 100%;
    }
}

/* Nueva Sección: Comunidad */
.community {
    padding: 60px 20px;
    text-align: center;
    background-color: #eef7e5; /* Fondo verde claro */
    max-width: 1200px;
    margin: 0 auto;
}

.community h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.community p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.community-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.community-images img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.community-images img:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .community h2 {
        font-size: 28px;
    }

    .community p {
        font-size: 16px;
    }

    .community-images img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 346px) {
    /* Ajustar los botones para pantallas muy pequeñas */
    .nav-links .btn {
        font-size: 10px; /* Reducir tamaño de la fuente */
        padding: 2px 6px; /* Reducir el padding de los botones */
        margin-left: 5px; /* Reducir el margen entre los botones */
    }

    /* Reducir el tamaño del logo */
    .navbar .logo img {
        width: 100px; /* Reducir aún más el tamaño del logo */
    }

    /* Ajustar la barra de navegación */
    .navbar {
        padding: 10px; /* Reducir el padding para ajustarse a pantallas más pequeñas */
        height: 50px; /* Reducir la altura de la barra de navegación */
    }

    /* Nueva Sección: Comunidad */
    .community h2 {
        font-size: 20px;
    }

    .community p {
        font-size: 16px;
    }

    .community-images img {
        width: 120px;
        height: 120px;
    }
}

/* Contenedor Principal con Espaciado Superior */
.main-content {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px 20px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    position: relative;
    width: 100%; /* Asegura que ocupe todo el ancho */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 137, 68, 0.7); /* Superposición verde */
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px; /* Ancho máximo */
    margin: 0 auto; /* Centra el contenido si es necesario */
}

.hero-content h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-content .btn-primary {
    padding: 12px 25px;
    background-color: #9ccd7f; /* Verde */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.hero-content .btn-primary:hover {
    background-color: #8db46f; /* Verde más oscuro */
}

/* Características Section */
.features {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
}

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    width: 22%;
    margin: 10px;
    padding: 20px;
    background-color: #eef7e5; /* Fondo verde claro */
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

.feature i {
    font-size: 50px;
    color: #9ccd7f; /* Verde */
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    font-size: 16px;
    color: #666;
}

@media (max-width: 992px) {
    .feature {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .feature {
        width: 100%;
    }
}

/* Cómo Funciona Section */
.how-it-works {
    padding: 60px 20px;
    text-align: center;
    background: url('../images/how-it-works-bg.jpg') no-repeat center center/cover;
    color: #fff;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 137, 68, 0.7); /* Superposición verde */
    z-index: 1;
}

.how-it-works h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.steps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.step {
    width: 22%;
    margin: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(255,255,255,0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #9ccd7f; /* Verde */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
}

.step h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.step p {
    font-size: 16px;
    color: #ddd;
}

@media (max-width: 992px) {
    .step {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .step {
        width: 100%;
    }
}

/* Testimonios Section */
.testimonials {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    width: 30%;
    margin: 10px;
    padding: 20px;
    background-color: #eef7e5; /* Fondo verde claro */
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

.testimonial img.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial h4 {
    font-size: 18px;
    color: #333;
}

@media (max-width: 992px) {
    .testimonial {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .testimonial {
        width: 100%;
    }
}

/* Nueva Sección: Comunidad */
.community {
    padding: 60px 20px;
    text-align: center;
    background-color: #eef7e5; /* Fondo verde claro */
    max-width: 1200px;
    margin: 0 auto;
}

.community h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.community p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.community-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.community-images img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.community-images img:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .community h2 {
        font-size: 28px;
    }

    .community p {
        font-size: 16px;
    }

    .community-images img {
        width: 150px;
        height: 150px;
    }
}

/* CTA Final Section */
.cta {
    padding: 60px 20px;
    text-align: center;
    background-color: #eef7e5; /* Fondo verde claro */
    max-width: 1200px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.cta .btn-primary {
    padding: 12px 25px;
    background-color: #9ccd7f; /* Verde */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.cta .btn-primary:hover {
    background-color: #8db46f; /* Verde más oscuro */
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-left img {
    width: 300px; /* Tamaño del logo en el footer */
}

.footer-left p {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}

.footer-right ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-right ul li {
    margin-left: 20px;
}

.footer-right ul li a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-right ul li a:hover {
    color: #9ccd7f; /* Verde */
}

.footer-right ul li a.social-icon {
    display: flex;
    align-items: center;
}

.footer-right ul li a.social-icon i {
    font-size: 20px;
    color: #ccc;
    transition: color 0.3s;
}

.footer-right ul li a.social-icon:hover i {
    color: #9ccd7f; /* Verde */
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-right ul {
        flex-direction: row; /* Cambiado a row para mostrar íconos en una fila */
        margin-top: 20px;
    }

    .footer-right ul li {
        margin: 10px;
    }
}

@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 60px; /* Tamaño de fuente aumentado */
    }

    .hero-content p {
        font-size: 20px; /* Tamaño de párrafo aumentado */
    }
}

/* Ajustes adicionales */
.navbar .logo img,
.footer-left img {
    height: auto;
}

/* Ocultar el menú de hamburguesa en todas las resoluciones */
.hamburger {
    display: none !important;
}
