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

:root{
    --background: #0a0a0a;
    --foreground: #f0f0f0;
    --neon-blue: #00FFFF;
    --neon-green: #39ff14;
    --neon-purple: rebeccapurple;
    --neon-red: #ff073a;
    --neon-yellow: #f4d03f;
    --neon-gray: #bababb;
}

html{
    scroll-behavior: smooth;
}


body{
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    color: #FFF;
}
/* New styles */
.logo{
    width: 260px;
}
.bglogo{
    position: fixed;
    z-index: -1;
    left: 0;
    transform: translate3d(-30%, 20%, 0) rotate(-2deg);
    height: 50%;
    opacity: 0.09;
}

.behind .mobile{
    display: none;
}

header p{
    font-size: 0.9rem;
}

.behind{
    max-width: 100vw;
    display: flex;
    justify-content: start;
    align-items: end;
}
.behind img{
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}
.polygon{
    height: fit-content;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.291);
    border-bottom: var(--neon-gray) 6px solid;
}

.polygon .behind{
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    z-index: -1;
}

.polygon .behind img{
    width: auto;
    height: 100%;
    object-fit: cover;
    transform: translateX(-120px);
    z-index: -1;
}
#sabapoff .behind, #nocturno .behind{
    top: 0;
    right: 0;
    bottom: 0;
    left: initial;
}
#sabapoff .behind img, #nocturno .behind img{
    transform: translateX(150px);
}

#youth .behind img{
    transform: scaleX(-1) translateX(300px);
}

.polygon::before{
    position: absolute;
    content: '';
    background-color: rgba(207, 206, 206, 0.209);
    width: 100%;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: -2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}

.polygon::after{
    position: absolute;
    content: '';
    background-color: rgba(195, 195, 195, 0.13);
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

#convocatorias{
    width: 100%;
    height: max-content;
    display: flex;
    justify-content: space-between;
    text-align: right;
    position: relative;
}

#convocatorias.polygon{
    min-height: 400px !important;
    max-height: fit-content !important;
    overflow: hidden;
}
#convocatorias.polygon .data{
    height: max-content;
    min-height: 200px !important;

}

#convocatorias img{
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

/* Data container for sections */
.posts{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 40px 140px;
    text-align: center;
    border-top: 10px solid var(--neon-gray);
}

.insta-container{
    width: 100%;
    display:grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}
.data{
    padding: 40px 140px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items:end;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.data h1, .section-title h1{
    font-family: 'nexa-rust-sans-black-2', sans-serif;
    font-size: 3.5rem;
    background: linear-gradient(90deg, #f4f1f1, #b6b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title{
    width: 100%;
    text-align: left;
}

.r .section-title{
    text-align: right;
}

.data h2{
    font-size: 2rem;
}

.data h2 span{
    color: var(--neon-gray);
}

.data .logo-container{
    background: transparent;
    box-shadow: none;
    width: fit-content;
}

.data .content{
    margin-top: 140px;
    text-align: right;
}

.data .info{
    width: 100%;
    height: 100%;
    flex: 1;
}

header .content{
    display: flex;
    justify-content: start;
    align-items: end;
    flex-direction: column;
    gap: 20px;
}

.data .cta{
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 40px;
    width: 100%;
    margin-top: 40px;
    flex: 1;
    height: auto;
}

.data.r .cta{
    align-items: start;
}

.data .links{
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: end;
    gap: 20px;
    width: 100%;
}

.info table{
    background-color: rgb(40, 40, 40);
    width: 100%;
    height: 100%;
    box-shadow: 10px 10px 0 var(--neon-gray);
    text-align: left;
    flex: 1;
    min-height: 50vh;
}

.l table{
    box-shadow: -10px 10px 0 var(--neon-gray);
}

.table-container{
    width: 100%;
    height: 100%;
    min-height: 50vh;
}

.info table th{
    padding-top: 20px;
    padding-bottom: 10px;
    padding-inline: 20px;
}
.info table td{
    padding: 10px 20px;
    background-color: rgba(82, 82, 82, 0.5);
    font-size: 12px;
}

.info table ul{
    list-style: none;
    width: 100%;
}

.info table li{
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proximamente{
    width: 100%;
    min-height: 50vh;
    flex: 1;
    background-color: rgba(31, 30, 30, 0.465);
    backdrop-filter: blur(10px);
    display: flex;
    padding: 20px;
}


/* Action buttons */
.action-buttons{
    display: flex;
    gap: 10px;
    width: max-content;
    width: 100%;
} 

.r .action-buttons{
    justify-content: end;
}

.action-buttons button{
    padding: 10px 20px;
    min-width: 240px;
    background-color: #d6d5d564;
    outline: none;
    border: none;
    color: var(--foreground);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.action-buttons button:hover, .action-buttons button.active{
    font-weight: 800;;
}

.action-buttons button.active{
    box-shadow: -6px -6px 0 var(--neon-gray);
}

/* Action links */

.links a, .cta a, .cta .participar{
    padding: 20px 40px;
    background-color: white;
    color: var(--background);
    outline: none;
    text-decoration: none;
    font-weight: 700;
    box-shadow: -6px -6px 0 var(--neon-gray);
    transition: color 0.3s;
    cursor: pointer;
}

.cta .participar{
    background-color: var(--neon-purple);
    color: white;
    box-shadow: -6px -6px 0 var(--neon-gray);
    transition: all 0.3s;
}

.r .cta .participar{
    flex-direction: row-reverse;
    box-shadow: 6px 6px 0 var(--neon-gray);
}

.cta .participar:hover{
    background-color: white;
    color: var(--neon-purple);
    box-shadow: 6px 6px 0 var(--neon-gray);
}

.r .cta .participar:hover{
    box-shadow: -6px -6px 0 var(--neon-gray);
}


/* Banner */

.banner{
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    position: relative;
    border-bottom: var(--neon-gray) 6px solid;
}

.banner-wrapper::after, .banner-wrapper::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #191818af;
    z-index: -2;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 0 100%);
}

.banner-wrapper::before{
    background: #0c0c0c4b;
    z-index: -1;
    backdrop-filter: blur(8px);
    clip-path: polygon(0% 0, 100% 0%, 50% 100%, 0% 0%);
}

.banner-wrapper{
    position: absolute;
    width: 100%;
    background-color: #0a0a0aaa;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    height: 100%;
}

.banner-wrapper div{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-wrapper span{
    font-size: 1.5rem;
    font-family: 'nexa-rust-sans-black-2', sans-serif;
    background: linear-gradient(90deg, #f4f1f1, #b6b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.extra{
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 20px;
    flex-direction: column;
    background: #4444444a;
    padding-block: 20px;
    border-top: 10px solid var(--background);
    border-bottom: 10px solid var(--background);
}

.extra div{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.extra{
    font-family: 'nexa-rust-sans-black-2', sans-serif;
    font-size: 1.5rem;
}

.extra img{
    width: 60px;
}

@keyframes scroller {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroller {
    display: flex;
    animation: scroller 90s linear infinite;
}

.scroller img {
    height: 100%;
    object-fit: cover;
}

.hidden{
    display: none;
}

/* Footer */
footer{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px 140px;
}

footer div{
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    text-align: left;
}

footer .credits{
    grid-column: 1/3;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .credits a{
    font-weight: 800;
    color: var(--neon-gray);
    text-decoration: none;
}

footer .links{
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.animate {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s;
}

.animate.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes appears {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* Responsive */
@media (max-width: 824px){
    .logo{
        width: 200px;
    }

    .bglogo{
        width: 100%;
        height: auto;
    }
    header .behind img{
        transform: translateX(-170px) !important;
    }
    .behind .web{
        display: none;
    }

    .behind .mobile{
        display: block;
    }

    #convocatorias, .posts{
        flex-direction: column;
        gap: 20px;
    }

    #convocatorias .cta{
        align-items: start;
        background-attachment: red;
    }

    #convocatorias img{
        position: absolute;
        width: 400px;
        left: 0;
        object-fit: contain;
        z-index: -1;
        opacity: 0.5;
    }
    .data, .posts, footer{
        padding: 40px 25px;
    }
    
    .data h1, .section-title h1{
        font-size: 2.2rem;
    }

    .section-title{
        padding: 20px 25px;
    }
    .data h2{
        font-size: 1.5rem;
    }

    .data .content{
        margin-top: 80px;
    }

    .action-buttons, .insta-container{
        display: grid;
        grid-template-columns: 1fr;
    }
    .action-buttons button{
        min-width: none !important;
        padding: 5px 10px;
    }

    .links a, .cta a{
        padding: 10px 20px;
        font-size: 1rem;
    }

    .banner-wrapper{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }

    .extra{
        font-size: 1rem;
    }

    footer{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 20px;
    }
}