* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Bugrino';
    src: url('assets/fonts/Bugrino-Regular.woff2') format('woff2'),
         url('assets/fonts/Bugrino-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bugrino';
    src: url('assets/fonts/Bugrino-Light.woff2') format('woff2'),
         url('assets/fonts/Bugrino-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

:root {
    /* Colores */
    --blanco: #ffffff;
    --verde-1: #0a8904;
    --verde-2: #68b32d;
    --verde-3: #9CD0B0;
    --gris-1: #e3e8e2;
    --negro: #000000;
    --offwhite: rgba(227, 232, 226, 0.2);

    /* Escala tipográfica */
    --base: 16px;
    --h1: calc(var(--base) * 3);
    --h2: calc(var(--base) * 2.5);
    --h3: calc(var(--base) * 2);
    --h4: calc(var(--base) * 1.75);
    --h5: calc(var(--base) * 1.4);
    --h6: calc(var(--base) * 1.2);
    --micro: calc(var(--base) * 0.8);

    /* Familias */
    --font-sans: 'Aktiv Grotesk', system-ui, sans-serif;
    --font-display: 'Bugrino', monospace;

    /* Interlineados */
    --line-height-default: 1.3em;
    --line-height-spaced: 1.5em;
    --line-height-tight: 0.8em;
    --tracking-spaced: 0.05em;

    /* Botones */
    --btn-padding: 10px;
    --btn-radius: 8px;
    --btn-border: solid 1px var(--negro);
    --btn-transition: all 0.3s ease;
    --header-height: 180px;
}

a {
    text-decoration: none;
    color: currentColor;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--verde-1);
}

body {
    font-family: var(--font-sans);
    font-size: var(--base);
    font-weight: 400;
    line-height: 1.3em;
    font-style: normal;
    color: var(--negro);
    background-color: var(--verde-1);
    text-wrap: pretty;
    font-variation-settings: 'opsz' 16;
}

h1, h2, h3, h4{
    font-family: var(--font-display);
    line-height: var(--line-height-tight);
    font-weight: 300;
}

h1 {
    font-size: var(--h1);
}

h2 {
    font-size: var(--h2);
}

h3 {
    font-size: var(--h3);
}

h4 {
    font-size: var(--h4);
    font-weight: 400;
}

h5 {
    font-family: var(--font-sans);
    font-size: var(--h5);
    font-weight: 300;
    line-height: var(--line-height-default);
}

h6 {
    font-family: var(--font-sans);
    font-size: var(--h6);
    font-weight: 600;
    line-height: var(--line-height-default);
}

.micro {
    font-family: var(--font-sans);
    font-size: var(--micro);
    font-weight: 800;
    letter-spacing: var(--tracking-spaced);
    line-height: var(--line-height-default);
    text-transform: uppercase;
}


.underline {
    width: auto;
    position: relative;
}

.underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: var(--negro);
    transition: width 300ms ease-in;
  }

.sticky {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    height: 100vh;
    width: auto;
  }

#logo-hero {
    width: 10rem;
    max-width: 100%;
}

nav {
    display: flex;
    gap: 1vw;
}

.nav-btn {
    font-family: var(--font-sans);
    font-size: var(--micro);
    font-weight: 300;
    color: var(--negro);
    background-color: var(--blanco);
    border: 1px solid var(--negro);
    border-radius: 20px;
    text-transform: uppercase;
    padding: var(--btn-padding);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--verde-1);
    color: var(--blanco);
}

.nav-toggle {
    display: none;
}


main {
    background-color: var(--gris-1);
  }


#hero {
    display: flex;
    padding-left: 2vw;
    padding-bottom: 10vw;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2vw;
    align-items: left;
    width: 100%;
    height: calc(100vh - var(--header-height));
    transform: translateY(var(--header-height));
    background-color: var(--verde-1);
}

#hero h5 {
    width: 60%;
}


#titulo-hero {
    font-size: 14vw;
    line-height: var(--line-height-tight);
    transform: translateX(-1.1vw);
}

#fake-header {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    width: 100%;
    background-color: var(--blanco);
    padding: 20px 5vw;
    height: var(--header-height);
    z-index: 100;
}

#archivo-artículos {
    width: 100%;
    height: auto;
    background-color: var(--gris-1);
    border-top: 1px solid var(--negro);
}

li.row {
    display: flex;
    flex-direction: row nowrap;
    justify-content: space-between;
    align-items: center;
    justify-items: left;
    gap: 2vw;
    padding: 3vw 0;
    border-bottom: 1px solid var(--negro);
}


.row {
    display: flex;
    width: 100%;
    flex-direction: row nowrap;
    justify-content: space-between;
    align-items: center;
    justify-items: left;
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.row:hover {
    background-color: var(--verde-2);
}

.article-btn {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    margin-left: auto;
    margin-right: 20px;
    text-wrap: nowrap;
}

li.row:hover .article-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.col-1 {
    width: calc(100% / 12 * 1);
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--h3);
}


.col-2 {
    width: calc(100% / 12 * 5);

}

.col-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2vw;
    padding: 0 2vw;
    width: calc(100% / 12 * 6);

}


button {
    font-family: var(--font-sans);
    font-size: var(--micro);
    font-weight: 400;
    color: var(--negro);
    background-color: var(--gris-1);
    border: 1px solid var(--negro);
    border-radius: 20px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}


.img-art {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    max-width: 100%;
}

footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    height: 360px;
    background-color: var(--negro);
    z-index: 200;
    width: 100%;
}

#footer-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5vw;
    gap: 5vw
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-self: flex-start;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--blanco);
    font-size: var(--micro);
    text-align: left;
    flex: 1 1 0;
}

.footer-links-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: left;

}

ul.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    padding: 0;
    margin: 0;
    row-gap: 5px
}

.titulo-footer {
    font-family: var(--font-sans);
    font-size: var(--micro);
    font-weight: 400;
    color: var(--blanco);
    text-transform: uppercase;
    margin-bottom: 1vw;
}

#logo-footer {
    max-width: clamp(10rem, 15vw, 15rem);
}

@media (max-width: 768px) {

    #hero {
        padding: 10vw 20px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--blanco);
    }

    #logo-hero {
        width: 8rem;
    }

    #fake-header {
        height: 100px;
    }

    #fake-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 12px 5vw;
        background-color: var(--blanco);
        border-top: 1px solid var(--negro);
        flex-direction: column;
        gap: 20px;
        padding-bottom: 40px;
    }

    #fake-header.nav-open nav {
        display: flex;
    }

    #fake-header.nav-open {
        overflow: visible;
    }

    .nav-btn {
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--negro);
        padding: 10px 0px;
        text-align: left;
        margin-top: 10px;
    }

    .nav-btn:hover {
        background-color: var(--blanco);
        color: var(--negro);
    }

    footer,
    footer * {
        font-size: var(--micro);
    }

    #footer-content {
        flex-direction: column;
        gap: 40px;
    }

    li.row {
        padding: 40px 20px 40px 0px;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 12px;
        row-gap: 32px;
    }

    .col-1 {
        order: 1;
        width: calc(100% / 12 * 2);
    }

    .col-2 {
        order: 2;
        width: calc(100% / 12 * 10 - 12px);
    }

    .col-3 {
        order: 3;
        width: 100%;
        padding: 0;
        margin-left: calc(100% / 12 * 2 + 12px);
    }

    .article-btn {
        order: 4;
        margin-left: calc(100% / 12 * 2 + 12px);
        opacity: 100;
    }

    #hero h5 {
        font-size: var(--h6);
    }
}

/* Single */

.single #fake-header{
    position: absolute;
}

.single-content {
    position: relative;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    width: 100%;
    height: auto;
    padding-top: var(--header-height);
}

.single-portada {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    padding: 0 5vw;
}

.single-portada img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.single-titulo {
    font-family: var(--font-display);
    font-size: var(--h1);
    font-weight: 300;
    line-height: var(--line-height-tight);
    text-transform: uppercase;
    padding: 50px;
    vertical-align: middle;
    transform: translateY(-60px);
    z-index: 300; 
}

.single-titulo span {
    font-size: calc(var(--base) * 8);
    font-weight: 300;
    vertical-align: middle;
}

.single-bajada {
    text-align: center;
    width: 100%;
    padding: 5vw 10vw;
    text-transform: uppercase;
    text-decoration: underline;
}

.single-bajada h4 {
    line-height: 1.3em;
    font-size: var(--h5);
}

.single-articulo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    width: 100%;
    height: auto;
    padding: 0 5vw 10vw 5vw;
}

.single-col-2 {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 2vw;
    width: 100%;
    height: auto;
}

.img-col {
    justify-self: flex-end;
}

.img-col img { 
    width: 60%;
    height: auto;
    object-fit: cover;
}

.single-col-1 {
    width: 50%;
    height: auto;
    font-weight: 300;
    line-height: var(--line-height-spaced);
}

.fondo-blanco img{
    background-color: var(--blanco);
    width: 100% !important;
    height: auto;
}

.single-col-2.fondo-blanco {
    background-color: var(--blanco);
    padding: 5vw;
    border-radius: 8px;
}

.parallax {
    justify-content: center;
    align-items: center;
    min-height: 400vh;
    height: auto;
    overflow: visible;
}

.parallax-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.parallax-text-col {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.parallax-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(calc(-50% + 30px));
    font-size: var(--h6);
    line-height: var(--line-height-spaced);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.parallax-text.is-active {
    opacity: 1;
    transform: translateY(-50%);
}

.parallax-image-col {
    position: relative;
}

.parallax-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--blanco);
}

.parallax-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.parallax-image.is-active {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .parallax {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .parallax-story {
        grid-template-columns: 1fr;
        gap: 24px;
        height: auto;
    }

    .parallax-text-col {
        min-height: 180px;
    }
}


