.grid-container6{
 color: #203c7f;

}

.containera {
    margin-top: 70px;
            background: #ffffff;
            width: 400px;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
            text-align: center;
        }
.imagen-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px; /* Ajusta según sea necesario */
    height: 200px; /* Ajusta según sea necesario */
    
    margin: 0 auto; /* Centrar horizontalmente */
    margin-top: 10px;}

.imagen-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


  .input-group {
            margin-bottom: 15px;
            text-align: left;

        }
        h2{
           color: #203c7f;
        }
        label {
            font-weight: bold;
            color: #203c7f ;
        }
        input[type="text"], input[type="file"] {
            width: 95%;
            padding: 7px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .btn {
            margin-top: 10px;
            background-color: #e65c00;
            color: #fff;
            border: none;
            padding: 10px;
            width: 60%;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

           .btn:hover {
            background-color: #e65c00;
        }
        .hidden {
            display: none;
        }

        .login-container {
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container input {
    width: 90%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    color:#203c7f;
}

.login-container button {
    background: darkblue;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.btn-login {
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 10px;
    background-color: #ef781e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn-login:hover {
    background: darkorange;
}


/* no-disponible.html */
.grid-container6 {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
        
    background-color: #f4f4f4;
}



/* no-disponible.html */
.grid-container {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    background-color: #f4f4f4;
}

.grid-container h1{
    color:#dd7326;
}

.grid-container p{
    color:#203c7f;
}
/* Contenedor principal */
.container-mensaje {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
    max-width: 400px; /* Limita el ancho en pantallas grandes */
}

/* Barra de navegación */
.navbar{
    width: 100%;
    background: #203c7f;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

/* Títulos y párrafos */
.container-mensaje h1 p {
    color: #dd7326;
}

@media (max-width: 1024px) {


    /* index.php */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Asegurar que el body y html ocupen toda la pantalla */
        .index {
            width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
            font-family: Arial, sans-serif;
            text-align: center;
            background-color: #F4F4F4; /* Fondo negro */
            overflow: hidden; /* Evita scroll */
        }

        /* Barra de navegación */
        .navbar {
            width: 100%;
            background: #203c7f;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 75px; /* Altura del navbar */
           
        }

        /* Contenedor del escáner */
        #scanner-container {
            width: 100vw; /* Ocupará todo el ancho */
            height: calc(100vh - 75px); /* Ocupa la altura restante */
            position: relative; /* Mantiene el flujo de la página */
            left: 0;
            background: black;
            overflow: hidden;
            border-radius: 5px;
        }

        /* Contenedor de Selección de Sucursal */
.sucursal-container {
   background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
    max-width: 400px;

    /* Centrado absoluto */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
}

.sucursal-container h2 {
    color: #203c7f;
    margin-bottom: 15px;
}

.sucursal-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sucursal-container label {
    font-weight: bold;
    margin-bottom: 8px;
}

.sucursal-container select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    text-align: center;
}

/* Botón de Confirmar */
.sucursal-container boton {
    background-color: #203c7f;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.sucursal-container boton:hover {
    background: #1a2e63;
}

/* Mensaje de Sucursal Seleccionada */
.sucursal-container p {
    font-size: 16px;
    margin-top: 10px;
    color: #203c7f;
    font-weight: bold;
}


        /* Texto de resultado */
        #result {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            z-index: 10; /* Asegura que el mensaje esté en la parte superior */
            opacity: 0.8;
            top: 150px;
             font-size: 18px;
            color: white;
            font-weight: bold;
        }

      
       

        /* Imagen del escáner */
        .index p img {
            width: 80vw; /* Ajustar para que ocupe el ancho */
            max-width: 400px; /* Limitar tamaño máximo */
            height: auto;
            pointer-events: none;
            user-drag: none;
            -webkit-user-drag: none;
            -webkit-touch-callout: none; /* Evita menú contextual en iOS */
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
             opacity: 0.3;
            }

        /*  */

  



         /* Mensaje de error */
        #error-message {
            position: fixed;
            top: 20%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(255, 0, 0, 0.8);
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            font-size: 18px;
            display: none;
            z-index: 1000;
        }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* 🚫 Previene scroll global */
}

.mostrar-resultado {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: white;
    color: #203c7f;
    font-family: 'Barlow', sans-serif;
}

.navbar {
    height: 75px;
    width: 100%;
    background: #203c7f;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* 👉 Contenedor que ocupa todo el espacio restante SIN scroll */
.container-resultado {
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Distribuye todo proporcionalmente */
    padding: 10px;
    box-sizing: border-box;
    max-height: calc(100vh - 75px); /* Ajusta a lo que queda del alto total */
    overflow: hidden;
}

.container-resultado h1 {
    color: #203c7f;
    margin-top: 10px;
    text-align: center;
    font-size: 28px;
}

.container-resultado p {
    font-size: 18px;
    color: #ef781e;
    font-weight: bold;
    margin: 0;
}

/* Imagen del producto cargada desde cargar_imagen.php */
.container-resultado img {
    max-height: 32vh; /* Imagen no ocupará más del 32% de la pantalla */
    width: auto;
    object-fit: contain;
    margin-top: 20x;

    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.datos-producto {
    display: grid;
    grid-template-columns: 150px auto;
    gap: 5px 15px;
    align-items: center;
    text-align: left;
    max-width: 90%;
    margin:0;
}

.datos-producto strong {
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.datos-producto p {
    margin: 0;
    word-wrap: break-word;
}


.precio p {
    font-size: 30px;
    margin: 0;
}

.boton {
    display: inline-block;
   margin-top: 10px;
    padding: 10px 20px;
    background-color: #203c7f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}




