/* ---- ESTILOS BASE ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.container-flex { display: flex; justify-content: space-between; align-items: center; }

/* ---- PRELOADER SPIN BAR ---- */
.l-preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
.g-preloader.type_5 .g-preloader-h {
    height: 40px; width: 40px;
    border: 3px solid rgba(129, 215, 66, 0.2);
    border-top-color: #81d742;
    border-radius: 50%;
    animation: rotation 0.8s infinite linear;
}
@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- MODERN LIGHTBOX INTERFACES ---- */
.lightbox-modal {
    position: fixed;
    z-index: 100001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.93);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
}
.lightbox-active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-active .lightbox-content {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 25px; right: 35px;
    color: #fff;
    font-size: 44px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}
.lightbox-close:hover { color: #81d742; }
.lightbox-caption {
    margin-top: 20px;
    color: #ddd;
    font-size: 15px;
    text-align: center;
    padding: 0 20px;
    max-width: 700px;
}

/* ---- HEADERS & TOPNAV ---- */
.top-bar { background-color: #f5f5f5; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #e5e5e5; color: #666; }
.top-contacts span { margin-right: 20px; }
.top-contacts a:hover { color: #81d742; }
.main-header { background-color: rgba(255, 255, 255, 0.96); padding: 10px 0; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.logo img { height: 55px; width: auto; display: block; }

.nav-menu .menu-list { list-style: none; display: flex; }
.nav-menu .menu-list > li { position: relative; padding: 15px 0; }
.nav-menu .menu-list > li > a { padding: 10px 15px; font-size: 14px; font-weight: 700; color: #333; letter-spacing: 0.5px; }
.nav-menu .menu-list > li > a:hover { color: #81d742; }

.has-children:hover .submenu { display: block; opacity: 1; visibility: visible; }
.submenu { display: none; position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 240px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); list-style: none; border-top: 3px solid #81d742; padding: 5px 0; }
.submenu li a { display: block; padding: 10px 20px; font-size: 13px; color: #555; border-bottom: 1px solid #f9f9f9; }
.submenu li a:hover { background-color: #f5f5f5; color: #81d742; padding-left: 25px; }
#btn-menu, .icon-menu-mobile { display: none; }

/* ---- HERO DESIGNS ---- */
.hero-section { position: relative; background-image: url('https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img/https://greenpack.cl/wp-content/uploads/2020/08/Pareja_caja_delivery-OK-copy-1-scaled.jpg'); background-size: cover; background-position: center; padding: 120px 0; text-align: center; color: #ffffff; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.65); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: 48px; font-weight: 400; margin-bottom: 20px; }
.hero-content h3 { font-size: 28px; font-weight: 300; margin-bottom: 20px; color: #e5e5e5; }
.hero-subtext { font-size: 18px; font-weight: 300; margin-bottom: 8px; }
.hero-buttons { margin-top: 40px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn { padding: 12px 28px; font-size: 14px; font-weight: 700; border-radius: 4px; display: inline-block; color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-phone { background-color: #3498db; }
.btn-whatsapp { background-color: #25d366; }
.btn-email { background-color: #f1c40f; color: #333; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); opacity: 0.95; }

.section-title-bar { background-color: #f9f9f9; padding: 30px 0; text-align: center; border-bottom: 1px solid #eaeaea; }
.section-title-bar h2 { font-size: 26px; font-weight: 700; color: #222; }
.section-title-bar h2 span { color: #81d742; }

/* ---- HOVER SLIDE-ZOOM EFECTO MEJORADO ---- */
.image-hover-effect {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.image-hover-effect img {
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}
.image-hover-effect:hover img {
    transform: scale(1.07);
}

/* ---- LOGOS SLIDER LOOP ---- */
.logos-section { padding: 30px 0; overflow: hidden; position: relative; }
.logos-slider { margin: auto; overflow: hidden; position: relative; width: 100%; }
.logos-track { display: flex; width: calc(250px * 8); animation: scrollLogos 20s linear infinite; }
.slide { width: 250px; display: flex; justify-content: center; align-items: center; }
.slide img { max-width: 130px; height: auto; filter: grayscale(100%); opacity: 0.5; transition: all 0.3s; }
.slide img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 4)); }
}

/* ---- ANIMACIÓN SCROLL ---- */
.scroll-animate {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- CONTENEDOR SERVICIOS ---- */
.services-section { padding: 50px 0; }
.services-main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.services-boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.service-box { background: #ffffff; border: 1px solid #eaeaea; padding: 20px; text-align: center; border-radius: 4px; }
.box-img-wrapper { height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; overflow: hidden; }
.box-img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }
.service-box h4 { font-size: 15px; color: #333; margin-bottom: 8px; }
.service-box p { font-size: 13px; color: #777; }
.services-sidebar-img { background-image: url('https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img/https://greenpack.cl/wp-content/uploads/2020/08/Greenpack-022x.jpg'); background-size: cover; background-position: center; border-radius: 4px; min-height: 300px; }

/* ---- GRIDS TOTALMENTE RESPONSIVOS Y FLUIDOS ---- */
.gallery-section { padding: 40px 0; }
.gallery-grid { 
    display: grid; 
    gap: 15px; 
}
.cols-5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gallery-item { border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); background-color: #fff; }
.gallery-item img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* ---- QUIENES SOMOS ---- */
.about-section { background-color: #fdfdfd; border-top: 1px solid #eee; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; }
.about-text-box { padding: 60px 40px; }
.about-text-box p { margin-bottom: 20px; font-size: 15px; color: #444; }
.about-img-box { background-image: url('https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img/https://greenpack.cl/wp-content/uploads/2020/08/Greenpack-039x.jpg'); background-size: cover; background-position: center; }

/* ---- FORMULARIO & PARALLAX ---- */
.contact-section { position: relative; padding: 15px 0 60px 0; color: #fff; background-attachment: fixed; background-size: cover; background-repeat: no-repeat; }
.contact-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.84); z-index: 1; }
.contact-container { position: relative; z-index: 2; }
.contact-container h2 { text-align: center; margin: 45px 0; }
.contact-container h2 span { color: #81d742; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form-wrapper h4 { margin-bottom: 20px; font-size: 18px; }
.custom-form .form-group { margin-bottom: 15px; }
.custom-form label { display: block; font-size: 13px; margin-bottom: 5px; color: #ccc; }
.custom-form input, .custom-form textarea { width: 100%; padding: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; border-radius: 4px; font-family: inherit; }
.custom-form input:focus, .custom-form textarea:focus { outline: none; border-color: #81d742; background: rgba(255,255,255,0.15); }
.btn-submit { background-color: #81d742; color: #fff; border: none; padding: 12px 35px; font-weight: 700; cursor: pointer; border-radius: 4px; transition: background 0.2s; }
.btn-submit:hover { background-color: #6eb934; }
.contact-info-list p { margin-bottom: 15px; font-size: 15px; }
.contact-info-list i { color: #81d742; margin-right: 10px; }
.map-container { margin-top: 20px; border: 3px solid rgba(255,255,255,0.1); }

/* ---- FOOTER INTERFACES ---- */
.main-footer { background-color: #111; color: #777; font-size: 13px; padding: 25px 0; text-align: center; border-top: 1px solid #222; }
.main-footer a:hover { color: #fff; }
.whatsapp-sticky { position: fixed; bottom: 20px; left: 20px; z-index: 9999; transition: transform 0.2s; }
.whatsapp-sticky:hover { transform: scale(1.1); }
.whatsapp-sticky img { width: 52px; height: 52px; }

.w-toplink {
    position: fixed;
    bottom: 20px; right: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.w-toplink.active { opacity: 1; visibility: visible; }
.w-toplink:hover { background: #81d742; }

/* ---- MEDIA QUERIES EXTRA FLUIDOS ---- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 38px; }
    .services-main-grid { grid-template-columns: 1fr; }
    .services-sidebar-img { display: none; }
}

@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-img-box { min-height: 300px; }
    .contact-section { background-attachment: scroll; background-position: center; }
}

@media (max-width: 768px) {
    .icon-menu-mobile { display: block; font-size: 24px; color: #333; cursor: pointer; padding: 10px; }
    .nav-menu { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .nav-menu .menu-list { flex-direction: column; width: 100%; }
    .nav-menu .menu-list > li { padding: 0; width: 100%; }
    .nav-menu .menu-list > li > a { display: block; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; width: 100%; }
    #btn-menu:checked ~ .nav-menu { display: block; }
    .submenu { position: static; box-shadow: none; background: #fbfbfb; padding-left: 20px; width: 100%; }
    
    .hero-content h1 { font-size: 30px; }
    .hero-content h3 { font-size: 20px; }
    .services-boxes { grid-template-columns: 1fr; }
    .about-text-box { padding: 30px 15px; }
    .lightbox-close { top: 15px; right: 20px; font-size: 34px; }
    .lightbox-content { max-width: 95%; }
}