/* Cajón lateral: menú, cuenta y ayuda (visitante y cliente). Colores propios por modo: no dependen del resto de la página. */
.ml {
	--ml-bg: #FFFFFF; --ml-ink: #0B0C0E; --ml-mute: #4B5058; --ml-line: #E4E5E8; --ml-card: #F4F4F5; --ml-acc: #CF4208; --ml-acc-ink: #FFFFFF; --ml-hov: #F0F1F3;
	position: fixed; z-index: 120; top: 0; bottom: 0; right: 0; width: min(100%, 420px); height: 100dvh; display: flex; flex-direction: column;
	background: var(--ml-bg); color: var(--ml-ink); font-family: 'Archivo', system-ui, sans-serif; font-size: 15px; line-height: 1.4; color-scheme: light;
	transform: translateX(100%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; overscroll-behavior: contain;
	padding-bottom: env(safe-area-inset-bottom);
}
html[data-theme="dark"] .ml {
	--ml-bg: #111214; --ml-ink: #F4F4F2; --ml-mute: #A5ABB3; --ml-line: #26292E; --ml-card: #1A1C20; --ml-acc: #CF4208; --ml-hov: #1A1C20; color-scheme: dark;
}
.ml[hidden], .ml-velo[hidden] { display: none; }
.ml.is-abierto { transform: none; visibility: visible; transition-delay: 0s; }
.ml:focus { outline: none; }
.ml-velo { position: fixed; z-index: 119; inset: 0; background: rgba(11, 12, 14, .55); opacity: 0; transition: opacity .28s; }
.ml-velo.is-abierto { opacity: 1; }
body.ml-abierto { overflow: hidden; }
.admin-bar .ml { top: 32px; height: calc(100dvh - 32px); }
.ml *, .ml *::before, .ml *::after { box-sizing: border-box; }
.ml a { color: inherit; text-decoration: none; }
.ml a:hover { color: inherit; }
.ml :focus-visible { outline: 2px solid #FF5B14; outline-offset: 2px; border-radius: 8px; }

.ml__cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 22px; min-height: 66px; }
.ml__logo { display: flex; align-items: center; min-height: 44px; }
.ml__logo-svg { height: 34px; width: 131px; --logo-ink: #0B0C0E; --logo-accent: #FF5B14; }
html[data-theme="dark"] .ml__logo-svg { --logo-ink: #F2F3F5; }

/* Cambio de modo: fundido de color (~350 ms) y, si el navegador lo permite, revelado circular desde el botón. */
html.ad-tema-anim, html.ad-tema-anim *, html.ad-tema-anim *::before, html.ad-tema-anim *::after {
	transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
.ml__x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%; transition: background-color .2s; }
.ml__x:hover { background: var(--ml-hov); }

.ml__tabs { display: flex; border-bottom: 1px solid var(--ml-line); }
.ml__tab { flex: 1; min-height: 48px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ml-mute); font: 700 13px/1 'Archivo', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s; }
.ml__tab:hover { color: var(--ml-ink); }
.ml__tab[aria-selected="true"] { color: var(--ml-ink); border-bottom-color: var(--ml-acc); }

.ml__cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 24px; overscroll-behavior: contain; }
.ml__panel[hidden] { display: none; }
.ml__it { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 4px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: background-color .2s; }
.ml__it:hover { background: var(--ml-hov); }
.ml__it > span { flex: 1; }
.ml__it > svg:last-child { color: var(--ml-mute); flex: none; }
.ml__it--grande { min-height: 60px; font-size: 22px; font-stretch: 112%; font-weight: 700; border-bottom: 1px solid var(--ml-line); border-radius: 0; }
.ml__it--grande:hover { background: transparent; }
.ml__cta { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 22px; padding: 0 26px; border-radius: 999px; background: var(--ml-acc); color: var(--ml-acc-ink) !important; font-weight: 700; font-size: 16px; transition: filter .2s; }
.ml__cta:hover { filter: brightness(1.08); }
.ml__lista { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.ml__h { margin: 4px 0 0; font-size: 26px; font-stretch: 112%; font-weight: 800; line-height: 1.1; }
.ml__p { margin: 8px 0 0; color: var(--ml-mute); font-size: 15px; line-height: 1.5; }
.ml__hola { display: flex; align-items: center; gap: 14px; }
.ml__av { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ml-card); font-weight: 800; font-size: 20px; }
.ml__hola b { display: block; font-size: 22px; font-stretch: 112%; line-height: 1.15; overflow-wrap: anywhere; }
.ml__hola small { display: block; color: var(--ml-mute); font-size: 13px; overflow-wrap: anywhere; }
.ml__pedido { display: block; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--ml-card); }
.ml__pedido-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ml-mute); }
.ml__pedido-top b { color: var(--ml-ink); }
.ml__pedido strong { display: block; margin-top: 6px; font-size: 17px; }
.ml__prog { display: flex; gap: 6px; margin-top: 12px; }
.ml__prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--ml-line); }
.ml__prog i.is-on { background: var(--ml-acc); }
.ml__salir { display: flex; align-items: center; min-height: 48px; margin-top: 10px; padding: 0 4px; font-weight: 600; color: var(--ml-mute) !important; text-decoration: underline !important; text-underline-offset: 4px; }
.ml__redes { display: flex; gap: 10px; margin-top: 20px; }
.ml__redes a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ml-card); transition: background-color .2s; }
.ml__redes a:hover { background: var(--ml-line); }

.ml__pie { border-top: 1px solid var(--ml-line); padding: 8px 22px; }
.ml__tema, .ft__tema { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--ml-mute, inherit); font: 600 14px/1 'Archivo', system-ui, sans-serif; cursor: pointer; text-align: left; }
.ml__tema-t, .ft__tema-t { flex: 1; }
.ml__sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #8A9099; transition: background-color .2s; }
.ml__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
[data-tema-toggle][aria-pressed="true"] .ml__sw { background: #CF4208; }
[data-tema-toggle][aria-pressed="true"] .ml__sw::after { transform: translateX(18px); }
.ml__tema:focus-visible, .ft__tema:focus-visible { outline: 2px solid #FF5B14; outline-offset: 2px; border-radius: 8px; }
.ft__tema { width: auto; gap: 10px; color: inherit; font-size: 13px; }
.ft__tema .ml__sw { background: #7A8087; }

/* Celular: el cajón entra por la izquierda (lado del botón de menú) y ocupa el alto visible. */
@media (max-width: 900px) {
	.ml { right: auto; left: 0; transform: translateX(-100%); }
	.ml.is-abierto { transform: none; }
	.admin-bar .ml { top: 46px; height: calc(100dvh - 46px); }
}
@media (prefers-reduced-motion: reduce) {
	.ml, .ml-velo, .ml__sw, .ml__sw::after, .ml__tab, .ml__it, .ml__cta { transition: none; }
}
body.has-citas-app .ml, body.has-citas-app .ml-velo { display: none !important; }
