/* GENERAL */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

/* ================== PANTALLA SELECCIÓN DE MESA ================== */

.body-select {
    background: #050816;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-select {
    position: relative;
    height: 260px;
    background-image: url('https://images.pexels.com/photos/958545/pexels-photo-958545.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,120,80,0.65), transparent 55%),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.25), transparent 55%);
}

.hero-content {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-content h1 {
    margin: 0 0 4px 0;
    font-size: 30px;
}

.hero-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.select-mesa-wrapper {
    padding: 22px 18px 14px 18px;
    background: #050816;
    flex: 1;
}

.select-mesa-wrapper h2 {
    margin: 0;
    font-size: 22px;
}

.select-subtext {
    margin-top: 4px;
    font-size: 13px;
    color: #a5a5b8;
}

.mesas-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.mesa-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.mesa-chip:hover {
    background: #ff6a3c;
    border-color: #ff6a3c;
}

.footer-min {
    padding: 10px 16px 14px 16px;
    text-align: center;
    font-size: 11px;
    color: #7a7a90;
}

/* ================== PANTALLA DE MENÚ ================== */

.body-menu {
    background: #050816;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* HERO DEL MENÚ */
.menu-hero {
    position: relative;
    overflow: hidden;
}

.menu-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/1639563/pexels-photo-1639563.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.7);
    transform: scale(1.05);
}

.menu-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,8,22,0.2) 0%, #050816 90%);
}

.menu-hero-content {
    position: relative;
    padding: 22px 18px 26px 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    color: #fff;
}

.menu-hero-text h1 {
    margin: 4px 0 6px 0;
    font-size: 22px;
}

.menu-hero-text p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    max-width: 260px;
}

.badge-soft {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 11px;
}

.menu-hero-thumb {
    width: 90px;
    height: 90px;
    border-radius: 26px;
    background-image: url('https://images.pexels.com/photos/4109131/pexels-photo-4109131.jpeg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* CATEGORÍAS */
.cat-section {
    background: #050816;
    padding-top: 4px;
}

.cat-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 14px 10px 14px;
}

.cat-scroll::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    border: none;
    background: rgba(255,255,255,0.08);
    color: #f7f7ff;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.cat-pill.active,
.cat-pill:hover {
    background: #ff6a3c;
    color: #fff;
}

/* CONTENIDO PRINCIPAL */
.menu-main {
    padding: 6px 14px 10px 14px;
}

/* GRID DE PRODUCTOS */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

/* CARD DEL PRODUCTO */
.prod-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 260px;
    background: #111827;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.prod-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    transform: scale(1.03);
}

.prod-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,8,22,0.95) 5%, rgba(5,8,22,0.4) 45%, transparent 80%);
}

.prod-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 14px 16px 14px;
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prod-info h3 {
    margin: 0;
    font-size: 15px;
}

.prod-desc {
    margin: 0;
    font-size: 12px;
    color: #d1d5db;
    max-height: 34px;
    overflow: hidden;
}

.prod-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.prod-price {
    font-size: 16px;
    font-weight: 600;
    color: #ffb347;
}

.btn-add {
    border: none;
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6a3c, #ff9a3c);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* CARRITO FIJO ABAJO */
.carrito-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(15,23,42,0.98);
    border-radius: 999px;
    padding: 8px 12px 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: #e5e7eb;
    z-index: 50;
}

.carrito-info {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.carrito-total {
    font-size: 12px;
    color: #f97316;
}

.carrito-btn {
    border: none;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #04101f;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .menu-hero-content {
        align-items: flex-start;
    }

    .menu-hero-thumb {
        display: none;
    }
}
/* LOGIN DE MESAS */

.login-mesa-wrapper {
    padding: 18px;
    background: #050816;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: #0b1120;
    border-radius: 24px;
    padding: 20px 18px 22px 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.75);
    color: #e5e7eb;
}

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

.login-subtext {
    margin: 4px 0 12px 0;
    font-size: 12px;
    color: #9ca3af;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-card label {
    font-size: 12px;
    color: #d1d5db;
}

.login-card input {
    margin-top: 2px;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
}

.login-card input:focus {
    border-color: #4ade80;
}

.login-btn {
    margin-top: 10px;
    padding: 10px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #04101f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.login-error {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #f97373;
}

.login-hint {
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
}
