@import url("../assets/css/root.css");
@import url("../css/navbar.css");
@import url("../css/footer.css");

/*  background: linear-gradient(to right, #ff6f61, #d76d77, #ff3366); */

/* BANNER */
.banner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    overflow: visible;
}

.logo img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    width: 500px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.logo {
    margin: 20px;
    padding: 10px;
}


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

    100% {
        opacity: 1;
    }
}

/* EQUIPOS */
.team-logos {
    text-align: center;
    padding: 20px;
}

.logo-grid, .logo-grid2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    padding: 10px;
    justify-content: center; 
}

.logo-item {
    flex: 1 1 150px; 
    max-width: 200px; 
    height: 200px; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--quaternary), rgba(255, 255, 255, 0));
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* NOTICIAS */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.image-container {
    display: none;
    position: relative;
    height: 500px;
    width: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    z-index: 1;
}

.text-overlay {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: left;
    padding: 15px;
    width: 90%;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
}

.text-overlay .title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.text-overlay .description {
    font-size: 1.2rem;
    line-height: 1.5;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--white);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 2rem;
    z-index: 3;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

/* PATROCINADORES */
.sponsor-logos {
    text-align: center;
    padding: 20px;
}

.logo-item {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--quaternary), rgba(255, 255, 255, 0));
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.logo-item img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* CONTADOR */
.countdown {
    text-align: center;
    font-family: 'Arial', sans-serif;
    margin-top: 40px;
    padding-bottom: 2rem;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 2rem;
    font-weight: bold;
    flex-wrap: wrap;
    color: var(--white);
}

.time-item { 
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--tertiary), rgba(255, 255, 255, 0));
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.time-item span {
    font-size: 3rem;
    font-weight: bold;
}

.time-item div {
    font-size: 1rem;
    margin-top: 10px;
}

.time-item span {
    transition: transform 0.5s ease, color 0.5s ease;
}

.time-item span:hover {
    transform: scale(1.2);
    color: #FF5722;
}

/* BREAKPOINTS */
@media (max-width: 768px) {
    #countdown-timer {
        justify-content: space-between; 
    }
    .time-item {
        width: 45%; 
    }
    main{
        padding-top: 100px;
    }
}

@media (max-width: 425px) {
    #countdown-timer {
        justify-content: center; 
    }

    .time-item {
        width: 90%; 
    }
}
