main{margin-top: 16px;}
/*PERFIL*/
h2{margin-bottom: 8px;}
#bio{
    display:flex;
    justify-content: center;
    align-items:flex-end; 
    max-width: 1200px;
    margin: 0 auto;
}
#bioTexto{
    display: block;
    width: 40%;
    font-family: "open sans";
    line-height: 24px;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
}
@media screen and (max-width:1020px){
    #bio{flex-wrap: wrap;}
    #bioTexto{width: 90%;}
}
#bioFoto{margin: 8px 0 0 32px;}
#CV{
    display:flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    margin: 32px auto;
    padding: 0 8px 24px 8px;
    background-color: var(--colorPrincipal);
}
@media screen and (max-width:1500px){
    #CV{justify-content: flex-start;}
}
#CV li{
    list-style:none;
    text-align: left;
    font-family: "open sans";
    font-size: 14px;
    font-weight: 500;
    padding: 2px 16px;
    text-indent: 16px;
}
#CV .encabezado{
    text-align: left;
    font-weight: 900;
    margin: 24px 0 4px 0;
    text-indent: 0;
}
#CV .subEncabezado{
    font-weight: 700;
    text-indent: 16px;
}
/*GALERIAS*/
#maquetaTrabajos{
    display: grid;
    grid-template-columns: 1fr 332px;
    grid-template-rows: 320px auto;
    gap: 16px;
    margin: 0 32px;
    overflow: hidden;
}
#destacada{
    grid-row: 1/2;
}
#carteles{
    grid-column: 2/3;
    grid-row: 1/3;
    background: var(--colorPrincipal);
}
#miniaturas{
    grid-column: 1/2;
    grid-row: 2/3;
}
#galMiniaturas{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    margin: 0 16px;
    overflow: hidden;
    align-items: center;
}
#minVideos{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 32px;
    overflow: hidden;
    align-items: center;
    margin: 0 16px;
}
#minVideos div{
    background-color: var(--colorSecundarioIntenso);
    padding: 16px 4px;
}
#minVideos img{
    max-width: 300px;
}
#galMiniaturas img,
#maquetaTrabajos img{
    margin: 8px;
}
@media screen and (max-width:620px){
    #maquetaTrabajos{
        grid-template-columns: 1fr 182px;
        margin: 0 8px;
        gap: 8px;
    }
    #galMiniaturas{
        grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
        gap: 8px;
        padding: 8px 0;
    }
    #maquetaTrabajos img,
    #galMiniaturas img{
        max-width: 150px;
    }
}

#galMiniaturas img:hover,
#maquetaTrabajos img:hover{
    transform: scale(1.3);
    box-shadow: 8px 8px 8px rgba(0, 0, 0, .8);
}
#img0:after {
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    z-index:-1;
}
.lightBox{
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    width: 100%;
    height: 100vh;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .3s ease-in-out;
    transform: scale(0);
}
.lightBox img{
    max-height: 80vh;
}
.lightBox:target{
    transform: scale(1);
}
.close{
    display: block;
    position: relative;
    top:-40vh;
    border: solid 1px var(--colorPrincipal);
    color: white;
    text-decoration: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-family: "open sans","sans serif";
    font-weight: 800;
}
.flechas{
    display: block;
    border: solid 1px var(--colorPrincipal);
    color: white;
    text-decoration: none;
    width: 40px;
    height: 40px;
    line-height: 20px;
}
.flechas span{
    line-height: 40px;
}
#fotoEnlaces{
    background-color: var(--colorPrincipal);
    height: 32px;
    position: relative;
    top: -16px;
    display:flex;
    justify-content: center;
}
#fotoEnlaces a,p{
    font-family: "roboto slab";
    font-size: 14px;;
    letter-spacing: 2px;
    color:black;
    cursor: pointer;
    position: relative;
    top: 6px;
}
#fotoEnlaces a:hover{
    color:white;
}

