/* ==========================================================================
   Monako · Sitio público, menú digital, carrito y seguimiento
   ========================================================================== */
body.pub { background: #fff; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 12px; }
.announce b { color: var(--accent); }
.p-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.p-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .3); }
.p-nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.p-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.p-logo .logo-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 23px; box-shadow: 0 8px 18px -8px rgba(232, 84, 30, .7); overflow: hidden; }
.p-logo .logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.p-links { display: flex; gap: 6px; margin-left: auto; }
.p-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); font-size: 14.5px; }
.p-links a:hover { color: var(--ink); background: var(--line-2); }
.p-links a.active { background: var(--ink); color: #fff; }
.p-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; }
.cart-btn .count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; padding: 0 4px; }
.p-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.p-round:hover { border-color: var(--ink); }
@media (max-width: 900px) { .p-links, .p-actions .hide-m { display: none; } .p-nav { height: 64px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, #FFE9DC 0%, transparent 60%), radial-gradient(800px 500px at 0% 100%, #FFF4D6 0%, transparent 55%), var(--cream); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 64px 0 80px; }
.hero h1 { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.02em; color: var(--ink); }
.hero h1 em { color: var(--brand); font-style: italic; }
.hero p.lead { font-size: 17px; color: var(--ink-2); max-width: 520px; margin-top: 20px; line-height: 1.6; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; box-shadow: var(--sh); font-weight: 700; font-size: 13px; color: var(--ink-2); margin-bottom: 22px; }
.pill-badge span { background: var(--brand-50); color: var(--brand); border-radius: 999px; padding: 3px 9px; }
.addr-bar { display: flex; gap: 8px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--sh); max-width: 540px; margin-top: 28px; }
.addr-bar .input { border: 0; box-shadow: none !important; }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.hero-art .ring { position: absolute; border-radius: 50%; }
.hero-art .r1 { inset: 6%; background: var(--accent); opacity: .9; }
.hero-art .r2 { inset: 12%; background: #2A9D8F; transform: translate(-6%, 4%); opacity: .85; }
.hero-art .plate { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(31, 26, 23, .55), 0 0 0 14px #fff; animation: float 7s ease-in-out infinite; }
.hero-art .plate .pimg, .hero-art .plate img { width: 100%; height: 100%; }
.float-card { position: absolute; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; animation: float 6s ease-in-out infinite; }
.float-card .fi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.deco { position: absolute; pointer-events: none; font-size: 34px; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 32px 0 48px; text-align: center; } .hero p.lead, .addr-bar { margin-inline: auto; } .hero-stats { justify-content: center; } .hero-art { max-width: 360px; order: -1; } .hero .row.wrap { justify-content: center; } }

/* Secciones */
.section { padding: 72px 0; }
.section.alt { background: #FBF8F5; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-title { font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -.01em; }
.sec-title em { color: var(--brand); font-style: italic; }
.sec-sub { color: var(--muted); margin-top: 6px; }
.nav-arrows { display: flex; gap: 8px; }
.nav-arrows button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.nav-arrows button.primary { background: var(--accent); border-color: var(--accent); }

/* Categorías circulares */
.cats { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 88px; cursor: pointer; }
.cat .cc { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; transition: transform .2s var(--ease), box-shadow .2s; }
.cat:hover .cc, .cat.active .cc { transform: translateY(-4px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .35); }
.cat.active .cc { outline: 3px solid var(--brand); outline-offset: 3px; }
.cat span { font-weight: 700; font-size: 13.5px; }

/* Promociones (estilo combos coloreados) */
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promo { position: relative; border-radius: 24px; padding: 26px; min-height: 200px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); }
.promo h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; max-width: 60%; line-height: 1.1; }
.promo p { font-size: 13px; max-width: 58%; opacity: .85; margin-top: 6px; }
.promo .p-img { position: absolute; right: -24px; bottom: -24px; width: 52%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); border: 6px solid rgba(255, 255, 255, .7); }
.promo .p-img .pimg { width: 100%; height: 100%; }
.promo .p-tag { display: inline-block; background: #fff; color: var(--red); font-weight: 800; font-size: 11px; padding: 4px 10px; border-radius: 99px; margin-bottom: 10px; align-self: flex-start; }
.promo .btn { align-self: flex-start; background: #fff; color: var(--ink); }
@media (max-width: 900px) { .promo-row { grid-template-columns: 1fr; } }

/* Tarjetas de platos (estilo platos populares) */
.dish-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.dish { background: #fff; border-radius: 26px; padding: 24px 22px 22px; text-align: center; box-shadow: 0 18px 40px -28px rgba(31, 26, 23, .35); border: 1px solid var(--line-2); transition: transform .25s var(--ease), box-shadow .25s; cursor: pointer; position: relative; display: flex; flex-direction: column; }
.dish:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(31, 26, 23, .45); }
.dish .d-img { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45); border: 6px solid #fff; outline: 1px solid var(--line-2); }
.dish .d-img .pimg { width: 100%; height: 100%; }
.dish h4 { font-size: 17px; font-weight: 800; }
.dish p { font-size: 13px; color: var(--muted); margin: 6px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.dish .d-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.dish .price { font-size: 22px; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.dish .add { height: 36px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--green-100); color: var(--green); font-weight: 700; font-size: 13px; background: #fff; }
.dish:hover .add, .dish .add:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.dish .flags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.dish.off { opacity: .55; }
.fav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.fav.on { color: #E11D48; border-color: #FBCFE8; background: #FFF1F5; }
.fav.on .ic { fill: #E11D48; }

/* Reserva rápida (franja) */
.book-strip { background: #fff; border-radius: 28px; box-shadow: var(--sh-lg); padding: 28px 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: -48px; position: relative; z-index: 3; }
.book-strip h3 { font-family: var(--f-display); font-size: 28px; }
.book-strip .bimg { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; }
@media (max-width: 900px) { .book-strip { grid-template-columns: 1fr; text-align: center; margin-top: 24px; } .book-strip .bimg { margin: auto; } }

/* Menú en lista (dos columnas) */
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 48px; }
.ml-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer; }
.ml-item .pimg { width: 58px; height: 58px; border-radius: 14px; flex: none; }
.ml-item .dots { flex: 1; border-bottom: 2px dotted var(--line); margin: 0 6px; transform: translateY(-4px); }
.ml-item .mp { font-size: 20px; font-weight: 800; color: var(--green); }
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; } }

/* Banner app */
.app-banner { background: linear-gradient(120deg, var(--accent) 0%, #FFCB5C 100%); border-radius: 32px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; overflow: hidden; position: relative; }
.app-banner h3 { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.phone-mock { width: 240px; height: 470px; border-radius: 40px; background: #111; padding: 10px; margin: -80px auto -110px; box-shadow: var(--sh-lg); transform: rotate(6deg); }
.phone-mock .screen { width: 100%; height: 100%; border-radius: 32px; background: #fff; overflow: hidden; position: relative; }
@media (max-width: 900px) { .app-banner { grid-template-columns: 1fr; padding: 30px; text-align: center; } .phone-mock { display: none; } }

/* Footer */
.p-footer { background: #1D2A33; color: #C9D3DA; padding: 64px 0 28px; margin-top: 72px; }
.p-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.p-footer a { color: #C9D3DA; font-size: 14px; display: block; padding: 4px 0; }
.p-footer a:hover { color: #fff; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } }

/* Página de menú */
.menu-top { position: sticky; top: 74px; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0; }
@media (max-width: 900px) { .menu-top { top: 64px; } }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.m-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; cursor: pointer; transition: box-shadow .2s, transform .2s; position: relative; }
.m-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.m-card .pimg { width: 108px; height: 108px; border-radius: 16px; flex: none; }
.m-card .mc-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.m-card h4 { font-size: 15px; font-weight: 800; }
.m-card p { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-card .mc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.m-card .mc-price { font-weight: 800; font-size: 16px; }
.m-card .plus { width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(232, 84, 30, .7); }
.m-card.off { opacity: .55; }
.m-card.off .plus { background: var(--muted-2); box-shadow: none; }
.cat-block { scroll-margin-top: 150px; }
.cat-block h2 { font-family: var(--f-display); font-size: 28px; margin: 34px 0 14px; }
.table-banner { background: var(--ink); color: #fff; border-radius: 20px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Configurador de producto (vista detalle) */
.pd-hero { position: relative; margin: -22px -22px 0; height: 260px; background: linear-gradient(160deg, var(--brand) 0%, #FF8A4C 100%); display: grid; place-items: center; overflow: hidden; }
.pd-hero .pimg { width: 230px; height: 230px; border-radius: 50%; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55); border: 6px solid rgba(255, 255, 255, .5); }
.pd-hero .x { position: absolute; top: 14px; right: 14px; background: #fff; }
.pd-hero .fav { position: absolute; top: 14px; left: 14px; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--muted-2); }
.opt.on { border-color: var(--brand); background: var(--brand-50); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.opt .op-price { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--ink-2); }

/* Carrito */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-line .pimg { width: 64px; height: 64px; border-radius: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); }
.sum-row.total { font-size: 20px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; }

/* Checkout */
.co-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 28px; align-items: start; padding: 36px 0 60px; }
.co-step { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 18px; }
.co-step h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.co-step h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.choice { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: all .15s; background: #fff; text-align: left; }
.choice:hover { border-color: var(--muted-2); }
.choice.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(232, 84, 30, .12); }
.choice .ic { color: var(--brand); }
.pick-map { height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; z-index: 1; }
.co-summary { position: sticky; top: 96px; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } .co-summary { position: static; } }

/* Seguimiento */
.track-hero { background: linear-gradient(160deg, var(--brand), #FF8A4C); color: #fff; padding: 36px 0 90px; }
.track-card { background: #fff; border-radius: 24px; box-shadow: var(--sh-lg); padding: 24px; margin-top: -70px; position: relative; }
.stepper { display: flex; justify-content: space-between; position: relative; margin: 10px 0 6px; }
.stepper::before { content: ""; position: absolute; left: 6%; right: 6%; top: 19px; height: 4px; background: var(--line); border-radius: 4px; }
.stepper .bar { position: absolute; left: 6%; top: 19px; height: 4px; background: var(--brand); border-radius: 4px; transition: width .6s var(--ease); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 20%; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.step .dot { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 6px rgba(232, 84, 30, .15); animation: pulseB 1.6s infinite; }
.step.done, .step.current { color: var(--ink); }
@keyframes pulseB { 50% { box-shadow: 0 0 0 10px rgba(232, 84, 30, .06); } }
.pin-box { background: var(--ink); color: #fff; border-radius: 20px; padding: 18px; text-align: center; }
.pin-box b { font-size: 42px; letter-spacing: .3em; display: block; }

/* Navegación inferior móvil */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .bottom-nav { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; background: var(--ink); border-radius: 22px; padding: 8px; justify-content: space-around; box-shadow: var(--sh-lg); padding-bottom: calc(8px + env(safe-area-inset-bottom) / 2); }
  .bottom-nav a { color: #A8A29E; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; padding: 6px 10px; border-radius: 14px; position: relative; }
  .bottom-nav a.active { color: #fff; background: rgba(255, 255, 255, .1); }
  .bottom-nav a.active .ic { color: var(--brand); }
  .bottom-nav .count { position: absolute; top: 0; right: 4px; background: var(--brand); color: #fff; border-radius: 99px; font-size: 10px; min-width: 17px; height: 17px; display: grid; place-items: center; font-weight: 800; }
  body.pub { padding-bottom: 90px; }
  .p-footer { margin-bottom: 0; }
}
.float-cart { position: fixed; right: 24px; bottom: 24px; z-index: 65; display: none; }
@media (min-width: 901px) { .float-cart.show { display: block; } }

/* Kiosco */
body.kiosk { background: #FBF8F5; overflow: hidden; user-select: none; }
.k-start { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; background: radial-gradient(900px 600px at 70% 20%, #FFE0CC, transparent), var(--cream); cursor: pointer; }
.k-start h1 { font-family: var(--f-display); font-style: italic; font-size: 72px; line-height: 1; }
.k-layout { display: grid; grid-template-columns: 220px 1fr 380px; height: 100vh; }
.k-cats { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.k-cat { padding: 16px 12px; border-radius: 18px; text-align: center; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #FBF8F5; }
.k-cat .e { font-size: 34px; }
.k-cat.active { background: var(--brand); color: #fff; }
.k-main { overflow-y: auto; padding: 22px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.k-tile { background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; }
.k-tile .pimg { aspect-ratio: 1.2; }
.k-tile .kb { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.k-tile b { font-size: 17px; }
.k-tile .kp { font-size: 20px; font-weight: 800; color: var(--brand); margin-top: auto; }
.k-side { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
@media (max-width: 1000px) { .k-layout { grid-template-columns: 120px 1fr; } .k-side { position: fixed; inset: auto 0 0 0; height: 46vh; border-top: 1px solid var(--line); } }

/* App repartidor */
body.driver { background: #F4F1EE; }
.drv-top { background: var(--ink); color: #fff; padding: 18px 16px 60px; }
.drv-wrap { max-width: 560px; margin: -44px auto 0; padding: 0 14px 40px; }
.drv-card { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--sh); margin-bottom: 14px; }
body.pub { overflow-x: hidden; }
.menu-top .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.menu-top .seg::-webkit-scrollbar { display: none; }
.menu-top .seg button { flex: none; }
@media (max-width: 640px) { .menu-top .row.wrap > .input-icon { flex-basis: 100%; } .m-card .pimg { width: 92px; height: 92px; } .pd-hero { height: 220px; } .pd-hero .pimg { width: 190px; height: 190px; } }
html { overflow-x: clip; }
.hero { overflow: clip; }
@media (max-width: 900px) {
  body.pub .grid[style*="grid-template-columns"]:not([style*="auto-fill"]) { grid-template-columns: 1fr !important; }
  .float-card { transform: scale(.85); }
  .hero-art .float-card:first-of-type { left: 0 !important; }
  .hero-art .float-card:last-of-type { right: 0 !important; }
}
