/* =========================================================
   NAVBAR
========================================================= */

:root {
    --navbar-height: 72px;
    --navbar-color-primary: #233b32;
    --navbar-color-accent: #879873;
    --navbar-background: rgba(255, 255, 255, 0.92);
    --navbar-border: rgba(35, 59, 50, 0.09);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    box-sizing: border-box;

    width: 100%;
    height: var(--navbar-height);

    border-bottom: 1px solid var(--navbar-border);

    background: var(--navbar-background);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar__inner {
    box-sizing: border-box;

    width: min(1700px, calc(100% - 80px));
    height: 100%;
    margin-inline: auto;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}


/* =========================================================
   LOGO
========================================================= */

.navbar-brand {
    min-width: 0;
    width: 190px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    text-decoration: none;
}

.navbar-brand__logo {
    display: block;

    width: auto;
    height: 52px;
    max-width: 185px;

    object-fit: contain;
}


/* =========================================================
   MENÚ PRINCIPAL
========================================================= */

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.navbar-menu a {
    position: relative;

    color: var(--navbar-color-primary);

    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.navbar-menu a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;

    height: 1px;

    background: var(--navbar-color-accent);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.2s ease;
}

.navbar-menu a:hover {
    color: var(--navbar-color-accent);
}

.navbar-menu a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   BOTÓN CONTACTAR
========================================================= */

.navbar-cta {
    box-sizing: border-box;

    min-width: 116px;
    height: 39px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    justify-self: end;

    border: 1px solid var(--navbar-color-primary);

    background: transparent;
    color: var(--navbar-color-primary);

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.navbar-cta:hover {
    transform: translateY(-1px);

    border-color: var(--navbar-color-primary);

    background: var(--navbar-color-primary);
    color: #ffffff;
}


/* =========================================================
   RESPONSIVE - NOTEBOOK
   HASTA 1366 PX
========================================================= */

@media (max-width: 1366px) {

    .navbar__inner {
        width: min(1500px, calc(100% - 144px));
    }
}


/* =========================================================
   RESPONSIVE - TABLET / NOTEBOOK PEQUEÑO
   HASTA 1050 PX
========================================================= */

@media (max-width: 1050px) {

    :root {
        --navbar-height: 70px;
    }

    .navbar__inner {
        width: calc(100% - 80px);

        grid-template-columns: 1fr auto 1fr;
        gap: 22px;
    }

    .navbar-brand {
        width: 165px;
    }

    .navbar-brand__logo {
        height: 46px;
        max-width: 160px;
    }

    .navbar-menu {
        gap: 25px;
    }

    .navbar-menu a {
        font-size: 12px;
    }

    .navbar-cta {
        min-width: 105px;
        height: 37px;
        padding: 0 16px;

        font-size: 11px;
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL / TABLET VERTICAL
   HASTA 780 PX
========================================================= */

@media (max-width: 780px) {

    :root {
        --navbar-height: 66px;
    }

    .navbar__inner {
        width: calc(100% - 40px);

        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .navbar-brand {
        width: auto;
        max-width: 170px;
    }

    .navbar-brand__logo {
        height: 43px;
        max-width: 165px;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-cta {
        min-width: auto;
        height: 37px;
        padding: 0 15px;

        font-size: 11px;
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL PEQUEÑO
   HASTA 430 PX
========================================================= */

@media (max-width: 430px) {

    :root {
        --navbar-height: 62px;
    }

    .navbar__inner {
        width: calc(100% - 28px);
        gap: 12px;
    }

    .navbar-brand {
        max-width: 145px;
    }

    .navbar-brand__logo {
        height: 38px;
        max-width: 140px;
    }

    .navbar-cta {
        height: 34px;
        padding: 0 13px;

        font-size: 10px;
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL MUY PEQUEÑO
   HASTA 360 PX
========================================================= */

@media (max-width: 360px) {

    .navbar__inner {
        width: calc(100% - 24px);
        gap: 9px;
    }

    .navbar-brand {
        max-width: 125px;
    }

    .navbar-brand__logo {
        height: 34px;
        max-width: 122px;
    }

    .navbar-cta {
        height: 32px;
        padding: 0 10px;

        font-size: 10px;
    }
}