body {
        margin: 0;
        font-family: Arial, sans-serif;
        background-color: #193d21;
        color: rgb(255, 255, 255);
        padding-left: 0;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        overflow-x: hidden;
        touch-action: manipulation;
    }


    /* Header */
header {
    text-align: center;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 864px;
}

    header img {
        width: 100%; /* La imagen ocupará todo el ancho del contenedor */
        height: auto; /* Mantendrá las proporciones de la imagen */
        display: block; /* Evita espacios extra alrededor de la imagen */
    }

    /* Navbar */
.navbar {
    width: 100%;
    max-width: 864px;
    background-color: #056626;
    text-align: center;
    padding: 8px 0;
    margin: 0 auto;
    font-size: 16px;
}

    /* Lista de navegación */
    .navbar ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: space-around;
    }

    /* Elementos de la lista */
    .navbar li {
        position: relative;
    }

    /* Enlaces de navegación */
.navbar a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: inline-block;
    border-radius: 4px;
    font-size: 14px; /* Disminuido el tamaño de la fuente */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    /* Efecto de hover para los enlaces */
    
    .navbar a:hover {
        background-color: #445; /* Color de fondo más oscuro */
        transform: scale(1.05); /* Un leve aumento de tamaño */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Añadir una sombra ligera */
    }

    /* Dropdown */
    .navbar .dropdown {
        position: relative;
    }

    /* Menú desplegable */
.navbar .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #1f3625;
    list-style: none;
    margin: 0;
    padding: 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border: 1px solid #3c6e47;
    width: auto;
    min-width: 200px;
    border-radius: 5px;
}

    /* Mostrar menú desplegable */
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease-in-out; /* Agregué animación de aparición */
    }

    /* Animación para el dropdown */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }




    /* Main Content */
.content {
    display: flex;
    width: 100%;
    max-width: 864px;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    margin-bottom: 1rem;
    flex: 1;
    overflow: hidden;
}

    /* Estilo para la imagen nes-intro.png */
    .content-image {
        width: 100%; /* La imagen ocupará el 100% del ancho disponible en su contenedor */
        max-width: 50%; /* Limita el ancho al 50% en pantallas grandes */
        height: auto; /* Altura automática para mantener proporciones */
        max-height: 490px; /* Altura máxima de la imagen */
        object-fit: contain; /* Asegura que la imagen se muestre completa */
        margin-left: 0; /* Elimina cualquier margen izquierdo */
        margin-top: 40px; /* Añadido para separar de la navbar */
        margin-bottom: 20px; /* Añadido para separar de otros elementos */
        border-radius: 10px; /* Bordes redondeados para el contorno */
    }



.content-wrapper {
    background-color: rgb(201, 250, 205);
    width: 100%;
    max-width: 864px;
    margin: 0 auto;
    padding: 20px 0 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}





    .banner {
        color: rgb(0, 0, 0); /* Texto blanco */
        text-align: center;
        font-size: 1.5em;
        padding: 10px 0; /* Espaciado vertical */
        font-weight: bold;
        border-radius: 10px 10px 0 0; /* Bordes redondeados en la parte superior */
    }

    .text-box h1 {
        margin-top: 0;
        font-size: 2em;
        color: #000;
    }
    .text-box p {
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 1em;
    }

    /* Colorea NES en rojo */
    .banner strong {
        color: #FF0000; /* Rojo para "NES" */
    }
    /* Galería */
.galeria {
    padding: 2rem;
    color: #333;
    text-align: center;
    width: 100%;
    max-width: 864px;
    margin: 0 auto;
    background-color: transparent;
    box-sizing: border-box;
}

    /* Descripción de la galería */
    .description {
        margin: 20px auto;
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: left;
        max-width: 800px;
        width: 100%;
        box-sizing: border-box;
    }

    .description h3 {
        color: #056626;
        margin-bottom: 15px;
        text-align: center;
        font-size: 1.5rem;
    }

    .description p {
        color: #333;
        line-height: 1.6;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .galeria h2 {
        font-size: 1.5rem; /* Tamaño de fuente más pequeño */
        margin-bottom: 1rem;
        padding: 10px 20px;
        display: inline-block;
        background-color: #056626;
        color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra para el título */
        border-radius: 5px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Columnas responsivas */
        gap: 1rem; /* Espaciado entre las imágenes */
        justify-items: center; /* Centrar las imágenes horizontalmente */
        align-items: center; /* Centrar las imágenes verticalmente (si tienen diferentes alturas) */
    }

    .gallery-grid img {
        width: 100%; /* Ajusta las imágenes al ancho de su contenedor */
        max-width: 300px; /* Tamaño máximo para cada imagen (puedes ajustarlo) */
        height: auto; /* Mantiene la proporción de las imágenes */
    }



    .gallery-item img {
        width: 100%; /* La imagen ocupará el 100% de su contenedor */
        max-width: 300px; /* Ancho máximo fijo para evitar que las imágenes sean demasiado grandes */
        height: auto; /* Mantiene las proporciones de la imagen */
        border-radius: 10px; /* Bordes redondeados */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra para un efecto visual agradable */
        transition: transform 0.3s ease; /* Suaviza el efecto de hover */
        border: 5px solid #056626; /* Añadido contorno verde */
    }



    /* Efecto de hover para imágenes */
    .gallery-item img:hover {
        transform: scale(1.05);
    }

    .cochinilla-container {
        display: flex;
        flex-direction: column;
        margin: 2rem auto;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        border: 5px solid #056626; /* Añadido contorno verde */
        width: 100%;
        max-width: 500px; /* ⬅️ Ajusta aquí el ancho real que deseas */
        align-items: center;
    }

    .cochinilla-container img {
        width: 100%;
        aspect-ratio: 22 / 18; /* o 16 / 9 si prefieres más rectangular */
        object-fit: cover;
        display: block;
    }


    .cochinilla-text {
        padding: 20px;
        text-align: left;
        color: #333;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-family: 'Verdana', Geneva, Tahoma, sans-serif;
        text-align: justify;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .cochinilla-text h3 {
        color: #056626;
        margin-bottom: 10px;
        text-align: center;
        font-size: 1.3rem;
        text-align: center;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .cochinilla-text p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    /* Footer */
footer {
    background-color: #056626;
    text-align: center;
    padding: 1rem 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 864px;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

    /* Media Queries para pantallas pequeñas */
    @media (max-width: 768px) {
        body {
            padding-left: 0;  /* Eliminar padding en móviles */
            padding-right: 0;
            overflow-x: hidden; /* Prevenir scroll horizontal */
        }

        header, .navbar, .content, .content-wrapper, footer, .galeria {
            width: 100%; /* Ocupar todo el ancho disponible */
            margin-left: 0;
            margin-right: 0;
        }

        .content {
            flex-direction: column;  /* Coloca el contenido en una columna en pantallas pequeñas */
            padding: 10px;
            box-sizing: border-box;
        }

        .content-image {
            max-width: 100%;  /* La imagen ocupa el 100% del ancho en pantallas pequeñas */
            height: auto;
            max-height: none; /* Eliminar altura máxima fija */
            margin: 10px 0;
        }

        .text-box {
            max-width: 100%;
            padding: 0 15px;
        }

        /* Navegación móvil */
        .navbar {
            padding: 5px 0;
        }

        .navbar ul {
            flex-direction: column;  /* Cambiar la dirección de los elementos en la navbar */
        }

        .navbar li {
            margin: 5px 0;
        }

        .navbar a {
            padding: 12px 15px;
            width: 80%;
            margin: 0 auto;
            display: block;
        }

        /* Dropdown en móvil */
        .navbar .dropdown-menu {
            position: static;
            transform: none;
            width: 90%;
            margin: 5px auto;
            box-shadow: none;
            display: none;
        }

        .navbar .dropdown.active .dropdown-menu {
            display: block; /* Se mostrará al hacer clic */
        }

        /* Galería en móvil */
        .gallery-grid {
            grid-template-columns: 1fr; /* Una sola columna en móviles pequeños */
            gap: 15px;
        }

        .gallery-item img {
            max-width: 100%;
            border-width: 3px;
        }

        /* Sección de descripción en móvil */
        .description {
            width: 100%;
            margin: 15px auto;
            padding: 10px;
            box-sizing: border-box;
            clear: both;
            display: block;
            overflow-wrap: break-word;
            word-wrap: break-word;
            hyphens: auto;
        }
        
        .description h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            text-align: center;
        }
        
        .description p {
            font-size: 0.9rem;
            line-height: 1.4;
            margin-bottom: 10px;
        }

        /* Footer en móvil */
        footer {
            width: 100%;
            padding: 10px 5px;
        }
        
        /* Ocultar descripción normal en móviles */
        .desktop-only {
            display: none;
        }
        
        /* Mostrar botón en móviles */
        .info-button {
            display: block;
        }
    }

    /* Media query para tablets */
    @media (min-width: 769px) and (max-width: 1024px) {
        body {
            padding-left: 2%;
            padding-right: 2%;
        }

        .content, .navbar, header, footer, .galeria {
            width: 95%;
        }

        .gallery-grid {
            grid-template-columns: 1fr 1fr; 
        }
    }


    .ver-mas-btn {
        display: inline-block;
        background-color: #056626;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        text-decoration: none;  /* Elimina el subrayado del enlace */
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra inicial */
        margin-top: 10px;
    }

    /* Efecto cuando el usuario pasa el mouse por encima */
    .ver-mas-btn:hover {
        background-color: #445;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* Más sombra al pasar el mouse */
    }


.whatsapp-float {
    position: fixed;
    bottom: calc(15px + env(safe-area-inset-bottom));
    right: 15px;
    background-color: #25D366;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    animation: float 3s infinite ease-in-out;
    z-index: 1000;
}

    .whatsapp-float img {
        width: 27px;
        height: 27px;
        margin-right: 8px;
    }

    .whatsapp-float:hover {
        transform: scale(1.05);
    }

    /* Animación de flotación */
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-5px); } /* Sube un poco */
        100% { transform: translateY(0px); } /* Vuelve a su lugar */
    }


    .contact-link {
        color: white;
        text-decoration: none; 
        font-weight: bold; 
    }

    .contact-link:hover {
        color: #25D366; 
    }


    .banner {
        opacity: 0;
        animation: fadeIn 1.5s ease-out forwards;
        font-size: 1.8rem; /* Ajusta el tamaño según lo necesites */
        font-weight: bold;
        text-align: center; /* Centrado del texto */
        text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2), -3px -3px 5px rgba(0, 0, 0, 0.2);
        transform: perspective(500px) rotateX(10deg); 
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    .content {
        opacity: 0;
        transform: translateY(50px);
        animation: slideUp 1s ease-out forwards;
    }

    @keyframes slideUp {
        0% {
            opacity: 0;
            transform: translateY(50px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Estilos para el botón de información */
    .info-button {
        display: none; /* Oculto por defecto */
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 8px 12px;
        margin-top: 10px;
        cursor: pointer;
        font-weight: bold;
    }

    /* Estilos para el modal */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.7);
    }

    .modal-content {
        background-color: #f9f9f9;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 90%;
        max-width: 500px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .close-button {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

    .close-button:hover {
        color: #000;
    }

    /* Estilos para la imagen de cochinilla modificada */
    .custom-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }


    /*DERECHOS RESERVADOR PARA AGROSERVICIOS-NES*/
