:root {

    --clr-text: hsl(0, 0%, 0%);
    --clr-bg: hsl(0, 0%, 100%);
    --clr-text-details: hsl(0, 0%, 50%);
    --clr-bg-new: hsl(199, 47%, 62%);
    --clr-corporativo-yellow: hsl(55, 88%, 84%);
    --clr-corporativo-purple: hsl(328, 73%, 23%);

    --text-font: "Inter", sans-serif;
    --text-size-footer: clamp(0.875rem, 0.7386rem+0.6818vw, 1.25rem);
    --text-size-header: clamp(0.9rem, 0.8rem + 2vw, 1rem);
    --padding-inline: clamp(1rem, -0.1429rem + 5.7143vw, 5rem);
    --text-font-text: system-ui, -apple-system,
        BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --padding-left: 6vw;
}


.strong {
    font-family: var(--text-font);
    font-weight: bold;
    color: var(--clr-text);
}

.text-details {
    font-family: var(--text-font-text);
}

.padding-inline {
    width: var(--padding-inline);
    padding: var(--padding-inline);
}

.centered {
    justify-content: center;
    align-content: center;
    text-align: center;
    width: 100%;
}

.hidden {
    display: none;
}

.bg-color-green {
    background-color: #b8af6e;
}

.bg-color-yellow {
    background-color: #FDFAE5
}

.bg-color-yellow-emes {
    background-color: #F9F3B1
}

.bg-color-white {
    background-color: #fffffe
}

.padding-top {
    padding-top: 1rem;
}

.height-100-vh {
    max-height: 100vh;
}

.color-text-white {
    color: white;
}

.padding-bottom {
    padding-bottom: 1rem;
}

.grid {
    display: grid;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}



* {

    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;
    display: grid;

    grid-template-rows: auto 1fr auto;
    font-family: var(--text-font);

    overflow-x: hidden;
    background-color: white;
}

main {
    width: 100vw;
    overflow: hidden;
}

#padding {
    padding-top: 10rem;
    width: 100vw;
    overflow: hidden;
}

ul {
    list-style: none;
}

a {
    color: black;
}

a:hover {
    text-decoration: underline;
    transform: 0.3 ease;
}



header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header--scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.header-index {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 2px var(--padding-inline);
    font-size: var(--text-size-header);
}

#Capa_1 {
    width: clamp(120px, 3vw, 250px);
    display: block;
}


.header__content {
    display: none;
}


.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1100;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--clr-text);
    display: block;
    transition: all 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


.nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 6rem var(--padding-inline) 3rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay__list,
.nav-overlay__item,
.nav-overlay__list * {
    background-color: transparent !important;

}

.nav-overlay.is-open {
    transform: translateX(0);
}

.nav-overlay__close {
    position: absolute;
    top: 1.2rem;
    right: var(--padding-inline);
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--clr-text);
}

.nav-overlay__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2.5rem;
}

.nav-overlay__item {
    font-size: 1.8rem;
    color: var(--clr-text);
    text-decoration: none;
}

.nav-overlay__item:hover {
    opacity: 0.5;

    text-decoration: none;
}





footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 5%;
    box-sizing: border-box;
    font-size: var(--text-size-footer);
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);


    footer div {
        justify-content: center;
        color: white;
    }

    .footer__icons {
        height: 30px;
    }


    .footer__text {
        text-align: center;
        margin: 0;
    }

    .footer__text p {
        margin: 0;
    }

    .footer__text_copy {
        font-size: small;
        padding-top: 1rem;
    }
}

footer a {
    text-decoration: none;
}

.footer__icons a:hover {
    text-decoration: none;
}


.imagen-portada {

    max-width: 100%;
    height: auto;

    display: block;
}


.img-desktop {
    display: none;
}

.img-mobile {
    display: block;
}



.slideshow-wrapper {
    width: 100vw;
    height: 100vh;

    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}



.slideshow-group {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


.slideshow-group--mobile {
    display: block;
}

.slideshow-group--desktop {
    display: none;
}

body.body_home .slideshow-wrapper {
    height: calc(100vh - 60px);

    margin-top: 60px;
}



.slideshow-group--mobile .slideshow__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;

    opacity: 0;
    animation: fadeInOnlyMobile var(--cycle-duration) linear infinite;
    ;

}





@keyframes fadeInOnlyMobile {
    0% {
        opacity: 0;
    }

    0.5% {
        opacity: 1;
    }


    3.5303% {
        opacity: 1;
    }


    3.5304% {
        opacity: 0;
    }


    100% {
        opacity: 0;
    }
}


:root {
    --cycle-duration: 16.5s;
}



.slideshow-group--mobile .slideshow__img:nth-child(1) {
    animation-delay: 0s;
}

.slideshow-group--mobile .slideshow__img:nth-child(2) {
    animation-delay: 0.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(3) {
    animation-delay: 1s;
}

.slideshow-group--mobile .slideshow__img:nth-child(4) {
    animation-delay: 1.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(5) {
    animation-delay: 2s;
}

.slideshow-group--mobile .slideshow__img:nth-child(6) {
    animation-delay: 2.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(7) {
    animation-delay: 3s;
}

.slideshow-group--mobile .slideshow__img:nth-child(8) {
    animation-delay: 3.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(9) {
    animation-delay: 4s;
}

.slideshow-group--mobile .slideshow__img:nth-child(10) {
    animation-delay: 4.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(11) {
    animation-delay: 5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(12) {
    animation-delay: 5.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(13) {
    animation-delay: 6s;
}

.slideshow-group--mobile .slideshow__img:nth-child(14) {
    animation-delay: 6.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(15) {
    animation-delay: 7s;
}

.slideshow-group--mobile .slideshow__img:nth-child(16) {
    animation-delay: 7.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(17) {
    animation-delay: 8s;
}

.slideshow-group--mobile .slideshow__img:nth-child(18) {
    animation-delay: 8.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(19) {
    animation-delay: 9s;
}

.slideshow-group--mobile .slideshow__img:nth-child(20) {
    animation-delay: 9.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(21) {
    animation-delay: 10s;
}

.slideshow-group--mobile .slideshow__img:nth-child(22) {
    animation-delay: 10.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(23) {
    animation-delay: 11s;
}

.slideshow-group--mobile .slideshow__img:nth-child(24) {
    animation-delay: 11.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(25) {
    animation-delay: 12s;
}

.slideshow-group--mobile .slideshow__img:nth-child(26) {
    animation-delay: 12.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(27) {
    animation-delay: 13s;
}

.slideshow-group--mobile .slideshow__img:nth-child(28) {
    animation-delay: 13.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(29) {
    animation-delay: 14s;
}

.slideshow-group--mobile .slideshow__img:nth-child(30) {
    animation-delay: 14.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(31) {
    animation-delay: 15s;
}

.slideshow-group--mobile .slideshow__img:nth-child(32) {
    animation-delay: 15.5s;
}

.slideshow-group--mobile .slideshow__img:nth-child(33) {
    animation-delay: 16s;
}




.about__section {
    display: grid;

    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1rem var(--padding-inline);

    .about__section_img {
        max-width: 100%;
    }
}


.about__distribution {
    display: flex;


    align-items: center;


    justify-content: center;


    height: 100%;

    width: 100%;
}

.about__section_img {
    max-width: 500px;
    object-fit: cover;
    display: block;
    margin: 0 auto;

}

.about__section_article {
    font-family: var(--text-font-text)
}

.contact__main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;

    .contact__main_link {
        font-size: 3em;
    }

}



.main__projects {
    width: 100%;
    height: auto;
}

.sticky-container {
    position: relative;

    display: block;
}

.projects-track {
    display: flex;

    flex-direction: column;
    gap: 2rem;
    padding: 9rem var(--padding-inline);
    align-items: center;
    flex-wrap: nonrap;
}


.project-card {
    display: flex;
    flex-direction: column;
    position: relative;

    flex-shrink: 0;
    width: 100%;
    max-width: 250px;
    ;
    text-decoration: none;
}

.project-card:hover {
    text-decoration: none;
}


.project-card img {

    width: 100%;
    object-fit: cover;

    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}


.project-card:hover img {

    transform: scale(1.04);
    text-decoration: none;
}

.project-disc {

    display: none;
}


.project-info {
    padding: 1rem 0;
    text-align: left;
    width: 100%;
}

.project-info p {
    margin: 0;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.project-info span {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
}


body.body_projects {
    overflow-y: auto;
    height: auto;
}


.projects__section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1rem var(--padding-inline);
    align-items: center;
}

.projects__section_youtube {
    width: 100%;
    position: relative;

    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.projects__section_youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.projects__section_text {
    font-family: var(--text-font-text);
}


.editorial {
    background-color: var(--clr-bg);
}

.editorial__details {
    display: flex;
    flex-direction: column;
}

.editorial__details_1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.editorial__details_container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    padding-left: var(--padding-left)
}



.editorial__intro {
    padding: 4rem var(--padding-inline);
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: var(--clr-bg);
}



.hero_container {
    position: fixed;
    top: var(--header-height, 80px);
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    height: calc(100vh - var(--header-height, 80px));
}

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

.project-content-wrapper {
    position: relative;
    z-index: 1;
    background-color: white;
    margin-top: calc(100vh - var(--header-height, 80px));

    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.project-content-wrapper__challenge {
    padding: var(--padding-inline);
}

.project-content-wrapper__info {
    padding: 2px var(--padding-inline);
    background-color: white;
}

.project-content-wrapper__info_first-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.project-content-wrapper__info ul {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    gap: 0.5vh;
}

.project-content-wrapper__logo {
    background-color: #FDFAE5;
    top: 0;
    max-height: 400px;
    display: flex;
    justify-content: center;
}

.project-content-wrapper__logo img {
    width: clamp(250px, 30%, 400px);
}

.project-content-wrapper__grid-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100vw;
    max-height: 600px;
    background-color: white;
    align-items: center;
    justify-items: center;
}

.project-content-wrapper__grid-img img {
    width: 100%;
    object-fit: contain;
}

.img-small {
    width: 50%;
}

.project-colors {
    display: flex;
    height: clamp(100px, 30vh, 300px);
    max-height: 400px;
    width: 100%;
}

.color-bar {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    transition: flex 0.3s ease;
}

.color-bar span {
    writing-mode: vertical-rl;
    font-size: var(--text-size-footer);
    font-family: var(--text-font-text);
    color: rgba(0, 0, 0, 0.5);
}

.color-bar:hover {
    flex: 1.5;
}

.project-content-wrapper_video-bloom {
    top: 0;
    max-height: 600px;
    display: flex;
    justify-content: center;
}



.project-content-wrapper_video-bloom iframe {
    width: clamp(392px, 40vw, 560px);
    height: clamp(147px, 30vh, 315px);
    margin: 5vh;
}


.project-content-wrapper__logo_panar {
    top: 0;
    max-height: 400px;
    display: flex;
    justify-content: center;
}

.project-content-wrapper_video {
    background-color: #FDFAE5;
    top: 0;
    max-height: 600px;
    display: flex;
    justify-content: center;

}

.project-content-wrapper__logo_panar img {
    width: clamp(250px, 30%, 400px);
}

.desktop-photos-row-panar {
    display: flex;
    flex-direction: column;

    width: 100%;
    gap: 2.5rem;
    padding: 2rem var(--padding-inline, 1rem);
    box-sizing: border-box;
    align-items: center;
    background-color: white;
}

.project-content-wrapper__grid-img-panar {
    display: flex;
    flex-direction: row;

    width: 100%;
    justify-content: center;
    padding: var(--padding-inline);
    padding-right: 0px;
    padding-left: 0px;
}

.project-content-wrapper__grid-img-panar img {
    width: 70%;
    max-width: 400px;

    object-fit: contain;
}

.project-content-wrapper_video {
    background-color: #ffffff;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 var(--padding-inline);
}

.project-content-wrapper_video_desktop {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 600px;
    background-color: white;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    /* padding: 0 var(--padding-inline); */
}

.project-content-wrapper_video_desktop video {
    width: 100%;
    align-items: center;
    justify-content: center;
}



@keyframes floatUp {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }


    100% {
        transform: translateY(0px);
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(12px);
    }


    100% {
        transform: translateY(0px);
    }
}


.project-content-wrapper__grid-img-panar img:nth-child(1) {
    animation: floatUp 2s ease-in-out infinite;
}

.project-content-wrapper__grid-img-panar img:nth-child(2) {
    animation: floatDown 2s ease-in-out infinite;

}





.reveal-img {
    opacity: 0;
    transform: translateY(40px);

    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}


.reveal-img.is-visible {
    opacity: 1;
    transform: translateY(0);

}


@view-transition {
    navigation: auto;

}








.hero_container-simof {
    position: fixed;

    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    height: calc(100vh - var(--header-height, 80px));
}

header.menu-simof .nav-toggle span {
    background-color: white;
}




.header--scrolled .header__list_item.color-text-white {
    color: var(--clr-text);

}


.header--scrolled svg .cls-1 {
    fill: var(--clr-text);

    transition: fill 0.3s ease;

}


header.menu-simof.header--scrolled .nav-toggle span {
    background-color: var(--clr-text);

}


header.menu-simof .nav-toggle.is-active span {
    background-color: var(--clr-text);

}


.header__list_item {
    transition: color 0.3s ease;
}


#padding-simof {
    padding-top: 0;
    width: 100vw;
    overflow: hidden;
}

.wrapper-photo-unique {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: var(--padding-inline);
    width: 100%;
    box-sizing: border-box;
}

.photo-centered {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 100%;
    object-fit: cover;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    padding: clamp(10px, 1.3vw, 15px) clamp(40px, 4.2vw, 60px);
    border-radius: 42px;
    background: var(--clr-corporativo-purple);
    color: var(--clr-corporativo-yellow);
    font-family: var(--text-font);
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 600;
    border: 2px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    z-index: 1;
    text-align: center;
    line-height: 1;
}

/* Wrapper para centrar el botón en página de proyecto */
.btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem var(--padding-inline);
    box-sizing: border-box;
}

@media (hover: hover) {
    .btn:hover {
        background: var(--clr-corporativo-yellow);
        color: var(--clr-corporativo-purple);
        border-color: var(--clr-corporativo-purple);
    }
}

.a-emes:hover {
    text-decoration: none;
}












@media (min-width: 768px) {

    .img-desktop {
        display: block;
    }

    .img-mobile {
        display: none;
    }


    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }



    .header__content {
        display: block;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
    }

    .header__list {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        text-decoration: none
    }

    ul {
        list-style: none;
    }

    a {
        color: black;
    }

    header a:hover {
        opacity: 0.6;

        text-decoration: none;
    }

    .header__list_item {
        font-size: var(--text-size-header);
        text-decoration: none;
    }

    .nav-toggle {
        display: none;
    }

    .nav-overlay {
        display: none;
    }

    :root {
        --cycle-duration: 17.5s;
    }


    body.body_home footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }


    body.body_home main {
        padding-bottom: 80px;
    }

    body.body_home .slideshow-wrapper {
        height: calc(100vh - 60px - 80px);

        margin-top: 60px;
    }


    .slideshow-group--mobile {
        display: none;
    }

    .slideshow-group--desktop {
        display: block;
    }

    .slideshow-group--desktop .slideshow__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;

        opacity: 0;

        animation: fadeInOnlyDesktop var(--cycle-duration) linear infinite;
    }



    @keyframes fadeInOnlyDesktop {
        0% {
            opacity: 0;
        }

        0.5% {
            opacity: 1;
        }


        3.3571% {
            opacity: 1;
        }


        3.3572% {
            opacity: 0;
        }


        100% {
            opacity: 0;
        }
    }


    .slideshow-group--desktop .slideshow__img:nth-child(1) {
        animation-delay: 0s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(2) {
        animation-delay: 0.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(3) {
        animation-delay: 1s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(4) {
        animation-delay: 1.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(5) {
        animation-delay: 2s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(6) {
        animation-delay: 2.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(7) {
        animation-delay: 3s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(8) {
        animation-delay: 3.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(9) {
        animation-delay: 4s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(10) {
        animation-delay: 4.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(11) {
        animation-delay: 5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(12) {
        animation-delay: 5.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(13) {
        animation-delay: 6s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(14) {
        animation-delay: 6.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(15) {
        animation-delay: 7s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(16) {
        animation-delay: 7.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(17) {
        animation-delay: 8s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(18) {
        animation-delay: 8.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(19) {
        animation-delay: 9s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(20) {
        animation-delay: 9.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(21) {
        animation-delay: 10s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(22) {
        animation-delay: 10.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(23) {
        animation-delay: 11s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(24) {
        animation-delay: 11.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(25) {
        animation-delay: 12s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(26) {
        animation-delay: 12.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(27) {
        animation-delay: 13s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(28) {
        animation-delay: 13.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(29) {
        animation-delay: 14s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(30) {
        animation-delay: 14.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(31) {
        animation-delay: 15s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(32) {
        animation-delay: 15.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(33) {
        animation-delay: 16s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(34) {
        animation-delay: 16.5s;
    }

    .slideshow-group--desktop .slideshow__img:nth-child(35) {
        animation-delay: 17s;
    }






    .about__section {
        grid-template-columns: 1fr 1.2fr;
    }



    body.body_projects {
        overflow: hidden;
        height: 100vh;
    }


    body.body_projects header,
    body.body_projects footer {
        width: 100%;
        max-width: 100vw;
        position: relative;
        z-index: 10;
        background-color: var(--clr-bg);
    }

    .main__projects {
        position: relative;
        display: block;
        width: 100%;
        overflow: visible;






    }

    .sticky-container {
        width: 100%;

        height: 100vh;
        display: flex;
        align-items: center;

        overflow: hidden;
    }

    .projects-track {
        flex-direction: row;

        flex-wrap: nowrap;

        padding: 0 10vw;
        gap: 12vw;
    }

    .projects-track::-webkit-scrollbar {
        display: none;
    }

    .project-card {
        width: 30vh;
        min-width: 250px;
        flex-shrink: 0;

        max-width: none;
        padding: 2rem, var(--padding-inline);
    }

    .card-media {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;

        overflow: visible;
    }

    .project-cover {
        position: relative;

        z-index: 2;
        width: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .project-disc {

        display: block;
        position: absolute;
        visibility: visible;
        top: 5%;
        right: 0;
        width: 90%;
        height: 90%;

        z-index: 1;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .project-disc img {
        width: 100%;
        object-fit: cover;
        transform-origin: center center;
    }


    .project-card:hover .project-cover {
        transform: translateX(-30%);
        transform: rotate(-5deg);

    }

    .project-card:hover .project-disc {
        transform: translateX(20%);
    }

    @keyframes spin-center {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .project-card:hover .project-disc img {

        animation: spin-center 3s linear infinite;
        animation-delay: 0.01s;

    }


    .main__projects {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        overflow: hidden;
        cursor: grab;
    }

    .main__projects:active {
        cursor: grabbing;
    }


    .projects-track {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 0;
        gap: 12vw;

        will-change: transform;

        user-select: none;
    }


    .projects-track .project-card:first-child {
        margin-left: 10vw;
    }

    .projects-track .project-card:last-child {
        margin-right: 10vw;
    }


    body.body_projects footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background-color: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }


    body.body_projects header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: transparent;
    }


    .projects__section {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
        align-items: center;
        min-height: 70vh;
    }

    .projects__section_youtube {
        max-width: 900px;
    }


    .editorial {
        overflow: visible !important;
    }

    .editorial__intro {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .editorial__gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: relative;
        z-index: 2;

        background-color: var(--clr-bg);

        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px;
        padding: 4rem var(--padding-inline);
    }

    .gallery__item {
        padding-bottom: 1rem
    }

    .gallery__item img {
        width: 100%;
        height: 500px;
    }

    .editorial__gallery-simof {
        grid-template-columns: repeat(4, 2fr);
        gap: 1.5rem;
        padding: 4rem var(--padding-inline);
        aspect-ratio: 3 / 4;
    }


    .desktop-info-row {
        display: grid;
        grid-template-columns: 1fr 1fr;

        background-color: white;

        padding-bottom: var(--padding-inline);
    }

    .project-content-wrapper__challenge {
        padding-right: 5vw;
        background-color: white;
    }



    .project-content-wrapper__info {
        background-color: transparent;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-top: var(--padding-inline);

    }

    .project-content-wrapper__info {
        background-color: transparent;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-around;
        padding-top: var(--padding-inline);
        align-items: flex-start;
        gap: 2rem;
    }

    .project-content-wrapper__info_first-line {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }


    .desktop-photos-row {
        display: flex;
        width: 100vw;
    }

    .project-content-wrapper__grid-img {
        flex: 1;

        width: 50vw;
        max-height: none;

    }


    .img-small {
        width: 40%;

    }

    .img-small-2 {
        width: 70%;
        padding: 0;
    }

    .project-colors {
        height: 400px;

    }



    .desktop-photos-row-panar {
        flex-direction: row;

        justify-content: center;
        gap: 1rem;
        padding: 4rem 2rem;
        background-color: white;
    }

    .project-content-wrapper__grid-img-panar {
        width: auto;
        flex: 1;

        background-color: white;
    }

    .project-content-wrapper_video_desktop {
        max-width: 600px;
    }


    .project-content-wrapper_video-bloom {
        top: 0;
        height: 70vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }



    .project-content-wrapper_video-bloom iframe {
        width: clamp(392px, 60vw, 840px);
        height: clamp(147px, 50vh, 472.5px);
        margin: 5vh;
    }

}


/* =====================================================
   LANGUAGE TOGGLE (footer)
   ===================================================== */

.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1.5px solid var(--clr-text);
    border-radius: 20px;
    padding: 3px 12px;
    font-family: var(--text-font);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: var(--clr-text);
    transition: background 0.25s ease, color 0.25s ease;
    text-transform: uppercase;
}

.lang-toggle:hover {
    background: var(--clr-text);
    color: var(--clr-bg);
}

.footer__icon-img {
    height: 30px;
}


/* =====================================================
   PROJECT NAVIGATION (prev / next)
   ===================================================== */

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem var(--padding-inline);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    gap: 1rem;
    background-color: white;
}

.project-nav__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--text-font);
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--clr-text);
    opacity: 0.55;
    transition: opacity 0.3s ease, gap 0.3s ease;
}

.project-nav__link:hover {
    opacity: 1;
    text-decoration: none;
    gap: 1rem;
}

.project-nav__link--prev::before {
    content: "←";
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.project-nav__link--next::after {
    content: "→";
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.project-nav__link--prev:hover::before {
    transform: translateX(-2px);
}

.project-nav__link--next:hover::after {
    transform: translateX(2px);
}


.project-nav__link--empty {
    visibility: hidden;
    pointer-events: none;
}


/* =====================================================
   MOBILE: Animación automática carátulas de proyectos
   ===================================================== */

/* Solo activo en móvil (< 768px) */
@media (max-width: 767px) {

    .projects-track--mobile-anim .card-media {
        position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            overflow: visible;
    }

    .project-card--mobile-anim .project-cover {
        position: relative;
        z-index: 2;
        width: 220px;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

    @keyframes cardRevealMobile {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .project-disc--mobile {
        display: block !important;
        position: absolute;
        top: 0;
        right: 0;
        width: 85%;
        height: 85%;
        z-index: 1;
        transform: translateX(0);
        animation: discSlideMobile 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        opacity: 0;
    }

    @keyframes discSlideMobile {
        0% {
            opacity: 0;
            transform: translateX(0);
        }

        60% {
            opacity: 1;
        }

        100% {
            opacity: 1;
            transform: translateX(18%);
        }
    }

    .project-disc--mobile img {
        width: 100%;
        object-fit: cover;
        transform-origin: center center;
        animation: spinMobile 4s linear infinite;
        animation-play-state: paused;
    }

    /* El disco gira cuando su tarjeta es "activa" */
    .project-card--mobile-anim.is-active .project-disc--mobile img {
        animation-play-state: running;
    }

    .project-card--mobile-anim.is-active .project-cover {
        transform: rotate(-5deg) translateX(-8%);
        transition: transform 0.5s ease;
    }

    @keyframes spinMobile {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

        .project-card--mobile-anim:nth-child(1) {
            animation-delay: 0.05s;
        }
    
        .project-card--mobile-anim:nth-child(2) {
            animation-delay: 0.15s;
        }
    
        .project-card--mobile-anim:nth-child(3) {
            animation-delay: 0.25s;
        }
    
        .project-card--mobile-anim:nth-child(4) {
            animation-delay: 0.35s;
        }
    
        .project-card--mobile-anim:nth-child(5) {
            animation-delay: 0.45s;
        }
    
        .project-card--mobile-anim:nth-child(6) {
            animation-delay: 0.55s;
        }
    
        .project-card--mobile-anim:nth-child(7) {
            animation-delay: 0.65s;
        }
    
        .project-card--mobile-anim:nth-child(8) {
            animation-delay: 0.75s;
        }
    
        /* El disco sale un poco después que su tarjeta */
        .project-card--mobile-anim:nth-child(1) .project-disc--mobile {
            animation-delay: 0.4s;
        }
    
        .project-card--mobile-anim:nth-child(2) .project-disc--mobile {
            animation-delay: 0.5s;
        }
    
        .project-card--mobile-anim:nth-child(3) .project-disc--mobile {
            animation-delay: 0.6s;
        }
    
        .project-card--mobile-anim:nth-child(4) .project-disc--mobile {
            animation-delay: 0.7s;
        }
    
        .project-card--mobile-anim:nth-child(5) .project-disc--mobile {
            animation-delay: 0.8s;
        }
    
        .project-card--mobile-anim:nth-child(6) .project-disc--mobile {
            animation-delay: 0.9s;
        }
    
        .project-card--mobile-anim:nth-child(7) .project-disc--mobile {
            animation-delay: 1.0s;
        }
    
        .project-card--mobile-anim:nth-child(8) .project-disc--mobile {
            animation-delay: 1.1s;
        }
    }



/* =====================================================
   PÁGINAS DE ERROR 404 / 500
   ===================================================== */

.body-error {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--clr-bg);
}

.error-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem var(--padding-inline);
    text-align: center;
    gap: 1.5rem;
}

.error-code {
    font-family: var(--text-font);
    font-size: clamp(5rem, 20vw, 14rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--clr-text);
    opacity: 0.06;
    user-select: none;
    position: absolute;
}

.error-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error-title {
    font-family: var(--text-font);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    margin: 0;
    color: var(--clr-text);
}

.error-subtitle {
    font-family: var(--text-font-text);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--clr-text-details);
    margin: 0;
    max-width: 400px;
    line-height: 1.6;
}

.error-home-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--text-font);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-decoration: none;
    color: var(--clr-text);
    border-bottom: 1.5px solid var(--clr-text);
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.error-home-link:hover {
    opacity: 0.5;
    text-decoration: none;
}

.error-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}