html,
body {
    height: auto;
    margin: 0;
    overflow-x: auto;
}

.contenedor-video {
    padding-top: 80px;
    z-index: 1;
    justify-content: center;
    text-align: center;
    border-top: 20px solid #ffffff;
}

.site-content {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    align-items: center;
    justify-content: center;
}

.banner {
    width: 90%;
    height: auto;
}

.contenedor-video video {
    height: auto;
    width: 90%;
}

.site-content .carousel {
    height: 100%;
}

.carousel-inner .container {
    font-family: Arial, sans-serif;
    max-width: 90%;
    text-align: center;
}

.container .bolsa {
    display: flex;
    margin: 0;
    padding: 3% 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-height: 60vh;
}

table {
    margin-top: 1em;
    border-collapse: collapse;
    width: 100%;
}

.detalles .titulo2 {
    font-weight: bold;
    color: #ff0000;
    text-align: right;
    font-size: 0.9em;
}
.detalles .titulo {
    font-weight: bold;
    color: #065da6;
    text-align: right;
    font-size: 0.9em;
}
table .descripcion {
    font-weight: bold;
    color: #020202;
    text-align: left;
    font-size: 0.9em;
}

th,
td {
    border: 1px solid rgb(255, 255, 255);
    text-align: left;
    padding: 0 2px;

}

.detalles .bordefila {
    border-bottom: 4px solid #065da6;
}
.detalles .bordefila2 {
    border-bottom: 4px solid #ff0000;
}

table #bgfila {
    background-color: #d8ecfc;
}

th {
    background-color: #0e289c;
}

h5 {
    background-color: #065da6;
    color: #ffffff;
    max-width: 100%;
    border-radius: 40px;
    font-size: medium;
}

h6 {
    color: #065da6;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container .row {
    justify-content: center;
    justify-items: center;
    padding: 5px;
}

.ingredientes {
    text-align: justify;
    padding-top: 5px;
}

.carousel-inner .btn {
    background: #065da6;
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
    border: 0;
    padding: 5 10em;
    transition: 0.5s;
}

.carousel-inner .btn:hover {
    background: #ffffff;
    color: #065da6;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    /* Centra verticalmente */
    transform: translateY(-50%);
    /* Desplaza hacia arriba para alinear correctamente */
    height: 10vh;
    /* O el alto que prefieras */
    width: 10vh;
}

.carousel .bi {
    height: auto;
    width: auto;
    font-size: 6rem;
    color: #0e289c;
}


/* DETALLE FRUTAS */
.detalle__ingredientes {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    justify-content: center;
    text-align: center;
    max-width: 100%;
}

.ingredientes,
.declaracion-nutricional {
    width: 100%;
    padding: 3px 5px;
    border-radius: 10px;
}

.ingredientes h3,
.codigo-de-barras h4 {
    margin: 0 0 10px;
    background-color: #065da6;
    color: #ffffff;
    padding: 3px 5px;
    text-align: center;
    border-radius: 20px;
}

.codigo-de-barras,
.tabla-nutricional {
    margin-bottom: 20px;
}

.barra {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.barra span {
    display: block;
    margin-bottom: 5px;
    color: #065da6;
    font-weight: bold;
    font-style: italic;
}

.codigos {
    padding: 0 auto;
    max-width: 60%;
    height: auto;
}

/* TABLA NUTRICIONAL */
.tabla-nutricional-tabla {
    width: 80%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 10px;
    border: 3px solid #000;
    border-radius: 20px;
    overflow: hidden;
    font-size: small;
}

.tabla-nutricional-tabla th {
    text-align: center;
    border: 3px solid #000;
    padding: 5px;
    background-color: #f2f2f2;
}

.tabla-nutricional-tabla .bordefila td {
    border-top: 3px solid #000;
}
.textBold {
    font-weight: bold;
}

.tabla-nutricional-tabla td:first-child {
    text-align: left;
}

.tabla-nutricional-tabla td:last-child {
    text-align: right;
}

@media(min-width: 768px) {
    .ingredientes {
        margin: 0 auto;
        width: 30%;
        order: 2;
    }

    .declaracion-nutricional {
        padding: 0 30px;
        width: 70%;
        order: 1;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .codigo-de-barras,
    .tabla-nutricional {
        width: 48%;
    }

    .tabla-nutricional-tabla {
        width: 100%;
    }
}

/* Media query para pantallas más pequeñas, como celulares */
@media (max-width: 1200px) {
    .carousel .bi {
        height: auto;
        width: auto;
        font-size: 3rem;
        color: #0e289c;
    }
}

@media (max-width: 768px) {

    .contenedor-video {
        border-top: 10px solid #ffffff;
        border-right: 15px solid #ffffff;
        border-bottom: 10px solid #ffffff;
        border-left: 15px solid #ffffff;
    }

    table .titulo {
        font-weight: bold;
        color: #065da6;
        text-align: right;
        font-size: 0.6em;
    }

    table .descripcion {
        font-weight: bold;
        color: #020202;
        text-align: left;
        font-size: 0.6em;
    }

    .container img {
        display: flex;
        margin: 0;
        padding: 3% 0;
        justify-content: center;
        align-items: center;
        max-height: 30vh;
    }

    .carousel .bi {
        height: auto;
        width: auto;
        font-size: 3rem;
        color: #0e289c;
    }
}

/* Media query para pantallas aún más pequeñas, como teléfonos móviles */
@media (max-width: 480px) {
    .contenedor-video {
        border-top: 2px solid #ffffff;
        border-right: 1px solid #ffffff;
        border-bottom: 1px solid #ffffff;
        border-left: 1px solid #ffffff;
    }

    .row .codi-decl {
        display: none;
    }
    .mb-4.mt-5 h5,
    .mb-4.mt-4 h5 {
    background: none !important;
    color: #065da6 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

    .carousel .bi {
        display: none;
    }
}
