/* ==========================================================================
   VERTICE — Sky Bar & Lounge | Restaurant Book Menu (3D Dark Luxury Theme)
   ========================================================================== */

.rbm-stage {
	--rbm-page-w: 440px;
	--rbm-page-h: 650px;
	--rbm-depth: 26px;
	--rbm-bg-deep: #09090b;
	--rbm-cover-bg: #151518;
	--rbm-cover-dark: #0c0c0e;
	--rbm-gold: #e8b368;
	--rbm-gold-strong: #f2c37c;
	--rbm-gold-deep: #c98e3e;
	--rbm-gold-soft: rgba(232, 179, 104, 0.36);
	--rbm-gold-faint: rgba(232, 179, 104, 0.18);
	--rbm-paper: #17171a;
	--rbm-paper-light: #1c1c20;
	--rbm-paper-deep: #111114;
	--rbm-ink: #f4f1eb;
	--rbm-ink-muted: #9e9991;
	--rbm-accent: #e8b368;
	--rbm-dark-text: #141210;
	--rbm-font-display: "Montserrat", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--rbm-font-serif: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--rbm-font-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	display: block;
	position: relative;
	width: auto;
	max-width: none !important;
	min-height: 780px;
	padding: 36px 20px 44px;
	box-sizing: border-box;
	background:
		radial-gradient(ellipse at 50% 34%, rgba(232, 179, 104, 0.09) 0%, transparent 52%),
		radial-gradient(ellipse at 50% 45%, #171619 0%, #0d0d0f 62%, #070709 100%);
	color: var(--rbm-ink);
	overflow: hidden;
	font-family: var(--rbm-font-ui);
	-webkit-font-smoothing: antialiased;
	user-select: none;
}

.rbm-stage *,
.rbm-stage *::before,
.rbm-stage *::after {
	box-sizing: border-box;
}

.rbm-stage-inner {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

/* --------------------------------------------------------------------------
   Barra de Horario Activo + Check "Ver carta completa"
   -------------------------------------------------------------------------- */
.rbm-schedule-bar {
	max-width: 920px;
	margin: 22px auto 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 18px;
	padding: 8px 16px;
	border-radius: 12px;
	background: rgba(20, 20, 24, 0.86);
	border: 1px solid rgba(232, 179, 104, 0.24);
	backdrop-filter: blur(8px);
	font-family: var(--rbm-font-ui);
	font-size: 12px;
	color: #d7d2ca;
}

.rbm-schedule-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.rbm-schedule-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--rbm-gold-strong);
	box-shadow: 0 0 8px rgba(242, 195, 124, 0.65);
	flex-shrink: 0;
}

.rbm-schedule-dot.is-all {
	background: #6ee7b7;
	box-shadow: 0 0 8px rgba(110, 231, 183, 0.6);
}

.rbm-show-all-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 4px 10px;
	border-radius: 8px;
	background: rgba(232, 179, 104, 0.08);
	border: 1px solid rgba(232, 179, 104, 0.3);
	color: var(--rbm-gold-strong);
	font-weight: 600;
	font-size: 12px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rbm-show-all-check:hover {
	background: rgba(232, 179, 104, 0.16);
	border-color: var(--rbm-gold-strong);
}

.rbm-show-all-check input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.rbm-check-box {
	width: 15px;
	height: 15px;
	border-radius: 4px;
	border: 1.5px solid var(--rbm-gold);
	background: rgba(12, 12, 14, 0.8);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.18s ease, border-color 0.18s ease;
	flex-shrink: 0;
}

.rbm-show-all-check input[type="checkbox"]:checked + .rbm-check-box {
	background: var(--rbm-gold-strong);
	border-color: var(--rbm-gold-strong);
}

.rbm-show-all-check input[type="checkbox"]:checked + .rbm-check-box::after {
	content: "";
	width: 4px;
	height: 8px;
	border: solid #141210;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translate(-0.5px, -0.5px);
}

/* --------------------------------------------------------------------------
   Chapter Navigation Pills (top bookmark bar)
   -------------------------------------------------------------------------- */
.rbm-chapter-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 920px;
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
	transition: opacity 0.45s ease, transform 0.45s ease;
	z-index: 20;
}

.rbm-stage[data-state="open"] .rbm-chapter-nav {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.rbm-chapter-pill {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(22, 22, 25, 0.85);
	color: #d7d2ca;
	font-family: var(--rbm-font-ui);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.03em;
	padding: 7px 14px;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
	backdrop-filter: blur(8px);
}

.rbm-chapter-pill:hover {
	border-color: var(--rbm-gold-soft);
	color: #fff;
	transform: translateY(-1px);
}

.rbm-chapter-pill.is-active {
	background: linear-gradient(135deg, var(--rbm-gold-strong) 0%, var(--rbm-gold-deep) 100%);
	border-color: var(--rbm-gold-strong);
	color: var(--rbm-dark-text);
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(232, 179, 104, 0.28);
}

.rbm-pill-roman {
	color: var(--rbm-gold);
	margin-right: 4px;
	font-weight: 600;
}

.rbm-chapter-pill.is-active .rbm-pill-roman {
	color: var(--rbm-dark-text);
}

/* --------------------------------------------------------------------------
   3D Scene & Book Tilt States (30deg closed -> upright open)
   -------------------------------------------------------------------------- */
.rbm-scene {
	position: relative;
	width: calc(var(--rbm-page-w) * 2);
	height: var(--rbm-page-h);
	perspective: 2200px;
	perspective-origin: 50% 46%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 6px 0 8px;
}

.rbm-book-tilt {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Estado inicial: cerrado e inclinado a ~30 grados */
.rbm-stage[data-state="closed"] .rbm-book-tilt {
	transform: translateX(-25%) translateY(10px) rotateX(32deg) rotateY(-12deg) rotateZ(-4deg);
	cursor: pointer;
}

.rbm-stage[data-state="closed"] .rbm-book-tilt:hover {
	transform: translateX(-25%) translateY(0px) rotateX(25deg) rotateY(-8deg) rotateZ(-3deg);
}

/* Estado abierto: se levanta hacia el frente en pliego completo */
.rbm-stage[data-state="open"] .rbm-book-tilt {
	transform: translateX(0%) translateY(0px) rotateX(4deg) rotateY(0deg) rotateZ(0deg);
}

/* Estado cerrado al final (contraportada) */
.rbm-stage[data-state="closed-back"] .rbm-book-tilt {
	transform: translateX(25%) translateY(10px) rotateX(30deg) rotateY(12deg) rotateZ(4deg);
	cursor: pointer;
}

.rbm-book-body {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
}

/* Sombra ambiental proyectada en la mesa */
.rbm-table-shadow {
	position: absolute;
	left: 50%;
	top: 14px;
	width: 50%;
	height: 100%;
	border-radius: 10px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.48) 60%, transparent 78%);
	transform: translateZ(calc(var(--rbm-depth) * -1 - 14px)) translateY(22px) scale(1.06);
	filter: blur(20px);
	transition: left 0.9s ease, width 0.9s ease, transform 0.9s ease, opacity 0.9s ease;
	pointer-events: none;
}

.rbm-stage[data-state="open"] .rbm-table-shadow {
	left: 2%;
	width: 96%;
	transform: translateZ(-36px) translateY(26px) scale(1.02);
	opacity: 0.82;
}

.rbm-stage[data-state="closed-back"] .rbm-table-shadow {
	left: 0;
	width: 50%;
}

/* --------------------------------------------------------------------------
   3D Closed Book Block Edges (Lomo obsidiana + canto oscuro dorado a 30°)
   -------------------------------------------------------------------------- */
.rbm-spine,
.rbm-edge-right,
.rbm-edge-bottom {
	position: absolute;
	pointer-events: none;
	transition: opacity 0.45s ease;
}

.rbm-spine {
	left: 50%;
	top: 0;
	width: var(--rbm-depth);
	height: 100%;
	background: linear-gradient(90deg, #09090b 0%, #24211e 45%, #111113 100%);
	transform-origin: left center;
	transform: rotateY(90deg) translateX(0);
	border-radius: 2px;
	box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
}

/* Canto derecho oscuro con filos dorados (gilded black stock) */
.rbm-edge-right {
	right: 2px;
	top: 5px;
	width: var(--rbm-depth);
	height: calc(100% - 10px);
	transform-origin: right center;
	transform: rotateY(-90deg);
	background: repeating-linear-gradient(
		90deg,
		#2a2520 0px,
		#2a2520 1.4px,
		#9e7740 1.4px,
		#9e7740 2.5px
	);
	box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55);
}

/* Canto inferior oscuro con filos dorados */
.rbm-edge-bottom {
	left: calc(50% + 4px);
	bottom: 2px;
	width: calc(50% - 8px);
	height: var(--rbm-depth);
	transform-origin: center bottom;
	transform: rotateX(90deg);
	background: repeating-linear-gradient(
		0deg,
		#26221d 0px,
		#26221d 1.4px,
		#9a743e 1.4px,
		#9a743e 2.5px
	);
	box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.6);
}

.rbm-stage[data-state="open"] .rbm-spine,
.rbm-stage[data-state="open"] .rbm-edge-right,
.rbm-stage[data-state="open"] .rbm-edge-bottom,
.rbm-stage[data-state="closed-back"] .rbm-spine,
.rbm-stage[data-state="closed-back"] .rbm-edge-right,
.rbm-stage[data-state="closed-back"] .rbm-edge-bottom {
	opacity: 0;
}

/* Grosor lateral dinámico de pilas de hojas cuando el libro está abierto */
.rbm-stack-left,
.rbm-stack-right {
	position: absolute;
	top: 6px;
	height: calc(100% - 12px);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s ease, width 0.35s ease;
	border-radius: 3px;
}

.rbm-stage[data-state="open"] .rbm-stack-left,
.rbm-stage[data-state="open"] .rbm-stack-right {
	opacity: 1;
}

.rbm-stack-left {
	right: 100%;
	width: calc(var(--left-stack, 0) * 2px);
	max-width: 16px;
	background: repeating-linear-gradient(
		90deg,
		#1e1c19 0px,
		#9f7841 1.3px,
		#151412 2.4px
	);
	box-shadow: -4px 4px 14px rgba(0, 0, 0, 0.6);
}

.rbm-stack-right {
	left: 100%;
	width: calc(var(--right-stack, 0) * 2px);
	max-width: 16px;
	background: repeating-linear-gradient(
		90deg,
		#151412 0px,
		#9f7841 1.3px,
		#1e1c19 2.4px
	);
	box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Physical Double-Sided Sheets (Hojas giratorias — Dark Card Stock)
   -------------------------------------------------------------------------- */
.rbm-sheet {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	transform-origin: left center;
	transform-style: preserve-3d;
	/* World-space Z antes de rotateY: en la pila derecha, hoja 0 arriba y hoja N-1 abajo */
	transform: translateZ(calc(var(--sheet-idx, 0) * -0.45px)) rotateY(0deg);
	transition: transform 0.85s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.rbm-sheet.is-culled {
	display: none !important;
}

.rbm-sheet.is-turning {
	will-change: transform;
}

.rbm-sheet.is-flipped {
	/* En la pila izquierda, la última hoja volteada (mayor --sheet-idx) queda arriba */
	transform: translateZ(calc((var(--total-sheets, 10) - 1 - var(--sheet-idx, 0)) * -0.45px)) rotateY(-180deg);
}

.rbm-sheet.is-turning .rbm-face {
	box-shadow:
		inset 0 0 0 1px rgba(232, 179, 104, 0.32),
		0 18px 34px rgba(0, 0, 0, 0.58);
}

.rbm-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translateZ(0.2px);
	overflow: hidden;
	border-radius: 2px 12px 12px 2px;
	background: linear-gradient(100deg, #111114 0%, var(--rbm-paper) 7%, var(--rbm-paper-light) 55%, #141417 100%);
	color: var(--rbm-ink);
	box-shadow:
		inset 0 0 0 1px rgba(232, 179, 104, 0.22),
		0 4px 14px rgba(0, 0, 0, 0.42);
}

/* Sombra del pliegue interior (gutter) en la cara derecha (front) */
.rbm-face--front::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.62) 0%,
		rgba(0, 0, 0, 0.24) 4.5%,
		transparent 14%
	);
	pointer-events: none;
	z-index: 3;
}

/* Cara trasera (izquierda después de girar) */
.rbm-face--back {
	transform: rotateY(180deg) translateZ(0.2px);
	border-radius: 12px 2px 2px 12px;
	background: linear-gradient(260deg, #111114 0%, var(--rbm-paper) 7%, var(--rbm-paper-light) 55%, #141417 100%);
}

.rbm-face--back::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to left,
		rgba(0, 0, 0, 0.62) 0%,
		rgba(0, 0, 0, 0.24) 4.5%,
		transparent 14%
	);
	pointer-events: none;
	z-index: 3;
}

.rbm-stage[data-state="open"] .rbm-face--front,
.rbm-stage[data-state="open"] .rbm-face--back {
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hardcover Front & Back Styles (Tapa dura obsidiana + oro VERTICE)
   -------------------------------------------------------------------------- */
.rbm-face--cover_front,
.rbm-face--cover_back {
	background:
		radial-gradient(circle at 50% 24%, rgba(232, 179, 104, 0.14) 0%, transparent 56%),
		repeating-linear-gradient(
			45deg,
			rgba(255, 255, 255, 0.012) 0px,
			rgba(255, 255, 255, 0.012) 2px,
			transparent 2px,
			transparent 6px
		),
		linear-gradient(155deg, #1b1a1d 0%, var(--rbm-cover-bg) 46%, var(--rbm-cover-dark) 100%);
	color: var(--rbm-gold);
	box-shadow:
		inset 0 0 0 1px rgba(232, 179, 104, 0.42),
		inset 12px 0 20px rgba(0, 0, 0, 0.55),
		0 14px 32px rgba(0, 0, 0, 0.65);
}

.rbm-face--cover_front::before {
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.72) 0%,
		rgba(232, 179, 104, 0.14) 2.6%,
		rgba(0, 0, 0, 0.35) 5.5%,
		transparent 12%
	);
}

.rbm-face--cover_back::before {
	background: linear-gradient(
		to left,
		rgba(0, 0, 0, 0.72) 0%,
		rgba(232, 179, 104, 0.14) 2.6%,
		rgba(0, 0, 0, 0.35) 5.5%,
		transparent 12%
	);
}

.rbm-cover-frame {
	position: relative;
	margin: 20px;
	padding: 38px 28px 30px;
	border: 1px solid rgba(232, 179, 104, 0.42);
	border-radius: 6px;
	outline: 1px solid rgba(232, 179, 104, 0.14);
	outline-offset: -7px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: calc(100% - 40px);
}

.rbm-cover-corner {
	position: absolute;
	width: 12px;
	height: 12px;
	border-color: var(--rbm-gold);
	border-style: solid;
	opacity: 0.75;
}

.rbm-cover-corner--tl { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.rbm-cover-corner--tr { top: 8px; right: 8px; border-width: 1.5px 1.5px 0 0; }
.rbm-cover-corner--bl { bottom: 8px; left: 8px; border-width: 0 0 1.5px 1.5px; }
.rbm-cover-corner--br { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }

.rbm-cover-emblem {
	color: var(--rbm-gold-strong);
	margin-bottom: 18px;
	filter: drop-shadow(0 4px 12px rgba(232, 179, 104, 0.25));
}

.rbm-cover-emblem--sm {
	margin-bottom: 10px;
}

.rbm-cover-kicker {
	font-family: var(--rbm-font-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(232, 179, 104, 0.78);
	margin: 0 0 12px;
}

.rbm-cover-title {
	font-family: var(--rbm-font-display);
	font-size: 38px;
	font-weight: 500;
	letter-spacing: 0.22em;
	padding-left: 0.22em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--rbm-gold-strong);
	margin: 0 0 12px;
	text-shadow: 0 2px 16px rgba(232, 179, 104, 0.2);
}

.rbm-cover-subtitle {
	font-family: var(--rbm-font-display);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.34em;
	padding-left: 0.34em;
	text-transform: uppercase;
	color: #b4aea4;
	margin: 12px 0 0;
}

.rbm-cover-footer {
	position: absolute;
	bottom: 22px;
	font-family: var(--rbm-font-ui);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(232, 179, 104, 0.72);
}

.rbm-cover-back-title {
	font-family: var(--rbm-font-display);
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.2em;
	padding-left: 0.2em;
	text-transform: uppercase;
	margin: 14px 0 6px;
	color: var(--rbm-gold-strong);
}

.rbm-cover-back-sub {
	font-family: var(--rbm-font-display);
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #a7a197;
	margin: 0 0 26px;
}

.rbm-cover-reopen {
	appearance: none;
	border: none;
	background: linear-gradient(135deg, var(--rbm-gold-strong) 0%, var(--rbm-gold-deep) 100%);
	color: var(--rbm-dark-text);
	font-family: var(--rbm-font-ui);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 11px 22px;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(232, 179, 104, 0.26);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.rbm-cover-reopen:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Ornamento divisor */
.rbm-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 132px;
	color: var(--rbm-gold);
	font-size: 9px;
	margin: 6px auto;
}

.rbm-ornament::before,
.rbm-ornament::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: 0.45;
}

.rbm-ornament--dark {
	color: var(--rbm-gold);
}

/* --------------------------------------------------------------------------
   Interior Page Content Layout (Dark Skybar Editorial Cards)
   -------------------------------------------------------------------------- */
.rbm-page-inner {
	position: relative;
	height: 100%;
	padding: 32px 30px 46px;
	display: flex;
	flex-direction: column;
	z-index: 2;
}

/* Marco fino dorado dentro de cada hoja */
.rbm-page-inner::after {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(232, 179, 104, 0.2);
	border-radius: 4px;
	pointer-events: none;
}

.rbm-page-inner--welcome {
	justify-content: center;
	align-items: center;
	text-align: center;
}

.rbm-welcome-card {
	max-width: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.rbm-kicker {
	font-family: var(--rbm-font-display);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--rbm-gold);
	margin: 0;
}

.rbm-welcome-title {
	font-family: var(--rbm-font-display);
	font-size: 27px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--rbm-gold-strong);
	margin: 0;
}

.rbm-welcome-text {
	font-size: 14px;
	line-height: 1.6;
	color: #d3cec6;
	margin: 6px 0 0;
}

.rbm-welcome-tip {
	font-family: var(--rbm-font-ui);
	font-size: 12px;
	line-height: 1.5;
	color: var(--rbm-ink-muted);
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid rgba(232, 179, 104, 0.2);
}

/* Encabezado de capítulo */
.rbm-page-header {
	text-align: center;
	margin-bottom: 18px;
	flex-shrink: 0;
}

.rbm-chapter-title {
	font-family: var(--rbm-font-display);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.22;
	color: #ffffff;
	margin: 6px 0 6px;
}

.rbm-chapter-desc {
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--rbm-ink-muted);
	margin: 0 0 8px;
}

.rbm-running-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--rbm-font-display);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rbm-ink-muted);
	padding-bottom: 10px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(232, 179, 104, 0.22);
	flex-shrink: 0;
}

.rbm-subpage-badge {
	color: var(--rbm-gold);
}

/* Índice interactivo (TOC) */
.rbm-toc-list {
	list-style: none;
	padding: 0;
	margin: 10px 0 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rbm-toc-link {
	appearance: none;
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(255, 255, 255, 0.02);
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	color: var(--rbm-ink);
	text-align: left;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rbm-toc-link:hover {
	background: rgba(232, 179, 104, 0.1);
	border-color: rgba(232, 179, 104, 0.4);
	transform: translateX(3px);
}

.rbm-toc-roman {
	font-family: var(--rbm-font-display);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rbm-gold);
	flex-shrink: 0;
	min-width: 52px;
}

.rbm-toc-name {
	font-family: var(--rbm-font-ui);
	font-size: 14.5px;
	font-weight: 600;
	color: #f4f1eb;
}

.rbm-toc-dots {
	flex: 1;
	border-bottom: 1px dotted rgba(232, 179, 104, 0.28);
	margin: 0 4px;
	position: relative;
	top: -3px;
}

.rbm-toc-page {
	font-family: var(--rbm-font-ui);
	font-size: 12px;
	color: var(--rbm-ink-muted);
	font-variant-numeric: tabular-nums;
}

/* Contenedor de grupos por subcategoría dentro de cada hoja (sin scroll interno: paginación real por altura) */
.rbm-page-groups {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

/* Sandbox oculto para medición exacta de altura real en píxeles durante re-paginación */
.rbm-measure-host {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	height: 100% !important;
	visibility: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
	z-index: -1 !important;
	transform: none !important;
}

.rbm-measure-host--desktop {
	width: 50% !important;
}

.rbm-measure-host--mobile {
	width: 100% !important;
}

.rbm-measure-host .rbm-face,
.rbm-measure-host .rbm-m-face {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	transform: none !important;
	backface-visibility: visible !important;
	-webkit-backface-visibility: visible !important;
}

.rbm-subcat-block {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.rbm-scroll-chapter .rbm-subcat-block {
	margin-bottom: 20px;
}

.rbm-scroll-chapter .rbm-subcat-block:last-child {
	margin-bottom: 0;
}

.rbm-subcat-title {
	font-family: var(--rbm-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rbm-gold-strong);
	margin: 2px 0 2px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(232, 179, 104, 0.28);
	display: flex;
	align-items: center;
	gap: 6px;
}

.rbm-subcat-cont {
	font-weight: 400;
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: lowercase;
	color: var(--rbm-ink-muted);
}

/* Lista de productos del menú */
.rbm-dish-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.rbm-dish-item {
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rbm-dish-item--compact {
	padding-bottom: 7px;
}

.rbm-dish-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.rbm-dish-top {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 3px;
}

.rbm-dish-item--compact .rbm-dish-top {
	margin-bottom: 0;
}

.rbm-dish-name {
	font-family: var(--rbm-font-ui);
	font-size: 13.8px;
	font-weight: 600;
	line-height: 1.3;
	color: #f6f3ee;
	margin: 0;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.rbm-moment-tag {
	font-family: var(--rbm-font-ui);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(232, 179, 104, 0.14);
	border: 1px solid rgba(232, 179, 104, 0.34);
	color: var(--rbm-gold-strong);
	line-height: 1.2;
}

/* Producto agotado (cuando está habilitado mostrar productos sin stock) */
.rbm-dish-item--sold-out .rbm-dish-name {
	color: rgba(246, 243, 238, 0.56);
}

.rbm-dish-item--sold-out .rbm-dish-desc {
	color: rgba(158, 153, 145, 0.58);
}

.rbm-dish-item--sold-out .rbm-dish-leader {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.rbm-dish-item--sold-out .rbm-dish-price {
	color: rgba(182, 174, 164, 0.52);
	text-decoration: line-through;
	font-weight: 500;
}

.rbm-soldout-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--rbm-font-display);
	font-size: 8.8px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(185, 62, 62, 0.16);
	border: 1px solid rgba(226, 114, 114, 0.46);
	color: #f0a4a4;
	line-height: 1.25;
	vertical-align: middle;
}

.rbm-soldout-badge::before {
	content: "";
	width: 4.5px;
	height: 4.5px;
	border-radius: 50%;
	background: #e27272;
	flex-shrink: 0;
}

.rbm-dish-leader {
	flex: 1;
	min-width: 14px;
	border-bottom: 1px dotted rgba(232, 179, 104, 0.28);
	position: relative;
	top: -3px;
}

.rbm-dish-price {
	font-family: var(--rbm-font-ui);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--rbm-gold-strong);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.rbm-dish-price--consult {
	font-size: 11.5px;
	font-weight: 500;
	font-style: italic;
	padding-right: 2px;
	color: rgba(232, 179, 104, 0.72);
}

.rbm-dish-desc {
	font-family: var(--rbm-font-ui);
	font-size: 12px;
	line-height: 1.44;
	color: var(--rbm-ink-muted);
	margin: 0;
}

/* Pie de página */
.rbm-page-footer {
	position: absolute;
	left: 30px;
	right: 30px;
	bottom: 20px;
	text-align: center;
	font-family: var(--rbm-font-ui);
	font-size: 11px;
	letter-spacing: 0.12em;
	color: rgba(232, 179, 104, 0.65);
}

.rbm-page-num {
	font-variant-numeric: tabular-nums;
}

/* Acciones dentro del colofón / final */
.rbm-end-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

.rbm-inline-action {
	appearance: none;
	border: 1px solid var(--rbm-gold);
	background: linear-gradient(135deg, var(--rbm-gold-strong) 0%, var(--rbm-gold-deep) 100%);
	color: var(--rbm-dark-text);
	font-family: var(--rbm-font-ui);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 10px 18px;
	border-radius: 10px;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.rbm-inline-action:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.rbm-inline-action--secondary {
	background: transparent;
	color: var(--rbm-gold-strong);
	border-color: rgba(232, 179, 104, 0.45);
}

/* --------------------------------------------------------------------------
   Closed Hint CTA & Bottom Controls (estilo botón ámbar VERTICE)
   -------------------------------------------------------------------------- */
.rbm-closed-hint {
	margin-top: 32px;
	transition: opacity 0.4s ease, transform 0.4s ease, margin-top 0.4s ease;
	z-index: 20;
}

.rbm-stage[data-state="open"] .rbm-closed-hint,
.rbm-stage[data-state="closed-back"] .rbm-closed-hint {
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	height: 0;
	overflow: hidden;
	margin: 0;
}

.rbm-open-cta {
	appearance: none;
	border: none;
	background: linear-gradient(135deg, var(--rbm-gold-strong) 0%, var(--rbm-gold-deep) 100%);
	color: var(--rbm-dark-text);
	font-family: var(--rbm-font-ui);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 24px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	box-shadow: 0 8px 26px rgba(232, 179, 104, 0.28);
	transition: transform 0.25s ease, filter 0.25s ease;
}

.rbm-open-cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}

.rbm-open-cta-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--rbm-dark-text);
	box-shadow: 0 0 0 0 rgba(20, 18, 16, 0.55);
	animation: rbmPulse 2s infinite;
}

@keyframes rbmPulse {
	0%   { box-shadow: 0 0 0 0 rgba(20, 18, 16, 0.55); }
	70%  { box-shadow: 0 0 0 8px rgba(20, 18, 16, 0); }
	100% { box-shadow: 0 0 0 0 rgba(20, 18, 16, 0); }
}

.rbm-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.45s ease, transform 0.45s ease;
	z-index: 20;
}

.rbm-stage[data-state="open"] .rbm-controls,
.rbm-stage[data-state="closed-back"] .rbm-controls {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.rbm-ctrl-btn {
	appearance: none;
	border: 1px solid rgba(232, 179, 104, 0.35);
	background: rgba(22, 22, 25, 0.9);
	color: #f2ede6;
	font-family: var(--rbm-font-ui);
	font-size: 12.5px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.rbm-ctrl-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--rbm-gold-strong) 0%, var(--rbm-gold-deep) 100%);
	border-color: var(--rbm-gold-strong);
	color: var(--rbm-dark-text);
	transform: translateY(-1px);
}

.rbm-ctrl-btn:disabled {
	opacity: 0.32;
	cursor: not-allowed;
}

.rbm-ctrl-btn--ghost {
	border-color: rgba(255, 255, 255, 0.16);
	background: transparent;
	color: #bcb6ad;
}

.rbm-ctrl-btn--ghost:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.rbm-page-indicator {
	font-family: var(--rbm-font-ui);
	font-size: 12.5px;
	color: #cbc5bc;
	min-width: 150px;
	text-align: center;
	letter-spacing: 0.03em;
}

.rbm-empty-notice {
	padding: 28px;
	background: #17171a;
	border: 1px solid rgba(232, 179, 104, 0.38);
	border-radius: 12px;
	color: #f4f1eb;
	text-align: center;
	font-family: var(--rbm-font-ui);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.rbm-stage {
		--rbm-page-w: 360px;
		--rbm-page-h: 540px;
		min-height: 700px;
	}

	.rbm-page-inner {
		padding: 26px 22px 38px;
	}

	.rbm-chapter-title {
		font-size: 19px;
	}

	.rbm-dish-name {
		font-size: 14px;
	}

	.rbm-dish-desc {
		font-size: 12.2px;
	}
}

/* La vista mobile se oculta en escritorio */
.rbm-mobile-stage {
	display: none;
}

/* ==========================================================================
   MOBILE EXPERIENCE — 3 Variantes VERTICE (single-page | ring-calendar | scroll-card)
   ========================================================================== */
@media (max-width: 780px) {
	.rbm-stage {
		--m-w: min(92vw, 376px);
		--m-h: clamp(540px, 72dvh, 640px);
		--m-depth: 20px;
		padding: 14px 12px 24px;
		min-height: 88dvh;
		overflow: visible;
		overflow-x: clip;
	}

	.rbm-desktop-stage {
		display: none;
	}

	.rbm-mobile-stage {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		gap: 12px;
	}

	/* Selector rápido de variantes en vista mobile */
	.rbm-mode-switcher {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		padding: 4px;
		border-radius: 12px;
		background: rgba(18, 18, 21, 0.9);
		border: 1px solid rgba(232, 179, 104, 0.28);
		backdrop-filter: blur(8px);
		z-index: 35;
	}

	.rbm-mode-btn {
		appearance: none;
		border: none;
		background: transparent;
		color: #b7b1a8;
		font-family: var(--rbm-font-ui);
		font-size: 11.5px;
		font-weight: 500;
		padding: 6px 11px;
		border-radius: 9px;
		cursor: pointer;
		white-space: nowrap;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.rbm-mode-btn.is-active {
		background: linear-gradient(135deg, var(--rbm-gold-strong) 0%, var(--rbm-gold-deep) 100%);
		color: var(--rbm-dark-text);
		font-weight: 700;
		box-shadow: 0 2px 10px rgba(232, 179, 104, 0.28);
	}

	/* Barra horizontal deslizable de capítulos (1 sola fila) */
	.rbm-m-chapter-nav {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 7px;
		width: 100%;
		max-width: var(--m-w);
		overflow-x: auto;
		padding: 2px 2px 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		opacity: 0;
		max-height: 0;
		pointer-events: none;
		transform: translateY(-6px);
		transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
	}

	.rbm-m-chapter-nav::-webkit-scrollbar,
	.rbm-scroll-nav::-webkit-scrollbar {
		display: none;
	}

	.rbm-m-chapter-nav .rbm-chapter-pill,
	.rbm-scroll-nav .rbm-chapter-pill {
		flex-shrink: 0;
		font-size: 12px;
		padding: 6px 12px;
	}

	.rbm-stage[data-m-state="open"]:not([data-mobile-mode="scroll-card"]) .rbm-m-chapter-nav {
		opacity: 1;
		max-height: 46px;
		transform: translateY(0);
		pointer-events: auto;
	}

	/* Escena 3D mobile */
	.rbm-m-scene {
		position: relative;
		width: var(--m-w);
		height: var(--m-h);
		perspective: 1700px;
		perspective-origin: 50% 45%;
		margin: 4px 0;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-scene {
		margin-top: 14px;
	}

	.rbm-m-tilt {
		position: relative;
		width: 100%;
		height: 100%;
		transform-style: preserve-3d;
		transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
	}

	/* Estado cerrado a 30° en mobile */
	.rbm-stage[data-m-state="closed"] .rbm-m-tilt {
		transform: translateY(-4px) rotateX(30deg) rotateY(-10deg) rotateZ(-3deg);
		cursor: pointer;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"][data-m-state="closed"] .rbm-m-tilt {
		transform: translateY(0px) rotateX(30deg) rotateY(-4deg) rotateZ(0deg);
	}

	/* Estado abierto en Variantes 1 y 2 */
	.rbm-stage[data-m-state="open"] .rbm-m-tilt {
		transform: translateY(0) rotateX(2deg) rotateY(0deg) rotateZ(0deg);
	}

	.rbm-stage[data-mobile-mode="ring-calendar"][data-m-state="open"] .rbm-m-tilt {
		transform: translateY(0) rotateX(3deg) rotateY(0deg) rotateZ(0deg);
	}

	/* Transición de apertura en Variante 3 (scroll-card) */
	.rbm-stage[data-mobile-mode="scroll-card"][data-m-state="opening"] .rbm-m-tilt {
		transform: translateY(-6px) rotateX(0deg) rotateY(0deg) scale(1.02);
	}

	.rbm-stage[data-mobile-mode="scroll-card"][data-m-state="opening"] .rbm-m-leaf--cover {
		transform: translateZ(2px) rotateY(-115deg);
		opacity: 0;
	}

	/* Cuando Variante 3 ya abrió, ocultamos la escena 3D y mostramos la carta vertical */
	.rbm-stage[data-mobile-mode="scroll-card"][data-m-state="open"] .rbm-m-scene,
	.rbm-stage[data-mobile-mode="scroll-card"][data-m-state="open"] .rbm-m-closed-hint,
	.rbm-stage[data-mobile-mode="scroll-card"][data-m-state="open"] .rbm-m-chapter-nav,
	.rbm-stage[data-mobile-mode="scroll-card"][data-m-state="open"] .rbm-m-controls {
		display: none;
	}

	/* Sombra de mesa mobile */
	.rbm-m-shadow {
		position: absolute;
		inset: 10px 6px -6px;
		border-radius: 12px;
		background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 62%, transparent 80%);
		transform: translateZ(calc(var(--m-depth) * -1 - 12px)) translateY(16px);
		filter: blur(16px);
		pointer-events: none;
	}

	/* Bordes 3D de grosor del libro cerrado (oscuro con filos dorados) */
	.rbm-m-spine,
	.rbm-m-edge-right,
	.rbm-m-edge-bottom {
		position: absolute;
		pointer-events: none;
		transition: opacity 0.4s ease;
	}

	.rbm-m-spine {
		left: 0;
		top: 0;
		width: var(--m-depth);
		height: 100%;
		background: linear-gradient(90deg, #09090b 0%, #24211e 45%, #111113 100%);
		transform-origin: left center;
		transform: rotateY(90deg);
		border-radius: 2px;
	}

	.rbm-m-edge-right {
		right: 2px;
		top: 4px;
		width: var(--m-depth);
		height: calc(100% - 8px);
		transform-origin: right center;
		transform: rotateY(-90deg);
		background: repeating-linear-gradient(
			90deg,
			#27231e 0px,
			#27231e 1.4px,
			#9b753f 1.4px,
			#9b753f 2.5px
		);
	}

	.rbm-m-edge-bottom {
		left: 4px;
		bottom: 2px;
		width: calc(100% - 8px);
		height: var(--m-depth);
		transform-origin: center bottom;
		transform: rotateX(90deg);
		background: repeating-linear-gradient(
			0deg,
			#25211c 0px,
			#25211c 1.4px,
			#9b753f 1.4px,
			#9b753f 2.5px
		);
	}

	.rbm-stage[data-m-state="open"] .rbm-m-spine,
	.rbm-stage[data-m-state="open"] .rbm-m-edge-right,
	.rbm-stage[data-m-state="open"] .rbm-m-edge-bottom {
		opacity: 0.35;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-spine {
		display: none;
	}

	/* ----------------------------------------------------------------------
	   Anillado metálico dorado superior (Variante 2: ring-calendar)
	   ---------------------------------------------------------------------- */
	.rbm-m-rings,
	.rbm-m-holes {
		display: none;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-rings {
		display: flex;
		justify-content: space-evenly;
		align-items: center;
		position: absolute;
		top: -15px;
		left: 16px;
		right: 16px;
		height: 30px;
		z-index: 60;
		transform: translateZ(10px);
		pointer-events: none;
	}

	.rbm-m-ring {
		position: relative;
		width: 13px;
		height: 28px;
		border-radius: 999px;
		background: linear-gradient(
			90deg,
			#63461d 0%,
			#eab86d 30%,
			#ffe5b3 48%,
			#be8d45 72%,
			#4a3212 100%
		);
		box-shadow:
			inset 0 2px 3px rgba(255, 255, 255, 0.4),
			0 3px 8px rgba(0, 0, 0, 0.65);
	}

	.rbm-m-ring::after {
		content: "";
		position: absolute;
		top: 6px;
		bottom: 6px;
		left: 4px;
		right: 4px;
		border-radius: 999px;
		background: rgba(10, 10, 12, 0.68);
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-holes {
		display: flex;
		justify-content: space-evenly;
		position: absolute;
		top: 9px;
		left: 16px;
		right: 16px;
		z-index: 5;
		pointer-events: none;
	}

	.rbm-m-hole {
		width: 11px;
		height: 11px;
		border-radius: 50%;
		background: radial-gradient(circle at 40% 40%, #050507 0%, #1c1b1e 85%);
		box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(232, 179, 104, 0.28);
	}

	/* ----------------------------------------------------------------------
	   Mazo de hojas individuales mobile (.rbm-m-leaf)
	   ---------------------------------------------------------------------- */
	.rbm-m-deck {
		position: relative;
		width: 100%;
		height: 100%;
		transform-style: preserve-3d;
		pointer-events: none;
	}

	.rbm-m-leaf {
		position: absolute;
		inset: 0;
		transform-style: preserve-3d;
		transform-origin: left center;
		transform: translateZ(calc(var(--m-idx, 0) * -0.35px)) rotateY(0deg);
		opacity: 1;
		visibility: visible;
		pointer-events: none;
		transition:
			transform 0.68s cubic-bezier(0.645, 0.045, 0.355, 1),
			opacity 0.16s ease 0s,
			visibility 0s linear 0s;
	}

	/* Virtualización GPU: hojas fuera de ventana se ocultan para evitar OOM en iOS Safari / Android */
	.rbm-m-leaf.is-culled {
		display: none !important;
	}

	.rbm-m-leaf.is-turning {
		will-change: transform, opacity;
	}

	/* La hoja activa siempre queda estrictamente al frente (z=+2px) para que todos sus botones reciban clics */
	.rbm-m-leaf.is-current {
		transform: translateZ(2px) rotateY(0deg);
		pointer-events: auto;
	}

	.rbm-m-leaf.is-flipped {
		transform: translateZ(calc((var(--m-total, 12) - 1 - var(--m-idx, 0)) * -0.35px)) rotateY(-155deg);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			transform 0.68s cubic-bezier(0.645, 0.045, 0.355, 1),
			opacity 0.24s ease 0.36s,
			visibility 0s linear 0.64s;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-leaf {
		transform-origin: center top;
		transform: translateZ(calc(var(--m-idx, 0) * -0.35px)) rotateX(0deg);
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-leaf.is-current {
		transform: translateZ(2px) rotateX(0deg);
		pointer-events: auto;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-leaf.is-flipped {
		transform: translateZ(calc((var(--m-total, 12) - 1 - var(--m-idx, 0)) * -0.35px)) rotateX(155deg);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			transform 0.68s cubic-bezier(0.645, 0.045, 0.355, 1),
			opacity 0.24s ease 0.36s,
			visibility 0s linear 0.64s;
	}

	.rbm-m-face {
		position: absolute;
		inset: 0;
		backface-visibility: hidden;
		-webkit-backface-visibility: hidden;
		transform: translateZ(0.2px);
		overflow: hidden;
		border-radius: 4px 12px 12px 4px;
		background: linear-gradient(100deg, #111114 0%, var(--rbm-paper) 7%, var(--rbm-paper-light) 55%, #141417 100%);
		color: var(--rbm-ink);
		box-shadow:
			inset 0 0 0 1px rgba(232, 179, 104, 0.28),
			0 6px 20px rgba(0, 0, 0, 0.45);
	}

	/* Portada dura obsidiana + oro VERTICE en mobile */
	.rbm-m-face.rbm-face--cover_front {
		background:
			radial-gradient(circle at 50% 24%, rgba(232, 179, 104, 0.14) 0%, transparent 56%),
			repeating-linear-gradient(
				45deg,
				rgba(255, 255, 255, 0.012) 0px,
				rgba(255, 255, 255, 0.012) 2px,
				transparent 2px,
				transparent 6px
			),
			linear-gradient(155deg, #1b1a1d 0%, var(--rbm-cover-bg) 46%, var(--rbm-cover-dark) 100%);
		color: var(--rbm-gold);
		box-shadow:
			inset 0 0 0 1px rgba(232, 179, 104, 0.44),
			inset 10px 0 18px rgba(0, 0, 0, 0.52),
			0 12px 30px rgba(0, 0, 0, 0.65);
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-face {
		border-radius: 8px 8px 12px 12px;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-mobile-stage .rbm-cover-frame {
		margin-top: 24px;
		height: calc(100% - 40px);
	}

	.rbm-m-face--front::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(
			to right,
			rgba(0, 0, 0, 0.5) 0%,
			rgba(0, 0, 0, 0.16) 5%,
			transparent 14%
		);
		pointer-events: none;
		z-index: 3;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-face--front::before {
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.5) 0%,
			rgba(0, 0, 0, 0.16) 6%,
			transparent 15%
		);
	}

	.rbm-m-face--back {
		transform: rotateY(180deg) translateZ(0.2px);
		background: linear-gradient(135deg, #141417 0%, #0e0e11 100%);
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-m-face--back {
		transform: rotateX(180deg) translateZ(0.2px);
	}

	.rbm-m-leaf.is-turning .rbm-m-face {
		box-shadow:
			inset 0 0 0 1px rgba(232, 179, 104, 0.36),
			0 18px 34px rgba(0, 0, 0, 0.58);
	}

	/* Ajustes tipográficos cómodos en hojas mobile */
	.rbm-mobile-stage .rbm-page-inner {
		padding: 22px 20px 38px;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-mobile-stage .rbm-page-inner {
		padding-top: 32px;
	}

	.rbm-mobile-stage .rbm-page-inner::after {
		inset: 10px;
	}

	.rbm-stage[data-mobile-mode="ring-calendar"] .rbm-mobile-stage .rbm-page-inner::after {
		top: 24px;
	}

	.rbm-mobile-stage .rbm-cover-frame {
		margin: 16px;
		height: calc(100% - 32px);
		padding: 28px 20px;
	}

	.rbm-mobile-stage .rbm-cover-title {
		font-size: 32px;
	}

	.rbm-mobile-stage .rbm-chapter-title {
		font-size: 19px;
	}

	.rbm-mobile-stage .rbm-page-groups {
		gap: 12px;
	}

	.rbm-mobile-stage .rbm-dish-list {
		gap: 10px;
	}

	.rbm-mobile-stage .rbm-dish-item {
		padding-bottom: 8px;
	}

	.rbm-mobile-stage .rbm-dish-item:last-child {
		padding-bottom: 0;
	}

	.rbm-mobile-stage .rbm-dish-name {
		font-size: 13.8px;
	}

	.rbm-mobile-stage .rbm-dish-desc {
		font-size: 12px;
		line-height: 1.42;
	}

	.rbm-mobile-stage .rbm-page-footer {
		bottom: 14px;
		left: 20px;
		right: 20px;
	}

	/* CTA cerrado mobile */
	.rbm-m-closed-hint {
		margin-top: 34px;
		transition: opacity 0.35s ease, transform 0.35s ease, margin-top 0.35s ease;
		position: relative;
		z-index: 25;
	}

	.rbm-stage[data-m-state="open"] .rbm-m-closed-hint,
	.rbm-stage[data-m-state="opening"] .rbm-m-closed-hint {
		opacity: 0;
		pointer-events: none;
		max-height: 0;
		overflow: hidden;
		margin: 0;
	}

	/* Controles inferiores compactos en 1 sola fila */
	.rbm-m-controls {
		display: grid;
		grid-template-columns: 44px 1fr 44px 44px;
		align-items: center;
		gap: 8px;
		width: var(--m-w);
		opacity: 0;
		max-height: 0;
		overflow: hidden;
		pointer-events: none;
		transform: translateY(8px);
		transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
	}

	.rbm-stage[data-m-state="open"]:not([data-mobile-mode="scroll-card"]) .rbm-m-controls {
		opacity: 1;
		max-height: 54px;
		transform: translateY(0);
		pointer-events: auto;
	}

	.rbm-m-btn {
		appearance: none;
		width: 44px;
		height: 44px;
		border-radius: 10px;
		border: 1px solid rgba(232, 179, 104, 0.36);
		background: rgba(22, 22, 25, 0.92);
		color: var(--rbm-gold-strong);
		font-family: var(--rbm-font-ui);
		font-size: 16px;
		font-weight: 600;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
	}

	.rbm-m-btn:active:not(:disabled) {
		transform: scale(0.94);
		background: var(--rbm-gold);
		color: var(--rbm-dark-text);
	}

	.rbm-m-btn:disabled {
		opacity: 0.28;
		cursor: not-allowed;
	}

	.rbm-m-btn--close {
		border-color: rgba(255, 255, 255, 0.18);
		background: rgba(255, 255, 255, 0.05);
		font-size: 14px;
		color: #cfc9c0;
	}

	.rbm-m-indicator {
		font-family: var(--rbm-font-ui);
		font-size: 12.2px;
		font-weight: 500;
		color: #ded8cf;
		text-align: center;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		padding: 0 4px;
	}

	/* ======================================================================
	   Variante 3: Carta Vertical Deslizable (panel oscuro + borde dorado VERTICE)
	   ====================================================================== */
	.rbm-scroll-view {
		display: none;
		width: 100%;
		max-width: 520px;
		flex-direction: column;
		gap: 12px;
		animation: rbmFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.rbm-stage[data-mobile-mode="scroll-card"][data-m-state="open"] .rbm-scroll-view {
		display: flex;
	}

	@keyframes rbmFadeUp {
		from {
			opacity: 0;
			transform: translateY(16px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.rbm-scroll-sticky {
		position: sticky;
		top: 8px;
		z-index: 30;
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 8px;
		border-radius: 12px;
		background: rgba(16, 16, 19, 0.94);
		border: 1px solid rgba(232, 179, 104, 0.32);
		box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
		backdrop-filter: blur(10px);
	}

	.rbm-scroll-nav {
		display: flex;
		flex-wrap: nowrap;
		gap: 6px;
		overflow-x: auto;
		flex: 1;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.rbm-scroll-sticky .rbm-m-btn--close {
		width: 36px;
		height: 36px;
		flex-shrink: 0;
	}

	.rbm-scroll-paper {
		background: linear-gradient(180deg, #18181b 0%, #141417 55%, #111114 100%);
		color: var(--rbm-ink);
		border-radius: 14px;
		padding: 26px 20px 30px;
		border: 1px solid rgba(232, 179, 104, 0.35);
		box-shadow: 0 14px 36px rgba(0, 0, 0, 0.58);
	}

	.rbm-scroll-hero {
		text-align: center;
		padding-bottom: 20px;
		margin-bottom: 22px;
		border-bottom: 1px solid rgba(232, 179, 104, 0.22);
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.rbm-scroll-title {
		font-family: var(--rbm-font-display);
		font-size: 28px;
		font-weight: 500;
		letter-spacing: 0.22em;
		padding-left: 0.22em;
		text-transform: uppercase;
		line-height: 1.15;
		color: var(--rbm-gold-strong);
		margin: 4px 0 6px;
	}

	.rbm-scroll-subtitle {
		font-family: var(--rbm-font-display);
		font-size: 11px;
		font-weight: 500;
		letter-spacing: 0.32em;
		text-transform: uppercase;
		color: #a7a197;
		margin: 0 0 10px;
	}

	.rbm-scroll-chapter {
		padding: 10px 0 26px;
		margin-bottom: 16px;
		border-bottom: 1px solid rgba(232, 179, 104, 0.16);
		scroll-margin-top: 76px;
		animation: rbmFadeUp 0.28s ease;
	}

	.rbm-scroll-chapter.is-hidden {
		display: none;
	}

	.rbm-scroll-view:not([data-scroll-filter="all"]) .rbm-scroll-chapter {
		border-bottom: none;
		margin-bottom: 6px;
		padding-bottom: 18px;
	}

	.rbm-scroll-chapter:last-of-type {
		border-bottom: none;
		margin-bottom: 10px;
	}

	.rbm-scroll-chapter-head {
		text-align: center;
		margin-bottom: 18px;
	}

	.rbm-dish-list--scroll {
		overflow: visible;
		gap: 16px;
	}

	.rbm-scroll-footer {
		text-align: center;
		padding-top: 18px;
		border-top: 1px solid rgba(232, 179, 104, 0.22);
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}
}
