/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #555;
    line-height: 1.6;
    overflow-x: hidden; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5em;
    color: #386641; 
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.w-h2 {
    font-size: 2.5em;
    color: #fff; 
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button.primary {
    background-color: #6a994e; 
    color: #fff;
}

.button.primary:hover {
    background-color: #386641;
}

.button.secondary {
    background-color: #f2e7d5; 
    color: #386641;
}

.button.secondary:hover {
    background-color: #e0c9a8;
    color: #386641;
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

/* Barra de navegación */
header {
    position: relative;
}

nav {
    background-color: rgba(56, 102, 65, 0.9); 
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo a {
    display: block;
}

.logo img {
    height: 60px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: large;
}

nav ul li a:hover {
    color: #6a994e;
}

/* Hero Section */
.hero {
    background-color: #000000;
    background-image: url('img/bosque_arriba_color.png'); 
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    display: flex;
    flex-direction: column; /* Para apilar el logo, texto y botón */
    align-items: center; /* Centra horizontalmente los elementos */
    justify-content: center; /* Centra verticalmente si el hero tiene una altura definida */
    text-align: center; /* Asegura que el texto dentro de p también esté centrado */
    padding-top: 80px;
}

.hero-logo {
    max-width: 600px; /* Ajusta el tamaño del logo según sea necesario */
    height: auto;
    margin-bottom: 40px; /* Espacio debajo del logo */
    opacity: 0; /* Empieza invisible para el fade-in */
    animation: fadeIn 1.5s ease-out forwards; /* Aplica la animación */
}

.fade-in-text {
    opacity: 0; /* Empieza invisible para el fade-in */
    animation: fadeIn 1.5s ease-out 0.5s forwards; /* Aplica la animación con un pequeño retraso */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInDown 1s ease-out 0.5s forwards;
}

.hero-content p {
    color: #f0f0f0;
    font-size: 1.8em;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.hero-content a {
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.hero-content .button {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.9s forwards;
}

/* Acerca de la empresa */
.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.about-text p.delay-1 {
    animation-delay: 0.3s;
}

.about-text p.delay-2 {
    animation-delay: 0.5s;
}

/* Servicios */
.bg-pastel {
    background-color: #f9f5eb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Añadido para hover */
    cursor: pointer; /* Añadido para indicar que es clicable */
}

.service-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.service-card:hover {
    transform: translateY(-5px); /* Ligero levantamiento al pasar el cursor */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
}

.service-card h3 {
    color: #386641;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.service-card p {
    font-size: 0.95em;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.service-card p.delay-2 {
    animation-delay: 0.2s;
}

.service-card p.delay-3 {
    animation-delay: 0.4s;
}

.service-card p.delay-4 {
    animation-delay: 0.6s;
}

.service-card p.delay-5 {
    animation-delay: 0.8s;
}

/* Estilos para el Modal de Servicios */
.service-modal-content-container {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px 30px; /* Más padding horizontal */
    border-radius: 10px; /* Bordes más redondeados */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    max-width: 900px; /* Un poco más ancho */
    position: relative;
    text-align: left;
    animation: zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#serviceModalTitle {
    font-size: 2.2em; /* Título más grande */
    color: #386641;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600; /* Ligeramente menos bold que el de temas */
}

#serviceModalImage {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px; /* Bordes redondeados para la imagen */
    margin-bottom: 25px;
    display: block;
}

#serviceModalText {
    font-size: 1.05em; /* Texto ligeramente más grande */
    line-height: 1.8; /* Mayor interlineado */
    color: #333; /* Color de texto oscuro */
}

/* Media queries para hacerlo más responsive */
@media (max-width: 768px) {
    main {
    #topicModalTitle {
        font-size: 1.6em;
    }
}

    .service-modal-content-container {
        margin: 10% auto;
        padding: 20px;
        max-width: 90%;
    }
    #serviceModalTitle {
        font-size: 1.8em;
    }
    #serviceModalImage {
        max-height: 250px;
    }}

/* Noticias de interés */
.bg-light-green {
    background-color: #fff; 
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-item-boletin {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-item img {
    width: 100%;
    min-height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
}

.news-item h3 {
    color: #386641;
    margin-bottom: 0;
    font-size: 1.3em;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.news-item h3 a {
    text-decoration: none;
    color: inherit;
}

.news-item p {
    padding: 0 15px 15px;
    font-size: 0.95em;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.news-item p.delay-6 {
    animation-delay: 0.2s;
}

.news-item p.delay-7 {
    animation-delay: 0.4s;
}

/* Temas de Interés con Parallax */
.parallax-section {
    position: relative;
    overflow: hidden; 
    /*padding: 80px 0;*/
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1; 
}

.parallax-content {
    position: relative; 
    background-color: rgba(255, 255, 255, 0.3); 
    padding: 40px 0; 
}


.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    text-align: center;
    padding: 10px; 
}

.topic-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease-in-out;
    cursor: pointer; /* Añadido para indicar que es clicable */
}

.topic-card:hover {
    transform: scale(1.05);
}

.topic-icon {
    margin-right: 8px;
}

.topic-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.topic-title {
    color: #386641;
    font-size: 1.1em;
    margin: 0;
}

/* Media Queries para Temas de Interés con Parallax */
@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .topic-icon img {
        width: 30px;
        height: 30px;
    }

    .topic-title {
        font-size: 1em;
    }

    .topic-card {
        padding: 15px;
    }

    .parallax-content {
        padding: 30px 0;
    }
}

/* Estilos para el Modal de Noticias */
.news-modal-content-container {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px 30px; /* Más padding horizontal */
    border-radius: 10px; /* Bordes más redondeados */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    max-width: 900px; /* Un poco más ancho */
    position: relative;
    text-align: left;
    animation: zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#newsModalTitle {
    font-size: 2.2em; /* Título más grande */
    color: #386641;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600; /* Ligeramente menos bold que el de temas */
}

#newsModalImage {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px; /* Bordes redondeados para la imagen */
    margin-bottom: 25px;
    display: block;
}

#newsModalText {
    font-size: 1.05em; /* Texto ligeramente más grande */
    line-height: 1.8; /* Mayor interlineado */
    color: #333; /* Color de texto oscuro */
}

/* Media queries para hacerlo más responsive */
@media (max-width: 768px) {
    main {
    #newsModalTitle {
        font-size: 1.6em;
    }
}

    .news-modal-content-container {
        margin: 10% auto;
        padding: 20px;
        max-width: 90%;
    }
    #newsModalTitle {
        font-size: 1.8em;
    }
    #newsModalImage {
        max-height: 250px;
    }}

/* Estilos para el Modal de Servicios */
.topic-modal-content-container {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px 30px; /* Más padding horizontal */
    border-radius: 10px; /* Bordes más redondeados */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    max-width: 900px; /* Un poco más ancho */
    position: relative;
    text-align: left;
    animation: zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#topicModalTitle {
    font-size: 2.2em; /* Título más grande */
    color: #386641;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600; /* Ligeramente menos bold que el de temas */
}

#topicModalImage {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px; /* Bordes redondeados para la imagen */
    margin-bottom: 25px;
    display: block;
}

#topicModalText {
    font-size: 1.05em; /* Texto ligeramente más grande */
    line-height: 1.8; /* Mayor interlineado */
    color: #333; /* Color de texto oscuro */
}

/* Media queries para hacerlo más responsive */
@media (max-width: 768px) {
    main {
    #topicModalTitle {
        font-size: 1.6em;
    }
}

    .topic-modal-content-container {
        margin: 10% auto;
        padding: 20px;
        max-width: 90%;
    }
    #topicModalTitle {
        font-size: 1.8em;
    }
    #topicModalImage {
        max-height: 250px;
    }
}

/* Video */


.bg-pastel-lighter {
    background-color: #f9f5f0; /* Un color pastel claro de ejemplo */
}

.contact-video {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente los elementos */
    /*padding: 40px 20px;  Añade un poco de espacio alrededor */
    text-align: center; /* Centra el texto dentro de los contenedores */
}

.contact-text {
    margin-bottom: 20px; /* Espacio entre los textos y el video */
    width: 80%; /* Ancho del texto para que no sea demasiado extenso en pantallas grandes */
    max-width: 600px; /* Ancho máximo del texto */
}

.video-container {
    position: relative; /* Necesario para el posicionamiento absoluto del iframe */
    width: 100%; /* O el ancho que desees */
    max-width: 560px; /* Ancho máximo opcional */
    padding-bottom: 35%; /* Calcula el padding-bottom basado en la proporción 9/16 * 100% */
    height: 0; /* La altura se define por el padding-bottom */
    overflow: hidden; /* Evita que el iframe sobresalga */
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Media Queries para responsividad --- */

/* Para tabletas (ej. iPads en vertical, o pantallas medianas) */
@media (max-width: 992px) {
    .parallax-section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2.4em;
        margin-bottom: 40px;
    }

    .topics-grid {
        /* En tabletas, 2 columnas */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }

    .topic-card {
        padding: 25px;
    }

    .topic-icon img {
        max-width: 70px;
    }

    .topic-title {
        font-size: 1.3em;
    }

    .contact-video {
        padding: 30px;
        flex-direction: column; /* Asegura que siga en columna si antes no lo estaba */
    }

    .contact-text p {
        font-size: 1em;
    }
}

/* Para teléfonos (pantallas pequeñas) */
@media (max-width: 768px) {
    .parallax-section {
        padding: 40px 0;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .topics-grid {
        /* En teléfonos, 1 columna (o 2 columnas si minmax es menor) */
        grid-template-columns: 1fr; /* Fuerza una sola columna para una mejor lectura */
        gap: 20px;
    }

    .topic-card {
        padding: 20px;
    }

    .topic-icon img {
        max-width: 60px;
        margin-bottom: 15px;
    }

    .topic-title {
        font-size: 1.2em;
    }

    .container {
        padding: 0 15px; /* Más padding en los bordes para móviles */
    }

   
    .contact-video {
        padding: 20px;
    }

    .contact-text p {
        font-size: 0.95em;
    }
}

/* Animaciones (asumiendo que las tienes, si no, puedes añadir la definición de @keyframes fadeIn) */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-8 { animation-delay: 0.8s; }




/* Contacto */
.bg-pastel-lighter {
    background-color: #f0f0f0; 
}

/* Contenedor principal de la sección de contacto */
.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Esta línea asegura que las dos columnas tengan el mismo tamaño */
    gap: 30px;
    align-items: start;
    margin-top: 40px;
}

/* Columna de información de contacto (izquierda) */
.contact-info-column {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Grid 2x2 para los items de contacto */
    gap: 20px; /* Espacio entre los elementos del grid */
}

/* Estilo para cada item individual de contacto (ubicación, teléfono, etc.) */
.contact-item {
    background-color: #ffffff; /* Fondo blanco para los recuadros */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Sombra suave */
    text-align: center; /* Centra el contenido dentro del recuadro */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-item h3 {
    margin-top: 5px;
    margin-bottom: 2px;
    color: #333;
    font-size: 1.3em;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1em;
}

.contact-icon {
    font-size: 2.5em; /* Tamaño grande para los iconos */
    color: #020a04; /* Color verde vibrante para los iconos */
    margin-bottom: 10px;
}

/* Estilos para los iconos de redes sociales */
.social-icons a {
    color: #0b3d17; /* Color verde para los iconos de redes sociales */
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #218838; /* Color verde más oscuro al pasar el ratón */
}

/* Estilo para las imágenes de los ítems de contacto */
.contact-image {
    width: 60px; /* Ajusta el tamaño de la imagen según sea necesario */
    height: auto; /* Mantiene la proporción de la imagen */
    margin-bottom: 10px; /* Espacio entre la imagen y el título */
}

.ubicacion-image {
    width: 40px; /* Ajusta el tamaño de la imagen según sea necesario */
    height: auto; /* Mantiene la proporción de la imagen */
    margin-bottom: 10px; /* Espacio entre la imagen y el título */
}

/* Estilos para los iconos de redes sociales (Font Awesome) */
.social-icons a {
    color: #28a745; /* Color verde para los iconos de redes sociales */
    font-size: 1.8em; /* Tamaño de los iconos */
    margin: 0 10px; /* Espacio entre los iconos */
    transition: color 0.3s ease; /* Transición suave al pasar el ratón */
}

.social-icons a:hover {
    color: #218838; /* Color verde más oscuro al pasar el ratón */
}

/* Asegúrate de que .contact-item siga centrando el contenido */
.contact-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Esto centra las imágenes también */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Columna del mapa (derecha) */
.map-column {
    background-color: #ffffff; /* Fondo blanco para el recuadro del mapa */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center; /* Centra el título "Encuéntranos" */
}

.map-column h3 {
    margin-bottom: 40px;
    color: #333;
    font-size: 1.6em;
}

.google-map-container {
    position: relative;
    padding-bottom: 62.25%; /* Relación de aspecto 16:9 para el mapa (alto/ancho * 100) */
    height: 0;
    overflow: hidden;
    border-radius: 5px; /* Bordes ligeramente redondeados para el mapa */
}

.google-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Animaciones fade-in (asumiendo que ya las tienes definidas o las añades) */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
/* Puedes añadir más retrasos si lo necesitas */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media Queries para responsividad */
@media (max-width: 992px) {
    .contact-grid-container {
        grid-template-columns: 1fr; /* Una sola columna en pantallas medianas */
    }

    .contact-info-column {
        grid-template-columns: 1fr; /* Una sola columna para los items de contacto */
    }
}

@media (max-width: 576px) {
    .contact-item {
        padding: 20px;
    }
    .contact-icon {
        font-size: 2em;
    }
    .contact-item h3 {
        font-size: 1.2em;
    }
}


/* Footer */
footer {
    background-color: #386641;
    color: #f0f0f0;
    padding: 20px 0;
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 10px;
    
}

.footer-social a {
    display: inline-block;
    margin: 0 10px;

    color: #f0f0f0; /* Color verde para los iconos de redes sociales */
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #218838; /* Color verde más oscuro al pasar el ratón */
}

.footer-social img:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.9em;
    margin-top: 20px;
}

/* Background Image Fixed */
.background-image-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/fondo_hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2; 
}

.background-image-fixed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.3); 
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries para Responsividad */

/* Para tabletas (ancho máximo de 992px) */
@media (max-width: 992px) {
    .container {
        padding: 15px;
    }

    nav ul {
        display: none; 
        position: absolute;
        top: 60px; 
        left: 0;
        background-color: rgba(56,102,65, 0.95);
        width: 100%;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    nav ul.active {
        display: block;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 20px;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        padding: 120px 0;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Para teléfonos móviles (ancho máximo de 600px) */
@media (max-width: 600px) {
    h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .about-content {
        padding: 0;
    }

    .service-card {
        padding: 15px;
    }

    .service-card h3 {
        font-size: 1.1em;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-info {
        font-size: 0.9em;
    }

    .footer-social img {
        height: 25px;
        width: 25px;
    }
}


/* Estilos para un botón de menú en pantallas pequeñas */
@media (max-width: 992px) {
    nav {
        position: fixed; 
        padding: 15px;
        display: flex;
        justify-content: space-between;
    }

    .logo {
        order: 1; 
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        color: #f0f0f0;
        font-size: 1.5em;
        order: 2; 
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #f0f0f0;
        margin: 5px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav ul {
        display: none; 
        position: absolute;
        top: 55px; 
        left: 0;
        background-color: rgba(56, 102, 65, 0.9);
        width: 100%;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 10;
    }

    nav ul.active {
        display: block; 
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 20px;
    }
}

/* Esconde el botón de menú y muestra la navegación normal en pantallas más grandes */
@media (min-width: 993px) {
    .menu-toggle {
        display: none;
    }

    nav ul {
        display: flex !important;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        width: auto;
        text-align: left;
    }

    nav ul li {
        margin-left: 25px;
    }

    nav ul li a {
        display: inline-block;
        padding: 10px 15px;
    }
}

/* Ajustes finos para móviles */
@media (max-width: 600px) {
    nav {
        padding: 10px;
    }

    .logo img {
        height: 30px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .about-content {
        padding: 0 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 15px;
    }

    footer {
        padding: 20px 0;
        font-size: 0.8em;
    }

    .footer-info p {
        margin-bottom: 5px;
    }

    .footer-social img {
        height: 20px;
        width: 20px;
        margin: 0 5px;
    }
}

/* NOTICIAS */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;

}

.container-news {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 150px;
    margin-bottom: 100px;
}

main {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.featured-news h2,
.latest-news h2,
.sidebar h3 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 15px;
    
}

.text-container a {
    color: #218838;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background-color: #fff;
    padding: 15px;
    
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-item-bol {
    background-color: #fff;
    padding: 0 15px;
    
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.news-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.news-item h3 a {
    color: #666;
    text-decoration: none;
}
.news-item h4 a {
    color: #666;
    text-decoration: none;
}
.news-item .excerpt {
    color: #666;
    font-size: 0.5em;
    margin-bottom: 10px;
}

.news-item .read-more {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
}
.news-item-bol .read-more {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-list .news-item {
    display: flex;
    flex-direction: column; /* Cambia la dirección a vertical */
    align-items: flex-start; /* Alinea los elementos al inicio */
}

.news-list .image-container {
    width: 100%; /* La imagen ocupa todo el ancho */
    margin-right: 0; /* Elimina el margen derecho */
    margin-bottom: 10px; /* Añade margen inferior */
}

.news-list .text-container {
    width: 100%; /* El texto ocupa todo el ancho */
}

.news-list .read-more {
    margin-left: 0; /* Alinea el botón a la izquierda */
    margin-top: 10px; /* Añade margen superior */
}

.news-list .image-container {
    width: 100%; /* La imagen ocupa todo el ancho */
    margin-right: 0; /* Elimina el margen derecho */
    margin-bottom: 10px; /* Añade margen inferior */
}

.news-list .text-container {
    width: 100%; /* El texto ocupa todo el ancho */
}

.news-list .read-more {
    margin-left: 0; /* Alinea el botón a la izquierda */
    margin-top: 10px; /* Añade margen superior */
}

.news-list .image-container {
    width: 120px;
    margin-right: 15px;
}

.news-list .image-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-list .text-container h3 a {
    color: #218838;
    text-decoration: none;
    font-size: 1em;
    margin-bottom: 5px;
}

.news-list .text-container .excerpt {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.news-list .text-container .date {
    color: #999;
    font-size: 0.75em;
}

.news-list .read-more {
    margin-left: auto;
    background-color: #28a745;
}

.sidebar {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar .social-links a {
    display: inline-block;
    margin-right: 10px;
    color: #007bff;
    text-decoration: none;
}

/* --- Estilos para la Ventana Modal (Lightbox) --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Permanece fijo en la ventana */
    z-index: 1000; /* Asegura que esté por encima de todo lo demás */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilita el scroll si la imagen es muy grande */
    background-color: rgba(0,0,0,0.9); /* Fondo negro semitransparente */
    padding-top: 60px; /* Espacio desde arriba */
    text-align: center; /* Centra el contenido horizontalmente */
}

/* Contenido de la imagen dentro del modal */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%; /* Ancho máximo de la imagen */
    max-height: 80vh; /* Altura máxima de la imagen (80% del viewport height) */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s ease-out; /* Transición suave para el zoom */
    transform-origin: center center; /* El zoom se origina desde el centro */
    animation-name: zoom; /* Animación de zoom */
    animation-duration: 0.6s;
}

/* Botón de cierre */
.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos para los controles de zoom */
.zoom-controls {
    position: absolute;
    top: 15px;
    right: 75px; /* Espacio a la izquierda del botón de cierre */
    display: flex;
    gap: 8px;
    z-index: 1001; /* Asegura que estén sobre la imagen */
}

.zoom-controls button {
    background-color: rgba(40, 40, 40, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.zoom-controls button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}
/* Texto de descripción (opcional) */
#caption {
    margin-top: 15px;
    text-align: center;
    color: #ccc;
    font-size: 1.2em;
    padding: 10px 0;
}

/* Clases para el cursor durante el zoom y arrastre */
.modal-content.zoomed { /* Aplicada cuando la imagen está ampliada (escala > 1) */
    cursor: grab;
}

.modal-content.grabbing { /* Aplicada mientras se está arrastrando la imagen */
    cursor: grabbing;
}

/* Animación de zoom al abrir el modal */
@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

/* Animación de fade al cerrar el modal (opcional) */
@keyframes fadeOut {
    from {opacity: 1}
    to {opacity: 0}
}
/* Animación de zoom al abrir el modal */
@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}


/* Media queries para hacerlo más responsive */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1; /* Coloca la barra lateral encima en pantallas pequeñas */
        margin-bottom: 20px;
    }

    .news-list {
        flex-direction: column;
    }

    .news-list .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-list .image-container {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .news-list .read-more {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
