@media (max-width: 767px) {
    .focus-grid {
        display: block;
        padding: 0 15px;
        /* Espacio lateral */
    }

    .focus-item {
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
        /* Incluye padding y borde en el ancho total */
    }

    .banner-content h1 {
        font-size: 2rem;
    }

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

    nav.menu-overlay {
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
    }

    nav.menu-overlay ul li a {
        color: white;
        font-size: 1.5rem;
        margin: 15px 0;
    }

    /*--------------------------------------------------*/
    /* Invernaderos */
    /*--------------------------------------------------*/
    /* Galería de Invernaderos */
    /* Updated Gallery Styling */
    .gallery-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
        align-items: center;
        /* Center align images */
    }

    .gallery-item {
        width: 90%;
        /* Set width to 90% of the container */
        max-width: 500px;
        /* Limit the maximum width for larger devices */
        margin: 0 auto;
    }

    .gallery-item img {
        width: 100%;
        /* Full width of the container */
        height: auto;
        /* Maintain aspect ratio */
        border-radius: 8px;
    }


    /* Beneficios de Invernaderos */
    .benefit-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 15px;
    }

    .benefit-item {
        width: 90%;
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;
        border-radius: 10px;
        background-color: #ffffff;
    }

    .benefit-item h4 {
        font-size: 1.2rem;
        text-align: center;
    }

    .benefit-item p {
        font-size: 1rem;
        text-align: center;
    }

    /*--------------------------------------------------*/
    /* Contacto */
    /*--------------------------------------------------*/
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .form-section,
    .map-section {
        width: 100%;
    }

    /*--------------------------------------------------*/
    /* Adaptaciones para móviles */
    /*--------------------------------------------------*/
    .footer-content {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
        max-width: 100%;
        padding: 0 10px;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}