/* ESTILO FINAL - MODO OSCURO + LAYOUT POS RESTAURADO */
:root {
    --bg-body: #0f172a;       /* Azul noche profundo */
    --bg-card: #1e293b;       /* Tarjetas oscuras */
    --bg-input: #334155;      /* Inputs gris azulado */
    
    --text-main: #f1f5f9;     /* Blanco brillante */
    --text-muted: #94a3b8;    /* Gris suave */
    
    --accent: #38bdf8;        /* Celeste Neón */
    --accent-hover: #0284c7;
    --success: #4ade80;       /* Verde Neón (LED) */
    --danger: #f87171;        /* Rojo suave */
    --warning: #fbbf24;       /* Amarillo */
    
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* --- LAYOUT DE 2 COLUMNAS (Vital para el POS) --- */
.grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr; /* Productos ancho, Ticket más angosto */
    gap: 20px;
}
@media (max-width: 768px) { .grid { grid-template-columns: 1fr; } }

/* --- TARJETAS --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- TIPOGRAFÍA --- */
h1, h2, h3 { color: var(--text-main); margin-bottom: 15px; font-weight: 600; }
h1 { text-align: center; font-size: 2rem; border-bottom: 2px solid var(--accent); padding-bottom: 10px; display: inline-block; width: 100%; }

/* --- BOTONES --- */
.btn, button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    color: #0f172a; /* Texto oscuro para contraste */
}
.btn:hover, button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: scale(0.98); }

.btn-info { background: var(--accent); color: #0f172a; }
.btn-success { background: var(--success); color: #0f172a; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: #0f172a; }
.btn { background: var(--bg-input); color: var(--text-main); }

/* --- INPUTS --- */
input, select {
    width: 100%; padding: 12px;
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white; font-size: 1rem;
    margin-bottom: 10px;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3); }

/* --- ESTILO LED (Restaurado) --- */
.total-venta {
    background: #000;
    color: var(--success);
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: bold;
    text-align: right;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #333;
    text-shadow: 0 0 10px var(--success);
    margin: 15px 0;
}

/* --- PRODUCTOS (Grid visual) --- */
.producto-card {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.03);
    padding: 10px; border-radius: 8px; margin-bottom: 10px;
    border-left: 4px solid var(--accent);
}
.producto-imagen {
    width: 60px; height: 60px; object-fit: cover; border-radius: 6px; background: #000;
}

/* --- MENÚ DASHBOARD (14 Botones) --- */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: 30px; }
.nav-card {
    background: var(--bg-card); padding: 25px; text-align: center;
    border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s; text-decoration: none; color: var(--text-main);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.nav-card h3 { font-size: 2.5rem; margin: 0; }
.nav-card p { font-size: 1.1rem; font-weight: 600; margin: 0; }
.nav-card:hover { background: var(--bg-input); border-color: var(--accent); transform: translateY(-5px); }

/* --- ESTADÍSTICAS --- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.tarjeta { background: var(--bg-card); padding: 20px; border-radius: var(--radius); text-align: center; border-top: 4px solid var(--accent); }
.tarjeta p { font-size: 2rem; font-weight: bold; margin: 10px 0 0; }

/* --- MODALES --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }
.modal-content { background: var(--bg-card); margin: 10% auto; padding: 30px; width: 90%; max-width: 500px; border-radius: var(--radius); border: 1px solid var(--accent); }
.close { float: right; font-size: 1.5rem; cursor: pointer; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }