/* Restaurante Menu Pro — Frontend Styles v1.0.2
   Basado 1:1 en el HTML de referencia D'Los Compadres */

.rmp-wrapper {
    --rmp-vino:      #990000;
    --rmp-vino-dark: #7a0000;
    --rmp-vino-light:#fff0f0;
    --rmp-gray:      #f8f9fa;
    --rmp-text:      #1a1a1b;
    --rmp-muted:     #59667a;
    --rmp-radius:    20px;
    --rmp-shadow:    0 8px 25px rgba(0,0,0,0.05);
}

/* ── WRAPPER ── */
.rmp-wrapper * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.rmp-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--rmp-text);
    background: var(--rmp-gray);
    overflow-x: hidden;
}

/* ── ESCRITORIO ── */
@media (min-width: 1024px) {
    .rmp-wrapper { grid-template-columns: 1fr 400px; gap: 20px; padding: 20px; align-items: start; }
    .rmp-main-content { background: #fff; border-radius: var(--rmp-radius); box-shadow: var(--rmp-shadow); overflow: hidden; }
    #rmp-panel {
        position: sticky !important;
        top: 20px !important;
        max-height: calc(100vh - 40px) !important;
        height: calc(100vh - 40px) !important;
        transform: none !important;
        border-radius: var(--rmp-radius) !important;
        display: flex !important;
        width: 100% !important;
        box-shadow: var(--rmp-shadow);
        border: 1px solid #eee;
        align-self: start !important;
    }
    #rmp-fab, #rmp-overlay { display: none !important; }
}

.rmp-main-content { overflow-x: hidden; width: 100%; }

/* ── BOTONES CIRCULARES ── */
.rmp-btn-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: var(--rmp-vino);
    color: #fff;
    border: none;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(153,0,0,0.15);
    transition: transform 0.1s;
}
.rmp-btn-white { background: #fff !important; color: var(--rmp-vino) !important; border: 1px solid #eee !important; box-shadow: none !important; }
.rmp-btn-circle:active { transform: scale(0.9); }
.rmp-btn-circle i { font-size: 12px; }

/* ── HEADER ── */
.rmp-header { padding: 35px 20px; text-align: center; background: #fff; }
.rmp-header .rmp-logo,
.rmp-wrapper .rmp-logo,
img.rmp-logo {
    display: block !important;
    margin: 0 auto 8px auto !important;
    max-height: 80px !important;
    max-width: 240px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}
.rmp-restaurant-name { color: var(--rmp-vino); margin: 0; font-size: 30px; font-weight: 800; }
.rmp-tagline { color: var(--rmp-muted); margin: 4px 0 8px; font-weight: 600; font-size: 14px; }
.rmp-badge-pro   { background: var(--rmp-vino); color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.rmp-badge-basic { background: #2271b1; color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; }

/* ── NAVEGACIÓN ── */
.rmp-nav-container { position: sticky; top: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; padding: 4px 10px; }
.rmp-nav-tabs { display: flex; overflow-x: auto; padding: 10px 5px; gap: 8px; scrollbar-width: none; flex: 1; }
.rmp-nav-tabs::-webkit-scrollbar { display: none; }
.rmp-nav-item { padding: 8px 16px; background: var(--rmp-gray); border-radius: 40px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--rmp-muted); cursor: pointer; border: none; font-family: inherit; }
.rmp-nav-item.active { background: var(--rmp-vino); color: #fff; }
.rmp-btn-nav { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; aspect-ratio: 1/1 !important; border-radius: 50% !important; background: #fff; color: var(--rmp-vino); border: 1px solid #eee; cursor: pointer; flex-shrink: 0; display: inline-flex !important; align-items: center; justify-content: center; font-size: 12px; padding: 0 !important; }

/* ── VARIANTES DE TAMAÑO ── */
.rmp-item-variant { align-items: center; }
.rmp-sizes { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.rmp-size-btn {
    padding: 3px 9px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #f8f9fa;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    color: var(--rmp-muted);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all .15s;
    white-space: nowrap;
    line-height: 1.4;
}
.rmp-size-btn span { font-weight: 600; color: var(--rmp-muted); font-size: 10px; }
.rmp-size-btn.active { border-color: var(--rmp-vino); background: #fff0f0; color: var(--rmp-vino); }
.rmp-size-btn.active span { color: var(--rmp-vino); font-weight: 800; }

/* ── PLATOS ── */
.rmp-section-title { padding: 25px 24px 8px; font-size: 21px; font-weight: 800; }
.rmp-item {
    display: flex; margin: 0 12px 12px; padding: 10px;
    background: #fff; border-radius: var(--rmp-radius);
    box-shadow: var(--rmp-shadow); align-items: center; gap: 8px; border: 1px solid #f1f1f1;
    min-width: 0; overflow: hidden;
}
.rmp-img-box { width: 68px; height: 68px; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: #eee; }
.rmp-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmp-info { flex: 1; min-width: 0; }
.rmp-info strong { display: block; font-size: 13px; color: #000; margin-bottom: 1px; font-family: inherit; }
.rmp-info p { font-size: 10px; color: var(--rmp-muted); margin: 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rmp-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.rmp-price { font-weight: 800; color: var(--rmp-vino); font-size: 14px; margin-bottom: 2px; }
.rmp-qty-ctrl { display: flex; align-items: center; gap: 6px; background: var(--rmp-gray); padding: 3px; border-radius: 50px; }
.rmp-qty-num { font-weight: 800; min-width: 16px; text-align: center; font-size: 13px; }

/* ── PANEL CARRITO ── */
#rmp-panel {
    position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 460px;
    background: #fff; transform: translate3d(110%,0,0); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001; display: flex; flex-direction: column;
}
#rmp-panel.rmp-open { transform: translate3d(0,0,0); }

@media (max-width: 1023px) {
    #rmp-panel { top: auto; bottom: 0; height: 85vh; border-radius: 20px 20px 0 0; transform: translate3d(0,110%,0); box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }
    #rmp-panel.rmp-open { transform: translate3d(0,0,0); }
}

.rmp-panel-header { padding: 18px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.rmp-panel-header span { font-weight: 800; font-size: 17px; }
.rmp-cart-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--rmp-gray); padding-bottom: 100px; }
.rmp-card { background: #fff; border-radius: 16px; padding: 15px; margin-bottom: 12px; box-shadow: var(--rmp-shadow); }
.rmp-card-title { font-weight: 800; margin: 0 0 12px; font-size: 13px; color: var(--rmp-vino); }
.rmp-cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }

/* ── TOTALES ── */
.rmp-total-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.rmp-total-row.rmp-muted { font-weight: 400; font-size: 12px; color: var(--rmp-muted); }
.rmp-total-row.rmp-green { color: #1a5c2e; }
.rmp-total-final { display: flex; justify-content: space-between; font-weight: 800; font-size: 22px; color: var(--rmp-vino); border-top: 2px dashed #eee; padding-top: 10px; margin-top: 8px; }

/* ── FORMULARIO ── */
.rmp-field { margin-bottom: 12px; }
.rmp-field label { display: block; font-weight: 800; font-size: 10px; margin-bottom: 4px; color: var(--rmp-muted); text-transform: uppercase; }
.rmp-field input,
.rmp-field select,
.rmp-field textarea { width: 100%; padding: 10px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 14px; outline: none; font-family: inherit; box-sizing: border-box; }
.rmp-field input:focus,
.rmp-field select:focus,
.rmp-field textarea:focus { border-color: var(--rmp-vino); }

/* ── BOTÓN WHATSAPP ── */
#rmp-send-btn {
    background: var(--rmp-vino) !important;
    color: #fff !important; border: 0; padding: 18px; border-radius: 50px; font-weight: 800;
    margin: 12px 16px 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 10px; font-size: 15px; width: calc(100% - 32px); font-family: inherit;
    box-shadow: 0 8px 15px rgba(153,0,0,0.2); transition: background 0.2s;
}
#rmp-send-btn:active { background: var(--rmp-vino-dark) !important; transform: scale(0.98); }

/* ── FAB MÓVIL ── */
#rmp-fab {
    position: fixed; bottom: calc(15px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    background: var(--rmp-vino); color: #fff; border: 0; border-radius: 50px;
    padding: 15px 22px; display: none; align-items: center; justify-content: space-between;
    font-weight: 800; width: 88%; max-width: 400px; z-index: 1400;
    box-shadow: 0 8px 25px rgba(153,0,0,0.3); cursor: pointer; font-size: 14px; font-family: inherit;
}
#rmp-fab.active { display: flex; }

/* ── OVERLAY ── */
#rmp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; z-index: 2000; backdrop-filter: blur(3px); }

/* ── FOOTER ── */
.rmp-footer { padding: 40px 20px; text-align: center; color: #59667a; font-size: 12px; border-top: 1px solid #f0f0f0; }
.rmp-footer p { margin: 0 0 4px; }
.rmp-powered a { color: var(--rmp-vino); font-weight: 700; text-decoration: none; }