/*HOJA DE ESTILOS DE GLEZPI ESTUDIO*/
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Patrick+Hand&display=swap');


/*NAVEGADOR*/
.navbar {
    padding: 4px;
}

.mi-navbar {
    background-color: #e9221d;
}

.navbar-nav {
    gap: 30px;
}

.nav-link:hover {
    color: white;
}

.nav-item {
    font-family: kanit;
}

.dropdown-menu {
    border: none;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color: #ED2E3D;
}



/*FOOTER*/
footer {
    background-color: #e9221d;
    color: white;
    padding: 17px 0;
    margin-top: 46px;
}

footer p {
    font-size: 14px;
    margin: 0;
}



/*ICONO HOME*/
h1 {
    font-family: 'Bebas Neue';
    font-size: 100px;
    margin-bottom: 0;
    line-height: 0.9;
}

.home img {
    margin-top: 60px;
    margin-bottom: 75px;
}

.texto-home {
    width: 490px;
}

.home p {
    font-family: 'Patrick Hand';
    font-size: 48px;
    margin-top: 0;
    line-height: 1;
}

#texto-cambiable {
    background-color: #FFCA1A;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
}

#texto-cambiable::after {
    content: "|";
    margin-left: 3px;
    animation: parpadeo 0.8s infinite;
}

@keyframes parpadeo {
    50% {
        opacity: 0;
    }
}

.packaging {
    margin-top: 45px;
    margin-bottom: 50px;
}

.packaging img {
    padding-left: 85px;
}



/*GALERIA HOME*/
.gallery {
    column-count: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery img {
    width: 100%;
    margin-bottom: 20px;
    display: block;
    border-radius: 15px;

    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.304);
}

.gallery a {
    display: block;
    text-decoration: none;
}



/*CATEGORIA PACK*/
.gallery-c-p {
    max-width: 1111px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.gallery-pack {
    grid-column: span 2;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.gallery-pack-h {
    grid-column: span 3;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.proyecto {
    cursor: pointer;
}






/*CATEGORIA CARTELES*/
.gallery-pack-v {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.proyecto-v {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    grid-column: span 2;
}

.gallery-poster {
    max-width: 1111px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}



/*EFECTO DE CAPA ROJA Y TEXTO PACK*/
.proyecto {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    grid-column: span 2;
}

.proyecto-h {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    grid-column: span 3;
}

.gallery-pack {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    inset: 0;

    background-color: #d01310c9;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity .3s ease;
}

.overlay h3 {
    color: white;
    font-family: kanit;
    font-size: 1.5rem;
    margin: 0;

    transform: translateY(10px);
    transition: transform .3s ease;
}

.proyecto:hover .overlay,
.proyecto-h:hover .overlay {
    opacity: 1;
}

.proyecto:hover .overlay h3,
.proyecto-h:hover .overlay h3 {
    transform: translateY(0);
}


.proyecto:hover .overlay,
.proyecto-h:hover .overlay,
.proyecto-v:hover .overlay {
    opacity: 1;
}



/*CAPA ROJA Y TEXTO CARTELES*/
.proyecto:hover .overlay h3,
.proyecto-h:hover .overlay h3,
.proyecto-v:hover .overlay h3 {
    transform: translateY(0);
}



/*SOBRE MI*/
.sobre-mi {
    margin-top: 50px;
}

.sobre-mi img {
    border-radius: 10px;
    max-width: 100%;
}

.sobre-mi p {
    width: 75%;
    font-family: open sans;
    font-size: 15px;
    margin-left: 30px;
}

.btn-personalizado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 45px;
    background: #d50000;
    border: 4px solid #7a0000;
    color: white;
    font-weight: bold;
    text-decoration: none;

    margin-top: 12px;
    margin-left: 33px;
}

.programas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.programas img {
    margin-top: 6px;
}

.programas-texto {
    padding-bottom: 48px;
    border-bottom: solid rgba(0, 0, 0, 0.526) 3px;
}

.yo {
    width: 68%;
}

.yo p {
    font-family: open sans;
    font-size: 15px;
}

.experiencia {
    margin-top: 38px;
}

.foto-perfil img {
    margin-left: 40px;
}

.experiencia-item {
    margin-left: 39px;
}

.experiencia-item h3 {
    font-family: bebas neue;
}

.experiencia-item p {
    font-family: open sans;
    font-size: 14px;
    width: 88%;
}



/*CONTACTO*/
.contact h1 {
    margin-top: 70px;
}

.redes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    cursor: pointer;
    transition: transform 0.3s;
}

.redes img {
    margin-top: 73px;
}

.nyx-c {
    margin-top: 100px;
}

.contacto-c {
    margin-top: 0;
}

.redes a img:hover {
    transform: scale(1.1);
}





/*PROCESO PROYECTOS*/
.work {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: center;

    gap: 30px;

    max-width: 1200px;
    margin: auto;
}

.info {
    width: 330px;
    position: sticky;
    top: 120px;
}

.info p {
    line-height: 1.4;
}

.info h2 {
    font-family: Bebas Neue;
    font-size: 36px;
}

.galeria {
    margin-top: 60px;
}

.galeria img {
    width: 100%;
    display: block;
    margin-bottom: 9px;
    max-width: 800px;
}

#desarrollo {
    display: none;
}

#info-desarrollo {
    display: none;
}



/*BOTONES PROYECTOS*/
.tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.tabs button {
    background: none;
    border: 1px solid #c1121f;
    border-radius: 30px;

    padding: 8px 28px;

    font-size: 0.9rem;
    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.3s;
}

.tabs button:hover {
    background: #c1121f;
    color: white;
}

.tabs button.activo {
    background: #c1121f;
    color: white;
}

/*BOTONES PROYECTO SIGUIENTE*/
.navegacion-proyectos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 29px;
    margin: 65px 0;
    flex-wrap: wrap;
}

.navegacion-proyectos a {
    text-decoration: none;
    color: white;
    background-color: #c62828;
    /* tu rojo */
    padding: 9px 21px;
    border: 2px solid #c62828;
    border-radius: 30px;
    transition: 0.3s ease;
}

.navegacion-proyectos a:hover {
    background-color: #a51f1f;
    border-color: #a51f1f;
    transform: translateY(-3px);
}


/*Animación*/
.gallery a {
    opacity: 0;
    animation: aparecer 0.6s ease forwards;
}

.gallery a:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery a:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery a:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery a:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery a:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery a:nth-child(6) {
    animation-delay: 0.6s;
}

.gallery a:nth-child(7) {
    animation-delay: 0.7s;
}

.gallery a:nth-child(8) {
    animation-delay: 0.8s;
}

.gallery a:nth-child(9) {
    animation-delay: 0.9s;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.proyecto {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.proyecto.visible {
    opacity: 1;
    transform: translateY(0);
}

/*inicio*/
.gallery a {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery a.visible {
    opacity: 1;
    transform: translateY(0);
}


/*Packaging*/
.gallery-c-p .proyecto,
.gallery-c-p .proyecto-h {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.gallery-c-p .proyecto.visible,
.gallery-c-p .proyecto-h.visible {
    opacity: 1;
    transform: translateY(0);
}


/*sobre mi*/
.foto-perfil img {
    opacity: 0;
    transform: scale(0.95);
    animation: fotoEntrada 0.8s ease forwards;
}

@keyframes fotoEntrada {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sobre-mi p,
.sobre-mi .btn-personalizado {
    opacity: 0;
    transform: translateY(15px);
    animation: textoEntrada 0.8s ease forwards;
}

.sobre-mi p:nth-of-type(1) {
    animation-delay: 0.2s;
}

.sobre-mi p:nth-of-type(2) {
    animation-delay: 0.35s;
}

.sobre-mi p:nth-of-type(3) {
    animation-delay: 0.5s;
}

.btn-personalizado:nth-of-type(1) {
    animation-delay: 0.65s;
}

.btn-personalizado:nth-of-type(2) {
    animation-delay: 0.75s;
}

@keyframes textoEntrada {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.programas img {
    opacity: 0;
    transform: translateX(-25px) scale(0.85);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .8, .2, 1);
}

.programas img.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.experiencia-item {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s ease;
}

.experiencia-item.visible {
    opacity: 1;
    transform: translateY(0);
}



.yo p {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.yo p.visible {
    opacity: 1;
    transform: translateY(0);
}


/*CONTACTO*/
.redes a{
    opacity: 0;
    transform: scale(0.8);
    transition: 0.5s ease;
}

.redes a.visible{
    opacity: 1;
    transform: scale(1);
}


.contact h1{
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 2px;
    transition: 0.9s ease;
}

.contact h1.visible{
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0px;
}

.contact h1{
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

.contact h1.visible{
    opacity: 1;
    transform: translateY(0);
}

.nyx-c img{
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

.nyx-c img.visible{
    opacity: 1;
    transform: translateY(0);
    animation: nyxFloat 3s ease-in-out infinite;
}

@keyframes nyxFloat{
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(12px);
    }
}








/*MEDIAS-Q*/
@media (max-width: 1399px) {
    .sobre-mi p {
        width: 88%;
    }

    .sobre-mi img {
        margin-left: 0px;
    }
}




@media (max-width: 1199px) {
    .sobre-mi p {
        width: 100%;
    }

    .btn-personalizado {
        width: 150px;
        height: 41px;
        margin-left: 21px;
    }

    .sobre-mi img {
        margin-left: 0;
    }

    /*CONTACTO*/
    .redes {
        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: center;
        gap: 20px;
    }

    .contact h1 {
        margin-bottom: 45px;
    }

    .redes {
        gap: 15px;
    }

    .redes img {
        margin-top: 20px;
    }

    /*PROYECTOS INDIVIDUALMENTE*/
    .work {
        padding: 0 20px;
    }
}




@media (max-width: 992px) {
    .gallery {
        column-count: 2;
    }

    .home img {
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .home p {
        margin-bottom: 80px;
    }

    footer p {
        font-size: 12px;
    }

    .gallery-c-p {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .proyecto,
    .proyecto-h {
        grid-column: span 1;
    }

    .gallery-pack {
        aspect-ratio: auto;
        height: auto;
    }

    .gallery-pack-h {
        aspect-ratio: auto;
        height: auto;
    }

    .gallery-poster {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .proyecto,
    .proyecto-h,
    .proyecto-v {
        grid-column: span 1;
    }

    /*SOBRE MI*/
    .sobre-mi p {
        width: 100%;
    }

    .sobre-mi a {
        margin-right: 10px;
    }

    .btn-personalizado {
        margin-left: 22px;
        width: 155px;
    }

}




@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 20px;
        padding: 15px;
        margin-top: 15px;
    }

    .navbar-nav {
        gap: 5px;
    }

    .nav-link {
        text-align: center;
        padding: 12px;
        border-radius: 10px;
    }

    .nav-link:hover {
        background-color: #FFCA1A;
        color: black;
    }

    .packaging h1 {
        text-align: center;
        padding: 12px;
        margin-bottom: 30px;
    }

    .packaging img {
        margin-top: 30px;
        padding: 0;
    }

    /*SOBREMI*/
    .sobre-mi {
        text-align: center;
    }

    .foto-perfil,
    .sobre-mi .col-5 {
        width: 100%;
    }

    .sobre-mi img {
        margin-bottom: 25px;
        margin-left: 0;

    }

    .sobre-mi p {
        margin-bottom: 25px;
    }

    .programas {
        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: center;
        gap: 8px;
    }

    .sobre-mi p {
        width: 90%;
    }

    .yo {
        width: 80%;
    }

    .experiencia-item {
        width: 84%;
        margin-left: 29px;
        margin-bottom: 30px;
    }

    /*PROYECTOS INDIVIDUALMENTE*/
    .work {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .info {
        width: 100%;
        position: static;
        top: auto;
    }

    .galeria {
        margin-top: 0;
        width: 100%;
    }

    .tabs {
        margin-top: 50px;
    }

    .info #info-final {
        margin-top: 50px;
    }
}




@media (max-width: 767.98px) {
    .gallery {
        column-count: 1;
    }

    .gallery-c-p {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .proyecto,
    .proyecto-h {
        grid-column: span 1;
    }

    .gallery-poster {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .proyecto,
    .proyecto-h,
    .proyecto-v {
        grid-column: span 1;
    }

    /*CONTACTO*/
    .contact h1 {
        font-size: 80px;
    }

    .nyx-c img {
        width: 90%;
    }

    .redes img {
        width: 82%;
    }

    .redes {
        gap: 5px;
    }
}