/* Menú Restaurante WhatsApp — landing */

.rm-body { margin: 0; }

.rm-app {
	--rm-radius: 16px;
	--rm-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
	--rm-wa: #25d366;
	--rm-h-transform: none;
	--rm-h-spacing: 0;
	position: relative;
	min-height: 100vh;
	background: var(--rm-bg);
	color: var(--rm-text);
	font-family: var(--rm-font-b);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	padding-bottom: 96px;
}
.rm-app--embedded { min-height: 0; border-radius: var(--rm-radius); overflow: clip; }
.rm-app *, .rm-app *::before, .rm-app *::after { box-sizing: border-box; }
.rm-app img { max-width: 100%; display: block; }
.rm-app svg { width: 1.15em; height: 1.15em; flex: none; }
.rm-app button { font: inherit; color: inherit; cursor: pointer; }
.rm-app [hidden] { display: none !important; }
.rm-app h1, .rm-app h2, .rm-app h3, .rm-app h4 {
	font-family: var(--rm-font-h);
	text-transform: var(--rm-h-transform);
	letter-spacing: var(--rm-h-spacing);
	margin: 0;
	line-height: 1.15;
	color: inherit;
}
html.rm-lock, html.rm-lock body { overflow: hidden; }

/* ---------- Hero ---------- */
.rm-hero {
	position: relative;
	background: linear-gradient(135deg, var(--rm-primary), color-mix(in srgb, var(--rm-primary) 70%, var(--rm-secondary)));
	color: var(--rm-on-primary);
	text-align: center;
	padding: 56px 20px 44px;
	overflow: hidden;
}
.rm-hero--cover { background-size: cover; background-position: center; color: #fff; }
.rm-hero--cover::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.7));
}
.rm-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
	background: var(--rm-bg);
	border-radius: 28px 28px 0 0;
}
.rm-hero__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding-bottom: 8px; }
.rm-hero__logo {
	width: 104px; height: 104px; margin: 0 auto 16px;
	border-radius: 50%; object-fit: cover;
	background: #fff; border: 4px solid rgba(255,255,255,.9);
	box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.rm-hero__logo--text {
	display: grid; place-items: center;
	font-family: var(--rm-font-h); font-size: 44px; font-weight: 700;
	background: var(--rm-secondary); color: var(--rm-on-secondary);
}
.rm-hero__title { font-size: clamp(30px, 6vw, 48px); font-weight: 700; }
.rm-hero__slogan { margin: 10px auto 0; max-width: 520px; opacity: .92; font-size: 17px; }
.rm-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.rm-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 999px; font-size: 14px;
	background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.25);
}

/* ---------- Navegación ---------- */
.rm-nav {
	position: sticky; top: 0; z-index: 20;
	background: color-mix(in srgb, var(--rm-bg) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--rm-border);
}
.admin-bar .rm-nav { top: 32px; }
.rm-nav__inner { max-width: 1120px; margin: 0 auto; padding: 12px 16px 10px; }
.rm-search {
	display: flex; align-items: center; gap: 10px;
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: 999px; padding: 0 16px; color: var(--rm-muted);
}
.rm-search__input {
	flex: 1; border: 0; background: transparent; outline: none;
	font: inherit; color: var(--rm-text); padding: 11px 0; min-width: 0;
}
.rm-search__input::placeholder { color: var(--rm-muted); }
.rm-search:focus-within { border-color: var(--rm-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rm-primary) 20%, transparent); }
.rm-nav__cats {
	display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px;
	scrollbar-width: none; scroll-behavior: smooth;
}
.rm-nav__cats::-webkit-scrollbar { display: none; }
.rm-chip {
	flex: none; text-decoration: none; white-space: nowrap;
	padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
	color: var(--rm-text); background: var(--rm-surface-2);
	border: 1px solid transparent; transition: background .2s, color .2s;
}
.rm-chip:hover { border-color: var(--rm-border); }
.rm-chip.is-active { background: var(--rm-primary); color: var(--rm-on-primary); }

/* ---------- Menú ---------- */
.rm-menu { max-width: 1120px; margin: 0 auto; padding: 8px 16px 24px; }
.rm-section { padding-top: 28px; scroll-margin-top: 130px; }
.rm-section__title {
	font-size: clamp(22px, 4vw, 28px); font-weight: 700; margin-bottom: 14px;
	display: flex; align-items: center; gap: 12px;
}
.rm-section__title::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--rm-secondary), transparent); opacity: .6; }
.rm-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rm-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .rm-grid { grid-template-columns: repeat(3, 1fr); } }

.rm-card {
	position: relative; background: var(--rm-surface);
	border: 1px solid var(--rm-border); border-radius: var(--rm-radius);
	box-shadow: var(--rm-shadow); overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.rm-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.1); }
.rm-card__link {
	display: flex; gap: 14px; padding: 12px; color: inherit; text-decoration: none; height: 100%;
}
.rm-card__media {
	position: relative; flex: none; width: 108px; height: 108px; border-radius: 12px; overflow: hidden;
	background: var(--rm-surface-2);
}
.rm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rm-ph {
	width: 100%; height: 100%; display: grid; place-items: center;
	font-family: var(--rm-font-h); font-size: 38px; font-weight: 700;
	color: var(--rm-on-primary);
	background: linear-gradient(135deg, var(--rm-primary), var(--rm-secondary));
	opacity: .9;
}
.rm-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; padding-right: 30px; }
.rm-card__title { font-weight: 700; font-size: 16px; line-height: 1.25; }
.rm-card__desc {
	margin-top: 4px; font-size: 14px; color: var(--rm-muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rm-card__price { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--rm-primary); font-size: 16px; }
.rm-card__add {
	position: absolute; right: 12px; bottom: 12px;
	width: 38px; height: 38px; border-radius: 50%; border: 0;
	display: grid; place-items: center;
	background: var(--rm-primary); color: var(--rm-on-primary);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--rm-primary) 40%, transparent);
	transition: transform .15s;
}
.rm-card__add:active { transform: scale(.9); }
.rm-card.is-soldout { opacity: .6; }
.rm-badge {
	position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px;
	background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.rm-card.is-hidden, .rm-section.is-hidden { display: none; }
.rm-empty, .rm-noresults { text-align: center; color: var(--rm-muted); padding: 48px 0; }

.rm-footer {
	text-align: center; padding: 28px 16px; color: var(--rm-muted); font-size: 14px;
	display: flex; flex-direction: column; gap: 2px;
}

/* ---------- Botones flotantes ---------- */
.rm-wa {
	position: fixed; right: 18px; bottom: 18px; z-index: 30;
	width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--rm-wa); color: #fff;
	box-shadow: 0 8px 24px rgba(37,211,102,.45);
	transition: transform .2s, bottom .3s;
}
.rm-wa svg { width: 32px; height: 32px; }
.rm-wa:hover { transform: scale(1.06); }
.rm-app.has-cart .rm-wa { bottom: 92px; }

.rm-cartbar {
	position: fixed; left: 50%; bottom: 16px; z-index: 31;
	transform: translateX(-50%);
	width: min(560px, calc(100% - 32px));
	display: flex; align-items: center; gap: 12px;
	padding: 14px 18px; border: 0; border-radius: 999px;
	background: var(--rm-primary); color: var(--rm-on-primary) !important;
	font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25);
	animation: rm-up .35s ease;
}
.rm-cartbar__count {
	min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
	display: grid; place-items: center; font-size: 14px;
	background: var(--rm-on-primary); color: var(--rm-primary);
}
.rm-cartbar__label { flex: 1; text-align: left; }
.rm-cartbar.is-bump { animation: rm-bump .4s ease; }

/* ---------- Overlays (ficha + carrito) ---------- */
.rm-overlay {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(0,0,0,.5);
	display: flex; align-items: flex-end; justify-content: center;
	animation: rm-fade .2s ease;
}
.rm-sheet {
	position: relative; width: 100%; max-height: 92vh; max-height: 92dvh;
	background: var(--rm-bg); color: var(--rm-text);
	border-radius: 24px 24px 0 0; overflow: hidden;
	display: flex; flex-direction: column;
	animation: rm-up .3s cubic-bezier(.2,.8,.2,1);
	box-shadow: 0 -10px 40px rgba(0,0,0,.2);
}
@media (min-width: 720px) {
	.rm-overlay { align-items: center; padding: 24px; }
	.rm-sheet { max-width: 520px; border-radius: 24px; max-height: 88vh; }
	.rm-drawer { justify-content: flex-end; padding: 0; }
	.rm-drawer .rm-sheet { height: 100vh; max-height: none; border-radius: 0; max-width: 440px; animation-name: rm-left; }
}
.rm-close {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	width: 38px; height: 38px; border-radius: 50%; border: 0;
	display: grid; place-items: center;
	background: rgba(0,0,0,.55); color: #fff !important;
}

/* Ficha del producto */
.rm-product { overflow-y: auto; }
.rm-product__media { aspect-ratio: 4 / 3; background: var(--rm-surface-2); flex: none; }
.rm-product__media img { width: 100%; height: 100%; object-fit: cover; }
.rm-product__media .rm-ph { font-size: 96px; }
.rm-product__body { padding: 20px 20px 8px; }
.rm-product__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rm-secondary); }
.rm-product__title { font-size: 26px; font-weight: 700; margin-top: 4px; }
.rm-product__desc { color: var(--rm-muted); margin: 10px 0 0; white-space: pre-line; }
.rm-product__price { font-size: 22px; font-weight: 700; color: var(--rm-primary); margin: 12px 0 16px; }
.rm-product__actions {
	position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
	background: var(--rm-bg); border-top: 1px solid var(--rm-border);
}
.rm-product__add { flex: 1; }
.rm-product.is-soldout .rm-product__add { opacity: .5; pointer-events: none; }

.rm-qty { display: flex; align-items: center; border: 1px solid var(--rm-border); border-radius: 999px; background: var(--rm-surface); }
.rm-qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 22px; line-height: 1; }
.rm-qty__value { min-width: 26px; text-align: center; font-weight: 700; }
.rm-qty--sm button { width: 32px; height: 32px; font-size: 18px; }

.rm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px;
	background: var(--rm-primary); color: var(--rm-on-primary) !important;
	font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
	transition: filter .15s, transform .15s;
}
.rm-btn:hover { filter: brightness(1.06); }
.rm-btn:active { transform: scale(.98); }
.rm-btn--wa { background: var(--rm-wa); color: #fff !important; width: 100%; }
.rm-btn--wa svg { width: 22px; height: 22px; }
.rm-btn--ghost { background: transparent; color: var(--rm-text) !important; border: 1px solid var(--rm-border); width: 100%; }

.rm-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.rm-label small { font-weight: 400; color: var(--rm-muted); }
.rm-input {
	display: block; width: 100%; margin-top: 6px;
	padding: 12px 14px; border-radius: 12px;
	border: 1px solid var(--rm-border); background: var(--rm-surface);
	color: var(--rm-text); font: inherit; font-weight: 400; resize: vertical;
}
.rm-input:focus { outline: none; border-color: var(--rm-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rm-primary) 20%, transparent); }
.rm-input.is-invalid { border-color: #d93025; }

/* Carrito */
.rm-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--rm-border); }
.rm-cart__head h3 { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.rm-cart__head .rm-close { position: static; background: var(--rm-surface-2); color: var(--rm-text) !important; }
.rm-cart__scroll { overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); flex: 1; }
.rm-cart__items { list-style: none; margin: 0; padding: 0; }
.rm-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--rm-border); align-items: flex-start; }
.rm-item__img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: var(--rm-surface-2); }
.rm-item__img img { width: 100%; height: 100%; object-fit: cover; }
.rm-item__img .rm-ph { font-size: 22px; }
.rm-item__info { flex: 1; min-width: 0; }
.rm-item__name { font-weight: 700; line-height: 1.25; }
.rm-item__note { font-size: 13px; color: var(--rm-muted); font-style: italic; margin-top: 2px; }
.rm-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.rm-item__price { font-weight: 700; }
.rm-item__remove { border: 0; background: none; color: var(--rm-muted); font-size: 13px; text-decoration: underline; padding: 0; }
.rm-cart__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-size: 18px; }
.rm-cart__total strong { font-size: 24px; color: var(--rm-primary); }
.rm-cart__empty { text-align: center; padding: 32px 0; color: var(--rm-muted); }
.rm-form { padding-top: 8px; border-top: 1px solid var(--rm-border); }
.rm-form h4 { font-size: 18px; margin: 14px 0 12px; }
.rm-form__error { color: #d93025; font-size: 14px; margin: 0 0 12px; }
.rm-form__hint { text-align: center; color: var(--rm-muted); font-size: 13px; margin: 10px 0 0; }
.rm-cart__done { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; overflow-y: auto; }
.rm-cart__done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--rm-wa); color: #fff; display: grid; place-items: center; }
.rm-cart__done-icon svg { width: 42px; height: 42px; }
.rm-cart__done h4 { font-size: 22px; }
.rm-cart__done p { color: var(--rm-muted); margin: 0 0 8px; }

/* Toast */
.rm-toast {
	position: fixed; left: 50%; top: 18px; z-index: 200;
	transform: translate(-50%, -150%); opacity: 0; visibility: hidden;
	transition: transform .3s ease, opacity .3s, visibility .3s;
	background: var(--rm-text); color: var(--rm-bg);
	padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
	box-shadow: 0 8px 24px rgba(0,0,0,.2); pointer-events: none; max-width: 90vw;
}
.rm-toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@keyframes rm-fade { from { opacity: 0; } }
@keyframes rm-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes rm-left { from { transform: translateX(40px); opacity: 0; } }
.rm-cartbar { animation-name: rm-cartin; }
@keyframes rm-cartin { from { transform: translate(-50%, 40px); opacity: 0; } }
@keyframes rm-bump { 0%,100% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
	.rm-app *, .rm-overlay, .rm-sheet { animation: none !important; transition: none !important; }
}

/* ---------- v2: aviso, idioma y estado ---------- */
.rm-banner {
	background: var(--rm-secondary); color: var(--rm-on-secondary);
	text-align: center; font-weight: 700; font-size: 14px; padding: 9px 16px;
}
.rm-lang {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	min-width: 44px; height: 34px; padding: 0 12px; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25);
	color: #fff !important; font-weight: 700; font-size: 13px; letter-spacing: .05em;
	backdrop-filter: blur(6px);
}
.rm-pill--status.is-open::before, .rm-pill--status.is-closed::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none;
}
.rm-pill--status.is-closed::before { background: #ff6b5e; }
.rm-pill--status.is-closed { background: rgba(0,0,0,.35); }

/* ---------- v2: checkout ---------- */
.rm-notice {
	margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
	background: color-mix(in srgb, #ff6b5e 14%, var(--rm-bg)); border: 1px solid color-mix(in srgb, #ff6b5e 40%, transparent);
}
.rm-fs { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.rm-fs legend { font-family: var(--rm-font-h); font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 10px; }
.rm-fs.is-invalid legend { color: #d93025; }
.rm-seg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--rm-surface-2); margin-bottom: 12px; }
.rm-seg label { flex: 1; position: relative; }
.rm-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.rm-seg span {
	display: block; text-align: center; padding: 10px 6px; border-radius: 10px;
	font-weight: 600; font-size: 14px; transition: background .15s, color .15s;
}
.rm-seg input:checked + span { background: var(--rm-primary); color: var(--rm-on-primary); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.rm-seg input:focus-visible + span { outline: 2px solid var(--rm-primary); outline-offset: 2px; }
.rm-fs.is-invalid .rm-seg, .rm-fs.is-invalid .rm-pays { box-shadow: 0 0 0 2px #d93025; border-radius: 14px; }
.rm-help { font-size: 13px; color: var(--rm-muted); margin: -4px 0 8px; }
.rm-help.is-warn { color: #d93025; font-weight: 600; }
select.rm-input { appearance: auto; }

.rm-pays { display: flex; flex-direction: column; gap: 8px; }
.rm-pay {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
	border: 1px solid var(--rm-border); border-radius: 12px; background: var(--rm-surface); font-weight: 600;
}
.rm-pay input { accent-color: var(--rm-primary); width: 18px; height: 18px; margin: 0; }
.rm-pay:has(input:checked) { border-color: var(--rm-primary); box-shadow: 0 0 0 1px var(--rm-primary); }
.rm-pay__info {
	margin: -2px 0 4px; padding: 10px 14px; border-radius: 10px; font-size: 14px;
	background: var(--rm-surface-2); white-space: normal;
}
.rm-pay__info .rm-label { margin: 0; }

.rm-coupon { margin-top: 18px; }
.rm-coupon__toggle {
	display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0;
	color: var(--rm-primary) !important; font-weight: 700; font-size: 14px;
}
.rm-coupon__row { display: flex; gap: 8px; margin-top: 10px; }
.rm-coupon__row .rm-input { margin: 0; text-transform: uppercase; }
.rm-coupon__row .rm-btn { width: auto; min-height: 0; padding: 0 16px; flex: none; }
.rm-coupon__msg { font-size: 13px; margin: 8px 0 0; font-weight: 600; }
.rm-coupon__msg.is-ok { color: #1e8e3e; }
.rm-coupon__msg.is-error { color: #d93025; }

.rm-summary { margin: 18px 0 8px; padding: 14px 16px; border-radius: 14px; background: var(--rm-surface-2); }
.rm-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 15px; }
.rm-summary dt, .rm-summary dd { margin: 0; }
.rm-summary .is-discount { color: #1e8e3e; }
.rm-summary .is-total { border-top: 1px dashed var(--rm-border); margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 700; }
.rm-summary .is-total dd { color: var(--rm-primary); font-size: 22px; }

.rm-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 12px 0; cursor: pointer; }
.rm-privacy input { margin-top: 2px; accent-color: var(--rm-primary); width: 18px; height: 18px; flex: none; }
.rm-privacy a { color: var(--rm-primary); }
.rm-btn[disabled] { opacity: .5; cursor: not-allowed; }
.rm-cart__done-number { font-weight: 700; font-size: 18px; color: var(--rm-text) !important; }

/* ---------- Menú sin fotos ---------- */
.rm-app--nophotos .rm-card__media,
.rm-app--nophotos .rm-product__media,
.rm-app--nophotos .rm-item__img { display: none; }
.rm-app--nophotos .rm-card__link { padding: 16px 16px 16px 18px; min-height: 0; }
.rm-app--nophotos .rm-card { border-left: 4px solid var(--rm-primary); }
.rm-app--nophotos .rm-card__desc { -webkit-line-clamp: 3; }
.rm-app--nophotos .rm-product__body { padding-top: 56px; }
.rm-app--nophotos .rm-product .rm-close { background: var(--rm-surface-2); color: var(--rm-text) !important; }
