/* Contenedor principal del carrusel */
.carruselImgContainer {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 1400px;
}

/* Estilos de las imágenes en el carrusel */
.imgContainer {
    display: flex;
    align-items: center;
    width: 100%;  
    overflow-x: auto;
    height: 560px;
    max-width: 1180px;
    overflow: hidden;
    white-space: nowrap;
    justify-content: center;
}

.imgContainer::-webkit-scrollbar {
    display: none;
}

.medallistaImg {
    position: relative;
    cursor: pointer;
    width: 25%;
    height: auto;
    min-width: 190px;
    max-width: 345px;
    max-height: 435px;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease, filter 0.5s ease;
    border-right: 2px solid #fdfdfd;
}

/* Imagen central */
.medallistaImg.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2);
    /* Escalado más grande para resaltar la imagen activa */
    border: 2px solid #fdfdfd;
    box-shadow: rgba(0, 0, 0, 0.4) 10px 20px 30px, rgba(0, 0, 0, 0.3) 10px 1px 53px 3px, rgba(1, 0, 0, 0.2) 0px -1px 3px inset;
    border-radius: 12px;
    transition: 0.3s;
    z-index: 2;
    min-height: 350px;
    min-width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0 !important;
}

.medallistaImg:nth-child(1).active {
    margin-left: 30px;
    box-shadow:
        rgba(0, 0, 0, 0.4) 40px 20px 30px,
        /* Sombra oscura a la derecha */
        rgba(0, 0, 0, 0.3) 40px 1px 53px 3px,
        /* Sombra más difusa a la derecha */
        rgba(1, 0, 0, 0.2) 40px -1px 3px inset;
    /* Sombra interna a la derecha */
}

.medallistaImg:last-child.active {
    margin-right: 30px;
    box-shadow:
        rgba(0, 0, 0, 0.4) -38px 20px 30px,
        /* Sombra oscura a la derecha */
        rgba(0, 0, 0, 0.3) -38px 1px 53px 3px,
        /* Sombra más difusa a la derecha */
        rgba(1, 0, 0, 0.2) -38px -1px 3px inset;
    /* Sombra interna a la derecha */
}

/* Imagenes laterales */
.medallistaImg.inactive {
    opacity: 0.5;
    filter: grayscale(100%);
    transform: scale(1);
    /* Las imágenes laterales son más pequeñas */
    z-index: 1;
    transition: 0.3s;
    min-height: 300px;
}

/* Botones de navegación */
.btnCarrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    border: none;
    z-index: 10;
    font-size: 2rem;
    transition: background-color 0.3s ease;
    width: 64px;
    border-radius: 12px;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;

}

.btnCarrusel.anterior {
    position: absolute;
    left: 15px;
    box-shadow: 15px 15px 30px #bebebe,
        -15px -15px 30px #ffffff;
}

.btnCarrusel.siguiente {
    position: absolute;
    right: 15px;
    box-shadow: -15px 15px 30px #bebebe,
        -15px -15px 30px #ffffff;
}

.btnCarrusel:hover {
    background-color: rgba(0, 0, 0, 0.8);
    /* Cambiar el color al pasar el ratón */
}

/* Información del medallista (solo el activo será visible) */
.parteText {
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    transition: opacity 0s ease, transform 0.5s ease;
    text-align: center;
}

/* Información activa */
.parteText.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Estilos generales */
.infoMedallista {
    position: relative;
    height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.nombreDeporte {
    font-size: 1.2rem;
    margin-top: 0px;
    color: #555;
}

#medal-gold {
    background-color: gold;
    /* Color para la medalla de oro */
}

.nombreMedallista.medal-gold,
.txtMedal.medal-gold {
    color: gold;
}

#medal-silver {
    background-color: silver;
    /* Color para la medalla de plata */
}

.nombreMedallista.medal-silver,
.txtMedal.medal-silver {
    color: silver;
}

#medal-bronze {
    background-color: #cd7f32;
    /* Color para la medalla de bronce */
}

.nombreMedallista.medal-bronze,
.txtMedal.medal-bronze {
    color: #cd7f32;
}

.parteMedallistas {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
    border-bottom: 2px solid #55555514;
    padding-bottom: 60px;
}

.parteMedallistas:nth-child(1) {
    margin-top: 22px;
}

.parteMedallistas .headerParteM {
    width: 100%;
    position: relative;
}

.parteMedallistas .headerParteM h1,
.tablesMedallistas .parteTable .tableTitle h1 {
    width: 100%;    
    text-align: center;    
    margin-bottom: 0;
    color: #121212;
}

.parteMedallistas .headerParteM h1,
.tablesMedallistas .parteTable .tableTitle h1 {
    font-family: "Futura-Medium" !important;
    font-size: clamp(36px, 3vw, 40px) !important;
    color: #121212;
}

.parteMedallistas .parteText {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parteMedallistas .parteText i {
    font-size: 32px;
    color: #fdfdfd;
    border-radius: 100px;
    padding: 18px;
}

.parteMedallistas .parteText h1 {
    font-size: clamp(38px, 3vw, 48px);
    font-family: "Futura-Regular";
    margin-bottom: 0;
}

.parteMedallistas .parteText h4 {
    font-family: "Futura-Regular" !important;   
    font-size: 28px !important;
    margin-top: 12px;
    margin-bottom: 0;
}

.parteMedallistas .parteText h1,
.parteMedallistas .parteText h4 {
    text-align: left;
}

.parteTable:nth-child(1) {
    margin-top: 100px;
}

.parteTable {
    margin: 0px;
    padding: 30px;
    width: 100%;
    border-top: 2px solid #55555514;
}

.tableContainer {
    width: 100%;
    position: relative;
}

.tablesMedallistas .parteTable .tableTitle h1 {
    margin: 55px 0;    
    font-family: "Teko-Regular";
    font-size: 60px;
    color: #121212;
}

.tableContainer {
    overflow-x: auto;
}

td img {
    width: 65px;
    border-radius: 8px;
}

.btnViejosContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    transition: 0.3s;
}

#btnViejos {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Futura-Medium";
    font-size: clamp(18px, 3vw, 22px);
    color: #fdfdfd;
    width: fit-content;
    background-color: #1a1a1a;
    padding: 8px 20px;
    padding-top: 12px;
    padding-bottom: 10px;
    border: 2px solid #0a0a0a;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

#btnViejos:hover {
    background-color: #2d2d2d;
}

.headerParteM {
    display: flex;
    justify-content: center;
    align-items: center;
}

.parteMedallistas .headerParteM h1 {
    width: fit-content;
    padding: 0;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 18px;
}

.parteMedallistas:nth-child(1) .headerParteM h1 {
    color: #071e62;
}

.parteMedallistas:nth-child(2) .headerParteM h1 {
    color: #b53f45;
}

.parteMedallistas:nth-child(3) .headerParteM h1 {
    color: #003ca6;
}

.logoUNContainer {
    width: 120px;
    position: relative;
}

.separador {
    font-weight: 100 !important;
    color: #0000002c;
}

.btnTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    padding: 10px;
    z-index: 999;
    background-color: #1a1a1ac4;
    border-radius: 100px;
    box-shadow: 0 0 20px 0 #fdfdfd92;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btnTop svg {
    stroke: #fdfdfd;
    width: 28px;
    height: 28px;
    margin-bottom: 3px;
}

.btnTop:hover {
    background-color: #000;
}

.partMedal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    margin-right: 30px;
}

.partMedal .txtMedal {
    font-family: "Futura-Regular" !important;
    font-size: 28px !important;
    margin-top: 12px;
}

@media (max-width: 1280px) {
    .btnCarrusel.anterior,
    .btnCarrusel.siguiente {
        box-shadow: none;
    } 

    .btnCarrusel {
        background-color: #1a1a1a;
    }
} 

@media (max-width: 1180px) {
    .btnCarrusel {
        background-color: #0000003c;
    }

    .btnCarrusel:hover {
        background-color: rgb(0 0 0 / 60%);
    }
}

@media (max-width: 900px) {
    .parteMedallistas .parteText {
        width: calc(100%);
        padding: 0 20px;
    }
}

@media (max-width: 835px) {
    .partMedal {
        flex-direction: column-reverse;
    }    
}

@media (max-width: 765px) {
    .parteTable {
        margin: 0px;
        width: calc(100% - 0px);
        box-shadow: none;
        border-radius: 0;
        border-bottom: 2px solid #55555514 !important;
        padding-bottom: 50px;
    }

    .tablesMedallistas .parteTable .tableTitle h1 {
        margin-bottom: 55px;
    }
}

@media (max-width: 695px) {
    .infoMedallista {
        height: 160px;
    }
}

@media (max-width: 620px) {
    .parteMedallistas .headerParteM {
        display: flex;
        flex-direction: column;
    }

    .parteMedallistas .headerParteM h1 {
        padding: 0;
        padding: 0 20px;       
    }

    .parteMedallistas:nth-child(2) .headerParteM h1 {
        margin-top: 40px;
    }

    .parteMedallistas:nth-child(3) .headerParteM h1 {
        margin-top: 30px;
    }
}

@media (max-width: 425px) {
    .imgContainer {
        width: 300px;
    }

    .parteMedallistas .parteText {
        flex-direction: column;
    }

    .infoMedallista {
        height: 300px;
    }  

    .parteInfoText {
        margin-top: 28px;
    }

    .parteMedallistas .parteText h1,
    .parteMedallistas .parteText h4 {
        text-align: center;
    }

    .nombreDeporte {
        margin-top: 10px;
    }

    .btnCarrusel {
        background-color: #121212;
    }

    .btnCarrusel.anterior,
    .btnCarrusel.siguiente {
        box-shadow: none !important;
    }

    .partMedal {
        margin-right: 0;
    }
}