:root {
    --amarillo-logo: #FFD700;
    --rojo-logo: #DC143C;
    --marron-logo: #8B4513;
    --naranja-logo: #FF8C00;
    --crema: #FFF8DC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--crema);
    background-image: radial-gradient(circle at center, #fff 0%, var(--crema) 100%);
}

.navbar {
    background: linear-gradient(135deg, var(--marron-logo) 0%, #5D3A1A 100%);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border-bottom: 4px solid var(--amarillo-logo);
}

.navbar h1 {
    color: var(--amarillo-logo);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.navbar h1::before {
       font-size: 2.5rem;
   
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    background: var(--rojo-logo);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid var(--amarillo-logo);
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-links a:hover {
    background: var(--amarillo-logo);
    color: var(--marron-logo);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 3px solid var(--amarillo-logo);
}

.btn {
    background: var(--rojo-logo);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--naranja-logo);
    transform: scale(1.05);
}

.btn-success {
    background: #28a745;
}

.btn-warning {
    background: var(--amarillo-logo);
    color: var(--marron-logo);
}

.btn-large {
    font-size: 1.3rem;
    padding: 20px 40px;
}

.pedido-card {
    background: linear-gradient(135deg, #fff 0%, #fff5e6 100%);
    border: 3px solid var(--naranja-logo);
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pedido-header {
    background: var(--amarillo-logo);
    color: var(--marron-logo);
    padding: 10px;
    margin: -15px -15px 10px -15px;
    border-radius: 12px 12px 0 0;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.pedido-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pedido-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 20px;
    align-items: start;
}

.categoria-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.categoria-tab {
    border: 2px solid var(--amarillo-logo);
    background: #fff;
    color: var(--marron-logo);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
}

.categoria-tab.active {
    background: var(--rojo-logo);
    color: #fff;
}

.producto-check {
    transform: scale(1.3);
    margin-right: 8px;
}

.qty-control {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--marron-logo);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}

.qty-input {
    width: 70px;
    text-align: center;
    font-size: 1.1rem;
    padding: 8px;
    border: 2px solid var(--amarillo-logo);
    border-radius: 8px;
}

.cesta-resumen {
    position: sticky;
    top: 10px;
    background: #fff7eb;
    border: 3px solid var(--amarillo-logo);
    border-radius: 12px;
    padding: 16px;
}

.cesta-resumen h4 {
    color: var(--marron-logo);
    margin-bottom: 10px;
}

.cesta-resumen ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.cesta-vacia {
    color: #777;
    font-style: italic;
}

@media (max-width: 900px) {
    .pedido-layout {
        grid-template-columns: 1fr;
    }
}

/* Pantalla de clientes específica */
.pantalla-clientes {
    height: 100vh;
    margin: 0;
    background: var(--marron-logo);
}

.columnas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: calc(100vh - 100px);
    padding: 20px;
}

.columna {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    overflow-y: auto;
}

.columna h2 {
    color: var(--amarillo-logo);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-bottom: 4px solid var(--rojo-logo);
    padding-bottom: 10px;
}

.pedido-display {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 15px 0;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--marron-logo);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    animation: aparecer 0.5s ease-out;
}

.pedido-listo {
    background: var(--amarillo-logo);
    color: var(--rojo-logo);
    transform: scale(1.05);
    animation: pulse 2s infinite;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
}

/* Checkboxes de cocina */
.item-cocina {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s;
}

.item-cocina.preparado {
    background: #90EE90;
    text-decoration: line-through;
}

.item-cocina input[type="checkbox"] {
    width: 25px;
    height: 25px;
    margin-right: 15px;
    cursor: pointer;
}

.total-caja {
    font-size: 2rem;
    color: var(--rojo-logo);
    font-weight: bold;
    text-align: right;
    margin: 20px 0;
}

.cambio-calculo {
    background: var(--amarillo-logo);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--marron-logo);
}
.user-pill {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid var(--amarillo-logo);
    color: var(--amarillo-logo);
    border-radius: 20px;
    padding: 8px 14px;
    font-weight: bold;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    border: 4px solid var(--amarillo-logo);
    background: linear-gradient(180deg, #ffffff 0%, #fff7eb 100%);
}

.login-title {
    color: var(--rojo-logo);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--marron-logo);
    margin-bottom: 16px;
}

.workspace-chip {
    display: inline-block;
    margin: 8px 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    background: var(--amarillo-logo);
    color: var(--marron-logo);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    font-size: 1.05rem;
}

.login-help {
    margin-top: 16px;
    color: #666;
    font-size: 0.95rem;
}

.login-error {
    background: #ffe8e8;
    color: #a22;
    border: 2px solid #f5b7b7;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    font-weight: 700;
}

/* Cocina */
.cocina-container {
    padding-bottom: 24px;
}

.cocina-title {
    color: var(--rojo-logo);
    margin-bottom: 20px;
}

.cocina-pedido-card {
    border-left: 8px solid var(--naranja-logo);
}

.cocina-pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.cocina-pedido-title {
    color: var(--marron-logo);
    font-size: 1.5rem;
}

.cocina-pedido-hora {
    background: var(--amarillo-logo);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.cocina-items-wrap {
    margin: 20px 0;
}

.cocina-items-header {
    display: grid;
    grid-template-columns: 48px 90px 70px minmax(0, 1fr);
    gap: 10px;
    padding: 0 10px 8px;
    font-weight: bold;
    color: var(--marron-logo);
}

.cocina-item-form {
    margin: 6px 0;
}

.cocina-item-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.item-cocina {
    display: grid;
    grid-template-columns: 36px 90px 70px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 2px solid #f0d18f;
    border-radius: 12px;
    background: #fffaf0;
    transition: all 0.2s ease;
}

.cocina-item-btn:hover .item-cocina {
    border-color: var(--naranja-logo);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.item-cocina.preparado {
    background: #eefbea;
    border-color: #73c279;
}

.cocina-fet-indicator {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.cocina-fet-indicator.is-done {
    filter: saturate(1.05);
}

.cocina-cantidad {
    font-size: 1.1rem;
    font-weight: 700;
}

.cocina-product-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.cocina-no-img {
    color: #999;
    font-size: 0.9rem;
}

.cocina-product-name {
    font-size: 1.1rem;
}

.cocina-status-ok {
    color: #1f8f2f;
    font-weight: bold;
}

.cocina-warning-pending {
    background: #ffe6e6;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: var(--rojo-logo);
    font-weight: bold;
}
