:root {

    /* COLORES */
    --color-primary: #3c5b49;
    --color-secondary: #a4c0af;
    --color-third: #74a7b0;

    --glass-bg: rgba(164, 192, 175, 0.636);
    --glass-blur: 12px;
    --glass-border: rgba(0, 0, 0, 0.35);

    --container-max: 1560px;
    /* probá 1280–1560 según look */
    --container-pad: 1.8rem;

}



/* =========================
   FOOTER (2 rows)
   ========================= */

.site-footer {
    font-family: "Inconsolata", monospace;
    padding-top: 3rem;
}

.site-footer__inner {
    max-width: 100vw;
    padding: 0;
    margin: 0 auto;
}

/* ROWS */
.site-footer__row {
    width: 100%;
    padding-inline: 1.8rem;
}

.site-footer__row--top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 5rem);
    padding-bottom: 1.8rem;
    padding-top: 3.6rem;
    /* background-color: var(--color-secondary); */
}

.site-footer__row--bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-content: space-between;
    column-gap: 1.5rem;
    padding-block: 0.6rem;
    /* background-color: #74a7b0cf; */
}

/* COLUMNS */
.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 0;
    flex: 0 0 auto;
}

/* All items in cols 2/3/4: no wrap */
.site-footer__col--links .site-footer__item,
.site-footer__col--contact .site-footer__item,
.site-footer__col--licenses .site-footer__item {
    white-space: nowrap;
}

/* ITEM (links + text) */
.site-footer__item {
    margin: 0;
    font: inherit;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: inherit;
    opacity: 0.9;
}

.site-footer__item:hover,
.site-footer__item:focus-visible {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* LOGO */
.site-footer__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-footer__logo-img {
    display: block;
    width: 150px;
    height: auto;

}

/* BOTTOM ROW */
.site-footer__meta,
.site-footer__credit {
    margin: 0;
    letter-spacing: 0.04em;
    opacity: 0.9;
    font-size: smaller;
    font-weight: 200;

    white-space: normal;
    text-align: right;
    max-width: 20ch;
    line-height: 1.1;

}

.site-footer__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.site-footer__badge-img {
    display: block;
    height: 44px;
    /* ajustalo si querés */
    width: auto;
}

.site-footer__meta {
    justify-self: start;
    /* izquierda dentro de su tercio */
}

.site-footer__badge {
    justify-self: center;
    /* centro perfecto */
}

.site-footer__credit {
    justify-self: end;
    text-align: right;
    /* derecha dentro de su tercio */
}

.site-footer__row--first {
    padding-bottom: 1.8rem;
}



/* =========================
   FOOTER - MOBILE LAYOUT (new)
========================= */

.site-footer__mobile {
    display: none;
    /* default: hidden (desktop) */
}

.site-footer__mobile-info {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 1.2rem;
    padding-inline: 1.8rem;
    padding-top: 3.6rem;
}

.site-footer__mobile-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding-inline: 1rem;
    padding-top: 3rem;
    padding-bottom: 2.4rem;
    max-width: 100vw;
}

.site-footer__mobile-links {
    display: grid;
    justify-items: end;
    gap: 2.2rem;
}

.site-footer__logo-img--mobile {
    width: min(200px, 72vw);
    height: auto;
}

/* Tablet: si querés, lo dejamos igual por ahora (desktop) */
/* @media (max-width: 980px) { ... }  <-- podés eliminarlo por ahora */

/* Mobile -> activar layout nuevo */
@media (max-width: 768px) {


    /* Ocultamos el layout desktop de arriba */
    .site-footer__row--top {
        display: none;
    }

    /* Mostramos el layout mobile nuevo */
    .site-footer__mobile {
        display: block;
    }

    /* Bottom row: mantener 3 columnas pero con mejor respiración */
    .site-footer__row--bottom {
        padding-inline: 1rem;
        padding-block: 1.2rem;
        column-gap: 1rem;
    }

    .site-footer__badge-img {
        height: 40px;
        /* levemente más chico en mobile */
    }

    .site-footer__mobile-info {
        padding-top: 0;
    }
}