/* =========================
   TOKENS
========================= */
:root {
    /* Gallery height (JS la setea desde ratio A) */
    --about-gallery-h: 520px;

    /* (ya lo usás en responsive mobile del header) */
    --header-h: 105px;
}



/* =========================
   HEADER / NAV
========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;

    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);

    transition:
        background-color 0.3s ease,
        backdrop-filter 0.3s ease,
        -webkit-backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
    background-color: rgba(164, 192, 175, 0.409);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid black;
}

.site-header__inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;

    padding-block: 1.8rem;
    padding-inline: 1.8rem;

    transition: padding-top 1.1s ease, padding-bottom 1.1s ease;

    min-height: 70px;
    position: relative;
}

.site-header.is-compact .site-header__inner {
    padding-block: 0.5rem;
}

.site-header__logo {
    height: 68px;
    position: relative;
    display: flex;
    align-items: center;
}

.site-header__logo-img-green,
.site-header__logo-img-black {
    height: 68px;
    width: auto;
    margin-left: -0.5rem;
    transition: height 1.1s ease, opacity 1.1s ease;
    position: absolute;
}

.site-header__logo-img-green {
    opacity: 1;
}

.site-header__logo-img-black {
    opacity: 0;
}

.site-header.is-compact .site-header__logo-img-green {
    height: 52px;
    opacity: 0;
}

.site-header.is-compact .site-header__logo-img-black {
    height: 52px;
    opacity: 1;
    display: block;
}

.site-header__toggle {
    display: none;
    position: relative;
    top: -0.5rem;
    transition: top 500ms ease;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    padding: 0;
    line-height: 0;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

.site-nav {
    display: block;
    min-width: 0;
    position: relative;
    top: -0.75rem;

    transition: top 1.1s ease;
    z-index: 70;
}

.site-header.is-compact .site-nav {
    top: 0;
}

.site-nav__close {
    display: none;
}

.site-nav__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

/* animación links nav */
@keyframes fadeDropIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-nav__link {
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
    padding: 0.4rem 0 0.4rem 1rem;

    opacity: 0;
    animation: fadeDropIn 1.5s ease-out forwards;
}

.site-nav__item:nth-child(1) .site-nav__link {
    animation-delay: 120ms;
}

.site-nav__item:nth-child(2) .site-nav__link {
    animation-delay: 300ms;
}

.site-nav__item:nth-child(3) .site-nav__link {
    animation-delay: 500ms;
}

.site-header.is-compact .site-nav__link {
    animation: none;
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-nav__link {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* backdrop mobile */
.nav-backdrop {
    position: fixed;
    inset: 0;

    opacity: 0;
    pointer-events: none;

    z-index: 40;
    background: transparent;
    border-radius: 0;
}

body.is-nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   ABOUT PAGE
========================= */
.about-page {
    padding: calc(110px + 3.6rem) 1.8rem 1.8rem 1.8rem;
}

.about-page__inner {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-top: 1.8rem;
}

.about-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.8rem;

    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgb(186, 186, 186);
}

.about-page__title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(2.6rem, 4.8vw, 5.2rem);
    line-height: 1.02;
}

.about-page__overview {
    margin-top: 1.8rem;
    padding-bottom: 1.8rem;

    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.about-page__kicker {
    margin: 0;
    font-family: "Inconsolata", monospace;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.75);

    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.about-page__kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(1px);
}

.about-page__text {
    margin: 0;
    max-width: 60ch;
    padding-top: 1rem;

    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    font-size: clamp(1.7rem, 2vw, 2.8rem);
    line-height: 1.1;
    text-align: right;
}

/* =========================
   GALLERY 2-UP + SNAP + RATIOS
========================= */
.about-page__gallery {
    margin-top: 2.2rem;
    max-width: 100vw;
}

.about-page__gallery-viewport {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

/* Cada columna */
.about-page__gallery figure {
    margin: 0;
}


.about-page__img-container {
    width: 100%;
    height: auto;
    /* clave */
    overflow: visible;
    /* no recorta */
}


.about-page__img {
    width: 100%;
    height: auto;
    /* clave */
    display: block;
    object-fit: contain;
    /* opcional: no hace falta si height:auto, pero no molesta */
}


@media (max-width: 768px) {
    .about-page__gallery-viewport {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .about-page__gallery-viewport {
        grid-template-columns: 1fr;
    }
}



/* Reduced motion: igual funciona, solo sin smooth si querés */
@media (prefers-reduced-motion: reduce) {
    .about-page__gallery-viewport {
        scroll-behavior: auto;
    }
}

/* =========================
   BRANDS (NEW SECTION)
========================= */
.brands {
    padding: 4.2rem 0 3.2rem 0;
    border-top: 1px solid rgb(186, 186, 186);
}

.brands__inner {
    width: 100%;
    max-width: var(--container-max);
}

.brands__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.brands__eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    font-family: "Inconsolata", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.85);
}

.brands__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(1px);
}

.brands__note {
    margin: 0;
    text-align: right;
    max-width: 44ch;

    font-family: "Inconsolata", monospace;
    font-size: 0.95rem;
    font-weight: 350;
    color: rgba(0, 0, 0, 0.85);
}

.brands__logos {
    margin-top: 2.2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.2rem;
    padding-block: 1.8rem;
}

.brands__logo {
    flex: 0 1 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.brands__logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.brands__bottom {
    margin-top: 3.2rem;

    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.brands__title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.1vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.brands__cta {
    justify-self: center;
    margin-top: auto;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    white-space: nowrap;
    min-height: 3rem;
    padding: 1rem 2rem;
}

/* =========================
   LOCATIONS (porque esta página lo usa)
========================= */
.locations {
    padding: 3.2rem 0 4rem 0;
}

.locations__inner {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;

    border-top: 1px solid rgb(186, 186, 186);
    padding-top: 3.6rem;
    padding-bottom: 1.8rem;
}

.locations__label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    font-family: "Inconsolata", monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.8);
}

.locations__label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(1px);
}

.locations__title {
    margin: 1.1rem 0 0 0;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    line-height: 1.4;
    max-width: 44ch;
}

/* Dropdown wrapper */
.locations__dropdown {
    max-width: 820px;
    margin-inline: auto;
    position: relative;
}

/* Trigger button */
.locations__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.9rem 1rem;
    border-radius: 8px;

    background: rgba(116, 167, 176, 0.08);
    border: 1px solid rgb(186, 186, 186);
    cursor: pointer;
}

.locations__trigger-text {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.85);
}

.locations__trigger-icon {
    font-size: 0.9rem;
    opacity: 0.75;
}

.locations__list {
    margin: 2.4rem 0 0;
    padding: 0;
    list-style: none;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem 3.2rem;

    justify-items: start;
}

.locations__list li {
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    line-height: 1.35;
    width: 100%;
    text-align: right;
}

/* =========================
   ABOUT – ENTRY ANIMATIONS
========================= */

/* Base: mismo comportamiento que .text-animate-in */
[data-animate] {
    opacity: 0;
    animation: fadeDropIn 0.9s ease-out forwards;
}

.text-animate-in {
    opacity: 0;
    animation: fadeDropIn 0.9s ease-out forwards;
}

.about-page__kicker.text-animate-in {
    animation-delay: 120ms;
}

.about-page__title.text-animate-in {
    animation-delay: 260ms;
}

.about-page__text.text-animate-in {
    animation-delay: 420ms;
}

.about-page__img.text-animate-in {
    animation-delay: 620ms;
}

@media (prefers-reduced-motion: reduce) {

    [data-animate],
    .text-animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* (definición única, sin duplicados) */
@keyframes fadeDropIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* About: ajustes puntuales que ya estaban */
@media (max-width: 768px) {
    .about-page__text {
        font-size: clamp(1.4rem, 1.5vw, 2rem);
    }

    .about-page__inner {
        max-width: 100vw;
        overflow: hidden;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .site-header__logo {
        height: 52px;
        width: 52px;
        display: block;
    }

    .site-header__logo-img-green,
    .site-header__logo-img-black {
        height: 52px;
    }

    .site-nav {
        top: -0.5rem;
        transition: top 1s ease;
    }

    .about-page {
        padding: calc(110px + 1.2rem) 1.2rem 3.2rem;
    }

    .about-page__header {
        gap: 1.2rem;
    }

    .brands__logos {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .brands__logo {
        flex: 0 1 160px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        line-height: 1.4;
    }

    h2 {
        font-size: large;
    }

    /* Header mobile nav */
    .site-header__logo {
        height: 52px;
        display: flex;
        align-items: center;
    }

    .site-header__logo-img-green,
    .site-header__logo-img-black {
        height: 52px;
    }

    .site-header__toggle {
        display: block;
        background-color: transparent;
        padding-inline: 0;
    }

    .site-header.is-scrolled .site-header__toggle {
        top: 0;
    }

    body.is-nav-open .site-header__toggle {
        top: 0;
    }

    .site-nav {
        position: fixed;
        z-index: 200;
        padding: 1rem 1rem;

        left: 0;
        right: 0;
        top: 100%;

        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 220ms ease, visibility 0s linear 220ms;

        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    body.is-nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 220ms ease;

        touch-action: pan-y;

        background-color: #8eadb374;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-bottom: 1px solid black;
        border-top: 1px solid black;
    }

    body.is-nav-open .site-header {
        background-color: rgba(164, 192, 175, 0.409);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 0, 0);
        border-top: 2px solid rgb(0, 0, 0);
    }

    .site-header.is-compact .site-nav {
        top: 100%;
    }

    body.is-nav-open {
        touch-action: none;
    }

    body.is-nav-open main,
    body.is-nav-open footer {
        filter: blur(10px);
        transition: filter 220ms ease;
    }

    .site-nav__close {
        display: inline-flex;
    }

    .site-nav__panel {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;

        transform: translateY(14px);
        opacity: 0;

        transition: transform 260ms ease, opacity 180ms ease;
    }

    body.is-nav-open .site-nav__panel {
        transform: translateY(0);
        opacity: 1;
    }

    .site-nav__close {
        position: absolute;
        top: 1rem;
        right: 1rem;

        background: transparent;
        border: 1px solid rgba(0, 0, 0, 0.25);
        border-radius: 999px;
        padding: 0.6rem 1rem;
        font: inherit;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

    .site-nav__link {
        padding: 0.6rem 0;
        font-size: 1.6rem;
        letter-spacing: 0.02em;
    }

    .site-header__inner {
        padding: 0.8rem 1rem;
    }

    /* About mobile */
    .about-page {
        padding: 93px 1rem 0;
    }

    .about-page__inner {
        padding-top: 0.8rem;
    }

    .about-page__header {
        flex-direction: column;
        gap: 1rem;
    }

    .about-page__overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Brands mobile */
    .brands {
        padding: 2.6rem 0 2.6rem 0;
    }

    .brands__inner {
        padding-inline: 0;
    }

    .brands__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .brands__note {
        text-align: left;
        font-size: 1.1rem;
    }

    .brands__logos {
        gap: 1.4rem;
    }

    .brands__logo {
        flex: 0 1 140px;
    }

    .brands__title {
        text-align: right;
        font-size: clamp(0.9rem, 3vw, 1.8rem);
    }

    .brands__bottom {
        margin-top: 1rem;
    }

    /* Locations mobile */
    .locations__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .locations__list li {
        font-size: clamp(0.5rem, 2.5vw, 2rem);
    }

    /* Locations mobile: panel inline => mejor “static” debajo */
    .locations {
        padding: 2.6rem 0 3rem 0;
    }

    .locations__panel {
        position: static;
        margin-top: 0.8rem;
    }
}