@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    background-color: #000;
    color: #4E6E7B;
    font-family: Arial, sans-serif;
}

.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    border-bottom: 1px solid #4E6E7B;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    margin: 0 auto; /* Centra el contenedor horizontalmente */
    width: 90%; /* Ajusta el ancho del contenedor */
    margin-top: 3rem;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}
.scroll-wrapper {
    overflow: auto; /* Habilita el desplazamiento */
    scrollbar-width: none; /* Oculta la barra de desplazamiento en navegadores compatibles */
}

.scroll-wrapper::-webkit-scrollbar {
    display: none; /* Oculta la barra de desplazamiento en navegadores basados en WebKit (Chrome, Safari, etc.) */
}
.nav-categorias .nav-link {
    font-weight: 600;
    font-size: 13px;
    color: #83b4c7;
    position: relative;
    white-space: nowrap;
    transition: 0.3s;
    text-decoration: none;
}

.categorias-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scroll-behavior: smooth;
    border-bottom: 1px solid #4E6E7B;@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
    position: relative;
    font-family: 'Montserrat', sans-serif;
    margin: 0 auto; /* Centra el contenedor horizontalmente */
    width: 90%; /* Ajusta el ancho del contenedor */
    margin-top: 3rem;
    height: 85px; /* Altura fija para el contenedor */

    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-categorias {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}


.nav-categorias .nav-link.active {
    color: #fff;
    font-size: 18px;
}

.categorias-scroll-container::-webkit-scrollbar {
    display: none;
}

.nav-categorias .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: #83b4c7;
    border-radius: 50%;
}

.nav-categorias .nav-link:hover {
    color: #2ca7d8;
}

main{
    width: 100%;
    height: 100vh;
}

main h5{
    margin-top: 32px !important;
    width: 20%;
    color: white;
    text-align: center;
}

main p{
    font-size: 0.8rem;
    color: white;
    width: 20%;
    margin-top: 1rem;
    text-align: justify;
    hyphens: auto;
}


.thumbnail-scroll-wrapper{
    overflow-x: auto;
}

#thumbnail-container {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem;
}

#thumbnail-container img {
    max-width: 100%;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: 10px;
}


/* Estilo para el contenedor de la imagen en el modal */
.modal-body img {
    width: 100%; /* Asegura que la imagen ocupe todo el ancho disponible */
    max-width: 800px; /* Tamaño máximo para mantener consistencia */
    height: 500px; /* Altura fija para todas las imágenes */
    object-fit: contain; /* Ajusta la imagen sin deformarla */
    margin: 0 auto; /* Centra la imagen dentro del modal */
}

/*-- Card Style -- */
.card{
    width: 100%;
    background-color: white;
    border-radius: 2.5rem;
    overflow: hidden; /* Asegura que el contenido respete el borde redondeado */
    background-size: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); /* Sombra para dar profundidad */
}

.card-style {
    width: 200%;
}

/*-- Miniaturas --*/
.miniatura {
    width: 25rem;
    height: 20rem;
    object-fit: cover; /* Asegura que la imagen se ajuste sin deformarse */
    border-radius: 1.25rem;
    margin: 0.5rem;
    transition: transform 0.3s ease;
    border-width: 2px;
    border: 2px solid white;
}
.miniatura:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.miniCards-style {
    display: flex;
    overflow-x: auto;
    flex-wrap: wrap; /* Asegura que las miniaturas se ajusten en varias filas si es necesario */
    scrollbar-width: thin; /* Estilo del scroll en navegadores compatibles */
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.miniCards-style::-webkit-scrollbar {
    display: none;
}

.pag-style .page-link{
    background-color:transparent;
    color: white;
}

.pag-style .page-link:hover{
    background-color: rgb(95, 92, 92) !important;
    color: white;
}

.pag-style .page-item.active .page-link {
    background-color: rgb(95, 92, 92) !important;
    border-color: white !important;
    color: white !important;
}

#description {
    width: 40%; /* Ajusta el ancho al 80% del contenedor padre */
    text-align: justify; /* Justifica el texto para que se vea más uniforme */
}





/* ------ RESPONSIVE ------ */

@media (max-width: 1600px) {

    .miniatura {
        width: 20rem;
        height: 15rem;

    }
    .miniatura:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    .miniCards-style {
        overflow-x: auto;
        display: flex;
        flex-wrap: wrap; /* Asegura que las miniaturas se ajusten en varias filas si es necesario */
        margin-top: 0px !important;
    }
    .scroll-container{
        margin-top: 0px !important;
        overflow-x: auto;
        scroll-behavior: smooth; /* Habilita la animación suave */
        white-space: nowrap; /* Asegura que los elementos estén en una fila */
    }
    p{
        font-size: 0.8rem;
    }
    #description {
        width: 50%; /* Ajusta el ancho al 80% del contenedor padre */
        text-align: justify; /* Justifica el texto para que se vea más uniforme */
    }
    .nav-categorias .nav-link {
        font-size: 12px !important;
    }
    .nav-categorias .nav-link.active {
        font-size: 15px !important;
    }
}


@media (max-width: 768px) {
    #prevButton,
    #nextButton {
        display: none;
    }

    #thumbnail-container img {
        max-width: 85%;
        object-fit: cover;
        scroll-snap-align: center;
        border-radius: 10px;
    }


    main h5{
        width: 100%;
        height: 100%;
        margin-top: 32px !important;
    }
    main p{
        width: 80%;
        height: 100%;
        margin-top: 16px !important;
    }

    .categorias-scroll-container{
        justify-content: start;
    }
    #description {
        font-size: 0.75rem;
        width: 95%; /* Ajusta el ancho al 80% del contenedor padre */
        text-align: justify; /* Justifica el texto para que se vea más uniforme */
        padding: 2rem !important;
    }
}



/* ---- Animación  ----  */
.fade-animation {
    animation: fadeEffect 0.5s ease-in-out; /* Duración y suavidad del fundido */
}

@keyframes fadeEffect {
    from {
        opacity: 0; /* Comienza completamente transparente */
    }
    to {
        opacity: 0.6; /* Termina completamente visible */
    }
}


@keyframes slideIn {
    from {
        transform: translateX(100%); /* Comienza desde la derecha */
        opacity: 0; /* Comienza transparente */
    }
    to {
        transform: translateX(0); /* Llega a su posición original */
        opacity: 1; /* Totalmente visible */
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0); /* Comienza en su posición original */
        opacity: 1; /* Totalmente visible */
    }
    to {
        transform: translateX(-100%); /* Se desliza hacia la izquierda */
        opacity: 0; /* Se desvanece */
    }
}

.slide-in {
    animation: slideIn 0.5s ease-in-out; /* Aplica la animación de entrada */
}

.slide-out {
    animation: slideOut 0.5s ease-in-out; /* Aplica la animación de salida */
}