@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --red: #CC3705;
}

body {
    font-family: 'Roboto', sans-serif;
    max-width: 1200px;
    box-sizing: border-box;
    margin: auto;

}

main {
    margin: 3%;
}

/*nav*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3%;
}

ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

li {
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

li a {
    color: black;
}

li a:hover {
    color: var(--red);
    text-decoration: underline;
}

.hide {
    display: none;
}
.title-link {
    color: black;
}
/*fin nav*/

/*sello*/
@keyframes spin  {
    to {
        transform: rotate(360deg);
    }
}
.sello {
    animation: spin 4s infinite linear;
    width: 80vmin;
    height: 80vmin;
    object-fit: contain;
}

figure {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 100vh;
}

/*dropdown*/
.dropdown {
    display: none;
}

#icono_menu {
    width: 30px;
    height: 30px;
}
/*fin dropdown*/

/*letras*/
h1 {
    font-size: 2em;
    padding: 0 1rem;
    flex-shrink: 0;
    margin: 1rem 0 1rem 0;
    font-weight: bold;
}

h1:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in;
}

h2 {
    font-size: 1.2rem;
    margin: 1rem 0 1rem 0
}
/*fin letras*/

/*galeria*/
.container_p {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15%, 1fr));
    grid-gap: 2rem;
    grid-auto-flow: dense;
    align-items: center;

}

.item_p {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img {
    width: 100%;
}

.item_p:hover {
    cursor: pointer;

}

.item_p.bigPic {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.item_p.bigPic .img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.caption {
    font-size: 0.7rem;
}

.horizontal {
    grid-column: span 2;
}
/*fin pintura*/

/*video */
.video_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.wrap_video {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 1rem;
}
video {
    width: 100%;
    object-fit: scale-down;
}

.video_text {
    max-width: 600px;
    font-size: 0.8rem;
    line-height: 1.5;
}

/*grafica*/
.titulo_italic {
    font-style: italic;
}

/*cv*/
.titulo--bold {
    font-weight: bold;
}

.section_cv {
    display: inline-block;
    line-height: 2rem;
    max-width: 800px;
    margin-left: 1%;
}
/*fin cv*/

/*footer*/
footer {
    display: flex;
    justify-content: center;
    margin: 3%;
}
footer p {
    margin-top: 2.5rem;
    font-size: small;
}

footer a {
    text-decoration: none;
    color: var(--red);
}

@media screen and (max-width: 1040px) {
    nav {
        display: none;
    }

    /*dropdown*/
    .mostrar {
        display: none;
    }
    button {
        padding: 0;
    }

    .dropdown button {
        border: none;
        background-color: transparent;
        cursor: pointer;
    }

    .dropdown button:hover {
        transform: scale(1.1);
        transition: transform 0.2s ease-in;
    }

    .dropdown a {
        text-decoration: none;
        color: black;
        display: block;
        padding: 10px 20px;
        text-align: center;
    }
    a.title-link {
       margin: 0;
        padding: 0;
    }
    h1 {
        margin: 0;
        padding: 0;
    }

    .dropdown .content {
        position: absolute;
        display: none;
    }

    .menu-content:hover a:hover {
        background-color: hsla(0, 0%, 0%, 0.2);
    }

    .dropdown {
        display: flex;
        flex-direction: column;
    }
    #paralelo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 3%;
    }
    
    .item_p.bigPic {
        max-width: 95vw;
        max-height: 95vh;
        padding: 0.25rem 0.5rem;
    }

    .item_p.bigPic .img {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    }