@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    overflow-x: hidden;
}

/* ==========================
   HEADER FIJO Y TRANSPARENTE
========================== */

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.662);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 0 10px 30px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.427);
    margin: 0;
    transition: all .3s ease;
}

/* ==========================
   LOGO
========================== */

.logo-container {
    padding-top: 10px;
    flex-shrink: 0;
}

.logo-container img {
    height: 90px;
    width: auto;
    display: block;
}

/* ==========================
   CONTENEDOR NAVEGACIÓN
========================== */

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
}

/* ==========================
   MENÚ SUPERIOR
========================== */

.top-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.top-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.top-links li {
    display: flex;
    align-items: center;
}

.top-links li:not(:last-child)::after {
    content: "|";
    color: #000000;
    margin: 0 10px;
    font-size: 13px;
}

.top-links a {
    text-decoration: none;
    color: #009640;
    font-size: 16px;
    font-weight: 900;
    transition: .3s;
}

.top-links a:hover {
    text-decoration: underline;
}

/* ==========================
   BOTÓN SUPERIOR
========================== */

.top-buttons {
    display: flex;
    margin-left: 20px;
    margin-right: 30px;
}

.top-buttons .btn-green {
    padding: 8px 6px;
    font-size: 17px;
    border-radius: 3px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    transition: .3s;
}

.btn:hover {
    opacity: .8;
}

.btn-green {
    background-color: #008738;
    padding-right: 60px;
}

/* ==========================
   MENÚ PRINCIPAL
========================== */

.navigation {
    padding-right: 70px;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation > ul > li {
    float: left;
    position: relative;
}

.navigation ul li a {
    display: block;
    padding: 5px 16px;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: .3s;
}

.navigation ul li a:hover {
    color: #009640;
    background: transparent;
}

/* ==========================
   SUBMENÚS PC
========================== */

.navigation ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 230px;
    background: rgba(255,255,255,.97);
    display: none;
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
    z-index: 100;
}

.navigation ul li:hover > ul {
    display: block;
}

.navigation ul li ul li {
    width: 100%;
}

.navigation ul li ul li a {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
}

.navigation ul li ul li a:hover {
    background: #f5f5f5;
    color: #009640;
}

/* ==========================
   BOTÓN MENÚ MÓVIL
   OCULTO EN PC
========================== */

.mobile-menu-button {
    display: none;
}

/* ==========================
   MENÚ MÓVIL
========================== */

@media screen and (max-width: 768px) {

    body {
        padding-top: 70px;
        overflow-x: hidden;
    }

    /* HEADER */
    .header-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 70px;
        height: 70px;
        padding: 5px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255,255,255,.97);
        z-index: 99999;
    }

    /* LOGO */
    .logo-container {
        padding-top: 0;
        flex-shrink: 0;
    }

    .logo-container img {
        height: 58px;
        width: auto;
        max-width: 75px;
        display: block;
    }

    /* BOTÓN */
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        margin-left: auto;
        border: none;
        border-radius: 5px;
        background: #008738;
        color: white;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        line-height: 1;
        z-index: 100001;
    }

    .mobile-menu-button:hover {
        background: #006f2e;
    }

    /* ==========================
       MENÚ CERRADO
    ========================== */

    .nav-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px;
        background: #fff;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,.15);
        z-index: 100000;
    }

    /* ==========================
       MENÚ ABIERTO
    ========================== */

    .nav-wrapper.menu-open {
        display: flex;
    }

    /* ==========================
       MENÚ SUPERIOR
    ========================== */

    .top-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .top-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .top-links li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .top-links li:not(:last-child)::after {
        display: none;
    }

    .top-links a {
        display: block;
        width: 100%;
        padding: 13px 5px;
        color: #009640;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }

    /* ==========================
       COMPRAS EN LÍNEA
    ========================== */

    .top-buttons {
        display: block;
        width: 100%;
        margin: 12px 0;
    }

    .top-buttons .btn-green {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border-radius: 5px;
    }

    /* ==========================
       MENÚ PRINCIPAL
    ========================== */

    .navigation {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navigation > ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .navigation > ul > li {
        float: none;
        position: relative;
        width: 100%;
        border-top: 1px solid #ddd;
    }

    .navigation ul li a {
        display: block;
        width: 100%;
        padding: 13px 5px;
        font-size: 16px;
        color: #333;
        text-decoration: none;
    }

    .navigation ul li a:hover {
        color: #009640;
    }

    /* ==========================
       SUBMENÚS MÓVIL
    ========================== */

    .navigation ul li ul {
        position: static;
        display: block;
        width: 100%;
        background: #f5f5f5;
        box-shadow: none;
    }

    .navigation ul li ul li {
        width: 100%;
    }

    .navigation ul li ul li a {
        padding: 10px 20px;
        font-size: 14px;
        color: #555;
        border-top: 1px solid #e5e5e5;
    }

    .navigation ul li ul li a:hover {
        background: #eee;
        color: #009640;
    }
}

/* ==========================
   CELULARES PEQUEÑOS
========================== */

@media screen and (max-width: 480px) {

    body {
        padding-top: 65px;
    }

    .header-container {
        min-height: 65px;
        height: 65px;
        padding: 5px 12px;
    }

    .logo-container img {
        height: 52px;
        max-width: 68px;
    }

    .mobile-menu-button {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .nav-wrapper {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 12px;
    }
}

/* SLIDER */
.slider{
    margin-top:68px;
    width:100%;
    height:400px;
    position:relative;
    overflow:hidden;
}

.slider img{
    position:absolute;
    width:100%;
    height: 95%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1.5s ease;
}

.slider img.activa{
    opacity:1;
}

.slider-gerentes {
    margin-top:68px;
    width:100%;
    height:400px;
    position:relative;
    overflow:hidden;
}

.slider-gerentes img{
    position:absolute;
    width:100%;
    height: 95%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1.5s ease;
}

.slider-gerentes img.activa{
    opacity:1;
}   
      
    /* FOOTER MODIFICADO */
.footer{
    width:100%;
    background:#1e1e1e; /* El color oscuro de fondo */
    display:flex;
    justify-content:space-between; /* Distribuye las 3 columnas horizontalmente */
    align-items:flex-start;       /* Alinea los textos arriba */
    padding:60px 80px 40px 80px;  /* Espaciado generoso */
    color:#b3b3b3;                /* Color gris suave para los textos */
    margin-top:auto;
    gap: 40px;
}

/* Títulos H3 globales del Footer */
.footer h3, .footer-info h3, .footer-enlaces h3, .footer-redes h3 {
    color:#ffffff;                /* Blanco limpio para los títulos */
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Párrafos globales dentro del Footer */
.footer p, .footer-info p, .footer-enlaces p, .footer-redes p {
    font-size:15px;
    line-height:1.8;
    color: #b3b3b3;
    margin-bottom: 8px;
}

/* Columna 1: Horario */
.footer-info{
    display:flex;
    flex-direction: column;       
    align-items: flex-start;      
    flex: 1;
}

.footer-info img{
    display: none;                /* Remueve la imagen vieja de esta sección */
}

/* Columna 2: Teléfono */
.footer-enlaces{
    display:flex;
    flex-direction: column;       
    align-items: flex-start;      
    flex: 1;
}

/* Columna 3: Dirección */
.footer-redes{
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* Barra inferior de Redes sociales */
.iconos img{
    width:25px;
    height:25px;
    filter:brightness(0) invert(1); /* Convierte los iconos oscuros en blancos */
    transition:.3s;
}

.iconos img:hover{
    transform:scale(1.2);
}


/* RESPONSIVE CORREGIDO */
@media(max-width:950px){

.header{
    padding:15px 20px;
}

.header label{
    display:block;
}

.navigation{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;
    display:none;
}

.navigation > ul > li{
    width:100%;
    float:none;
}

.navigation ul li ul{
    position:relative;
    width:100%;
}

#toggle:checked ~ .navigation{
    display:block;
}

.slider{
    height:250px;
}

.servicios{
    flex-direction:column;
    width:90%;
}

.tarjeta{
    width:100%;
}

.tarjeta img{
    height:260px;
}

.titulo{
    font-size:22px;
}

/* El footer se vuelve una lista vertical en celulares */
.footer{
    flex-direction:column;
    gap:35px;
    text-align: left;
    padding:40px 30px;
}

.footer-info, .footer-enlaces, .footer-redes{
    flex-direction:column;
    align-items: flex-start;
}

/* Ajuste para la barra inline del HTML en móvil */
div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    gap: 20px;
    text-align: center;
    padding: 20px 30px !important;
}

}

.img {
    width:13%;
    height: 13%;
    display:block;
    border-radius:8px;
}

.dividir1 {
    margin-bottom: 17px;
}





.news-container{
    max-width:1500px;
    margin:auto;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

/* ===========================
   SLIDER
=========================== */

.galeriaSlider{
    width:100%;
    margin-bottom:30px;
}

.galeriaSlider .swiper-slide{
    height:220px;
    overflow:hidden;
}

.galeriaSlider .swiper-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.3s;
}

.galeriaSlider .swiper-slide img:hover{
    transform:scale(1.05);
}

/* Flechas */

.swiper-button-next,
.swiper-button-prev{
    width:40px;
    height:40px;
    background:rgba(0,0,0,.35);
    border-radius:50%;
    color:#fff;
}

.swiper-button-next::after,
.swiper-button-prev::after{
    font-size:18px;
    font-weight:bold;
}

/* Paginación */

.swiper-pagination{
    position:relative;
    margin-top:15px;
}

.swiper-pagination-bullet{
    width:10px;
    height:10px;
    background:#cfcfcf;
    opacity:1;
}

.swiper-pagination-bullet-active{
    background:#057803;
}

/* ===========================
   CONTENEDOR
=========================== */

.news-container{
    max-width:1500px;
    margin:auto;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

/* ===========================
   SLIDER
=========================== */

.galeriaSlider{
    width:100%;
    margin-bottom:30px;
}

.galeriaSlider .swiper-slide{
    height:180px;
    overflow:hidden;
}

.galeriaSlider .swiper-slide a{
    display:block;
    width:100%;
    height:100%;
}

.galeriaSlider .swiper-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    cursor:pointer;
    transition:transform .4s ease;
}

.galeriaSlider .swiper-slide:hover img{
    transform:scale(1.05);
}

/* ===========================
   FLECHAS
=========================== */

.swiper-button-next,
.swiper-button-prev{
    width:42px;
    height:42px;
    background:rgba(0,0,0,.45);
    border-radius:50%;
    color:#fff;
}

.swiper-button-next::after,
.swiper-button-prev::after{
    font-size:18px;
    font-weight:bold;
}

/* ===========================
   PAGINACIÓN
=========================== */

.swiper-pagination{
    position:relative;
    margin-top:15px;
}

.swiper-pagination-bullet{
    width:10px;
    height:10px;
    background:#d0d0d0;
    opacity:1;
}

.swiper-pagination-bullet-active{
    background:#057803;
}

/* ===========================
   CONTENIDO
=========================== */

.news-content{
    display:flex;
    padding:35px;
}

.date-box{
    width:80px;
    min-width:80px;
    text-align:center;
    margin-right:25px;
}

.day{
    display:block;
    background:#fff;
    border:1px solid #ddd;
    font-size:34px;
    color:#077a0e;
    padding:12px 0;
    font-weight:bold;
}

.month{
    display:block;
    background:#057803;
    color:#fff;
    padding:8px 0;
    font-size:15px;
    text-transform:uppercase;
}

.article{
    flex:1;
}

.article h1{
    color:#139105;
    font-size:34px;
    line-height:1.3;
    margin-bottom:15px;
}

.meta{
    color:#111;
    margin-bottom:25px;
    font-size:14px;
}

.article p{
    color:#000;
    font-size:20px;
    line-height:1.9;
    margin-bottom:22px;
    text-align:justify;
}

.article strong{
    color:#106e00;
}

/* ===========================
   LIGHTBOX
=========================== */

.lb-data .lb-close{
    filter:brightness(100);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next{
    opacity:1;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:992px){

    .galeriaSlider .swiper-slide{
        height:170px;
    }

}

@media (max-width:768px){

    .news-content{
        flex-direction:column;
    }

    .date-box{
        margin-bottom:20px;
    }

    .article h1{
        font-size:28px;
    }

    .article p{
        font-size:18px;
    }

    .galeriaSlider .swiper-slide{
        height:200px;
    }

}

@media (max-width:576px){

    .galeriaSlider .swiper-slide{
        height:170px;
    }

    .article h1{
        font-size:24px;
    }

    .article p{
        font-size:17px;
    }

}

.dividir {
    margin-bottom: 20px;
}


