/* ═══════════════════════════════════════════════════════════════════
   Restaurante Web — CSS Mobile-First Profesional
   Ubicar en: themes/default/shop/assets/restaurante/restaurante.css
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --brand:       #e63946;
  --brand-dark:  #c1121f;
  --brand-soft:  #fff1f2;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --bg:          #f8f7f5;
  --white:       #ffffff;
  --border:      #e5e7eb;
  --border-soft: #f3f4f6;
  --success:     #16a34a;
  --warning:     #f59e0b;
  --danger:      #dc2626;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.12);
  --nav-h:       60px;
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family:'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size:15px; line-height:1.5;
  background:var(--bg); color:var(--text);
  padding-top:var(--nav-h);
  -webkit-font-smoothing:antialiased;
  /* NO overflow-x:hidden aquí — rompe position:fixed en iOS Safari */
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
input, select, textarea { font-family:inherit; font-size:16px; /* evita zoom iOS */ }

/* ═══ NAVBAR ═══════════════════════════════════════════════════════ */
.rw-nav {
  position:fixed; top:0; left:0;
  width:100vw; /* 100vw = ancho exacto del viewport, sin depender de right:0 */
  z-index:1000;
  height:var(--nav-h); background:var(--brand);
  display:flex; align-items:center;
  padding:0 12px; gap:8px;
  box-shadow:0 2px 12px rgba(0,0,0,.15);
  box-sizing:border-box;
}

/* Logo — flex-shrink:0 para que NO se encoja */
.rw-nav-logo {
  display:flex; align-items:center; gap:6px;
  color:white; text-decoration:none; flex-shrink:0;
}
.rw-nav-logo img { height:32px; width:auto; border-radius:6px; }
.rw-nav-logo-icon { font-size:26px; line-height:1; }
.rw-nav-logo-text { display:none; } /* solo desktop */

/* Links desktop: hidden en mobile, flex en desktop */
.rw-nav-links { display:none; }

/* Empujar carrito y burger a la derecha */
.rw-nav-spacer { flex:1; }  /* no lo usamos — usamos margin-left:auto en carrito */

/* Carrito — siempre visible, flex-shrink:0 */
.rw-nav-cart {
  margin-left:auto; /* empuja hacia la derecha */
  background:white; color:var(--brand);
  display:flex; align-items:center; gap:5px;
  padding:7px 10px; border-radius:10px;
  font-weight:900; font-size:16px;
  flex-shrink:0; white-space:nowrap;
  border:none; cursor:pointer;
}
.rw-cart-label { display:none; } /* oculto en mobile */
.rw-cart-badge {
  background:var(--brand); color:white;
  border-radius:50%; min-width:18px; height:18px; padding:0 3px;
  font-size:10px; font-weight:900;
  display:flex; align-items:center; justify-content:center;
}

/* Burger — después del carrito */
.rw-nav-burger {
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:8px;
  color:white; font-size:22px; flex-shrink:0;
  border:none; cursor:pointer; background:none;
}
.rw-nav-burger:active { background:rgba(255,255,255,.2); }

/* Menú mobile desplegable — FUERA del nav, posición fija */
.rw-nav-mobile-menu {
  display:none;
  position:fixed; top:var(--nav-h); left:0; right:0; z-index:999;
  background:var(--brand-dark);
  flex-direction:column; padding:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.rw-nav-mobile-menu.open { display:flex; }
.rw-nav-link {
  padding:12px 16px; color:rgba(255,255,255,.9);
  font-weight:700; font-size:14px; border-radius:8px;
  display:block;
}
.rw-nav-link:active { background:rgba(255,255,255,.15); }

/* ── Desktop ≥768px ── */
@media (min-width:768px) {
  :root { --nav-h:64px; }
  .rw-nav { padding:0 5%; gap:16px; }
  /* Logo con texto */
  .rw-nav-logo img { height:40px; }
  .rw-nav-logo-icon { display:none; }
  .rw-nav-logo-text {
    display:inline;
    font-family:'Bebas Neue', sans-serif;
    font-size:20px; letter-spacing:.8px;
    white-space:nowrap;
  }
  /* Links en el nav, entre logo y carrito */
  .rw-nav-links {
    display:flex; flex-direction:row; align-items:center;
    gap:4px; margin-left:auto;
  }
  .rw-nav-link { padding:7px 12px; font-size:13px; }
  .rw-nav-link:hover { background:rgba(255,255,255,.15); }
  /* Carrito: sin margin-left:auto (lo tiene el nav-links) */
  .rw-nav-cart {
    margin-left:0;
    padding:8px 14px; font-size:14px;
  }
  .rw-cart-label { display:inline; font-size:14px; font-weight:800; }
  /* Badge ligeramente más grande */
  .rw-cart-badge { min-width:20px; height:20px; font-size:11px; }
  /* Ocultar burger y menú mobile */
  .rw-nav-burger { display:none; }
  .rw-nav-mobile-menu { display:none !important; }
}

/* ═══ TOAST ════════════════════════════════════════════════════════ */
#rw-toast {
  position:fixed; left:50%; bottom:88px;
  transform:translateX(-50%) translateY(80px);
  background:#1a1a1a; color:white;
  padding:12px 20px; border-radius:10px;
  font-weight:700; font-size:14px;
  z-index:9999; box-shadow:0 8px 24px rgba(0,0,0,.3);
  transition:transform .3s;
  pointer-events:none;
  max-width:calc(100% - 32px);
  white-space:nowrap;
}
#rw-toast.show { transform:translateX(-50%) translateY(0); }
#rw-toast.success { background:var(--success); }
#rw-toast.error { background:var(--danger); }
@media (min-width:768px) { #rw-toast { bottom:24px; } }

/* ═══ MODAL TIPO PEDIDO (inicial) ══════════════════════════════════ */

.rw-tipo-modal {
  position:fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  z-index:2000;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(6px);
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  padding:16px;
  box-sizing:border-box;
  overflow-y:auto;
}
.rw-tipo-box {
  background:white;
  border-radius:20px;
  width:100%;
  max-width:420px;
  /* En mobile: nunca mayor al viewport menos el padding del overlay */
  max-height:calc(var(--vh, 1vh) * 100 - 32px);
  overflow-y:auto;
  box-shadow:0 24px 64px rgba(0,0,0,.35);
  animation:rwPopIn .3s cubic-bezier(.34,1.4,.64,1);
  /* Importante: que no desborde horizontalmente */
  box-sizing:border-box;
  flex-shrink:0;
}
@keyframes rwPopIn {
  from { opacity:0; transform:scale(.88) translateY(16px); }
  to   { opacity:1; transform:scale(1)   translateY(0); }
}
/* Cabecera */
.rw-tipo-box-header { padding:22px 20px 0; text-align:center; }
.rw-tipo-box h2 {
  font-family:'Bebas Neue', sans-serif;
  font-size:22px; letter-spacing:.5px;
  color:var(--text); margin-bottom:4px; padding:18px 16px 0;
}
.rw-tipo-box > p {
  color:var(--text-muted); font-size:12px; line-height:1.4;
  padding:0 16px; margin-bottom:0;
}
/* Cards delivery/recojo */
.rw-tipo-opts {
  display:grid; grid-template-columns:1fr 1fr;
  gap:8px; padding:12px 16px;
}
.rw-tipo-opt {
  border:2px solid var(--border); border-radius:12px;
  padding:14px 8px; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:5px;
  background:white; transition:all .15s;
  -webkit-tap-highlight-color:transparent;
  min-width:0; overflow:hidden;
}
.rw-tipo-opt.disabled { opacity:.4; cursor:not-allowed; }
.rw-tipo-opt:not(.disabled):active,
.rw-tipo-opt.selected { border-color:var(--brand); background:var(--brand-soft); }
.rw-tipo-opt-icon { font-size:28px; line-height:1; }
.rw-tipo-opt-label { font-weight:800; font-size:13px; color:var(--text); text-align:center; line-height:1.2; }
.rw-tipo-opt-sub { font-size:10px; color:var(--text-muted); font-weight:600; text-align:center; line-height:1.2; }
/* Selector de local */
.rw-local-select { padding:0 16px; margin-bottom:4px; }
.rw-local-select label {
  display:block; font-weight:800; font-size:12px;
  text-transform:uppercase; letter-spacing:.4px;
  color:var(--text-muted); margin-bottom:8px;
}
.rw-local-select select,
.rw-local-select input[type="text"] {
  display:block; width:100%;
  padding:12px 14px; border:2px solid var(--border);
  border-radius:10px; font-size:15px; font-weight:700;
  background:white; color:var(--text);
  outline:none; appearance:none; font-family:inherit;
}
.rw-local-select select:focus { border-color:var(--brand); }
/* Botón */
.rw-tipo-btn {
  display:block; width:calc(100% - 32px);
  margin:8px 16px 18px; padding:14px;
  background:var(--brand); color:white; border:none; border-radius:12px;
  font-family:inherit; font-weight:900; font-size:15px;
  cursor:pointer; transition:all .15s;
  -webkit-tap-highlight-color:transparent;
}
.rw-tipo-btn:not(:disabled):active { background:var(--brand-dark); transform:scale(.98); }
.rw-tipo-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ═══ HERO SLIDER ══════════════════════════════════════════════════ */
.rw-hero {
  position:relative; overflow:hidden;
  background:#111;
  width:100%;
}
.rw-slides { display:flex; transition:transform .5s cubic-bezier(.4,0,.2,1); }
.rw-slide {
  min-width:100%;
  width:100%;
  position:relative;
  max-height:500px;
  background:#111;
  overflow:hidden;
}
.rw-slide picture {
  display:block;
  width:100%;
  height:100%;
}
.rw-slide img {
  width:100%;          /* ocupa todo el ancho del contenedor */
  height:auto;         /* altura proporcional al ancho */
  max-height:500px;    /* nunca pasa de 500px */
  display:block;
  margin:0 auto;
}
.rw-slide-caption {
  position:absolute; inset:0;
  background:linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 70%, transparent 100%);
  display:flex; flex-direction:column; justify-content:center;
  padding:24px 20px; max-width:90%;
}
.rw-slide-caption h2 {
  font-family:'Bebas Neue', sans-serif;
  font-size:clamp(28px, 7vw, 56px);
  color:white; line-height:1; margin-bottom:8px;
}
.rw-slide-caption p { font-size:13px; color:rgba(255,255,255,.9); margin-bottom:14px; }
.rw-slide-btn {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--brand); color:white;
  padding:10px 20px; border-radius:50px;
  font-weight:800; font-size:13px;
  width:fit-content;
}
.rw-hero-nav {
  position:absolute; bottom:12px; left:50%;
  transform:translateX(-50%);
  display:flex; gap:6px;
}
.rw-dot { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.4); }
.rw-dot.active { background:white; width:22px; border-radius:4px; }
.rw-hero-prev, .rw-hero-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.35); color:white;
  width:36px; height:36px; border-radius:50%;
  font-size:18px; display:flex; align-items:center; justify-content:center;
}
.rw-hero-prev { left:10px; } .rw-hero-next { right:10px; }

@media (min-width:768px) {
  .rw-slide          { max-height:500px; }
  .rw-slide img      { max-height:500px; }
  .rw-slide-caption  { padding:5% 8%; max-width:600px; }
  .rw-slide-caption p { font-size:16px; margin-bottom:22px; }
  .rw-slide-btn      { padding:13px 28px; font-size:15px; }
  .rw-hero-prev, .rw-hero-next { width:46px; height:46px; font-size:20px; }
  .rw-hero-prev { left:20px; } .rw-hero-next { right:20px; }
}

/* ═══ CATEGORÍAS ═══════════════════════════════════════════════════ */
.rw-cats {
  padding:18px 0;
  background:white; border-bottom:1px solid var(--border-soft);
  position:sticky; top:var(--nav-h); z-index:50;
}
.rw-cats-scroll {
  display:flex; gap:14px; overflow-x:auto;
  padding:0 16px;
  scrollbar-width:none;
  justify-content:center;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  user-select:none;
  -webkit-user-select:none;
}
.rw-cats-scroll::-webkit-scrollbar { display:none; }
/* Cuando hay drag activo */
.rw-cats-scroll.is-dragging { cursor:grabbing; scroll-behavior:auto; }

/* ── Wrapper para flechas laterales ───────────────────────────────── */
.rw-cats-wrap {
  position:relative;
  max-width:1200px;
  margin:0 auto;
}

/* ── Flechas circulares grandes ───────────────────────────────────── */
.rw-cats-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px; height:48px;
  border-radius:50%;
  background:white;
  border:2px solid var(--brand);
  color:var(--brand);
  font-size:32px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  z-index:10;
  box-shadow:0 4px 14px rgba(0,0,0,.18), 0 0 0 4px rgba(255,255,255,.6);
  transition:all .18s ease;
  -webkit-tap-highlight-color:transparent;
  padding-bottom:4px; /* centrar el chevron óptico */
}
.rw-cats-arrow:hover {
  background:var(--brand);
  color:white;
  transform:translateY(-50%) scale(1.08);
  box-shadow:0 6px 20px rgba(230,57,70,.4);
}
.rw-cats-arrow:active { transform:translateY(-50%) scale(.95); }
.rw-cats-arrow-left  { left:6px; }
.rw-cats-arrow-right { right:6px; }
/* Cuando no hay overflow o estás al borde, ocultar */
.rw-cats-arrow.hidden { opacity:0; pointer-events:none; transform:translateY(-50%) scale(.8); }

/* Mobile (<768px): ocultar flechas, ya hay touch */
@media (max-width:767px) {
  .rw-cats-arrow { display:none; }
}
.rw-cat-pill {
  flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:6px;
  cursor:pointer;
}
.rw-cat-icon {
  width:64px; height:64px; border-radius:50%;
  background:var(--brand-soft);
  display:flex; align-items:center; justify-content:center;
  font-size:22px; border:2.5px solid transparent;
  transition:all .2s; overflow:hidden;
}
.rw-cat-icon img { width:100%; height:100%; object-fit:cover; }
.rw-cat-pill.active .rw-cat-icon { border-color:var(--brand); }
.rw-cat-name {
  font-size:11px; font-weight:700; max-width:72px;
  color:#374151;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.rw-cat-pill.active .rw-cat-name { color:var(--brand); }

@media (min-width:768px) {
  .rw-cats { padding:32px 0; position:static; }
  .rw-cats-scroll { padding:0 5%; gap:18px; }
  .rw-cat-icon { width:88px; height:88px; font-size:28px; }
  .rw-cat-name { max-width:72px; font-size:12px; }
}

/* ═══ PRODUCTOS DESTACADOS ════════════════════════════════════════ */
.rw-featured { padding:24px 16px; }
.rw-featured .container { max-width:1200px; margin:0 auto; }
.rw-products-grid {
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
  margin-top:6px;
}
.rw-prod-card {
  background:white; border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow-sm);
  position:relative; cursor:pointer;
  display:flex; flex-direction:column;
}
.rw-prod-card:active { transform:scale(.98); }
.rw-prod-img { width:100%; aspect-ratio:4/3; object-fit:cover; background:#f3f4f6; }
.rw-prod-img-placeholder {
  width:100%; aspect-ratio:4/3;
  background:linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display:flex; align-items:center; justify-content:center;
  font-size:36px;
}
.rw-prod-body { padding:10px 12px 12px; flex:1; display:flex; flex-direction:column; }
.rw-prod-name { font-weight:800; font-size:13px; margin-bottom:3px; line-height:1.25; }
.rw-prod-details {
  font-size:10px; color:var(--text-muted);
  border-left:2px solid var(--brand); padding-left:5px;
  margin-bottom:6px; line-height:1.4; flex:1;
}
.rw-prod-bottom { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:auto; }
.rw-prod-price { font-weight:900; color:var(--brand); font-size:15px; }
.rw-prod-add {
  width:30px; height:30px; border-radius:8px;
  background:var(--brand); color:white;
  font-size:20px; font-weight:900;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.rw-prod-add:active { filter:brightness(1.15); }
.rw-promo-badge {
  position:absolute; top:8px; left:8px;
  background:#ef4444; color:white;
  font-size:10px; font-weight:800;
  padding:2px 8px; border-radius:8px; z-index:2;
}

@media (min-width:600px) { .rw-products-grid { grid-template-columns:repeat(3, 1fr); gap:14px; } }
@media (min-width:900px) { .rw-products-grid { grid-template-columns:repeat(4, 1fr); gap:16px; } }
@media (min-width:1200px) { .rw-products-grid { grid-template-columns:repeat(5, 1fr); } }
@media (min-width:768px) {
  .rw-featured { padding:48px 5%; }
  .rw-prod-body { padding:12px 14px 14px; }
  .rw-prod-name { font-size:14px; margin-bottom:4px; }
  .rw-prod-details { font-size:11px; padding-left:6px; margin-bottom:8px; }
  .rw-prod-price { font-size:16px; }
  .rw-prod-add { width:32px; height:32px; }
}

/* ═══ PROMOS ═══════════════════════════════════════════════════════ */
.rw-promos { padding:24px 16px; background:var(--bg); }
.rw-promos .container { max-width:1200px; margin:0 auto; }
.rw-promo-grid { display:grid; grid-template-columns:1fr; gap:10px; }
.rw-promo-card {
  border-radius:14px; overflow:hidden; position:relative;
  aspect-ratio:16/9; cursor:pointer; display:block;
}
.rw-promo-card img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.rw-promo-card:active img { transform:scale(1.04); }
.rw-promo-card-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.75), transparent 60%);
  display:flex; align-items:flex-end; padding:14px;
}
.rw-promo-card-title { color:white; font-weight:800; font-size:14px; }

@media (min-width:600px) { .rw-promo-grid { grid-template-columns:repeat(2, 1fr); gap:14px; } }
@media (min-width:900px) { .rw-promo-grid { grid-template-columns:repeat(3, 1fr); gap:16px; } }
@media (min-width:768px) { .rw-promos { padding:48px 5%; } .rw-promo-card-title { font-size:15px; } }

/* ═══ LOCALES PREVIEW ═════════════════════════════════════════════ */
.rw-locales-preview { padding:24px 16px; background:white; }
.rw-locales-preview .container { max-width:1200px; margin:0 auto; }
.rw-locales-grid { display:grid; grid-template-columns:1fr; gap:12px; margin-top:12px; }
.rw-local-card {
  border:2px solid var(--border); border-radius:14px;
  padding:16px; cursor:pointer; transition:all .2s;
}
.rw-local-card:active { border-color:var(--brand); }
.rw-local-name { font-weight:800; font-size:15px; margin-bottom:4px; }
.rw-local-addr { font-size:12px; color:var(--text-muted); margin-bottom:10px; line-height:1.5; }
.rw-local-tags { display:flex; gap:6px; flex-wrap:wrap; }
.rw-local-tag {
  font-size:10px; font-weight:700;
  padding:3px 10px; border-radius:20px;
  background:#f3f4f6; color:#374151;
}
.rw-local-tag.delivery { background:var(--brand-soft); color:var(--brand); }

@media (min-width:600px) { .rw-locales-grid { grid-template-columns:repeat(2, 1fr); } }
@media (min-width:900px) { .rw-locales-grid { grid-template-columns:repeat(3, 1fr); gap:16px; } }
@media (min-width:768px) {
  .rw-locales-preview { padding:48px 5%; }
  .rw-local-card { padding:20px; }
  .rw-local-name { font-size:16px; }
  .rw-local-addr { font-size:13px; }
  .rw-local-tag { font-size:11px; }
}

/* ═══ CARRITO DRAWER ═══════════════════════════════════════════════ */
.rw-cart-overlay {
  position:fixed; top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,.55); backdrop-filter:blur(4px);
  z-index:1099; opacity:0; pointer-events:none;
  transition:opacity .25s;
  /* Centrado igual que todos los modales */
  display:flex; align-items:center; justify-content:center;
  padding:16px; box-sizing:border-box;
}
.rw-cart-overlay.show { opacity:1; pointer-events:all; }
.rw-cart-drawer {
  /* Ya no es fixed — es hijo del overlay centrado */
  position:relative;
  width:100%; max-width:480px;
  background:white; z-index:1100;
  border-radius:20px;
  display:flex; flex-direction:column;
  max-height:calc(100vh - 32px);
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  box-sizing:border-box;
  transform:scale(.93);
  transition:transform .25s cubic-bezier(.34,1.2,.64,1);
}
.rw-cart-overlay.show .rw-cart-drawer { transform:scale(1); }
.rw-cart-head {
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  flex-shrink:0;
}
.rw-cart-head h3 { font-weight:900; font-size:17px; }
.rw-cart-close {
  background:#f3f4f6; width:34px; height:34px; border-radius:50%;
  font-size:15px; color:var(--text-muted);
  display:flex; align-items:center; justify-content:center;
}
.rw-cart-body { flex:1; overflow-y:auto; padding:12px 16px; }
.rw-cart-empty { text-align:center; padding:60px 20px; color:var(--text-muted); }
.rw-cart-empty-icon { font-size:50px; margin-bottom:14px; opacity:.4; }
.rw-cart-item {
  display:flex; gap:10px;
  padding:12px 0; border-bottom:1px solid var(--border-soft);
}
.rw-cart-item-img {
  width:56px; height:56px; border-radius:8px;
  object-fit:cover; flex-shrink:0; background:#f3f4f6;
}
.rw-cart-item-info { flex:1; min-width:0; }
.rw-cart-item-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-bottom:2px; }
.rw-cart-item-name { font-weight:800; font-size:13px; flex:1; line-height:1.3; }
.rw-cart-item-del {
  color:var(--text-light); font-size:16px;
  width:26px; height:26px; border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; line-height:1;
}
.rw-cart-item-del:active { background:#fee2e2; color:var(--danger); }
.rw-cart-item-extras { font-size:11px; color:#16a34a; font-weight:600; line-height:1.4; margin-bottom:4px; }
.rw-cart-item-comment { font-size:11px; color:#d97706; font-style:italic; line-height:1.4; margin-bottom:6px; background:#fef3c7; padding:2px 6px; border-radius:4px; display:inline-block; }
.rw-cart-item-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.rw-cart-qty {
  display:flex; align-items:center; gap:4px;
  background:var(--bg); border-radius:8px; padding:3px 4px;
}
.rw-cart-qty button {
  font-size:14px; font-weight:900;
  width:24px; height:24px; border-radius:5px;
  color:var(--brand);
  display:flex; align-items:center; justify-content:center;
}
.rw-cart-qty button:active { background:var(--brand-soft); }
.rw-cart-qty span { font-weight:800; font-size:13px; min-width:18px; text-align:center; }
.rw-cart-item-price { font-weight:900; color:var(--brand); font-size:14px; }
.rw-cart-foot {
  padding:14px 18px 18px;
  border-top:1px solid var(--border);
  background:white;
  flex-shrink:0;
}
.rw-cart-subtotal { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.rw-cart-subtotal strong { font-size:20px; color:var(--brand); }
.rw-btn-checkout {
  display:block; width:100%; padding:14px;
  background:var(--brand); color:white;
  border-radius:12px;
  font-weight:900; font-size:15px; text-align:center;
}
.rw-btn-checkout:active { background:var(--brand-dark); }

@media (min-width:768px) {
  .rw-cart-overlay {
    align-items:flex-start;
    justify-content:flex-end;
    padding:0;
  }
  .rw-cart-drawer {
    position:relative;
    width:420px; max-width:420px;
    max-height:100vh; height:100vh;
    border-radius:0;
    transform:translateX(440px);
    transition:transform .35s cubic-bezier(.4,0,.2,1);
  }
  .rw-cart-overlay.show .rw-cart-drawer { transform:translateX(0); }
  .rw-cart-head { padding:18px 22px; }
  .rw-cart-head h3 { font-size:18px; }
  .rw-cart-body { padding:14px 18px; }
  .rw-cart-item-img { width:60px; height:60px; }
  .rw-cart-foot { padding:18px 22px 22px; }
}

/* ═══ WHATSAPP BTN ═════════════════════════════════════════════════ */
.rw-wa-btn {
  position:fixed; bottom:90px; right:16px; z-index:900;
  width:52px; height:52px; border-radius:50%;
  background:#25d366; color:white;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 16px rgba(37,211,102,.45);
}
.rw-wa-btn:active { transform:scale(.95); }
@media (min-width:768px) {
  .rw-wa-btn { width:56px; height:56px; bottom:24px; right:24px; }
}

/* ═══ UTILIDADES ═══════════════════════════════════════════════════ */
.container { max-width:1200px; margin:0 auto; padding:0 16px; }
.section-title { font-family:'Bebas Neue', sans-serif; font-size:26px; letter-spacing:.5px; margin-bottom:4px; }
.section-sub { color:var(--text-muted); font-size:13px; margin-bottom:18px; }
@media (min-width:768px) {
  .container { padding:0 5%; }
  .section-title { font-size:36px; letter-spacing:1px; margin-bottom:8px; }
  .section-sub { font-size:14px; margin-bottom:28px; }
}

/* ═══ MODAL PRODUCTO (estilo kiosco) ═══════════════════════════════ */
.rw-modal-overlay {
  position:fixed;
  top:0; left:0; width:100%; height:100%;
  z-index:1200;
  background:rgba(0,0,0,.55); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .25s;
  padding:16px; box-sizing:border-box;
}
.rw-modal-overlay.open { opacity:1; pointer-events:all; }
.rw-modal {
  background:white;
  width:100%; max-width:560px;
  max-height:calc(100vh - 32px);
  border-radius:20px;
  display:flex; flex-direction:column;
  transform:scale(.93);
  transition:transform .25s cubic-bezier(.34,1.2,.64,1);
  box-shadow:0 -20px 60px rgba(0,0,0,.3);
  overflow:hidden;
}
.rw-modal-overlay.open .rw-modal { transform:scale(1); }
#rw-modal-content {
  display:flex; flex-direction:column;
  width:100%;
  min-height:0;
  overflow:hidden;
}

.rwk-modal-head {
  display:flex; align-items:flex-start; gap:10px;
  padding:14px 14px 12px;
  border-bottom:1px solid var(--border);
  flex-shrink:0; background:white;
}
.rwk-modal-head img {
  width: 100%;
  height: 200px;
  max-width: 200px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: #f9fafb;
  flex-shrink: 0;
}

/* En pantallas muy estrechas, la imagen se vuelve banner full-width arriba */
@media (max-width: 600px) {
  .rwk-modal-head {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }
  .rwk-modal-head img {
    width: 100%;
    max-width: none;
    height: 220px;
    border-radius: 0;
    padding: 14px;
    background: #f9fafb;
    box-sizing: border-box;
  }
  /* Info del producto: ahora va DEBAJO de la imagen como una barra blanca */
  .rwk-modal-head-info {
    padding: 12px 14px 14px;
    background: white;
    border-top: 1px solid var(--border);
  }
  /* Botón cerrar: arriba derecha sobre la imagen */
  .rwk-modal-close {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 5;
    background: rgba(255,255,255,.95) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
  }
  /* El head debe ser relativo para que el botón cerrar absoluto funcione */
  .rwk-modal-head { position: relative; }
}
.rwk-modal-head-info { flex:1; min-width:0; }
.rwk-modal-head-info h3 {
  font-size:15px; font-weight:800;
  margin:0 0 3px; text-transform:uppercase;
  color:#111; line-height:1.2;
}
.rwk-modal-base-price { font-size:18px; font-weight:900; color:var(--brand); }
.rwk-modal-close {
  background:#f3f4f6; border:1px solid var(--border);
  width:32px; height:32px; border-radius:50%;
  font-size:14px; color:var(--text-muted);
  flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}

.rwk-modal-body {
  flex:0 1 auto;
  overflow-y:auto;
  padding:12px 14px;
  background:#fafafa;
  min-height:0;
}
.rwk-group-title {
  font-size:11px; font-weight:800; text-transform:uppercase;
  letter-spacing:.7px; color:var(--text-light);
  margin:12px 0 8px;
  display:flex; align-items:center; gap:6px;
}
.rwk-group-title:first-child { margin-top:0; }
.rwk-group-req {
  background:var(--brand); color:white;
  font-size:9px; font-weight:800;
  border-radius:4px; padding:2px 6px;
  text-transform:uppercase; letter-spacing:.4px;
}

.rwk-option-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:11px 13px; border-radius:10px;
  border:1px solid var(--border);
  margin-bottom:6px; transition:all .15s;
  background:white; gap:10px;
}
.rwk-option-row:active { border-color:var(--brand); }
.rwk-option-row.selected { background:rgba(230,57,70,.08); border-color:var(--brand); }
.rwk-option-left { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.rwk-option-check {
  width:20px; height:20px; border-radius:50%;
  border:2px solid #d1d5db; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  transition:all .15s; background:white;
}
.rwk-option-row.selected .rwk-option-check { background:var(--brand); border-color:var(--brand); }
.rwk-option-row.selected .rwk-option-check::after { content:'✓'; font-size:11px; color:white; font-weight:900; }
.rwk-option-row[data-type="multiple"] .rwk-option-check { border-radius:4px; }
.rwk-option-img { width:38px; height:38px; border-radius:6px; object-fit:cover; flex-shrink:0; }
.rwk-option-name { font-size:13px; font-weight:600; line-height:1.2; color:#111; }
.rwk-option-price-tag { flex-shrink:0; font-size:13px; font-weight:800; color:var(--brand); white-space:nowrap; }
.rwk-option-price-tag.free { color:var(--success); font-size:11px; font-weight:600; }

.rwk-combo-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; margin:8px 0 12px; }
.rwk-combo-item {
  background:white; border:1px solid var(--border);
  border-radius:8px; padding:6px; text-align:center;
}
.rwk-combo-item img { width:42px; height:42px; object-fit:cover; border-radius:6px; margin:0 auto 4px; display:block; }
.rwk-combo-item-name { font-weight:700; color:#111; line-height:1.2; text-transform:uppercase; font-size:10px; }
.rwk-combo-item-qty { color:var(--brand); font-size:10px; font-weight:800; margin-top:2px; }

.rwk-modal-footer-fixed { flex-shrink:0; border-top:1px solid var(--border); background:white; }
.rwk-modal-qty { display:flex; align-items:center; gap:12px; padding:10px 14px; justify-content:space-between; }
.rwk-qty-controls { display:flex; align-items:center; gap:8px; }
.rwk-qty-btn {
  width:36px; height:36px; border-radius:50%;
  background:#f3f4f6; border:1px solid var(--border);
  font-size:18px; color:#111;
  display:flex; align-items:center; justify-content:center;
}
.rwk-qty-btn:active { background:var(--brand); border-color:var(--brand); color:white; }
.rwk-qty-num { font-size:18px; font-weight:900; min-width:24px; text-align:center; }
.rwk-comment-input {
  background:#f3f4f6; border:1px solid var(--border);
  border-radius:10px; padding:10px 13px;
  font-size:14px;
  width:calc(100% - 28px); margin:0 14px 10px; display:block;
}
.rwk-comment-input:focus { outline:none; border-color:var(--brand); background:white; }
.rwk-modal-add-btn {
  margin:0 14px 14px; padding:14px;
  background:var(--brand); color:white;
  border-radius:10px;
  font-size:15px; font-weight:800;
  width:calc(100% - 28px);
}
.rwk-modal-add-btn:active { background:var(--brand-dark); }
.rwk-modal-add-btn:disabled { background:#d1d5db; color:#9ca3af; cursor:not-allowed; }

@media (min-width:600px) {
  .rw-modal-overlay { align-items:center; padding:16px; }
  .rw-modal { max-height:90vh; border-radius:20px; }
  .rwk-modal-head { padding:18px 18px 14px; gap:12px; }
  .rwk-modal-head img { width: 220px; height: 220px; }
  .rwk-modal-head-info h3 { font-size:17px; }
  .rwk-modal-base-price { font-size:20px; }
  .rwk-modal-body { padding:14px 18px; }
  .rwk-combo-grid { grid-template-columns:repeat(auto-fill, minmax(88px,1fr)); gap:8px; }
  .rwk-combo-item img { width:46px; height:46px; }
  .rwk-combo-item-name { font-size:10.5px; }
  .rwk-modal-qty { padding:12px 18px; }
  .rwk-comment-input, .rwk-modal-add-btn { margin-left:18px; margin-right:18px; width:calc(100% - 36px); }
}

/* ═══════════════════════════════════════════════════════════════════
   CARTA — Sidebar + grid productos
   ═══════════════════════════════════════════════════════════════════ */

.carta-topbar {
  background:white; border-bottom:1px solid var(--border);
  padding:10px 16px;
  position:sticky; top:var(--nav-h); z-index:60;
}
.carta-topbar-inner {
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.carta-local-info { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.carta-local-icon { font-size:20px; flex-shrink:0; }
.carta-local-text { min-width:0; flex:1; }
.carta-local-label {
  font-size:10px; color:var(--text-muted);
  font-weight:700; text-transform:uppercase; letter-spacing:.4px;
}
.carta-local-name {
  font-weight:800; font-size:13px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.carta-cambiar-link {
  font-size:12px; font-weight:700; color:var(--brand);
  white-space:nowrap; padding:6px 10px; border-radius:8px;
}
.carta-cambiar-link:active { background:var(--brand-soft); }

.carta-wrap {
  max-width:1200px; margin:0 auto;
  padding:0 0 24px;
  display:flex; flex-direction:column;
}
/* Compensar la altura del sidebar fijo */
#carta-main { padding-top:calc(32px + 2px); padding-left:12px; padding-right:12px; padding-bottom:14px; }

/* ── Sidebar móvil: barra horizontal con círculos sticky ── */
.carta-sidebar {
  /* Mobile: barra FIJA debajo del nav — siempre visible al scrollear */
  position:fixed;
  top:var(--nav-h);
  left:0; width:100%;
  z-index:55;
  background:white;
  border-bottom:1px solid var(--border-soft);
  padding:7px 0;
  display:flex;
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:none;
  gap:0;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  box-sizing:border-box;
}
/* Indicador visual: degradado a la derecha que sugiere scroll */
.carta-sidebar::after {
  content:'';
  position:fixed;
  top:var(--nav-h);
  right:0;
  width:42px;
  height:72px; /* misma altura que el sidebar compactado */
  background:linear-gradient(to left, white 30%, transparent);
  pointer-events:none;
  z-index:56;
}
/* Flecha de scroll */
.carta-sidebar-hint {
  position:fixed;
  top:calc(var(--nav-h) + 22px);
  right:6px;
  z-index:57;
  color:var(--brand);
  font-size:26px;
  font-weight:900;
  line-height:1;
  pointer-events:none;
  animation:hintPulse 1.4s ease-in-out 8; /* pulsa 8 veces */
  text-shadow:0 0 8px rgba(230,57,70,.3);
}
/* Solo en mobile — en desktop la sidebar es vertical, no hace falta */
@media (min-width: 769px) {
  .carta-sidebar-hint { display:none !important; }
}
@keyframes hintPulse {
  0%,100% { opacity:.3; transform:translateX(0); }
  50%      { opacity:1;  transform:translateX(6px); }
}
.carta-sidebar::-webkit-scrollbar { display:none; }
.carta-sidebar-title { display:none; }

/* Cada botón de categoría: círculo + nombre */
.carta-cat-link {
  flex-shrink:0;
  display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:0 7px;
  background:none; border:none; cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.carta-cat-link:active .carta-cat-icon { border-color:var(--brand); }
.carta-cat-link.active .carta-cat-icon {
  border-color:var(--brand);
  background:var(--brand-soft);
}
.carta-cat-link.active .carta-cat-name { color:var(--brand); }

/* Círculo de imagen */
.carta-cat-icon {
  width:42px; height:42px;
  border-radius:50%;
  border:2px solid var(--border);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:18px;
  background:#f3f4f6;
  transition:border-color .15s;
  flex-shrink:0;
}
.carta-cat-icon img {
  width:100%; height:100%;
  object-fit:cover; display:block;
}

/* Nombre debajo del círculo */
.carta-cat-name {
  font-size:9.5px; font-weight:700;
  color:var(--text-muted);
  text-align:center;
  max-width:54px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transition:color .15s;
}

/* Badge: oculto en mobile */
.carta-cat-badge { display:none; }

.carta-search {
  display:flex; align-items:center; gap:8px;
  background:white; border:2px solid var(--border);
  border-radius:12px; padding:10px 14px;
  margin-bottom:14px;
}
.carta-search:focus-within { border-color:var(--brand); }
.carta-search input { flex:1; border:none; outline:none; font-size:15px; background:transparent; }
.carta-search-icon { color:var(--text-muted); font-size:16px; }

.carta-section { margin-bottom:32px; scroll-margin-top:calc(var(--nav-h) + 120px); }
.carta-section-title {
  font-family:'Bebas Neue', sans-serif; font-size:24px;
  letter-spacing:.6px;
  padding-bottom:10px;
  border-bottom:2px solid var(--border);
  margin-bottom:14px;
}
.carta-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.carta-card {
  background:white; border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow-sm); cursor:pointer;
  position:relative; display:flex; flex-direction:column;
  transition:all .2s;
}
.carta-card:active { transform:scale(.98); }
.carta-card-img { width:100%; aspect-ratio:4/3; object-fit:cover; background:#f3f4f6; }
.carta-card-img-ph {
  width:100%; aspect-ratio:4/3;
  background:linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display:flex; align-items:center; justify-content:center;
  font-size:36px;
}
.carta-card-body { padding:10px 12px 12px; flex:1; display:flex; flex-direction:column; }
.carta-card-name { font-weight:800; font-size:13px; margin-bottom:3px; line-height:1.25; }
.carta-card-details {
  font-size:10.5px; color:var(--text-muted);
  border-left:2px solid var(--brand); padding-left:5px;
  margin-bottom:6px; line-height:1.4; flex:1;
  overflow:hidden;
}
.carta-card-bottom { display:flex; align-items:center; justify-content:space-between; margin-top:auto; gap:6px; }
.carta-card-price { font-weight:900; color:var(--brand); font-size:15px; }
.carta-card-price-old { font-size:11px; color:var(--text-muted); text-decoration:line-through; margin-left:4px; }
.carta-card-add {
  width:30px; height:30px; border-radius:8px;
  background:var(--brand); color:white;
  font-size:18px; font-weight:900;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.carta-card-add:active { filter:brightness(1.15); }
.carta-promo-badge {
  position:absolute; top:8px; left:8px;
  background:#ef4444; color:white;
  font-size:10px; font-weight:800;
  padding:2px 8px; border-radius:8px; z-index:2;
}
.carta-skeleton { animation:skeleton-pulse 1.5s ease-in-out infinite; }
@keyframes skeleton-pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
.carta-skeleton .carta-card-img { background:#e5e7eb; }
.carta-skeleton .carta-card-name { background:#e5e7eb; height:13px; border-radius:4px; margin-bottom:6px; }
.carta-skeleton .carta-card-price { background:#e5e7eb; height:14px; width:50px; border-radius:4px; }

@media (min-width:600px) { .carta-grid { grid-template-columns:repeat(3, 1fr); gap:14px; } }
@media (min-width:768px) {
  .carta-topbar { padding:14px 5%; position:relative; top:auto; }
  .carta-local-name { font-size:14px; }
  .carta-cambiar-link { font-size:13px; }
  .carta-wrap {
    padding:24px 5%;
    display:grid; grid-template-columns:200px 1fr;
    gap:28px; align-items:start;
  }
  /* Desktop: sidebar vertical */
  .carta-sidebar {
    position:sticky; top:calc(var(--nav-h) + 16px);
    flex-direction:column;
    overflow:visible;
    border-bottom:none;
    padding:8px;
    border-radius:12px;
    box-shadow:var(--shadow-sm);
    gap:2px;
  }
  .carta-sidebar-title {
    display:block;
    font-size:11px; font-weight:800; text-transform:uppercase;
    letter-spacing:.7px; color:var(--text-muted);
    padding:10px 14px 6px;
  }
  /* Desktop: botón horizontal con texto */
  .carta-cat-link {
    flex-direction:row;
    padding:10px 14px; border-radius:10px;
    width:100%; align-items:center; gap:10px;
  }
  .carta-cat-link.active { background:var(--brand-soft); }
  .carta-cat-icon {
    width:32px; height:32px;
    font-size:16px; flex-shrink:0;
  }
  .carta-cat-name {
    font-size:13px; font-weight:700;
    color:var(--text); max-width:none;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    flex:1; text-align:left;
  }
  .carta-cat-link.active .carta-cat-name { color:var(--brand); font-weight:800; }
  .carta-cat-badge { display:inline-block; margin-left:auto; font-size:11px; }
  .carta-section-title { font-size:28px; letter-spacing:1px; padding-bottom:12px; margin-bottom:16px; }
  .carta-grid { grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:14px; }
  .carta-card-body { padding:12px 14px 14px; }
  .carta-card-name { font-size:14px; }
  .carta-card-details { font-size:11px; padding-left:6px; }
  .carta-card-price { font-size:16px; }
  .carta-card-add { width:32px; height:32px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CHECKOUT — Mobile-first con barra fija inferior
   ═══════════════════════════════════════════════════════════════════ */

.ck-steps {
  display:flex; align-items:center;
  padding:14px 16px;
  margin:0 auto;
  max-width:1080px;
}
.ck-step { display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.ck-step-num {
  width:26px; height:26px; border-radius:50%; flex-shrink:0;
  background:var(--border); color:var(--text-muted);
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:12px; transition:all .3s;
}
.ck-step.active .ck-step-num { background:var(--brand); color:white; }
.ck-step.done .ck-step-num { background:var(--success); color:white; }
.ck-step-label { font-weight:800; font-size:11px; color:var(--text-muted); line-height:1.1; }
.ck-step.active .ck-step-label { color:var(--text); }
.ck-step-line { flex:1; height:2px; background:var(--border); margin:0 4px; min-width:8px; }

.ck-wrap {
  max-width:1080px; margin:0 auto;
  padding:14px 12px 100px; /* extra bottom para barra fija */
  display:flex; flex-direction:column; gap:14px;
}

.ck-panel {
  background:white; border-radius:14px;
  padding:16px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.ck-panel-title {
  font-weight:900; font-size:15px;
  margin-bottom:14px; padding-bottom:10px;
  border-bottom:2px solid var(--border);
  display:flex; align-items:center; gap:8px;
}
.ck-panel-title span { font-size:18px; }

.ck-grid { display:grid; grid-template-columns:1fr; gap:12px; min-width:0; }
.ck-grid.one { grid-template-columns:1fr; }
.ck-field { display:flex; flex-direction:column; gap:5px; min-width:0; }
.ck-field label { font-weight:700; font-size:13px; }
.ck-field label .req { color:var(--brand); }
.ck-input {
  display:block;
  width:100%;
  padding:12px 14px; border:2px solid var(--border);
  border-radius:10px; font-size:15px;
  background:white; outline:none;
  transition:border-color .2s;
  font-family:inherit;
  color:var(--text);
}
.ck-input::placeholder { color:var(--text-light); }
.ck-input:focus { border-color:var(--brand); }
.ck-input.error { border-color:var(--danger); }
select.ck-input {
  appearance:none;
  background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 14px center no-repeat;
  padding-right:36px;
}
.ck-field-help { font-size:11px; color:var(--text-muted); }

.ck-tipo-btns { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ck-tipo-btn {
  border:2px solid var(--border); border-radius:12px;
  padding:14px 10px;
  display:flex; align-items:center; gap:10px;
  background:white; transition:all .2s;
}
.ck-tipo-btn:active, .ck-tipo-btn.active { border-color:var(--brand); background:var(--brand-soft); }
.ck-tipo-btn-icon { font-size:24px; flex-shrink:0; }
.ck-tipo-btn-text { text-align:left; min-width:0; }
.ck-tipo-btn-text strong { display:block; font-weight:800; font-size:13px; }
.ck-tipo-btn-text span { font-size:11px; color:var(--text-muted); }

.ck-gps-btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 16px; border:2px solid var(--border);
  border-radius:10px; background:white;
  font-weight:700; font-size:13px;
  width:100%;
}
.ck-gps-btn:active { border-color:var(--brand); color:var(--brand); }

.ck-pasarela-opts { display:flex; flex-direction:column; gap:8px; }
.ck-pasarela-opt {
  border:2px solid var(--border); border-radius:12px;
  padding:12px 14px;
  display:flex; align-items:center; gap:10px;
  transition:all .15s;
}
.ck-pasarela-opt:active { border-color:var(--brand); }
.ck-pasarela-opt.selected { border-color:var(--brand); background:var(--brand-soft); }
.ck-pasarela-radio {
  width:20px; height:20px; border-radius:50%;
  border:2px solid var(--border); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.ck-pasarela-opt.selected .ck-pasarela-radio { border-color:var(--brand); background:var(--brand); }
.ck-pasarela-opt.selected .ck-pasarela-radio::after { content:''; width:8px; height:8px; background:white; border-radius:50%; }
.ck-pasarela-logo { font-size:22px; }
.ck-pasarela-info strong { font-weight:800; font-size:13px; display:block; }
.ck-pasarela-info span { font-size:11px; color:var(--text-muted); }

.ck-comp-tabs { display:flex; gap:4px; background:var(--bg); border-radius:10px; padding:4px; margin-bottom:14px; }
.ck-comp-tab {
  flex:1; padding:9px;
  border-radius:8px;
  font-weight:700; font-size:13px;
  color:var(--text-muted); transition:all .2s;
}
.ck-comp-tab.active { background:white; color:var(--text); box-shadow:var(--shadow-sm); }

/* Resumen del pedido */
.ck-summary-items { margin-bottom:12px; }
.ck-sum-item {
  display:flex; gap:10px; align-items:flex-start;
  padding:8px 0;
  border-bottom:1px solid var(--border-soft);
}
.ck-sum-item:last-child { border-bottom:none; }
.ck-sum-img { width:44px; height:44px; border-radius:8px; object-fit:cover; flex-shrink:0; background:#f3f4f6; }
.ck-sum-info { flex:1; min-width:0; }
.ck-sum-name { font-weight:800; font-size:13px; line-height:1.3; margin-bottom:2px; }
.ck-sum-qty { font-size:11px; color:var(--text-muted); }
.ck-sum-price { font-weight:900; color:var(--brand); font-size:13px; white-space:nowrap; flex-shrink:0; }

.ck-sum-line {
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0;
  font-size:14px;
  gap:8px;
}
.ck-sum-line span:first-child { color:var(--text-muted); font-weight:600; }
.ck-sum-line span:last-child { font-weight:800; color:var(--text); white-space:nowrap; }
.ck-sum-line.total {
  border-top:2px solid var(--border);
  margin-top:4px; padding-top:14px;
  font-size:16px;
}
.ck-sum-line.total span:first-child { color:var(--text); font-weight:900; font-size:15px; }
.ck-sum-line.total span:last-child { color:var(--brand); font-size:20px; font-weight:900; }

.ck-btn-pagar {
  width:100%; padding:14px;
  background:var(--brand); color:white;
  border-radius:12px;
  font-weight:900; font-size:15px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:12px;
}
.ck-btn-pagar:active:not(:disabled) { background:var(--brand-dark); }
.ck-btn-pagar:disabled { opacity:.5; cursor:not-allowed; }

/* Yape QR */
.ck-yape-panel {
  display:none; text-align:center; padding:18px;
  border:2px solid #7c3aed; border-radius:12px;
  background:#faf5ff; margin-top:12px;
}
.ck-yape-panel.visible { display:block; }
.ck-yape-panel img { width:140px; height:140px; margin:0 auto 10px; border-radius:8px; }
.ck-yape-panel strong { display:block; font-size:16px; margin-bottom:4px; }
.ck-yape-amount { font-family:'Bebas Neue',sans-serif; font-size:30px; color:#7c3aed; margin:8px 0; }

/* ── Validación automática con código de seguridad Yape ─────────────── */
.ck-yape-autoval {
  background:#faf5ff;
  border:2px dashed #c4b5fd;
  border-radius:10px;
  padding:12px 14px;
  margin-top:12px;
  text-align:left;
}
.ck-yape-autoval-label {
  display:block;
  font-size:13px;
  color:#5b21b6;
  font-weight:600;
}
.ck-yape-code-input {
  width:100%;
  padding:12px 14px;
  border:2px solid #c4b5fd;
  border-radius:8px;
  font-size:18px;
  font-weight:700;
  font-family:monospace;
  text-align:center;
  letter-spacing:6px;
  color:#5b21b6;
  background:white;
  outline:none;
  transition:border-color .15s;
  box-sizing:border-box;
}
.ck-yape-code-input:focus { border-color:#7c3aed; }
.ck-yape-code-input::placeholder { letter-spacing:1px; color:#a78bfa; font-weight:400; }

@media (min-width:768px) {
  .ck-steps { padding:24px 5%; margin-bottom:8px; }
  .ck-step { gap:10px; flex:1; }
  .ck-step-num { width:32px; height:32px; font-size:14px; }
  .ck-step-label { font-size:13px; }
  .ck-step-line { margin:0 8px; }

  .ck-wrap {
    padding:0 5% 32px;
    display:grid; grid-template-columns:1fr 380px;
    gap:32px; align-items:start;
  }
  .ck-panel { padding:24px; border-radius:16px; }
  .ck-panel-title { font-size:17px; }
  .ck-grid { grid-template-columns:1fr 1fr; gap:14px; }
  .ck-grid.one { grid-template-columns:1fr; }
  .ck-tipo-btn { padding:16px; }
  .ck-tipo-btn-icon { font-size:28px; }
  .ck-tipo-btn-text strong { font-size:14px; }
  .ck-tipo-btn-text span { font-size:12px; }
  .ck-pasarela-opt { padding:14px 16px; gap:12px; }
  .ck-pasarela-info strong { font-size:14px; }
  .ck-pasarela-info span { font-size:12px; }
  .ck-summary {
    position:sticky; top:calc(var(--nav-h) + 16px);
  }
  .ck-summary-items { max-height:280px; overflow-y:auto; }
  .ck-sum-img { width:52px; height:52px; }
  .ck-sum-name { font-size:13px; }
  .ck-yape-panel img { width:180px; height:180px; }
  .ck-yape-amount { font-size:36px; }
}

/* Barra fija inferior en mobile con total + botón pagar */
.ck-mobile-bar {
  position:fixed; bottom:0; left:0; right:0; z-index:90;
  background:white;
  border-top:1px solid var(--border);
  padding:10px 14px;
  display:flex; align-items:center; gap:10px;
  box-shadow:0 -4px 16px rgba(0,0,0,.08);
}
.ck-mobile-bar-total { flex:1; }
.ck-mobile-bar-total .label { font-size:11px; color:var(--text-muted); font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.ck-mobile-bar-total .amount { font-size:20px; font-weight:900; color:var(--brand); line-height:1.1; }
.ck-mobile-bar-btn {
  background:var(--brand); color:white;
  padding:12px 22px; border-radius:10px;
  font-weight:900; font-size:14px;
  display:flex; align-items:center; gap:6px;
}
.ck-mobile-bar-btn:disabled { opacity:.5; }
@media (min-width:768px) {
  .ck-mobile-bar { display:none; }
  .ck-wrap { padding-bottom:32px; }
}

/* ═══════════════════════════════════════════════════════════════════
   TRACKING — Estados del pedido
   ═══════════════════════════════════════════════════════════════════ */

.trk-wrap { max-width:680px; margin:0 auto; padding:20px 14px; }
.trk-card {
  background:white; border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow-sm);
  margin-bottom:14px;
}
.trk-header { text-align:center; margin-bottom:18px; }
.trk-header-icon { font-size:50px; margin-bottom:8px; }
.trk-header h1 { font-family:'Bebas Neue', sans-serif; font-size:26px; letter-spacing:.5px; }
.trk-header-sub { color:var(--text-muted); font-size:13px; margin-top:4px; }
.trk-ref { font-size:13px; color:var(--text-muted); font-family:monospace; }
.trk-ref strong { color:var(--text); }

.trk-timeline { padding:8px 0; }
.trk-step {
  display:flex; gap:14px; padding:14px 0; position:relative;
}
.trk-step:not(:last-child)::after {
  content:''; position:absolute;
  left:18px; top:36px; bottom:-10px;
  width:2px; background:var(--border);
}
.trk-step.done::after { background:var(--success); }
.trk-step-icon {
  width:38px; height:38px; border-radius:50%;
  background:var(--border); color:var(--text-muted);
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0; z-index:1;
  position:relative;
}
.trk-step.active .trk-step-icon { background:var(--brand); color:white; animation:tkPulse 2s infinite; }
.trk-step.done .trk-step-icon { background:var(--success); color:white; }
@keyframes tkPulse { 0%, 100% { box-shadow:0 0 0 0 rgba(230,57,70,.4); } 50% { box-shadow:0 0 0 8px rgba(230,57,70,0); } }
.trk-step-info { flex:1; padding-top:6px; }
.trk-step-title { font-weight:800; font-size:14px; }
.trk-step.active .trk-step-title { color:var(--brand); }
.trk-step-time { font-size:11px; color:var(--text-muted); margin-top:2px; }

.trk-items {
  background:#fafafa; border-radius:10px;
  padding:12px; margin-top:12px;
}
.trk-item {
  display:flex; gap:10px; align-items:center;
  padding:6px 0; font-size:13px;
}
.trk-item-name { flex:1; font-weight:700; }
.trk-item-qty { color:var(--text-muted); font-size:12px; }

@media (min-width:768px) {
  .trk-wrap { padding:32px 5%; }
  .trk-card { padding:24px; }
  .trk-header h1 { font-size:32px; }
}

/* ═══════════════════════════════════════════════════════════════════
   LOCALES — Listado de tiendas
   ═══════════════════════════════════════════════════════════════════ */

.loc-hero {
  background:var(--brand); color:white;
  padding:32px 16px;
  text-align:center;
}
.loc-hero h1 { font-family:'Bebas Neue', sans-serif; font-size:clamp(28px, 6vw, 56px); letter-spacing:.5px; margin-bottom:6px; }
.loc-hero p { opacity:.85; font-size:13px; max-width:480px; margin:0 auto; }

.loc-filter-bar {
  background:white; border-bottom:1px solid var(--border);
  padding:12px 14px;
  display:flex; gap:8px; align-items:center; overflow-x:auto;
  position:sticky; top:var(--nav-h); z-index:50;
  scrollbar-width:none;
}
.loc-filter-bar::-webkit-scrollbar { display:none; }
.loc-filter-btn {
  padding:7px 14px; border-radius:20px;
  border:2px solid var(--border);
  font-weight:700; font-size:12px;
  background:white; color:var(--text);
  flex-shrink:0; white-space:nowrap;
}
.loc-filter-btn.active { background:var(--brand); color:white; border-color:var(--brand); }

.loc-wrap { max-width:1200px; margin:0 auto; padding:20px 14px; }
.loc-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.loc-card {
  background:white; border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow-sm);
  border:2px solid transparent;
}
.loc-card:active { border-color:var(--brand); }
.loc-card-img { width:100%; height:140px; object-fit:cover; background:#f3f4f6; }
.loc-card-img-ph {
  width:100%; height:140px;
  background:linear-gradient(135deg, var(--brand-soft), #fce7e9);
  display:flex; align-items:center; justify-content:center;
  font-size:48px;
}
.loc-card-body { padding:14px 16px; }
.loc-card-head { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:8px; gap:8px; }
.loc-card-name { font-weight:900; font-size:15px; }
.loc-status-open, .loc-status-close {
  font-size:10px; font-weight:800;
  padding:3px 9px; border-radius:20px; flex-shrink:0;
}
.loc-status-open { background:#dcfce7; color:var(--success); }
.loc-status-close { background:#fee2e2; color:var(--danger); }
.loc-card-info { font-size:12px; color:var(--text-muted); line-height:1.6; margin-bottom:10px; }
.loc-card-info strong { color:var(--text); font-weight:700; }
.loc-tags { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:12px; }
.loc-tag {
  font-size:10px; font-weight:700;
  padding:3px 10px; border-radius:20px;
  background:#f3f4f6; color:#374151;
}
.loc-tag.delivery { background:var(--brand-soft); color:var(--brand); }
.loc-card-actions { display:flex; gap:6px; }
.loc-btn {
  flex:1; padding:10px;
  border-radius:10px;
  font-weight:800; font-size:13px;
  display:flex; align-items:center; justify-content:center; gap:5px;
}
.loc-btn-primary { background:var(--brand); color:white; }
.loc-btn-wa { background:#25d366; color:white; width:42px; flex:none; }

@media (min-width:600px) { .loc-grid { grid-template-columns:repeat(2, 1fr); gap:16px; } }
@media (min-width:900px) { .loc-grid { grid-template-columns:repeat(3, 1fr); gap:20px; } }
@media (min-width:768px) {
  .loc-hero { padding:52px 5% 48px; }
  .loc-hero p { font-size:15px; }
  .loc-filter-bar { padding:14px 5%; position:relative; top:auto; }
  .loc-filter-btn { font-size:13px; }
  .loc-wrap { padding:40px 5%; }
  .loc-card-img, .loc-card-img-ph { height:160px; }
  .loc-card-body { padding:18px 20px; }
  .loc-card-name { font-size:17px; }
  .loc-card-info { font-size:13px; }
}

/* ═══ Helper para body con barra fija (evita scroll bloqueado) ═══ */
body.ck-active { padding-bottom:80px; }
@media (min-width:768px) { body.ck-active { padding-bottom:0; } }

/* Botón ver carta (home) */
.rw-btn-ver-carta {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 24px; border:2px solid var(--brand);
  color:var(--brand); border-radius:50px;
  font-weight:800; font-size:14px;
  transition:all .2s;
}
.rw-btn-ver-carta:active { background:var(--brand); color:white; }
@media (min-width:768px) { .rw-btn-ver-carta { padding:14px 32px; font-size:15px; } }



/* ── Fix resumen de local en checkout (bloque azul) ── */
.ck-local-resumen {
  margin-top:14px;
  background:#eff6ff;
  border:1.5px solid #bfdbfe;
  border-radius:10px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.ck-local-resumen-info { min-width:0; flex:1; }
.ck-local-resumen-name {
  font-weight:800; font-size:13px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ck-local-resumen-addr {
  font-size:11px; color:#6b7280; margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ck-local-resumen-btn {
  font-size:12px; color:#2563eb; font-weight:700;
  white-space:nowrap; flex-shrink:0;
  padding:4px 8px; border-radius:6px;
}
.ck-local-resumen-btn:active { background:#dbeafe; }
@media (min-width:768px) {
  .ck-local-resumen { padding:12px 16px; }
  .ck-local-resumen-name { font-size:14px; }
  .ck-local-resumen-addr { font-size:12px; }
}

/* ═══ TRACKING — Estilos complementarios ═══════════════════════════ */
.trk-wrap { max-width:680px; margin:0 auto; padding:20px 14px 40px; }
.trk-card { background:white; border-radius:16px; padding:20px; box-shadow:var(--shadow-sm); margin-bottom:14px; }
.trk-head { margin-bottom:16px; }
.trk-head-ref { font-size:11px; color:var(--text-muted); font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
.trk-head h1 { font-family:'Bebas Neue',sans-serif; font-size:28px; letter-spacing:.5px; color:var(--text); margin-bottom:4px; }
.trk-head-tipo { font-size:13px; color:var(--text-muted); display:flex; align-items:center; gap:6px; }
.trk-eta { background:var(--brand-soft); border:1.5px solid #fca5a5; border-radius:10px; padding:10px 14px; margin-bottom:14px; display:flex; align-items:center; gap:10px; }
.trk-eta-label { font-size:12px; color:var(--brand); font-weight:700; }
.trk-eta-time { font-size:18px; font-weight:900; color:var(--brand); }
.trk-info { display:grid; gap:6px; margin-bottom:16px; }
.trk-info-row { display:flex; gap:8px; font-size:13px; }
.trk-info-row strong { color:var(--text-muted); font-weight:700; min-width:80px; }

/* Timeline */
.trk-timeline { padding:4px 0; }
.trk-step { display:flex; gap:12px; padding:12px 0; position:relative; }
.trk-step:not(:last-child)::after { content:''; position:absolute; left:17px; top:38px; bottom:-6px; width:2px; background:var(--border); }
.trk-step.done::after { background:var(--success); }
.trk-step.active::after { background:var(--brand); }
.trk-step-icon { width:36px; height:36px; border-radius:50%; background:var(--border); color:var(--text-muted); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; z-index:1; }
.trk-step.done .trk-step-icon { background:var(--success); color:white; }
.trk-step.active .trk-step-icon { background:var(--brand); color:white; animation:tkPulse 2s infinite; }
.trk-step-content { flex:1; padding-top:4px; }
.trk-step-label { font-weight:800; font-size:14px; color:var(--text); margin-bottom:2px; }
.trk-step.pending .trk-step-label { color:var(--text-muted); }
.trk-step-sub { font-size:12px; color:var(--text-muted); line-height:1.4; }
.trk-step-time { font-size:11px; color:var(--text-light); margin-top:2px; font-weight:600; }

/* Items */
.trk-items { background:#fafafa; border-radius:10px; padding:12px; margin-top:12px; }
.trk-item { display:flex; gap:10px; align-items:center; padding:6px 0; border-bottom:1px solid var(--border-soft); }
.trk-item:last-child { border-bottom:none; }
.trk-item-name { flex:1; font-weight:700; font-size:13px; }
.trk-item-qty { color:var(--text-muted); font-size:12px; white-space:nowrap; }
.trk-item-price { font-weight:800; color:var(--brand); font-size:13px; white-space:nowrap; }

/* Botones */
.trk-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.trk-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:12px 20px; border-radius:10px; font-weight:800; font-size:14px; border:none; cursor:pointer; text-decoration:none; }
.trk-btn-primary { background:var(--brand); color:white; }
.trk-btn-primary:active { background:var(--brand-dark); }
.trk-btn-secondary { background:var(--bg); color:var(--text); border:2px solid var(--border); }

/* Empty state */
.trk-empty { text-align:center; padding:40px 20px; }
.trk-empty-icon { font-size:56px; margin-bottom:16px; opacity:.5; }

@media (min-width:768px) {
  .trk-wrap { padding:32px 5%; }
  .trk-card { padding:28px; }
  .trk-head h1 { font-size:34px; }
}

/* ═══ AUTH (Login / Register / Mi cuenta / Mis pedidos) ════════════ */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h, 60px));
  display:flex; align-items:center; justify-content:center;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--bg) 0%, #fef2f2 100%);
}
.auth-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  width: 100%;
  max-width: 440px;
  padding: 28px 24px 32px;
}
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-logo {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  display:flex; align-items:center; justify-content:center;
  font-size: 32px;
}
.auth-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: .5px;
  color: var(--text); margin-bottom: 4px;
}
.auth-sub { font-size: 13px; color: var(--text-muted); }
.auth-alert {
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
}
.auth-alert.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.auth-alert.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 12px; font-weight: 800;
  color: var(--text); text-transform: uppercase;
  letter-spacing: .4px;
}
.auth-input {
  display: block; width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px; font-family: inherit;
  background: white; outline: none;
  transition: border-color .15s;
  color: var(--text);
  box-sizing: border-box;
}
.auth-input:focus { border-color: var(--brand); }
.auth-pwd-wrap { position: relative; }
.auth-pwd-toggle {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  padding: 4px 8px; color: var(--text-muted);
}
.auth-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 8px;
}
.auth-check {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; font-weight: 600;
}
.auth-check input {
  width: 16px; height: 16px;
  accent-color: var(--brand);
}
.auth-link {
  color: var(--brand); font-weight: 700;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.auth-btn {
  display: block; width: 100%;
  padding: 14px;
  border: none; border-radius: 12px;
  font-family: inherit; font-weight: 900;
  font-size: 15px; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.auth-btn.primary { background: var(--brand); color: white; }
.auth-btn.primary:active { background: var(--brand-dark); transform: scale(.98); }
.auth-btn.outline {
  background: white; color: var(--brand);
  border: 2px solid var(--brand);
}
.auth-btn.outline:active { background: var(--brand-soft); }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--text-muted); font-size: 12px;
  font-weight: 700; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-skip {
  text-align: center; margin-top: 18px;
  font-size: 13px;
}
.auth-skip a {
  color: var(--text-muted); text-decoration: none;
}
.auth-skip a:hover { color: var(--text); }

/* Register grid 2 columnas */
.auth-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 480px) {
  .auth-grid-2 { grid-template-columns: 1fr; gap: 14px; }
}

/* ═══ USER DROPDOWN (Header) ═══════════════════════════════════════ */
.rw-user-dropdown { position: relative; }
.rw-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  padding: 5px 12px 5px 5px;
  border-radius: 24px;
  font-family: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.rw-user-btn:hover { background: rgba(255,255,255,.25); }
.rw-user-avatar {
  display:flex; align-items:center; justify-content:center;
  width: 28px; height: 28px;
  background: white;
  color: var(--brand);
  border-radius: 50%;
  font-weight: 900; font-size: 13px;
  flex-shrink: 0;
}
.rw-user-name {
  max-width: 100px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.rw-user-caret { font-size: 10px; opacity: .8; }

.rw-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  padding: 6px;
  display: none;
  z-index: 9999;
  animation: fadeInDown .15s;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rw-user-menu.open { display: block; }
.rw-user-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transition: background .12s;
}
.rw-user-item:hover { background: var(--brand-soft); color: var(--brand); }
.rw-user-item-i { font-size: 16px; width: 22px; text-align: center; }
.rw-user-item-logout { color: var(--danger); }
.rw-user-item-logout:hover { background: #fee2e2; color: var(--danger); }
.rw-user-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

/* En móvil, el dropdown del header se oculta — usa el menú hamburguesa */
@media (max-width: 768px) {
  .rw-user-dropdown { display: none; }
}

/* ═══ MI CUENTA / MI PERFIL — Dashboard ═══════════════════════════════ */
.mc-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 20px 16px 40px;
}
.mc-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 16px;
  color: white;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(230,57,70,.25);
}
.mc-avatar {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  flex-shrink: 0;
}
.mc-hello { font-size: 13px; opacity: .9; }
.mc-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: .5px;
  margin: 0; line-height: 1.1;
  color: white;
}
.mc-cards {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
}
.mc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--border-soft);
}
.mc-card:active {
  transform: scale(.98);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.mc-card-icon {
  width: 44px; height: 44px;
  background: var(--brand-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.mc-card-info { flex: 1; min-width: 0; }
.mc-card-title { font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.mc-card-sub { font-size: 12px; color: var(--text-muted); }
.mc-card-arrow {
  font-size: 24px; color: var(--text-light);
  font-weight: 300;
}
.mc-card-logout .mc-card-icon { background: #fee2e2; }
.mc-card-logout .mc-card-title { color: var(--danger); }

.mc-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: .5px;
  margin-bottom: 12px;
}
.mc-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mc-stat {
  background: white;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.mc-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: .3px;
  color: var(--brand);
}
.mc-stat-lbl {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .4px;
  font-weight: 700; margin-top: 2px;
}

@media (min-width: 600px) {
  .mc-name { font-size: 32px; }
  .mc-avatar { width: 64px; height: 64px; font-size: 26px; }
}

/* ═══ MIS PEDIDOS — Grid de cards ═════════════════════════════════════ */

.mp-breadcrumb {
  margin-bottom: 10px;
  font-size: 13px;
}
.mp-breadcrumb a {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-muted); font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.mp-breadcrumb a:hover { color: var(--brand); }

.mp-head { margin-bottom: 18px; }
.mp-head h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: .5px;
  margin-bottom: 2px;
  display: flex; align-items: center; gap: 8px;
}
.mp-head p {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Empty */
.mp-empty {
  text-align: center;
  padding: 48px 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}
.mp-empty-icon { font-size: 56px; margin-bottom: 8px; opacity: .4; }
.mp-empty h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; margin-bottom: 4px;
}
.mp-empty p { color: var(--text-muted); font-size: 13.5px; }

/* ── Grid responsive ───────────────────────────────────────────────── */
.mp-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 14px 32px;
}
.mp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
/* En desktop: 2 columnas, pero el wrap es angosto (880px) */
@media (min-width: 700px) {
  .mp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Card ──────────────────────────────────────────────────────────── */
.mp-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .12s;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.mp-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,.07);
  border-color: var(--border);
  transform: translateY(-2px);
}
.mp-card:active { transform: translateY(0); }

/* Estado activo (preparación/camino): borde brand con glow sutil */
.mp-card.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fef2f2 0%, white 30%);
  box-shadow: 0 2px 10px rgba(230,57,70,.08);
}

/* Header */
.mp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--border-soft);
}
.mp-ref {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -.2px;
}
.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.mp-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.mp-badge-pending   { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.mp-badge-paid      { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.mp-badge-cooking   { background: #fce7e9; color: #be123c; border-color: #fbcfe8; }
.mp-badge-cooking::before { animation: mpPulse 1.4s ease-in-out infinite; }
.mp-badge-ready     { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.mp-badge-shipping  { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.mp-badge-shipping::before { animation: mpPulse 1.4s ease-in-out infinite; }
.mp-badge-delivered { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.mp-badge-cancelled { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
@keyframes mpPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .35; }
}

/* Body */
.mp-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.mp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
}
.mp-tipo {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
}
.mp-date {
  background: #f9fafb;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 600;
}
.mp-items-preview {
  background: #f9fafb;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11.5px;
  color: #4b5563;
  line-height: 1.35;
  border: 1px solid var(--border-soft);
}
.mp-items-more {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: middle;
}

/* Footer */
.mp-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}
.mp-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  color: var(--brand);
  line-height: 1;
  letter-spacing: .3px;
}
.mp-arrow {
  color: #9ca3af;
  font-size: 22px;
  transition: transform .15s ease, color .15s;
  line-height: 1;
}
.mp-card:hover .mp-arrow { color: var(--brand); transform: translateX(3px); }

/* Comprobante */
.mp-card-comp {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mp-comp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}
.mp-comp-btns {
  display: flex;
  gap: 4px;
}
.mp-comp-btn {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.mp-comp-btn.pdf {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.mp-comp-btn.pdf:hover { background: #dc2626; color: white; }
.mp-comp-btn.xml {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
.mp-comp-btn.xml:hover { background: #4338ca; color: white; }


/* ── Paginación ─────────────────────────────────────────────────── */
.mp-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.mp-pg-btn, .mp-pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: white;
  transition: all .12s;
  -webkit-tap-highlight-color: transparent;
}
.mp-pg-btn:hover, .mp-pg-num:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.mp-pg-num.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  cursor: default;
}
.mp-pg-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.mp-pg-dots {
  display: inline-block;
  padding: 0 4px;
  color: var(--text-muted);
  font-weight: 700;
}
@media (max-width: 480px) {
  .mp-pg-btn { padding: 0 8px; font-size: 11.5px; }
  .mp-pg-num { min-width: 30px; height: 30px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL DE DETALLE DE PEDIDO
   ═══════════════════════════════════════════════════════════════════ */
.mp-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: mpFadeIn .2s;
  overflow-y: auto;
}
@keyframes mpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.mp-modal-box {
  background: white;
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  animation: mpSlideIn .25s cubic-bezier(.16,1,.3,1);
}
@keyframes mpSlideIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.mp-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  border: none;
  font-size: 22px;
  font-weight: 300;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.mp-modal-close:hover {
  background: rgba(0,0,0,.12);
  color: var(--text);
}

.mp-modal-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-soft);
  padding-right: 56px;
}
.mp-modal-ref {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}
.mp-modal-status .mp-badge { font-size: 11px; padding: 4px 10px; }

.mp-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.mp-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: mpSpin .8s linear infinite;
}
@keyframes mpSpin { to { transform: rotate(360deg); } }

.mp-modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 22px;
}
.mp-modal-info-card {
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
}
.mp-modal-info-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.mp-modal-info-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.mp-modal-place {
  margin: 0 22px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.4;
}
.mp-modal-place-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}

.mp-modal-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 10px 22px 8px;
}

/* Items */
.mp-modal-items {
  margin: 0 22px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.mp-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.mp-modal-item:last-child { border-bottom: none; }
.mp-modal-item-img {
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mp-modal-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mp-modal-item-noimg {
  font-size: 26px;
  opacity: .4;
}
.mp-modal-item-info {
  flex: 1; min-width: 0;
}
.mp-modal-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
}
.mp-modal-item-qty {
  font-size: 12px;
  color: var(--text-muted);
}
.mp-modal-item-subtotal {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* Totales */
.mp-modal-totals {
  margin: 14px 22px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px 16px;
}
.mp-modal-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13.5px;
  color: #4b5563;
}
.mp-modal-total-row.mp-modal-grand {
  border-top: 1px dashed #d1d5db;
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
}
.mp-modal-total-row.mp-modal-grand > span:last-child {
  color: var(--brand);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .4px;
}

/* Comprobante en modal */
.mp-modal-comp-block { margin-top: 8px; }
.mp-modal-comp {
  margin: 0 22px 12px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mp-modal-comp-info {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
}
.mp-modal-comp-icon { font-size: 28px; }
.mp-modal-comp-tipo {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #6b7280;
}
.mp-modal-comp-ref {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text);
}
.mp-modal-comp-acts { display: flex; gap: 6px; flex-shrink: 0; }
.mp-modal-comp-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  transition: all .15s;
}
.mp-modal-comp-btn.pdf {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 2px 6px rgba(239,68,68,.25);
}
.mp-modal-comp-btn.pdf:hover { transform: translateY(-1px); }
.mp-modal-comp-btn.xml {
  background: white;
  color: #4338ca;
  border: 1.5px solid #c7d2fe;
}
.mp-modal-comp-btn.xml:hover { background: #e0e7ff; }

/* Actions */
.mp-modal-actions {
  padding: 8px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-modal-btn-primary {
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--brand), #b91c1c);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(230,57,70,.25);
}
.mp-modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230,57,70,.35);
}

/* Mobile: modal full screen */
@media (max-width: 600px) {
  .mp-modal { padding: 0; align-items: stretch; }
  .mp-modal-box {
    border-radius: 0;
    max-height: 100vh;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PÁGINAS DINÁMICAS (/pagina/{slug})
   ═══════════════════════════════════════════════════════════════════ */
.pg-wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 48px; }
.pg-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--border-soft); }
.pg-head h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; letter-spacing: .8px;
  margin-bottom: 6px; color: var(--text);
}
.pg-desc { color: var(--text-muted); font-size: 15px; }
.pg-body { font-size: 15.5px; line-height: 1.75; color: #374151; }
.pg-body h2 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; color: var(--text); }
.pg-body h3 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; color: var(--text); }
.pg-body p { margin: 0 0 14px; }
.pg-body ul, .pg-body ol { padding-left: 22px; margin: 0 0 14px; }
.pg-body li { margin: 6px 0; }
.pg-body a { color: var(--brand); text-decoration: underline; font-weight: 600; }
.pg-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; }
.pg-body blockquote {
  border-left: 4px solid var(--brand);
  background: #fef2f2;
  padding: 12px 16px; margin: 14px 0;
  border-radius: 0 8px 8px 0;
}

@media (min-width: 768px) {
  .pg-head h1 { font-size: 44px; }
  .pg-body { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   LIBRO DE RECLAMACIONES
   ═══════════════════════════════════════════════════════════════════ */
.lr-wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 60px; }

.lr-banner {
  background: linear-gradient(135deg, #7c2d12 0%, #991b1b 100%);
  color: white;
  padding: 28px 24px; border-radius: 16px;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(153,27,27,.18);
}
.lr-banner-icon { font-size: 48px; flex-shrink: 0; }
.lr-banner h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px; letter-spacing: .6px;
  margin: 0 0 4px;
}
.lr-banner p { font-size: 13.5px; opacity: .9; margin: 0; line-height: 1.5; }

.lr-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #78350f;
  margin-bottom: 24px;
  line-height: 1.5;
}

.lr-form { display: flex; flex-direction: column; gap: 18px; }

.lr-section {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 22px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.lr-section-title {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 15px;
  color: var(--text);
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.lr-section-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
}

.lr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.lr-field { display: flex; flex-direction: column; gap: 6px; }
.lr-field label {
  font-size: 12.5px; font-weight: 700; color: #374151;
}
.lr-field .req { color: var(--brand); }
.lr-input {
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 9px;
  font-size: 14.5px;
  background: white;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.lr-input:focus { border-color: var(--brand); }
textarea.lr-input { resize: vertical; min-height: 70px; }

.lr-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-top: 14px;
  background: #f9fafb; border: 1px dashed var(--border);
  border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 600;
}
.lr-toggle input[type="checkbox"] {
  width: 18px; height: 18px; cursor: pointer;
  accent-color: var(--brand);
}

.lr-tipo-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lr-tipo-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
}
.lr-tipo-tab:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.lr-tipo-tab input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--brand);
  flex-shrink: 0;
}
.lr-tipo-content { flex: 1; min-width: 0; }
.lr-tipo-title { font-weight: 800; font-size: 14px; color: var(--text); }
.lr-tipo-desc { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }

.lr-actions {
  background: white;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border-soft);
}
.lr-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, #b91c1c 100%);
  color: white;
  border: none; border-radius: 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(230,57,70,.3);
  letter-spacing: .3px;
}
.lr-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(230,57,70,.4); }
.lr-btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.lr-disclaimer {
  font-size: 11.5px; color: var(--text-muted);
  margin-top: 12px;
}

/* Modal de éxito */
.lr-success {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: lrFadeIn .25s;
}
@keyframes lrFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lr-success-box {
  background: white;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 24px 48px rgba(0,0,0,.3);
}
.lr-success-icon {
  font-size: 64px;
  margin-bottom: 12px;
}
.lr-success-box h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: .5px;
  margin: 0 0 10px;
}
.lr-success-box p { font-size: 14px; color: #4b5563; margin: 0 0 16px; line-height: 1.5; }
.lr-ref {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 800;
  color: var(--brand);
  padding: 10px 18px;
  background: var(--brand-soft);
  border-radius: 10px;
  margin: 4px 0 12px;
  letter-spacing: -.5px;
}

@media (min-width: 600px) {
  .lr-grid { grid-template-columns: 1fr 1fr; }
  .lr-col2 { grid-column: 1 / -1; }
  .lr-banner h1 { font-size: 36px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CONSULTA DE COMPROBANTES
   ═══════════════════════════════════════════════════════════════════ */
.cc-wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 60px; }

.cc-banner {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  padding: 28px 24px; border-radius: 16px;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(30,64,175,.18);
}
.cc-banner-icon { font-size: 44px; flex-shrink: 0; }
.cc-banner h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: .5px;
  margin: 0 0 4px;
}
.cc-banner p { font-size: 13px; opacity: .9; margin: 0; line-height: 1.4; }

.cc-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #3b82f6;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e3a8a;
  margin-bottom: 22px;
  line-height: 1.5;
}

.cc-form {
  background: white;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cc-col2 { grid-column: 1 / -1; }
.cc-field { display: flex; flex-direction: column; gap: 6px; }
.cc-field label { font-size: 12.5px; font-weight: 700; color: #374151; }
.cc-field .req { color: var(--brand); }
.cc-input {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  background: white;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.cc-input:focus { border-color: #3b82f6; }

.cc-btn-primary {
  display: block; width: 100%;
  margin-top: 18px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white; border: none; border-radius: 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.cc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.4); }
.cc-btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }

.cc-result {
  background: white;
  padding: 32px 24px;
  border-radius: 14px;
  border: 2px solid #86efac;
  text-align: center;
}
.cc-result-icon { font-size: 56px; margin-bottom: 10px; }
.cc-result h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: .4px;
  margin: 0 0 18px; color: #166534;
}
.cc-result-info {
  background: #f0fdf4;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: left;
}
.cc-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed #bbf7d0;
}
.cc-result-row:last-child { border-bottom: none; }
.cc-result-row span { color: #166534; font-weight: 600; }
.cc-result-row strong { color: #14532d; font-weight: 800; }

.cc-result-acts {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}
.cc-btn-dl {
  display: block;
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 14px; font-weight: 800;
  text-decoration: none;
  transition: transform .15s;
  text-align: center;
}
.cc-btn-dl:hover { transform: translateY(-1px); }
.cc-btn-pdf  { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 4px 12px rgba(239,68,68,.3); }
.cc-btn-xml  { background: linear-gradient(135deg, #6366f1, #4338ca); color: white; box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.cc-btn-cdr  { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.cc-btn-back {
  background: none; border: none;
  color: #6b7280; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 10px;
  text-decoration: underline;
}

@media (min-width: 600px) {
  .cc-banner h1 { font-size: 34px; }
  .cc-result-acts { flex-direction: row; }
  .cc-btn-dl { flex: 1; }
}

/* ═══ MIS DIRECCIONES — Cuadros separados ════════════════════════════ */
.md-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.md-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  position: relative;
}
.md-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  border-color: var(--border);
}
/* Dirección principal: borde brand */
.md-card:has(.md-principal) {
  border-color: var(--brand);
  box-shadow: 0 2px 10px rgba(230,57,70,.08);
  background: linear-gradient(180deg, #fef2f2 0%, white 30%);
}

.md-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-soft);
}

.md-alias {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.md-principal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.md-acciones {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.md-acciones button {
  width: 34px; height: 34px;
  border: 1px solid var(--border-soft);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.md-acciones button:hover {
  background: #f3f4f6;
  border-color: var(--border);
  transform: translateY(-1px);
}

.md-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.md-dir {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 600;
}
.md-ref {
  font-size: 12.5px;
  color: var(--text-muted);
  background: #f9fafb;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.4;
}
.md-gps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 3px 9px;
  border-radius: 10px;
  align-self: flex-start;
  width: fit-content;
}

/* Desktop: 2 columnas */
@media (min-width: 700px) {
  .md-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .md-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Captcha del Libro de Reclamaciones ───────────────────────────── */
.lr-captcha {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: left;
}
.lr-captcha-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.lr-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lr-captcha-question {
  flex: 1;
  font-size: 20px;
  font-weight: 800;
  color: #92400e;
  font-family: 'JetBrains Mono', monospace;
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #fde68a;
  text-align: center;
  user-select: none;
}
.lr-captcha-input {
  width: 90px;
  padding: 10px 12px;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  background: white;
  color: #92400e;
  outline: none;
  transition: border-color .15s;
  font-family: 'JetBrains Mono', monospace;
}
.lr-captcha-input:focus { border-color: #d97706; }

/* ════════════════════════════════════════════════════════════════════
   CK-COMBO — Combobox tipo dropdown con búsqueda (checkout)
   Combina con la estética del formulario (ck-input, ck-panel).
   ════════════════════════════════════════════════════════════════════ */
.ck-combo {
  position: relative;
  width: 100%;
  min-width: 0;
}
.ck-combo-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s;
  gap: 8px;
  min-height: 48px;
}
.ck-combo-trigger:hover { border-color: var(--brand); }
.ck-combo-trigger:focus { outline: none; border-color: var(--brand); }
.ck-combo-label {
  flex: 1;
  text-align: left;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-combo-label.selected { color: var(--text); font-weight: 700; }
.ck-combo-arrow {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform .2s;
  flex-shrink: 0;
}
.ck-combo-dropdown.open ~ .ck-combo-trigger .ck-combo-arrow,
.ck-combo:has(.ck-combo-dropdown.open) .ck-combo-arrow {
  transform: rotate(180deg);
}

/* Dropdown — oculto por defecto, visible con .open */
.ck-combo-dropdown {
  display: none;
  position: fixed;
  z-index: 1000;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  overflow: hidden;
  flex-direction: column;
}
.ck-combo-dropdown.open { display: flex; }

.ck-combo-search {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  background: #f9fafb;
  font-family: inherit;
}
.ck-combo-search:focus { background: white; border-bottom-color: var(--brand); }

.ck-combo-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0;
  min-height: 0;
}

/* Cabecera de grupo (departamento) */
.ck-combo-group {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #f9fafb;
  border-top: 1px solid var(--border);
}
.ck-combo-group:first-child { border-top: none; }

/* Items de la lista (distrito) */
.ck-combo-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s;
  color: var(--text);
  line-height: 1.3;
}
.ck-combo-item:hover { background: var(--brand-soft); color: var(--brand); }
.ck-combo-item small { font-size: 12px; }

.ck-combo-empty {
  padding: 24px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Mobile: pantalla completa para mejor usabilidad */
@media (max-width: 600px) {
  .ck-combo-dropdown.open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-height: 100vh !important;
    border-radius: 0;
    z-index: 9999;
  }
  .ck-combo-dropdown.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: -1;
  }
  .ck-combo-search {
    padding: 16px;
    font-size: 16px; /* evita zoom iOS */
  }
  .ck-combo-item { padding: 14px 16px; font-size: 15px; }
}

/* ════════════════════════════════════════════════════════════════════
   MODAL DE PRODUCTO — Rediseño estilo Pizza Hut
   Override completo: estructura 2 columnas en desktop, 1 columna en mobile.
   Selectores con #rw-modal-content para alta especificidad y vencer
   reglas anteriores sin necesidad de !important.
   ════════════════════════════════════════════════════════════════════ */

/* Resetear el modal a estado limpio */
#rw-modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Botón cerrar flotante en esquina superior derecha del modal */
#rw-modal-content .rwk-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#rw-modal-content .rwk-modal-close:hover { background: white; }

/* ─── Columna IZQUIERDA: título + imagen + precio + descripción ──── */
.rwk-modal-left {
  padding: 24px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rwk-modal-title {
  font-size: 26px;
  font-weight: 900;
  color: #111;
  margin: 0;
  line-height: 1.1;
  padding-right: 50px; /* espacio para el botón cerrar */
}
.rwk-modal-img-wrap {
  width: 100%;
  background: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-height: 400px;
}
.rwk-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rwk-modal-img-placeholder {
  font-size: 80px;
  color: #d1d5db;
}
.rwk-modal-precio,
.rwk-modal-precio-promo {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.rwk-modal-precio-actual {
  font-size: 32px;
  font-weight: 900;
  color: #111;
}
.rwk-modal-precio-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}
.rwk-modal-precio-tachado {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 700;
}
.rwk-modal-precio-dto {
  font-size: 14px;
  color: var(--success);
  font-weight: 900;
}
.rwk-modal-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin: 4px 0 0;
}

/* ─── Columna DERECHA: opciones + footer ──────────────────────────── */
.rwk-modal-right {
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  min-height: 0;
  flex: 1;
}

#rw-modal-content .rwk-modal-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0 !important;
  /* Altura máxima explícita: 90vh del modal menos el alto del footer (~180px).
     Sin esto, el flex parent no constraína altura y el overflow no scrollea. */
  max-height: calc(90vh - 180px);
}

/* Cada grupo es una card blanca independiente */
#rw-modal-content .rwk-group-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Cada grupo de opciones es ahora una CARD blanca con sombra suave */
#rw-modal-content .rwk-group-title {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  padding: 14px 16px 6px;
  background: white;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#rw-modal-content .rwk-group-req {
  background: white;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  text-transform: none;
  letter-spacing: 0;
}

/* Sub-texto bajo el título del grupo: "Elige 1 opción" */
#rw-modal-content .rwk-group-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  background: white;
  padding: 0 16px 10px;
  margin: 0;
}

/* Filas de opciones dentro de la card */
#rw-modal-content .rwk-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
  background: white;
  gap: 10px;
}
#rw-modal-content .rwk-option-row:last-child {
  border-radius: 0 0 12px 12px;
}
#rw-modal-content .rwk-option-row.selected {
  background: var(--brand-soft);
}

/* Imagen de la opción más grande (38→44) */
#rw-modal-content .rwk-option-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

/* Nombre de la opción más visible */
#rw-modal-content .rwk-option-name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

/* Tag de precio a la derecha (+S/ 3.00 o Incluido) */
#rw-modal-content .rwk-option-price-tag {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
}
#rw-modal-content .rwk-option-price-tag.free {
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

/* Check circle al lado izquierdo: check → imagen → nombre */
#rw-modal-content .rwk-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
#rw-modal-content .rwk-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all .15s;
}
#rw-modal-content .rwk-option-row.selected .rwk-option-check {
  background: var(--brand);
  border-color: var(--brand);
}
/* Checkbox CUADRADO para opciones múltiples (data-type="multiple").
   Convención UX: cuadrado = puedes marcar varios, redondo = elegir solo uno. */
#rw-modal-content .rwk-option-row[data-type="multiple"] .rwk-option-check {
  border-radius: 5px;
}
#rw-modal-content .rwk-option-row.selected .rwk-option-check::after {
  content: '✓';
  font-size: 12px;
  color: white;
  font-weight: 900;
}

/* Combo grid: cards con imagen arriba */
#rw-modal-content .rwk-combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
  background: white;
  border-radius: 12px;
}
#rw-modal-content .rwk-combo-item {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
#rw-modal-content .rwk-combo-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 6px;
}
#rw-modal-content .rwk-combo-item-name {
  font-size: 11px;
}

/* Footer del modal */
#rw-modal-content .rwk-modal-footer-fixed {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: white;
}

/* ─── Desktop: 2 columnas ──────────────────────────────────────────── */
@media (min-width: 768px) {
  .rw-modal {
    max-width: 1100px;
    height: 90vh;
    max-height: 90vh;
  }
  #rw-modal-content {
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-rows: 1fr;
    height: 100%;
    min-height: 0;
  }
  .rwk-modal-left {
    grid-column: 1;
    grid-row: 1;
    overflow-y: auto;
    min-height: 0;
    border-right: 1px solid var(--border);
    padding: 32px;
  }
  .rwk-modal-right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .rwk-modal-title {
    font-size: 32px;
  }
  .rwk-modal-img-wrap {
    max-height: 360px;
  }
}

/* ─── Mobile: layout vertical (header sticky con título e imagen) ─── */
@media (max-width: 767px) {
  .rwk-modal-left {
    padding: 16px;
    gap: 10px;
    flex-shrink: 0;
  }
  .rwk-modal-title {
    font-size: 22px;
    padding-right: 44px;
  }
  .rwk-modal-img-wrap {
    max-height: 280px;
  }
  .rwk-modal-precio-actual {
    font-size: 26px;
  }
}