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

html {
    scroll-behavior: smooth;
}

body {
    background: #eff0c9;
    color: #184538;
    font-family: "DM Sans", sans-serif;
}

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


/* TIPOGRAFIAS */

@font-face {
    font-family: "OffBit Dot";
    src: url("tipografias/OffBit-Dot.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "OffBit Dot Bold";
    src: url("tipografias/OffBit-DotBold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}


/* HEADER */

.header {
    width: 100%;
    padding: 1px 5vw;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: #4e705c;
}

.home {
    margin-top: 5px;
    margin-left: 0px;
}

nav {
    display: flex;
    gap: 70px;
    color: #eff0c9;
}

nav a {
    font-size: 14px;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.55;
}


/* TEXTOS */

.small-text {
    font-size: 20px;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 15px;
    margin-left: 40px;
}

h1 {
    font-size: 10em;
    line-height: 0.85;
    letter-spacing: -6px;

    font-family: "OffBit Dot", sans-serif;
    color: #4e705c;
    margin-left: 220px;
}

h1 em {
    font-family: "OffBit Dot Bold", sans-serif;
    font-style: normal;
    color: #184538;
    margin-left: -180px;
}


h2 {
    font-size: 7em;
    line-height: 0.85;
    letter-spacing: 0.1px;

    font-family: "OffBit Dot", sans-serif;
    color: #4e705c;
    margin-left: 0px;
    margin-bottom: 35px;
}

h2 em {
    font-family: "OffBit Dot Bold", sans-serif;
    font-style: normal;
    color: #184538;
    margin-left: 0px;
    letter-spacing: -0.1px;
}

h3 {
    font-size: 7em;
    line-height: 0.85;
    letter-spacing: -6px;

    font-family: "OffBit Dot Bold", sans-serif;
    color: #184538;
    margin-left: 0px;
}

h4 {
    font-size: 4em;

    font-family: "Offbit Dot", sans-serif;
    font-weight: lighter;
    color: #4e705c;
    opacity: 70%;
    margin-left: 0px;
    margin-top: -30px;
    margin-bottom: 35px;
}


/* =========================
   LANDING PAGE
========================= */

.landing {
    min-height: calc(100vh - 140px);

    padding: 1vw;

    display: grid;

    grid-template-columns: 1fr 0.7fr;

    align-items: center;

    gap: 5vw;
}


/* INFORMACIÓN DE PORTADA */

.landing-info {
    position: relative;
    z-index: 3;
}


/* =========================
   CINTA DE PROYECTOS
========================= */

.project-strip {
    height: calc(100vh - 140px);

    overflow: hidden;

    position: relative;
}


/* CONTENIDO DE LA CINTA */

.project-track {
    display: flex;

    flex-direction: column;

    gap: 10px;

    animation: project-scroll 30s linear infinite;
}


/* IMAGENES */

.project-track img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    display: block;
}


/* ANIMACION */

@keyframes project-scroll {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(calc(-50% - 12.5px));
    }

}


/* =========================
   PÁGINAS INTERIORES
========================= */

.page {
    min-height: calc(100vh - 140px);

    padding: 8vw 5vw;
}

.page h1 {
    margin-bottom: 100px;
}


/* SOBRE MÍ */

.about-content {
    max-width: 1000px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10vw;
}

.about-content p {
    font-size: 19px;

    line-height: 1.6;

    margin-bottom: 25px;
}

.foto img {
    height: 50vh;

    width: auto;

    display: block;

    margin-top: -120px;

    border-radius: 50%;
}


/* =========================
   PROYECTOS
========================= */

.project-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 70px 25px;
}

.project {
    width: 100%;

    overflow: hidden;
}

.project img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    display: block;

    transition: transform 0.4s;
}

.project-cover {
    cursor: pointer;
}

.project:hover img {
    transform: scale(1.03);
}

.project-info {
    padding-top: 18px;
}

.project-info span {
    font-size: 10px;

    letter-spacing: 1px;
}

.project-info h2 {
    margin-top: 8px;

    font-size: 28px;

    letter-spacing: -1px;
}

.project-info p {
    margin-top: 5px;

    font-size: 22px;

    line-height: 24px;
}


/* =========================
   POP-UP
========================= */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(24, 69, 56, 0.92);

    display: none;

    justify-content: center;

    align-items: center;

    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-image {
    max-width: 75vw;

    max-height: 80vh;

    object-fit: contain;
}

.modal-close,
.modal-prev,
.modal-next {
    position: absolute;

    background: none;

    border: none;

    color: #eff0c9;

    cursor: pointer;

    font-family: "DM Sans", sans-serif;
}

.modal-close {
    top: 25px;

    right: 35px;

    font-size: 40px;
}

.modal-prev,
.modal-next {
    top: 50%;

    transform: translateY(-50%);

    font-size: 35px;
}

.modal-prev {
    left: 35px;
}

.modal-next {
    right: 35px;
}


/* =========================
   CONTACTO
========================= */

.contact-page {
    min-height: calc(100vh - 140px);

    padding: 8vw 5vw;
}

.contact-page h1 {
    margin-top: 50px;
}

.contact-links {
    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-top: 100px;
}

.contact-links a {
    width: fit-content;

    font-size: 20px;

    border-bottom: 2px solid #4e705c;

    padding-bottom: 1px;
}


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

footer {
    padding: 25px 5vw;

    background: #eff0c9;

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    margin-top: -40px;
}

footer img {
    margin-top: -15px;
}


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

@media (max-width: 700px) {

    .header {
        padding: 20px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 12px;
    }


    /* PORTADA */

    .landing {
        padding: 50px 20px;

        grid-template-columns: 1fr;

        min-height: calc(100vh - 100px);
    }

    .landing-info {
        z-index: 3;
    }


    /* CINTA EN MOVIL */

    .project-strip {
        height: 50vh;

        width: 70vw;

        margin: 0 auto;
    }

    .project-track img {
        width: 100%;
    }


    /* PAGINAS */

    .page,
    .contact-page {
        padding: 70px 20px;
    }

    h1 {
        letter-spacing: -3px;
    }

    .page h1 {
        margin-bottom: 60px;
    }


    /* PROYECTOS */

    .project-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 30px 15px;
    }


    /* FOOTER */

    footer {
        padding: 20px;

        flex-direction: column;

        gap: 10px;
    }

}