@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --bgh: #111;
    --texth: #fff;
    --muted: rgba(255,255,255,.75);
    --dark: #0b0b0b;
    --green: #2f6b4a;
    --green-2: #275a3e;

    --container: 1180px;
    --radius: 12px;
}

/* ===== Base ===== */
*{ box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

a{
    color: inherit;
    text-decoration: none;
}

/* ===== Container (GLOBAL, único) ===== */
.container{
    width: min(var(--container), 92%);
    margin: 0 auto;
    padding: 0 22px;
}

/* =========================================================
    TOPBAR
========================================================= */
.topbar{
    background: #000;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
}

.topbar__inner{
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 40px;
}

.topbar__left{
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.topbar__item a{
    color: rgba(255,255,255,.85);
    transition: color 0.2s ease;
}

.topbar__item a:hover{ color: #fff; }

.topbar__sep{
    color: rgba(255,255,255,.3);
    margin: 0 5px;
}

/* =========================================================
    NAVBAR
========================================================= */
.navbar{
    background: var(--bgh);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar__inner{
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Brand */
.brand{
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    flex-shrink: 0;
}

.brand__logo{
    height: 60%;
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform .3s ease;
}

.brand:hover .brand__logo{ transform: scale(1.05); }

/* Desktop nav */
.nav{
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0 auto;
}

.nav__link{
    font-weight: 600;
    font-size: 15px;
    color: var(--texth);
    position: relative;
    padding: 30px 0;
    transition: color .2s ease;
}

.nav__link:hover{ color: var(--green); }

.nav__link.is-active{
    color: rgb(102, 208, 152);
}

.nav__link.is-active::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgb(102, 208, 152);
    border-radius: 3px 3px 0 0;
}

/* Desktop search (VISIBLE solo en desktop/tablet) */
.search-container{
    position: relative;
    margin-left: 10px;
}

.search-form{
    display: flex;
    align-items: center;
    position: relative;
}

.search-input{
    width: 200px;
    height: 40px;
    padding: 0 40px 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    transition: all .3s ease;
    background-color: #f8f8f8;
}

.search-input:focus{
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(47,107,74,.2);
    width: 250px;
}

.search-button{
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .3s ease;
}

.search-button:hover{
    color: var(--green);
    background-color: rgba(0,0,0,.05);
}

.search-button svg{
    width: 18px;
    height: 18px;
}

/* Primary button (desktop) */
.btn--primary{
    background: var(--green);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.btn--primary:hover{
    background: var(--green-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* Burger (mobile) */
.burger{
    display: none; /* se activa en mobile */
    background: none;
    border: none;
    width: 34px;
    height: 34px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.burger span{
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px auto;
    transition: all .3s ease;
}

/* Mobile menu */
.mobile-menu{
    display: none;
    background: #fff;
    padding: 18px 22px 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    border-top: 1px solid #eee;
}

.mobile-menu.is-open{ display: block; }

.mobile-menu__link{
    display: block;
    padding: 12px 0;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.mobile-menu__link.mobile-menu__cta{
    background: var(--green);
    color: #fff !important;
    text-align: center;
    border-radius: 30px;
    margin-top: 14px;
    padding: 12px 20px;
    border: none;
}

/* Mobile menu search (solo dentro del burger) */
.mobile-menu .search-container{
    margin: 0 0 12px 0;
}

.mobile-menu .search-input{
    width: 100%;
}

/* =========================================================
    FOOTER
========================================================= */
.footer{
    background: #070707;
    color: rgba(255,255,255,.82);
    padding: 3% 0;
}

.footer__grid{
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr;
    gap: 3vw;
    padding: 2em;
}

.footer__brand{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer__logo{
    width: 60px;
    height: auto;
    object-fit: cover;
    border-radius: 100%
}

.footer__name{
    font-weight: 600;
    color: #fff;
    font-size: 20px;
    letter-spacing: .2px;
}

.footer__tagline{
    color: rgba(130,190,165,.85);
    font-size: 14px;
    margin-top: 2px;
}

.footer__title{
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.footer__text{
    margin: 0 0 14px 0;
    font-size: .75em;
    line-height: 1.7;
    color: rgba(255,255,255,.65);
    max-width: 40ch;
}

.footer__links{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1.7;
}

.footer__links a{ color: rgba(130,190,165,.85); }
.footer__links a:hover{ color: rgba(196,245,221,.95); }

.footer__badges{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
    font-size: 13px;
    color: rgba(255,255,255,.78);
}

.footer__social{
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.footer__social .social{
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    color: #fff;
    transition: all .3s ease;
    font-size: 18px;
}

.footer__social .social:hover{
    background: var(--green);
    transform: translateY(-3px);
}

.footer__form{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer__input{
    flex: 1;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.25);
    padding: 0 14px;
    color: #fff;
    outline: none;
}

.footer__input::placeholder{ color: rgba(255,255,255,.55); }

.footer__btn{
    height: 46px;
    padding: 0 16px;
    border-radius: 10px;
    border: 0;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.footer__btn:hover{ background: var(--green-2); }

.footer__small{
    margin: 12px 0 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,.45);
    max-width: 48ch;
}

.footer__bottom{
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 18px 0;
}

.footer__bottominner{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: rgba(130,190,165,.85);
        font-size: 14px;
}

/* =========================
    EcoSlides • Back to top
========================= */
.toTop{
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(47,107,74,.18);
    background: rgba(47,107,74,.92);
    color: #fff;

    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 999;

    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    backdrop-filter: blur(8px);

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(.98);
    transition: opacity .25s ease, transform .25s ease, background .2s ease, box-shadow .2s ease;
}

.toTop i{
    font-size: 18px;
    transform: translateY(-1px);
}

.toTop.is-visible{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.toTop:hover{
    background: rgba(47,107,74,1);
    box-shadow: 0 18px 36px rgba(0,0,0,.18);
}

.toTop:active{
    transform: translateY(1px) scale(.98);
}

.toTop:focus-visible{
    outline: 3px solid rgba(47,107,74,.35);
    outline-offset: 3px;
}

/* =========================================================
    RESPONSIVE (AL FINAL)
    Mobile-first: <=900 burger + hide desktop search
========================================================= */

/* Tablet tweaks */
@media (max-width: 1024px){
    .nav{ gap: 20px; }
}

/* Mobile nav */
@media (max-width: 900px){
    .navbar__inner > .search-container{ display:none; }
    
    /* show burger */
    .burger{ display: block; }

    /* hide desktop nav + desktop CTA */
    .nav, .btn--primary{ display: none; }

    /* IMPORTANT: hide desktop search outside */
    .navbar__inner > .search-container{ display: none; }

    /* reduce inner padding */
    .navbar__inner{ padding: 0 15px; }
}

/* Small phones */
@media (max-width: 480px){
    .topbar__inner{ justify-content: center; }

    .topbar__left{
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 5px;
    }

    .topbar__sep{ display: none; }

    .toTop{
        width: 44px;
        height: 44px;
        right: 14px;
        bottom: 14px;
    }
    
    .toTop i{ font-size: 17px; }
}

/* Footer responsive */
@media (max-width: 1100px){
    .footer__grid{ grid-template-columns: 1fr 1fr; }
    .footer__text{ max-width: 60ch; }
}

@media (max-width: 650px){
    .footer__grid{ grid-template-columns: 1fr; }
    .footer__bottominner{
        flex-direction: column;
        align-items: flex-start;
    }
}


