@import url("../assets/css/root.css");
@import url("../css/navbar.css");
@import url("../css/footer.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

/* BANNER */
.banner {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 4rem;
}

.logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: 1rem;
    margin-right: 1rem;
}

.logo img {
    max-width: 350px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3)) saturate(1.2);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 1s ease, transform 1s ease;
}

.logo .texto {
    color: #5E728C;
    font-weight: bolder;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
    padding: 0 10px;
}

.logo .texto h1{
    margin-bottom: 0;
    line-height: 1.2;
    font-size: 2.2rem;
    font-weight: bolder;
    font-family: "Inter", sans-serif;
}

.banner.loaded .logo img,
.banner.loaded .logo .texto {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.info {
    position: relative;
    margin-top: 2rem;
    font-weight: 500;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    color: var(--bg-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.banner.loaded .info {
    opacity: 1;
    transform: translateY(0);
}

.data {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    position: relative;
    background: var(--gradient4-color);
    padding: 1rem;
    max-width: 900px;
    backdrop-filter: blur(20px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
        rgba(0, 0, 0, 0.12) 0px -12px 30px,
        rgba(0, 0, 0, 0.12) 0px 4px 6px,
        rgba(0, 0, 0, 0.17) 0px 12px 13px,
        rgba(0, 0, 0, 0.09) 0px -3px 5px;
    overflow: hidden;
    margin-right: 1rem;
    margin-left: 1rem;
}

.data::before,
.data::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: translate(-50%, -50%);
    animation: moveLight 5s linear infinite;
}

.data::after {
    animation-delay: 2.5s;
}

@keyframes moveLight {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(50%, 50%) scale(1.5);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.info .data span {
    font-size: 1.5rem;
    text-shadow:
        1px 1px 1px rgba(0, 0, 0, 1),
        2px 2px 2px rgba(0, 0, 0, 1),
        3px 3px 3px rgba(0, 0, 0, 1);
}

.info .data a {
    padding-top: 1rem;
    color: var(--low-old-color);
    font-size: 1.5rem;
    text-shadow:
        1px 1px 1px rgba(0, 0, 0, 1),
        2px 2px 2px rgba(0, 0, 0, 1),
        3px 3px 3px rgba(0, 0, 0, 1);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    margin: 0 1rem 0 1rem;
    z-index: 1;
}

.info .data a:hover {
    color: #ffcc00;
}

.info .data a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #ffcc00;
    ;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.info a:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

.info i {
    margin-right: 1rem;
}

/* DISCIPLINAS */
.disciplinas {
    position: relative;
    height: auto;
    width: 100%;
}

/* CARDS */
.containers {
    display: grid;
    place-items: center;
    margin-inline: 1.5rem;
    padding-top: 1.5rem;
}

.card__containers {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

.card__article {
    position: relative;
    overflow: hidden;
}

.card__img {
    width: 328px;
    height: 200px;
    border-radius: 1.5rem;
    object-fit: cover;
}

.card__data {
    width: 280px;
    background-color: var(--low-old-color);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    border-radius: 1rem;
    position: absolute;
    bottom: -9rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity .5s .5s;
}

.card__description {
    display: block;
    font-size: .875rem;
    margin-bottom: .25rem;
}

.card__title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--clr3);
}

.card__button {
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    color: var(--gradient1-color);
}

.card__button:hover {
    text-decoration: underline;
}

.card__article:hover .card__data {
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

.card__article:hover {
    animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
    animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
    animation: remove_data .5s forwards;
}

@keyframes show-data {
    50% {
        transform: translateY(-10rem);
    }

    100% {
        transform: translateY(-9rem);
    }
}

@keyframes remove-overflow {
    to {
        overflow: initial
    }
}

@keyframes remove_data {
    0% {
        transform: translateY(-7rem);
    }

    50% {
        transform: translateY(-10rem);
    }

    100% {
        transform: translateY(.5rem);
    }
}

@keyframes show-overflow {
    0% {
        overflow: initial;
        pointer-events: none;
    }

    50% {
        overflow: hidden;
    }
}

/* NOTICIAS */
.noticias {
    width: 100%;
}

.etiquetas {
    color: var(--bg-color);
    margin-top: 4rem;
    border-radius: 10px;
    position: relative;
    background: var(--gradient4-color);
    backdrop-filter: blur(20px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
        rgba(0, 0, 0, 0.12) 0px -12px 30px,
        rgba(0, 0, 0, 0.12) 0px 4px 6px,
        rgba(0, 0, 0, 0.17) 0px 12px 13px,
        rgba(0, 0, 0, 0.09) 0px -3px 5px;
    padding: 1rem 0 0 0;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1.5rem;
}

.eti-inicia{
    margin-top: 3rem;
}

/* SPONSORS */
.sponsors {
    position: relative;
    height: auto;
    width: 100%;
    padding: 50px 0;
}
.sponsors .etiquetas{
    box-shadow: none;
}
.sponsors .logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 1rem;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    background: #ffffff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    max-width: 240px;
    min-height: 300px;
    box-sizing: border-box;
    overflow: hidden;
}

.sponsor-item img {
    max-width: 220px;
    max-height: 170px;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover; 
}

.sponsor-item:hover {
    transform: scale(1.05); 
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2); 
}

.sponsor-item a {
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--bg-color);
    padding: 10px 0;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-align: center;
    white-space: normal;
    overflow: visible;
    background-color: var(--gradient2-color); 
    border-radius: 5px;
    padding: 10px 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.sponsor-item a:hover {
    color: #fff;
    background-color: var(--extra); 
}

/* SLIDER */
.info2 {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-slider {
    position: relative;
    width: 800px;
    height: 450px;
    transition: .3s;
    background-color: var(--gradient4-color);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.img-slider .slide {
    z-index: 1;
    position: absolute;
    width: 100%;
    clip-path: circle(0% at 0 50%);
}

.img-slider .slide.active {
    clip-path: circle(150% at 0 50%);
    transition: 2s;
    transition-property: clip-path;
}

.img-slider .slide img {
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.img-wrapper {
    position: relative;
    height: 450px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: block;
    object-fit: cover;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 40%, transparent);
    z-index: 1;
}

.img-slider .slide .dt {
    position: absolute;
    top: 0;
    padding: 15px 30px;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; 
    overflow: hidden; 
}

.img-slider .slide .dt h3 {
    color: var(--bg-color);
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.img-slider .slide .dt p {
    color: var(--bg-color);
    background: rgba(0, 0, 0, 0.1);
    font-size: 16px;
    padding: 10px;
    border-radius: 4px;
    height: 150px; 
    overflow-y: auto;
    box-sizing: border-box;
    width: 80%;
}

.img-slider .navigation {
    z-index: 2;
    position: relative;
    display: flex;
    bottom: -100%; 
    height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-bottom: 3rem;
    background-color: var(--gradient4-color);
}

.img-slider .navigation div {
    border-radius: 10rem;
    cursor: pointer;
    font-size: 2.5rem;
    color: var(--bg-color);
    margin-top: .5rem;
    transition: .3s;
}

.img-slider .navigation div:hover {
    color: #ffcc00;
    ;
}

/* CRONO */
.crono {
    position: relative;
    height: auto;
    width: 100%;
}

/* ? ----- Cuenta Regresiva ----- */
#cuenta {
    margin-top: 1.5rem;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
}


.simply-section {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    position: relative;
    background: var(--gradient4-color);
    padding: 1rem 0;
    max-width: 900px;
    backdrop-filter: blur(20px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
        rgba(0, 0, 0, 0.12) 0px -12px 30px,
        rgba(0, 0, 0, 0.12) 0px 4px 6px,
        rgba(0, 0, 0, 0.17) 0px 12px 13px,
        rgba(0, 0, 0, 0.09) 0px -3px 5px;
    overflow: hidden;
    margin-right: .5rem;
    margin-left: .5rem;
    color: var(--bg-color);
    width: 200px;
}

.simply-section::before,
.simply-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: translate(-50%, -50%);
    animation: moveLight 5s linear infinite;
}

.simply-section::after {
    animation-delay: 2.5s;
}

@keyframes moveLight {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(50%, 50%) scale(1.5);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.simply-amount {
    display: block;
    font-size: 50px;
    font-weight: 700;
}

.simply-word {
    font-weight: 300;
    font-size: 30px;
}


/* EXTRA */
ul {
    list-style: none;
    padding-left: 0;
    padding-top: 5px;
    margin-bottom: 0;
    text-align: center;
}

li {
    padding: 0;
    margin-bottom: 0;
}

/* MEDIA QUERYS */
@media (max-width: 1440px) {
    .card__containers {
        grid-template-columns: repeat(3, 1fr);
    }

    .card__img {
        width: 300px;
    }

    .card__data {
        width: 280px;
        padding-inline: 2.5rem;
    }
    
}

@media (max-width: 1024px) {
    .logo img {
        max-width: 300px;
    }

    .logo .texto h1{
        margin-bottom: 0;
        line-height: 1.2;
        font-size: 1.9rem;
    }

    .info .data span,
    .info .data a {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .etiquetas {
        font-size: 1.2rem;
    }

    .card__containers {
        grid-template-columns: repeat(2, 1fr);
    }

    .img-slider {
        width: 700px;
        height: 350px;
    }

    .img-wrapper {
        height: 350px;
    }

    .img-slider .slide .dt p {
        width: 70%;
        font-size: 15px;
        height: 250px;
    }

    .simply-amount {
        font-size: 2.5rem;
    }

    .simply-word {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-width: 200px;
    }

    .logo .texto h1 {
        margin-bottom: 0;
        line-height: 1.2;
        font-size: 1.6rem;
    }

    .card__containers {
        grid-template-columns: repeat(1, 1fr);
        column-gap: 1.5rem;
    }

    .card__img {
        width: 270px;
    }

    .card__data {
        width: 250px;
    }

    .img-slider {
        width: 400px;
        height: 230px;
    }

    .img-wrapper {
        height: 230px;
    }

    .img-slider .slide .dt {
        padding: 10px;
        height: 230px;
        overflow: hidden; 
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .img-slider .slide .dt h3 {
        font-size: 20px;
    } 

    .img-slider .slide .dt p {
        width: 80%; 
        font-size: 13px;
        height: 150px; 
        overflow-y: auto;
        box-sizing: border-box;
    }

    .simply-amount {
        font-size: 2.2rem;
    }

    .simply-word {
        font-size: .8rem;
    }
}

@media (max-width: 425px) {
    .containers {
        margin-inline: 1rem;
    }

    .logo .texto h1 {
        margin-bottom: 0;
        line-height: 1.2;
        font-size: 1.2rem;
    }

    .logo img {
        max-width: 150px;
    }

    .card__img {
        width: 250px;
    }

    .card__data {
        width: 230px;
    }

    .img-slider {
        width: 310px;
        height: 210px;
    }

    .img-wrapper {
        height: 210px;
    }

    .img-slider .slide .dt {
        padding: 5px 10px;
        height: 210px;
        overflow: hidden; 
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .img-slider .slide .dt h3 {
        font-size: 18px;
    }

    .img-slider .slide .dt p {
        width: 80%; 
        font-size: 13px;
        height: 120px;
        overflow-y: auto; 
        box-sizing: border-box;
    }

    .simply-section {
        margin-right: 1px;
        margin-left: 1px;
    }
}