/* ========================================
   RESET BÁSICO
   ======================================== */

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


/* ========================================
   BODY
   ======================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
}


/* ========================================
   HEADER
   ======================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 1000;
}


/* ========================================
   NAV
   ======================================== */

a {
    text-decoration: none;
    color: black;
    margin-left: 20px;
}

a:hover {
    color: brown;
}


/* ========================================
   HERO / IMAGEN PRINCIPAL
   ======================================== */

.hero {
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
}

.hero2 {
    width: 100%;
    display: flex;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 40%;
}


/* ========================================
   ABOUT
   ======================================== */

.about h2 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: normal;
}

.about p,
.about li {
    font-size: 14px;
    line-height: 1.6;
}


/* ========================================
   GALLERY / WORKS
   ======================================== */

.gallery {
    height: 550px;
    width: 1330px;
    font-size: 20px;
    gap: 100px;
    padding: 40px;
    margin-left: 20px;
}

.gallery2 {
    width: 1330px;
    font-size: 20px;
    gap: 100px;
    padding: 40px;
    margin-left: 20px;
}

.color {
    background-color: brown;
}

.color2 {
    background-color: brown;
}

.gallery a:hover {
    color: white;
}

.subgallery {
    padding-left: 10px;
}


/* ========================================
   TEXTO DE LOS PROYECTOS
   ======================================== */

.texto {
    display: flex;
}

.subtexto {
    width: 100vh;
    padding: 40px;
    font-size: 10px;
    line-height: 1.6;
    text-align: justify;
    gap: 20px;
}


/* ========================================
   SLIDER
   ======================================== */

.slider {
    display: flex;
    position: relative;
    width: 100%;
    margin: auto;
    align-items: center;
    justify-content: center;
}

.slider img {
    max-height: 90vh;
    max-width: 100%;
    object-fit: contain;
    display: block;
}


/* ========================================
   FLECHAS DEL SLIDER
   ======================================== */

.prev,
.next {
    position: absolute;
    top: 300px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* ========================================
   FOTO DERECHA
   ======================================== */

.foto-derecha {
    float: right;
    width: 300px;
    margin: 0 0 20px 30px;
}


/* ========================================
   BIO
   ======================================== */

.bio p {
    line-height: 1.6;
    text-align: justify;
}


/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */

@media screen and (max-width: 768px) {

    /* ------------------------------------
       BODY
       ------------------------------------ */

    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    /* ------------------------------------
       HEADER
       ------------------------------------ */

    header {
        width: 100%;
        padding: 18px 18px;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .logo {
        font-size: 17px;
        white-space: nowrap;
    }

    nav {
        display: flex;
        align-items: center;
    }

    header nav a {
        font-size: 16px;
        margin-left: 18px;
    }


    /* ------------------------------------
       PORTADA
       ------------------------------------ */

    .hero {
        width: 100%;
        height: calc(100vh - 60px);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hero img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }


    /* ------------------------------------
       WORKS
       ------------------------------------ */

    .color {
        width: 100%;
    }

    .gallery,
    .gallery2 {
        width: 100%;
        height: auto;
        padding: 35px 25px;
        margin-left: 0;
        font-size: 27px;
        line-height: 1.5;
    }

    .gallery a,
    .gallery2 a {
        font-size: 22px;
    }

    .subgallery {
        padding-left: 15px;
    }


    /* ------------------------------------
       TEXTO DE LOS PROYECTOS
       ------------------------------------ */

    .texto {
        display: block;
        width: 100%;
    }

    .subtexto {
        width: 100%;
        padding: 30px 25px;
        font-size: 14px;
        line-height: 1.6;
        text-align: justify;
    }


    /* ------------------------------------
       SLIDER
       ------------------------------------ */

    .slider {
        width: 100%;
        min-height: 65vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .slider img {
        max-width: 100%;
        max-height: 70vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }


    /* ------------------------------------
       FLECHAS DEL SLIDER
       ------------------------------------ */

    .prev,
    .next {
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        padding: 8px 10px;
        background: rgba(0, 0, 0, 0.25);
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }


    /* ------------------------------------
       ABOUT
       ------------------------------------ */

    .about h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .about p,
    .about li {
        font-size: 15px;
        line-height: 1.6;
    }


    /* ------------------------------------
       FOTO DERECHA
       ------------------------------------ */

    .foto-derecha {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }


    /* ------------------------------------
       BIO
       ------------------------------------ */

    .bio p {
        font-size: 15px;
        line-height: 1.6;
        text-align: justify;
    }

}


/* ========================================
   MÓVILES PEQUEÑOS
   ======================================== */

@media screen and (max-width: 400px) {

    header {
        padding: 16px 14px;
    }

    .logo {
        font-size: 15px;
    }

    header nav a {
        font-size: 15px;
        margin-left: 12px;
    }

    .gallery,
    .gallery2 {
        padding: 30px 20px;
        font-size: 24px;
    }

    .gallery a,
    .gallery2 a {
        font-size: 20px;
    }

    .subtexto {
        padding: 25px 20px;
        font-size: 13px;
    }

    .about p,
    .about li {
        font-size: 14px;
    }

}
