* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-texto: ; 
    --color-fondo: #f7f7f7;
    --color-principal: #a30f2d;
}

body {
    display: flex;
    flex-direction: column;
    background-color: white;
    font-family: poppins;
}


li {
    list-style-position: inside; /* Mantén la viñeta fuera del texto */
}



.espaciador50 {
    display: block;
    content: "";
    height:80px;
}

.contenedor-logo {
    height: 80px;
}

    .logo {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 0;
        margin: 15px auto;
        height: 60px;
    }

.contenedor-miniatura {
    height: 300px;
    display: flex;
    justify-content: center;
    z-index: 0;
}

    .miniatura {
        position: fixed;
        margin: auto;
        height: 350px;
    }

.data {
    padding: 20px 25px;
    display: flex;
    min-height: 465px;
    gap: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-fondo);
    border-radius: 50px 50px 0px 0px;
    z-index: 1;
}

    .nombre {
        width: 100%;
        font-weight: 600;
        font-size: 30px;
        color: #1f1f1f;
        text-align: center;
    }

    .precio {
        border-radius: 50px;
        padding: 0;
        color: white;
        font-size: 30px;
        font-weight: 600;
        width: 100%;
        background-color: var(--color-principal);
        text-align: center;
    }

    .precio-secundario {
        font-size: 25px;
        font-weight: 600;
    }

    .contenedor-precio-secundario {
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .descripcion {
        text-align: justify;
        padding: 0;
        width: 100%;
    }

    .stock {
        display: flex;
        gap: 5px;
        text-align: justify;
        padding: 0;
        width: 100%;
    }

    .stock-sucursales {
        width: 100%;
    }

    /* Botón para escanear QR */
    .btn-escanear {
        z-index: 3;
        width: 1px;
        position: fixed;
        display: flex;
        margin: auto;
        left: 0;
        right: 0;
        bottom: 22px;
        text-decoration: none;
    }

    .contenedor-qr {
        display: flex;
        position: fixed;
        margin: auto;
        justify-content: center;
        align-items: center;
        background-color: var(--color-principal);
        width: 70px;
        height: 70px;
        left: 0;
        right: 0;
        border-radius: 50px;
        bottom: 20px;
        z-index: 3;
    }

        .icono-qr {
            padding: 10px;
            height: 60px;
            z-index: 3;
        }

        .icono-camara {
            z-index: 15;
            opacity: 0.4;
            margin-top: -200px;
            position: relative;
            top: 0;
            width: 75px;
        }

.sombra-pie {
    display: block;
    content: "";
    height: 100px;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent, white);
    z-index: 1;
}

/* Escáner */
.contenedor-escaner {
    padding: 15px;
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, var(--color-principal) 0%, #f7f7f7);
    color: var(--color-principal);
}

#video {
    width: 100%;
    min-height: 260px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 25px;
    z-index: 1;
    background-color: white;
}

div#result {
    visibility: hidden;
}

.logo-escaner {
    width: 250px;
    margin-bottom: 50px;
}

.escanea {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    height: 60px;
    text-align: center;
    border-radius: 0px 0px 25px 25px;
    background-color: white;
    padding-top: 30px;
    margin-top: -30px;
    z-index: 0;
}

/* Animación de carga */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#loading-screen.hidden {
    display: none;
}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0);
    border-top: 5px solid var(--color-principal);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen span {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-principal);
}

/* Estilo para el mensaje de error */
.mensaje-error {
    background-color: #fb2c56;
    color: white;
    font-size: 25px;
    line-height: 100px;
    border-radius: 15px;
    position: absolute;
    padding: 0 15px;
    text-align: center;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.descuento {
    position: fixed;
    background-color: var(--color-principal);
    top: 100px;
    left: 25px;
    padding: 0px 10px;
    border-radius: 50px;
    color: white;
    font-family: poppins;
    font-weight: 600;
    font-size: 20px;
}

/* Botón flotante para escanear QR */
.btn-flotante-qr {
    position: fixed;
    bottom: 90px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-principal);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.btn-flotante-qr img {
    width: 30px;
    height: 30px;
}

/* Espacio extra al final para evitar que el contenido quede detrás de la barra fija */
.espaciador-final {
    height: 80px;
}

/* Estilos adicionales específicos de esta página */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
