html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    padding-top: 80px; /* Ajusta este valor según el alto de tu barra */

}

/* --- ESTILO DEL LOGO --- */
.main-logo {
    height: 85px; /* Este es el tamaño reducido que querías */
    width: auto;
    display: block;
}

.logo-link {
    text-decoration: none;
}

.navbar-tosston {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* --- ESTO HACE QUE EL MENÚ SEA FIJO --- */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Para que siempre esté por encima de los botones */
}

.navbar-tosston .container {
        display: flex;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

main[role="main"] {
    margin-top: 10px; /* Suficiente espacio para que no choque con el logo */
    padding: 20px;
}
/* --- ESTRUCTURA DE PANTALLA DIVIDIDA --- */
.contenedor-principal {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Alinea al inicio para que el sticky funcione */
    min-height: 100vh; /* Obliga al contenedor a ser largo */
    margin-bottom: 50px; /* Esto crea un "colchón" antes del footer */

    /* Aumentamos este margen para que baje todo el contenido */
    margin-top: 25px;
    min-height: 100vh;
   
}



.zona-botones {
    flex: 1; /* Ocupa el espacio restante */
}

.zona-ticket {
    flex: 0 0 350px;
    /* Esta zona debe ser tan alta como la de botones para que el ticket 'viva' aquí */
    align-self: stretch;
}

/* EL TICKET FIJO */
/* Ajuste para que el ticket fijo respete la altura del menú */
.ticket-fijo {
    position: sticky;
    top: 110px;
    background: #ffffff; /* Blanco papel */
    padding: 25px 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* Sombra más fuerte para dar relieve */
    border-radius: 4px; /* Menos redondeado, más como papel */
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace; /* Fuente estilo recibo */
    /* El efecto Zig-Zag en la parte de arriba o abajo */
    border-top: 5px dotted #eee;
}

/* --- ESTILOS DE BOTONES (TUS COLORES MODERNOS) --- */
.btn-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    text-align: center;
    padding: 10px;
}

    .btn-menu:active {
        transform: scale(0.92);
        filter: brightness(0.9);
    }

.combo {
    background: linear-gradient(135deg, #FFD93D, #FF8400);
    color: #2d3436; /* Texto oscuro para legibilidad */
    height: 140px;
    border-radius: 16px;
}

.individual {
    height: 95px;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
    border-radius: 12px;
}

.minor {
    height: 70px;
    background: linear-gradient(135deg, #a88a64, #7d6648);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* --- GRIDS --- */
.grid-combos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.grid-individuales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.grid-otros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

/* Estilo de la tabla dentro del ticket */
#tablaTemporal {
    width: 100%;
    border-collapse: collapse;
  
}

    #tablaTemporal th {
        border-bottom: 2px dashed #333; /* Línea punteada de ticket */
        padding-bottom: 10px;
        text-transform: uppercase;
    }

    #tablaTemporal td {
        padding: 8px 0;
        border-bottom: 1px dashed #eee;
        font-size: 0.9rem;
    }
/* Un toque extra: el total resaltado */
.total-box {
    margin-top: 15px;
    padding: 10px 0;
    border-top: 3px double #333; /* Doble línea clásica de total */
    border-bottom: 3px double #333;
    font-size: 1.6rem;
    text-align: center;
    background-color: #fdfdfd;
}

.btn-terminar {
    width: 100%;
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.4);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

    .btn-terminar:hover {
        background: #0873c4;
        transform: translateY(-2px); /* Un ligero salto hacia arriba al tocarlo */
    }
    /* EFECTO AL PRESIONAR (TOUCH) */
    .btn-terminar:active {
        transform: scale(0.95);
        background: #0761a5;
    }
/* Botón Vaciar Lista - Estilo de advertencia */
.btn-limpiar {
    background: none;
    border: 2px solid #ff0000; /* Borde rojo puro */
    color: #ff0000; /* Fuente en color rojo */
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Efecto al pasar el mouse o tocar en la tablet */
    .btn-limpiar:hover {
        background-color: #e74c3c; /* Se rellena de rojo */
        color: white; /* El texto cambia a blanco */
        box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    }

    /* Efecto de presión */
    .btn-limpiar:active {
        transform: scale(0.95);
        background-color: #c0392b; /* Un rojo más oscuro al presionar */
    }   


/* --- NAVBAR --- */
    .navbar-tosston {
        background-color: #fff;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    /* --- ESTILO PARA EL SCROLL DE LA TABLA TEMPORAL --- */
    .tabla-scroll {
        overflow-y: auto; /* Activa el scroll vertical */
        max-height: 400px; /* Altura máxima antes de que aparezca el scroll */
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
        padding-right: 5px; /* Espacio para que no choque el texto con la barra */
    }
        /* Hace que la barra de scroll sea delgada y moderna para la tablet */
        .tabla-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .tabla-scroll::-webkit-scrollbar-thumb {
            background: #d1d1d1;
            border-radius: 10px;
        }

        .tabla-scroll::-webkit-scrollbar-track {
            background: #f9f9f9;
        }
    /* Estilo para los links del menú */
    .nav-links {
        display: flex;
        gap: 20px; /* Espacio entre Ventas y Privacy */
    }

        .nav-links a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            font-size: 1rem;
        }

            .nav-links a:hover {
                color: #0078d4; /* Color de Azure al pasar el mouse */
            }
    /* Si usas la clase 'container' de Bootstrap en la página de Ventas */
    .container.body-content {
        padding-top: 20px;
    }
    /* Esto asegura que el footer siempre esté al final del contenido */
    .footer {
        position: relative; /* Cambia 'fixed' o 'absolute' por 'relative' */
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #dee2e6;
        line-height: 40px; /* Altura del pie de página */
        margin-top: 40px; /* Separación de los últimos botones */
        clear: both; /* Asegura que baje después de las columnas flex */
        padding: 20px 0;
        z-index: 1; /* Para que no flote sobre nada */
    }
    /* Limpia el margen del body que empujaba el footer antes */
    body {
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
    }
    /* Ajuste para que la página siempre sea al menos del alto de la pantalla */
    html {
        min-height: 100%;
    }
    /* 4. Si usas el pie de página estándar de VS, quita el 'fixed' si existe */
    .border-top.footer.text-muted {
        position: relative !important;
    }

/* Modal de cobr */
.modal-tosston {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.campo-cobro {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.campo-cobro input {
        width: 120px;
        text-align: right;
        font-size: 1.1rem;
    }

.btn-aceptar-cobro {
    background: #0984e3;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 10px;
}

.btn-aceptar-cobro:disabled {
        background-color: #636e72 !important;
        cursor: not-allowed;
        box-shadow: none;
    }

.acceso-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de todo */
}

.acceso-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    width: 350px;
}

.btn-entrar {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #0984e3;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

