
/* ==================================================
   VARIABLES GLOBALES
================================================== */

:root {
    --forest: #123b24;
    --green: #78b525;
    --ink: #202a20;
    --cream: #f6f8f2;
    --muted: #637064;
    --font: 'DM Sans',sans-serif;
    --heading: 'Manrope',sans-serif;
}


/* ==================================================
   ESTILOS GENERALES
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font);
    background: #fff;
}

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

button {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1220px,calc(100% - 72px));
    margin: auto;
}


/* ==================================================
   ACCESIBILIDAD
================================================== */

.skip {
    position: absolute;
    top: -80px;
    left: 12px;
    z-index: 999;
    background: white;
    padding: 12px;
}

.skip:focus {
    top: 12px;
}


/* ==================================================
   HEADER PRINCIPAL
================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    color: white;
    border-bottom: 1px solid #ffffff35;
    transition: background .25s, box-shadow .25s;
}

.site-header.scrolled {
    position: fixed;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 5px 30px #00000013;
}

.nav-wrap {
    width: min(1380px,calc(100% - 70px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 90px;
}


/* ==================================================
   LOGOTIPO
================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 30px;
    letter-spacing: -1.7px;
    font-weight: 800;
    font-family: var(--heading);
    line-height: 1;
    color: inherit;
}

.brand-icon {
    font-size: 47px;
    color: #96cb3c;
    line-height: .7;
}

.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    font-weight: 800;
    margin-top: 7px;
}


/* ==================================================
   MENÚ DE NAVEGACIÓN
================================================== */

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 13px;
    font-weight: 700;
}

.main-nav a:hover {
    color: #9bc943;
}

.nav-cta,
.btn {
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.nav-cta {
    background: var(--green);
    color: #fff;
    padding: 14px 21px;
}

.menu-toggle {
    display: none;
}


/* ==================================================
   BOTONES
================================================== */

.btn {
    padding: 17px 25px;
}

.btn-green {
    background: var(--green);
    color: #fff;
}

.btn-green:hover,
.nav-cta:hover {
    background: #61951b;
}

.btn-outline {
    border: 1px solid #ffffffa8;
    color: #fff;
}

.btn-outline:hover {
    background: #ffffff26;
}


/* ==================================================
   TÍTULOS Y SECCIONES
================================================== */

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #629c23;
}

.eyebrow.light {
    color: #d6e8bd;
}

.section {
    padding-top: 105px;
    padding-bottom: 105px;
}


/* ==================================================
   FOOTER
================================================== */

.footer {
    background: #082d1c;
    color: white;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 100px;
}

.footer p {
    max-width: 380px;
    color: #c0d2c6;
    font-size: 14px;
    line-height: 1.8;
}

.footer h3 {
    font-size: 15px;
}

.footer-grid > div:nth-child(2) a {
    display: block;
    font-size: 14px;
    margin: 13px 0;
    color: #c0d2c6;
}

.brand-footer {
    display: inline-flex;
}

.footer-bottom {
    border-top: 1px solid #ffffff30;
    margin-top: 60px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ab7a4;
}


/* ==================================================
   HERO INTERIOR CON FOTOGRAFÍA
================================================== */

.inner-hero-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.inner-hero-photo h1,
.inner-hero-photo p {
    color: #fff;
}


/* ==================================================
   RESPONSIVE / TABLET
================================================== */

@media (max-width: 980px) {

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 0;
        padding: 10px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 26px;
        height: 2px;
        background: currentColor;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #123b24;
        color: white;
        flex-direction: column;
        align-items: stretch;
        padding: 25px 35px;
        gap: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 15px;
        border-bottom: 1px solid #ffffff20;
    }
}


/* ==================================================
   RESPONSIVE / MÓVIL
================================================== */

@media (max-width: 650px) {

    .container {
        width: min(100% - 36px,1220px);
    }

    .nav-wrap {
        width: calc(100% - 36px);
        min-height: 76px;
    }

    .brand {
        font-size: 24px;
    }

    .brand-icon {
        font-size: 35px;
    }

    .brand small {
        font-size: 6px;
    }

    .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        gap: 10px;
        flex-wrap: wrap;
    }
}


/* ==================================================
   RESPONSIVE / HERO INTERIOR
================================================== */

@media (max-width: 767px) {

    .inner-hero-photo {
        min-height: 340px;
    }
}
/* LOGOTIPO ECOVERDE */
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 55px;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .brand-logo {
        height: 42px;
    }
}
/* Contención responsive global */
img,video,iframe { max-width:100%; }
@media(max-width:600px) {
  .container { width:calc(100% - 36px); }
  .nav-wrap { width:calc(100% - 32px); }
}
