:root {
    --primary: #2563eb;
    --background: #f3f6fb;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #dce3ec;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

header {
    padding: 30px 20px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 14px;
    margin-bottom: 24px;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    margin-bottom: 0;
}

section {
    background: var(--surface);
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

h2 {
    font-size: 20px;
    margin: 0 0 20px;
}

label {
    display: block;
    font-weight: bold;
    margin: 15px 0 6px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

#catalogo, #carrito {
    color: var(--muted);
}

#datosRetiro, #datosDespacho {
    margin-top: 12px;
}

[hidden] {
    display: none !important;
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 24px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header {
        padding: 24px 14px;
    }

    header h1 {
        font-size: 24px;
    }

    section {
        padding: 18px;
    }
}

/* Catalogo compacto Videla POS */
#catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.producto-card {
    position: relative;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
.producto-card h3 {
    font-size: 15px;
    margin: 0 0 8px;
}
.producto-card p {
    margin: 5px 0;
    font-size: 13px;
}
.producto-card .producto-agregar {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    margin-top: 10px;
}
#buscarProducto {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}
