/* =====================================================================
   MY SUMMER APP — Sistema de diseño del cliente
   Portado 1:1 desde la maqueta «MySummer App.dc.html».

   El color dice en qué interfaz estás (C-022):
     Naranja #EC5214 — cliente. Es la cara de la marca y la única
     interfaz que ve alguien de fuera. Por eso la pantalla de entrada
     y el botón de reservar van en naranja sobre crema.
     El blanco es el papel: tarjetas, hojas y formularios.
   ===================================================================== */

:root {
  /* Marca */
  --ms-orange:        #EC5214;
  --ms-orange-dark:   #C93F0B;
  --ms-orange-soft:   #FFF1EA;
  --ms-orange-border: #F7D9C8;
  --ms-cream:         #FAF1D5;
  --ms-cream-soft:    #FDF8EC;
  --ms-cream-line:    #FBF0D6;
  --ms-brown:         #544538;

  /* Neutros — los seis tonos que sostienen todo el diseño */
  --ms-ink:      #1C1917;   /* titulares y cifras */
  --ms-ink-2:    #57534E;   /* texto corriente */
  --ms-ink-3:    #8A837C;   /* apoyo y etiquetas */
  --ms-ink-4:    #A8A29E;   /* deshabilitado */
  --ms-line:     #EAE4D8;   /* borde de control */
  --ms-line-2:   #F5F1E6;   /* separador de fila */
  --ms-line-3:   #F1ECE0;   /* separador suave */
  --ms-card-line:#EEE8DB;   /* borde de tarjeta */
  /* 4.06 · los neutros de apoyo van en crema, no en gris: el fondo de la app,
     los paneles blandos y los separadores comparten el arena de la marca. */
  --ms-bg:       #FCF8EE;
  --ms-surface:  #FFFFFF;
  --ms-surface-2:#FDF9EF;

  /* Estados */
  --ms-free:        #DCF0EF;
  --ms-free-ink:    #2E7D77;
  --ms-busy:        #E7E5E2;
  --ms-busy-ink:    #A8A29E;
  --ms-premium:     #B5872A;
  --ms-premium-bg:  #FBF0D6;
  --ms-premium-ink: #7A5A1E;
  --ms-success:     #E8F5EC;
  --ms-success-ink: #1E7A45;
  --ms-danger-bg:   #FDEBE9;
  --ms-event:       #8B5CF6;

  /* Tipografía */
  --ms-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
             Roboto, "Helvetica Neue", Arial, sans-serif;
  --ms-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Métricas — los radios reales de la maqueta */
  --r-xs: 7px;  --r-sm: 9px;  --r:    11px;
  --r-md: 12px; --r-lg: 14px; --r-xl: 16px; --r-2xl: 20px; --r-3xl: 26px;

  --sh-card:   0 1px 2px rgba(28,25,23,.05);
  /* 4.04 · elevación en tres pasos y una curva única de movimiento: la app
     se siente de una pieza al deslizar, pulsar y abrir hojas. */
  --sh-1: 0 1px 2px rgba(28,25,23,.05), 0 2px 8px rgba(28,25,23,.04);
  --sh-2: 0 2px 6px rgba(28,25,23,.06), 0 12px 28px rgba(28,25,23,.08);
  --sh-3: 0 8px 20px rgba(28,25,23,.10), 0 28px 60px rgba(28,25,23,.14);
  --ease: cubic-bezier(.22,.9,.24,1);
  --sh-orange: 0 8px 20px rgba(236,82,20,.32);
  --sh-orange-sm: 0 6px 16px rgba(236,82,20,.28);
  --sh-modal:  0 20px 48px rgba(28,25,23,.24);

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 78px;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; overscroll-behavior-y: none; }

body {
  font-family: var(--ms-font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ms-ink);
  background: var(--ms-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-wrap: pretty;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
a { color: var(--ms-orange); text-decoration: none; }
a:hover { color: var(--ms-orange-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; }

/* Accesibilidad: el foco se ve siempre, en las tres interfaces. */
:focus-visible {
  outline: 2.5px solid var(--ms-orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------ carcasa */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  background: var(--ms-surface);
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 20px);
  animation: fade .3s var(--ease);
}
.screen--sheet { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 34px); }

@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }

/* 4.04 · todo lo que se toca responde: el pulsado hunde ligeramente. */
button:active, .vcard:active, .favrow:active { transition: transform .1s var(--ease); }

/* ------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-top) + 14px) 20px 14px;
  background: var(--ms-surface);
  border-bottom: 1px solid var(--ms-line-3);
  display: flex; align-items: center; gap: 12px;
}
.topbar--plain { border-bottom: none; }
.topbar__title {
  font-size: 20px; font-weight: 800; letter-spacing: -.03em;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.iconbtn {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ms-line-2); color: var(--ms-ink);
  transition: background .15s;
}
.iconbtn:hover { background: var(--ms-line); }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg, .roundbtn svg { width: 19px; height: 19px; }

.roundbtn {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(28,25,23,.12);
  color: var(--ms-ink);
}
.roundbtn svg { width: 17px; height: 17px; }
.roundbtn.is-active { color: var(--ms-orange); }
.roundbtn:active { transform: scale(.94); }

/* ------------------------------------------------------------- brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--ms-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; letter-spacing: -.02em;
  box-shadow: var(--sh-orange-sm);
}
.brand__word { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }

/* ------------------------------------------------------------- login
   C-022 · la entrada del cliente es naranja sobre crema: es la cara de
   la marca y lo primero que ve alguien de fuera. */
/* 4.04 · La entrada, en dos mitades: arriba la marca sobre el naranja, con
   la playa dibujada al pie; abajo una hoja blanca con las tres maneras de
   entrar y la salida de invitado. La hoja sube al abrir la app. */
.login {
  min-height: 100dvh;
  /* 6.55 · más hondo: el naranja plano se veía de plantilla. Un rescoldo
     arriba a la derecha, la marca en medio y sombra abajo. */
  background: radial-gradient(120% 80% at 80% -4%, #FFA062 0%, rgba(255,160,98,0) 54%),
              radial-gradient(90% 60% at 8% 108%, rgba(84,69,56,.5) 0%, rgba(84,69,56,0) 60%),
              linear-gradient(168deg, #F0611D 0%, var(--ms-orange) 42%, var(--ms-orange-dark) 100%);
  color: #fff;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.login__hero {
  position: relative;
  padding: calc(var(--safe-top) + 46px) 28px 34px;
  flex: 1; display: flex; flex-direction: column;
}
.login__hero::after {
  content: ''; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 96px;
  background:
    radial-gradient(60% 100% at 22% 100%, rgba(255,255,255,.16) 0 60%, transparent 61%),
    radial-gradient(70% 100% at 78% 100%, rgba(255,255,255,.12) 0 60%, transparent 61%);
  pointer-events: none;
}
.login__brand { display: flex; align-items: center; gap: 11px; margin-bottom: auto; }
.login__brand .brand__mark {
  background: rgba(255,255,255,.94); color: var(--ms-orange);
  box-shadow: 0 10px 26px rgba(90,30,0,.28); width: 46px; height: 46px;
  border-radius: var(--r-lg);
}
.login__brand .brand__word { color: #fff; font-size: 19px; }

.login__title {
  font-size: 40px; font-weight: 800; letter-spacing: -.045em;
  line-height: 1.02; margin: 0 0 12px;
}
.login__sub {
  font-size: 15.5px; line-height: 1.5;
  color: rgba(255,255,255,.86); margin: 0; max-width: 20em;
}
.login__sheet {
  position: relative;
  background: var(--ms-surface);
  border-radius: var(--r-3xl) var(--r-3xl) 0 0;
  padding: 26px 24px calc(var(--safe-bottom) + 22px);
  box-shadow: 0 -14px 40px rgba(80,26,0,.22);
  animation: riseIn .42s var(--ease) both;
}
.login__h { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--ms-ink); }
.login__hs { font-size: 13.5px; color: var(--ms-ink-3); margin: 4px 0 18px; }
.login__btns { display: flex; flex-direction: column; gap: 10px; }
.login__or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 4px;
  font-size: 11.5px; font-weight: 700; color: var(--ms-ink-4);
  text-transform: uppercase; letter-spacing: .08em;
}
.login__or::before, .login__or::after {
  content: ''; flex: 1; height: 1px; background: var(--ms-line);
}
.login__guest {
  width: 100%; padding: 13px; font-size: 14.5px; font-weight: 800;
  color: var(--ms-orange); background: none; border: none;
}
.login__legal {
  font-size: 11.5px; line-height: 1.5;
  color: var(--ms-ink-4); margin: 10px 0 0; text-align: center;
}
.login__legal a { color: var(--ms-ink-3); text-decoration: underline; }

/* ------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 20px; border-radius: var(--r-lg);
  transition: transform .12s var(--ease), background .15s, box-shadow .2s var(--ease);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .12s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.965); }
/* Los iconos dentro de un botón no marcan su tamaño: lo marca el botón. */
.btn svg, .btn img { width: 20px; height: 20px; flex-shrink: 0; }
.btn--sm svg, .btn--sm img { width: 16px; height: 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn--primary {
  background: var(--ms-orange); color: #fff; box-shadow: var(--sh-orange);
}
.btn--primary:hover { background: var(--ms-orange-dark); }

.btn--ghost {
  background: var(--ms-surface); color: var(--ms-ink);
  box-shadow: inset 0 0 0 1.5px var(--ms-line);
}
.btn--ghost:hover { background: var(--ms-surface-2); }

.btn--sm { padding: 9px 14px; font-size: 13px; border-radius: var(--r-sm); }

/* Entrada con proveedor: fondo blanco y marca a la izquierda. */
.btn--google, .btn--apple, .btn--mail {
  width: 100%; padding: 16px 20px; border-radius: var(--r-lg); font-size: 15px;
  background: var(--ms-surface); color: var(--ms-ink);
  box-shadow: inset 0 0 0 1.5px var(--ms-line);
}
.btn--apple { background: #111; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn--mail {
  background: var(--ms-surface-2); color: var(--ms-ink);
  box-shadow: inset 0 0 0 1.5px var(--ms-line);
}

/* -------------------------------------------------------------- campos */
.field {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--ms-line); border-radius: var(--r-md);
  background: var(--ms-surface); font-size: 14.5px;
  transition: border-color .15s;
}
.field:focus { outline: none; border-color: var(--ms-orange); }
.field::placeholder { color: var(--ms-ink-4); }

/* -------------------------------------------------------- buscador hero
   C-035 · el buscador es lo primero de la home. */
.hero-q {
  display: flex; align-items: center; gap: 11px;
  margin: 0 20px 18px; padding: 14px 16px;
  background: var(--ms-surface); border: 1.5px solid var(--ms-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-card);
  color: var(--ms-ink-3); font-size: 14.5px;
}

.locpicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ms-ink-2);
}

/* --------------------------------------------------------- secciones */
.section { margin-bottom: 26px; }
.section__h {
  display: flex; align-items: baseline; gap: 10px;
  padding: 0 20px; margin-bottom: 13px;
}
.section__h h2 { font-size: 18px; font-weight: 800; letter-spacing: -.025em; flex: 1; }
.section__link { font-size: 13px; font-weight: 700; color: var(--ms-orange); }

.muted { color: var(--ms-ink-3); }
.note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.55; color: var(--ms-ink-3);
  padding: 0 20px; margin-top: 14px;
}
.note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ms-orange); }
.note--info {
  margin: 0 20px; padding: 12px 14px;
  background: var(--ms-surface-2); border: 1px solid var(--ms-card-line);
  border-radius: var(--r); color: var(--ms-ink-2);
}

/* ------------------------------------------- iconos de servicio (home)
   C-020 · el orden lo fija el admin por canal; el icono viaja con su
   servicio y es el mismo en home, ficha, carrito, agenda y admin. */
.svcgrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px; padding: 0 20px 4px;
}
.svc {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: transform .12s;
}
.svc:active { transform: scale(.93); }
.svc__ico {
  width: 58px; height: 58px; border-radius: var(--r-xl);
  background: var(--ms-orange-soft); color: var(--ms-orange);
  display: flex; align-items: center; justify-content: center;
}
.svc__ico svg, .svc__ico img { width: 30px; height: 30px; }
.svc__lb {
  font-size: 11.5px; font-weight: 600; color: var(--ms-ink-2);
  text-align: center; line-height: 1.25;
}

/* ------------------------------------------------ tarjeta de negocio */
.vcard {
  display: block; margin: 0 20px 14px;
  background: var(--ms-surface); border: 1px solid var(--ms-card-line);
  border-radius: var(--r-2xl); overflow: hidden;
  box-shadow: var(--sh-1); transition: transform .16s var(--ease), box-shadow .2s var(--ease);
}
.vcard:hover { box-shadow: var(--sh-2); }
.vcard:active { transform: scale(.982); }
.vcard__top { position: relative; aspect-ratio: 3 / 2; background: var(--ms-line-2); }
/* 4.04 · velo inferior en la foto: el nombre y los distintivos se leen
   siempre, con foto clara o oscura. */
.vcard__top::after {
  content: ''; position: absolute; inset: auto 0 0; height: 58%;
  background: linear-gradient(to top, rgba(20,14,10,.58), rgba(20,14,10,0));
  pointer-events: none;
}
.vcard__top img { width: 100%; height: 100%; object-fit: cover; }
.vcard__loc {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(28,25,23,.62); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.vcard__meta { padding: 14px 16px 16px; }

.vrating {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--ms-ink-2);
  background: var(--ms-line-2); padding: 5px 10px; border-radius: 999px;
}
.stars { color: var(--ms-premium); }

/* Iconos de los servicios visibles del negocio (C-019 · C-045). */
/* C-010 · Los iconos de servicio se ven más grandes en toda la app: son la
   señal con la que el cliente reconoce qué está reservando. */
.venue__tags { display: flex; gap: 10px; margin-top: 9px; flex-wrap: wrap; align-items: center; color: var(--ms-orange); }
.venue__tags .svc__ico {
  width: auto; height: auto; border-radius: 0; background: none;
}
.venue__tags .svc__ico svg { width: 21px; height: 21px; display: block; }
.cardicons svg { width: 21px; height: 21px; display: block; flex-shrink: 0; }
.svcbig svg { width: 40px; height: 40px; display: block; flex-shrink: 0; }

.venue__name { font-size: 16.5px; font-weight: 800; letter-spacing: -.025em; }
.venue__meta { font-size: 12.5px; color: var(--ms-ink-3); margin-top: 2px; }
.venue__row { display: flex; align-items: center; gap: 10px; }

/* --------------------------------------------- ficha del negocio
   C-005 · La cabecera de la ficha ya no reutiliza la tarjeta de la home:
   ahí `.vcard__top` medía 16/9 en gris y el nombre caía dentro de ese
   hueco, con la localidad flotando encima como píldora oscura. Ahora es
   la cabecera de la maqueta: banda de portada de 118 px con los dos
   botones redondos encima, y debajo nombre, localidad y chips. */
.vhero { position: relative; height: 118px; background: var(--ms-line-2); }
.vhero__img, .venue__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhero__actions {
  position: absolute; inset: calc(var(--safe-top) + 12px) 16px auto 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.vhero__right { display: flex; align-items: center; gap: 8px; }

.vhead { padding: 16px 20px 4px; }
.vhead__name { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.vhead__loc { font-size: 13px; color: var(--ms-ink-3); margin-top: 2px; }
.vhead__chips { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--ms-ink-2);
  background: var(--ms-cream-soft); padding: 5px 10px; border-radius: 999px;
  border: 1px solid transparent;
}
/* 7.21 · «+N más» lleva a Información, donde salen todas las palabras. */
/* 7.23 · «+N» es una palabra más de la fila, no un botón aparte: mismo
   fondo y mismo tamaño, sólo que en naranja y con el dedo encima. */
.chip--more {
  background: var(--ms-cream-soft); color: var(--ms-orange-dark, #C93F0B); cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 800; line-height: inherit;
}
.chip--more:hover { background: var(--ms-orange-soft, #FDEDE6); }
.chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.chip small { color: var(--ms-ink-3); font-weight: 600; }

.venue__body { padding: 16px 20px 4px; }

/* Pestañas de servicio: el orden lo pone cada partner (C-020). */
/* 4.04 · las pestañas se quedan pegadas arriba al bajar por la ficha, con
   velo blanco, y se puede deslizar el dedo para pasar de servicio. */
.ptabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 20px 12px; scrollbar-width: none;
  position: sticky; top: 0; z-index: 22;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--ms-line-3);
  scroll-behavior: smooth;
}
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button {
  flex-shrink: 0; padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .18s var(--ease), color .18s, transform .14s var(--ease);
  background: var(--ms-surface); color: var(--ms-ink-2);
  box-shadow: inset 0 0 0 1.5px var(--ms-line);
  transition: background .15s, color .15s;
}
/* C-005 · el JS marca la pestaña activa con `is-active`; el CSS buscaba
   `.on`, así que la pestaña elegida nunca se ponía naranja. */
.ptabs button.is-active, .ptabs button.on {
  background: var(--ms-orange); color: #fff; box-shadow: var(--sh-orange-sm);
}
.ptabs button:active { transform: scale(.95); }
/* Cuántas líneas de ese servicio llevas ya en el pedido (4.04). */
.ptab__n {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ms-orange); color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
}
.ptabs button.is-active .ptab__n { background: rgba(255,255,255,.28); }
/* El panel de servicio entra con el gesto: hacia dónde deslizaste. */
.panelin  { animation: panelIn .28s var(--ease) both; }
.panelin--l { --dx: 26px; }
.panelin--r { --dx: -26px; }
@keyframes panelIn { from { opacity: 0; transform: translateX(var(--dx, 0)); } }

/* Selectores de fecha, tramo y personas. */
.pickers3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 20px 6px; }
.picker {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 11px; border-radius: 12px;
  background: var(--ms-surface); border: 1.5px solid var(--ms-line);
  font-size: 13px; font-weight: 700; color: var(--ms-ink);
  text-align: left; transition: border-color .15s;
}
.picker:hover { border-color: var(--ms-ink-4); }
.picker svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ms-ink-3); }
/* El valor es el que se estira y se recorta; así el chevron queda pegado
   a la derecha en las tres cajas por igual. */
.picker > span { flex: 1; min-width: 0;
                 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker div { flex: 1; min-width: 0; }
.picker .k { font-size: 10.5px; font-weight: 700; color: var(--ms-ink-3);
             text-transform: uppercase; letter-spacing: .04em; }
.picker .v { font-size: 13.5px; font-weight: 700; margin-top: 1px;
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__chev { flex: 0 0 auto; color: var(--ms-ink-4); display: flex; }
.picker__chev svg { width: 12px; height: 12px; color: var(--ms-ink-4); }

.segmented {
  display: flex; gap: 6px; padding: 4px;
  background: var(--ms-line-2); border-radius: var(--r-md);
  margin: 0 20px 16px;
}
.segmented button {
  flex: 1; padding: 10px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; color: var(--ms-ink-2);
  transition: background .15s;
}
.segmented button.on { background: var(--ms-surface); color: var(--ms-ink);
                       box-shadow: var(--sh-card); }

/* ------------------------------------- rejilla de unidades (por zonas)
   C-013 · lo que se ve aquí es el plano del partner, leído en vivo.  */
.zblock { border-top: 1px solid var(--ms-line-3); padding: 14px 20px 18px; }
.zblock__h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.zblock__name { font-size: 13.5px; font-weight: 800; color: var(--ms-orange); flex: 1; }
.zblock__sub { font-size: 12.5px; font-weight: 500; color: var(--ms-ink-3); }
.zblock__price { font-size: 12.5px; font-weight: 700; color: var(--ms-ink-2); }
.zblock__price small { font-weight: 500; color: var(--ms-ink-3); }
/* 6.39 · Varias sesiones el mismo día: cada una es su propio bloque. La que
   ya tiene plazas elegidas se marca; la completa se apaga. */
/* 6.43 · La sesión elegida no se marca en el bloque: ocupa todo el ancho del
   panel y cualquier aro o fondo se lee como un cuadro enorme alrededor de la
   pantalla. Lo que dice qué has cogido son las plazas y el pie del bloque. */
.zblock.is-full { opacity: .62; }
.zblock.is-full .zblock__name { color: var(--ms-ink-3); }
.seshint {
  margin: 0 0 12px; font-size: 12.5px; color: var(--ms-ink-3);
  background: var(--ms-cream); border-radius: 10px; padding: 9px 12px;
}

/* C-012 · pie del cuadro de plazas: cuántas quedan y cuántas faltan por elegir. */
.zblock__note { margin: 10px 0 0; font-size: 12px; color: var(--ms-ink-3); }

/* C-006 · La rejilla de unidades: cuatro por fila, casi cuadradas, con el
   icono del servicio dentro y el código debajo — como en la maqueta. El
   CSS anterior estilaba `.unitchip`, una clase que el código no emite:
   los botones salían sin ningún estilo. */
/* 4.08 · rejilla de unidades: cuatro por fila, CUADRADAS y con el mismo
   canalón de 20 px que el resto de la app. */
.urow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.srow { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }

.ucell {
  position: relative;
  aspect-ratio: 1 / 1; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--ms-free); color: var(--ms-free-ink);
  transition: transform .1s, background .15s, box-shadow .15s;
}
.ucell:active { transform: scale(.92); }
.ucell svg { width: 32px; height: 32px; display: block; }
.ucell__code { font-size: 11.5px; font-weight: 800; }
.ucell__ico { display: flex; }
.ucell.is-selected {
  background: var(--ms-orange); color: #fff;
  box-shadow: 0 6px 16px rgba(236,82,20,.35);
}
.ucell.is-occupied, .ucell.is-blocked, .ucell:disabled {
  background: var(--ms-busy); color: var(--ms-busy-ink);
  pointer-events: none; box-shadow: none;
}
/* Premium: estrella pequeña en la esquina, nunca texto. */
.ucell__badge {
  position: absolute; top: 5px; right: 5px; display: flex;
  color: var(--ms-premium);
}
.ucell__badge svg { width: 11px; height: 11px; }
.ucell.is-selected .ucell__badge { color: #fff; }
.ucell.is-selected .ucell__badge--n { color: var(--ms-orange); }
.ucell__umb { position: absolute; top: 5px; left: 5px; display: flex; opacity: .75; }
.ucell__umb svg { width: 11px; height: 11px; }

/* ---------------------------------------- alquiler por tramos (3.06)
   Casillas de tramo: la hora manda, así que son más anchas que altas y sin
   icono. Cuatro estados propios además de libre y ocupada: el tramo que
   eliges (naranja), las casillas que ese tramo ocupa —una reserva de 90
   min tapa tres medias horas—, y lo que ya tienes en el carrito. */
.ucell--t {
  aspect-ratio: auto; width: auto; min-width: 78px; height: 54px;
  padding: 0 13px; gap: 1px;
}
.ucell--t .ucell__sub { font-size: 10.5px; font-weight: 600; opacity: .85; }
.ucell.is-mine, .ucell.is-mine:disabled {
  background: var(--ms-orange-soft); color: var(--ms-orange-dark);
  box-shadow: inset 0 0 0 1.5px var(--ms-orange-border);
}
.ucell.is-cart, .ucell.is-cart:disabled {
  background: var(--ms-premium-bg); color: var(--ms-premium);
  box-shadow: inset 0 0 0 1.5px #EBDCB4;
}
.ucell.is-view { box-shadow: inset 0 0 0 2px var(--ms-orange-dark); }
/* 3.09 · libre a esa hora, pero el tramo completo no cabe: no es lo mismo
   que ocupada, y con el mismo gris el cliente lo leía como ocupada. */
.ucell.is-nofit, .ucell.is-nofit:disabled {
  background: var(--ms-surface); color: var(--ms-ink-4);
  box-shadow: inset 0 0 0 1.5px var(--ms-line);
  pointer-events: none;
}
.ucell.is-nofit .ucell__sub { font-weight: 700; }
.ucell__badge--n {
  min-width: 16px; height: 16px; border-radius: 999px;
  background: #fff; color: var(--ms-orange);
  font-size: 10px; font-weight: 800;
  align-items: center; justify-content: center; padding: 0 3px;
}
/* 4.58 · el aviso de las casillas: dos frases cortas en una caja de crema, con
   su rótulo. Antes era un párrafo suelto de cinco líneas. */
.tnote {
  margin: 10px 0 2px; padding: 12px 14px;
  background: var(--ms-cream-soft); border: 1px solid var(--ms-cream-line);
  border-radius: var(--r-lg);
}
.tnote__h {
  display: flex; align-items: center; gap: 7px; margin-bottom: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ms-brown);
}
.tnote__h svg { width: 13px; height: 13px; color: var(--ms-orange); }
.tnote__l { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.tnote__l li {
  position: relative; padding-left: 13px;
  font-size: 12px; line-height: 1.5; color: var(--ms-ink-2); text-wrap: pretty;
}
.tnote__l li::before {
  content: ''; position: absolute; left: 3px; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ms-orange);
}
.tnote b { color: var(--ms-ink); font-weight: 800; }

/* Píldora del carrito: sigue visible al cambiar de servicio (3.06). */
.cartpill {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 61;
  animation: riseIn .3s var(--ease) both;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--ms-ink); color: #fff;
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  box-shadow: 0 10px 26px rgba(28,25,23,.3);
  max-width: min(92vw, 440px);
}
.cartpill svg { width: 15px; height: 15px; flex-shrink: 0; }
.cartpill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartpill b {
  background: var(--ms-orange); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; flex-shrink: 0;
}

/* ------------------------------------------------- evento (entradas)
   C-009 · Tarjeta del evento como en la maqueta: foto arriba —la que sube
   el partner al personalizar el evento—, y debajo nombre, cuándo, dónde y
   las tarifas. */
.evwrap { padding: 20px; }
.evcard {
  border-radius: 20px; overflow: hidden; background: var(--ms-surface);
  box-shadow: 0 1px 2px rgba(28,25,23,.05), 0 8px 22px rgba(28,25,23,.07);
}
.evcard__img { width: 100%; height: 150px; object-fit: cover; display: block; }
.evcard__ph {
  height: 150px; background: #F2EDE5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #CFC8BE;
}
.evcard__ph svg { width: 26px; height: 26px; display: block; }
.evcard__ph span { font-size: 10px; font-weight: 600; color: #B5ADA2; }
.evcard__b { padding: 16px 16px 4px; }
.evtag {
  display: inline-block; font-size: 10.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  color: #8B5CF6; background: #F1EBFE; padding: 5px 11px; border-radius: 999px;
}
.evtitle { font-size: 21px; font-weight: 800; letter-spacing: -.03em; margin-top: 9px; }
.evloc { font-size: 13px; color: var(--ms-ink-3); margin-top: 2px; }
.evwhen {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 11px 13px;
  background: var(--ms-bg); border-radius: 12px;
  font-size: 13px; font-weight: 700;
}
.evwhen svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ms-orange); }
.evwhen__dot { color: #D9D4CC; font-weight: 500; }
.evdesc { font-size: 13.5px; color: #44403C; line-height: 1.55; margin: 12px 0 0; }
.evtix { display: flex; align-items: center; gap: 8px; padding: 16px 16px 6px; }
.evtix__t {
  flex: 1; font-size: 12px; font-weight: 700; color: var(--ms-ink-3);
  text-transform: uppercase; letter-spacing: .05em;
}
.evaforo {
  font-size: 11.5px; font-weight: 700; color: #8B5CF6;
  background: #F1EBFE; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

.unitchips { display: flex; gap: 7px; flex-wrap: wrap; }

/* Leyenda de estados: el color nunca va solo, siempre con su palabra.
   C-007 · los cuadraditos no tenían color: las clases `l-free`, `l-sel`
   y `l-busy` sólo existían combinadas con `.unitchip`, que ya no se usa. */
.legend5 {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px 14px; font-size: 11.5px; color: var(--ms-ink-2);
}
.legend5 span { display: flex; align-items: center; gap: 6px; }
.legend5 i {
  width: 11px; height: 11px; border-radius: 3px; display: block;
  background: var(--ms-free);
}
.legend5 i.l-free { background: var(--ms-free); }
.legend5 i.l-sel  { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ms-orange); }
.legend5 i.l-busy { background: var(--ms-busy); }
.legend5 i.l-mine { background: var(--ms-orange-soft); box-shadow: inset 0 0 0 1.5px var(--ms-orange-border); }
.legend5 i.l-cart { background: var(--ms-premium-bg); box-shadow: inset 0 0 0 1.5px #EBDCB4; }
.legend5 i.l-nofit { background: var(--ms-surface); box-shadow: inset 0 0 0 1.5px var(--ms-line); }
.l-prem-ico, .l-umb-ico { display: flex; }
.l-prem-ico { color: var(--ms-premium); }
.l-umb-ico { color: var(--ms-ink-3); }
.l-prem-ico svg, .l-umb-ico svg { width: 11px; height: 11px; display: block; }

/* 5.37 · El chip «Individuales / Juntas» se retiró: la unidad exacta se
   elige en el plano. */

/* ------------------------------------------- lista (sesiones, tramos) */
.list { padding: 0 20px; }
.listitem {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 15px; margin-bottom: 9px;
  background: var(--ms-surface); border: 1.5px solid var(--ms-line);
  border-radius: var(--r-lg); text-align: left;
  transition: border-color .15s, background .15s;
}
.listitem:hover { border-color: var(--ms-ink-4); }
.listitem.on, .listitem.is-selected { border-color: var(--ms-orange); background: var(--ms-orange-soft); }
/* C-012 · el JS marca la fila elegida con `is-selected` y el CSS sólo
   conocía `.on`: en fecha, cantidad, duración y sesión no se veía cuál
   estaba puesta. */
.listitem:disabled { opacity: .5; pointer-events: none; }
.listitem__main { flex: 1; min-width: 0; }
.listitem__t { font-size: 14.5px; font-weight: 800; }
.listitem__s { font-size: 12.5px; color: var(--ms-ink-3); margin-top: 1px; }
.listitem__seats {
  font-size: 11.5px; font-weight: 700; color: var(--ms-free-ink);
  background: var(--ms-free); padding: 4px 9px; border-radius: 999px;
}
.listitem__chev, .rowitem__chev, .picker__chev { flex-shrink: 0; }
.listitem__chev svg, .rowitem__chev svg, .picker__chev svg,
.listitem svg, .rowitem svg, .feat svg { width: 18px; height: 18px; }
.listitem__chev { color: var(--ms-ink-4); }

/* -------------------------------------------------------- contadores */
.stepper {
  display: flex; align-items: center; gap: 12px;
  background: var(--ms-line-2); border-radius: 999px; padding: 4px;
}
.stepper button {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ms-surface); color: var(--ms-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; box-shadow: var(--sh-card);
}
.stepper button[disabled] { opacity: .35; }
.stepper .n { min-width: 22px; text-align: center; font-size: 15px; font-weight: 800; }

/* ------------------------------------------ hoja de pedido (4.03)
   El carrito deja de ser una lista corta y pasa a ser un pedido de compra:
   cabecera con local, fecha y estado; una línea numerada por reserva con
   sus especificaciones (servicio, zona, horario, duración, franja,
   disposición), el detalle unidad a unidad con su precio, los extras y el
   subtotal de la línea; al pie, los totales. Cifras en tabular para que
   las columnas cuadren, como en un albarán. */
.po {
  margin: 14px 20px 0; background: var(--ms-surface);
  border: 1px solid var(--ms-card-line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-card);
}
.po__head {
  background: var(--ms-orange); color: #fff;
  padding: 13px 16px; display: flex; align-items: center; gap: 10px;
}
.po__head b {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.po__head svg { width: 18px; height: 18px; flex-shrink: 0; }
.po__state {
  margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  background: rgba(250,241,213,.16); color: var(--ms-cream); white-space: nowrap;
}
.po__meta {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ms-cream-soft); border-bottom: 1px solid var(--ms-cream-line);
}
.po__meta > div { padding: 11px 16px; border-top: 1px solid var(--ms-cream-line); }
.po__meta > div:nth-child(-n+2) { border-top: none; }
.po__meta > div:nth-child(odd) { border-right: 1px solid var(--ms-cream-line); }
.po__k {
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ms-orange-dark);
}
.po__v { font-size: 13px; font-weight: 700; color: var(--ms-ink); margin-top: 3px; line-height: 1.35; }
.po__cols {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  border-bottom: 1px solid var(--ms-line); background: var(--ms-surface-2);
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ms-ink-3);
}
.po__cols span:last-child { margin-left: auto; }

.poline { padding: 15px 16px; border-bottom: 1px solid var(--ms-line-2); }
.poline__h { display: flex; align-items: flex-start; gap: 11px; }
.poline__n {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  background: var(--ms-orange); color: #fff;
  font-family: var(--ms-mono); font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.poline__m { flex: 1; min-width: 0; }
.poline__t { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.poline__s { font-size: 12px; color: var(--ms-ink-3); margin-top: 2px; }
.poline__amt {
  flex-shrink: 0; text-align: right; font-size: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pospecs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 12px; background: var(--ms-line-2);
  border: 1px solid var(--ms-line-2); border-radius: var(--r-sm); overflow: hidden;
}
.pospec { background: var(--ms-surface); padding: 9px 11px; }
.pospec--wide { grid-column: 1 / -1; }
.pospec__k {
  font-size: 9.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ms-orange-dark);
}
.pospec__v { font-size: 12.5px; font-weight: 700; color: var(--ms-ink); margin-top: 2px; }
.pospec__v small { font-weight: 600; color: var(--ms-ink-3); }

.posub {
  margin-top: 13px; font-size: 9.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ms-ink-3);
  display: flex; align-items: center; gap: 8px;
}
.posub::after { content: ''; flex: 1; height: 1px; background: var(--ms-line-2); }
.pourow {
  display: flex; align-items: center; gap: 9px; padding: 8px 0;
  border-bottom: 1px dashed var(--ms-line); font-size: 12.5px;
}
.pourow:last-of-type { border-bottom: none; }
.pocode {
  font-family: var(--ms-mono); font-size: 11.5px; font-weight: 700;
  background: var(--ms-line-2); color: var(--ms-ink);
  padding: 4px 8px; border-radius: 6px; flex-shrink: 0;
}
/* 6.36 · el nombre lo pone el partner —«Moto 1», «Plaza 05»— y no cabe en el
   hueco de un código de dos letras. */
.pocode--wide {
  min-width: 74px; text-align: center; font-family: inherit; font-size: 12px;
  letter-spacing: 0; white-space: nowrap;
}
.pourow__m { flex: 1; min-width: 0; color: var(--ms-ink-2); font-weight: 600; }
.pourow__p { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.potag {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; flex-shrink: 0;
}
.potag--prem { background: var(--ms-premium-bg); color: #8A6A1B; }
.potag--umb  { background: var(--ms-surface-2); color: var(--ms-ink-3); }

.polinesub {
  display: flex; align-items: center; gap: 8px; margin-top: 11px;
  padding-top: 10px; border-top: 1.5px solid var(--ms-line);
  font-size: 13px; font-weight: 800;
}
.polinesub span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.poacts { display: flex; gap: 8px; margin-top: 12px; }
.poact {
  flex: 1; padding: 9px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--ms-line); background: var(--ms-surface); color: var(--ms-ink-2);
}
.poact--edit { color: var(--ms-orange); border-color: var(--ms-orange-border); background: var(--ms-orange-soft); }
.poact--del  { color: var(--ms-orange-dark); }

.pototals { padding: 14px 16px; background: var(--ms-surface-2); }
.pototal {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  font-size: 13px; color: var(--ms-ink-2);
}
.pototal span:last-child { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pototal--big {
  margin-top: 8px; padding-top: 11px; border-top: 2px solid var(--ms-orange);
  font-size: 18px; font-weight: 800; color: var(--ms-ink);
}
.pototal--big span:last-child { font-size: 20px; font-weight: 800; }
.pofoot {
  padding: 0 16px 14px; background: var(--ms-surface-2);
  font-size: 11px; color: var(--ms-ink-3);
}

/* ------------------------------------------------------------ extras
   4.02 · la pestaña de extras de la ficha, como en la maqueta: una lista
   dentro de una tarjeta, cada extra con su precio y su botón «Añadir»
   que al pulsarlo se convierte en contador. */
.xpane { padding: 20px; }
.xpane__h { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.xpane__sub { margin: 3px 0 16px; font-size: 13.5px; color: var(--ms-ink-3); }
.xlist {
  border: 1px solid var(--ms-card-line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--ms-surface);
}
.xrow {
  display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  border-bottom: 1px solid var(--ms-line-2);
}
.xrow:last-child { border-bottom: none; }
.xrow.is-on { background: var(--ms-orange-soft); }
.xrow__b { flex: 1; min-width: 0; }
.xrow__n { font-size: 14.5px; font-weight: 700; color: var(--ms-ink); }
.xrow__d { font-size: 12.5px; color: var(--ms-ink-3); margin-top: 1px; }
.xrow__p { font-size: 13px; font-weight: 700; color: var(--ms-orange); margin-top: 2px; }
.btn--add {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  background: var(--ms-surface); border: 1.5px solid var(--ms-orange);
  color: var(--ms-orange); border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; width: auto;
}
.btn--add svg { width: 13px; height: 13px; }
.stepper--x { flex-shrink: 0; gap: 9px; padding: 3px; }
.stepper--x button { width: 28px; height: 28px; border-radius: 9px; font-size: 15px; }
.stepper--x button:last-child { background: var(--ms-orange); color: #fff; }
.note--warm {
  margin: 16px 0 0; padding: 13px 15px; border-radius: var(--r-md);
  background: #FDF8EC; border: 1px solid #F3E4B8; color: #7A5A1E;
  font-size: 12.5px; line-height: 1.5;
}
.note--warm svg { color: #B5872A; width: 16px; height: 16px; margin-top: 1px; }

.extra-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--ms-line-2);
}
.extra-row__d { flex: 1; min-width: 0; }
.extra-row__n { font-size: 14px; font-weight: 700; }
.extra-row__b { font-size: 12.5px; color: var(--ms-ink-3); margin-top: 1px; }

/* --------------------------------------------------------- precios
   C-033 · la línea dice qué, cuántas unidades, a qué hora y dónde. */
.pricebox {
  margin: 18px 20px 0; padding: 16px;
  background: var(--ms-surface-2); border: 1px solid var(--ms-card-line);
  border-radius: var(--r-lg);
}
.priceline {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13.5px; color: var(--ms-ink-2); padding: 4px 0;
}
.priceline span:first-child { flex: 1; min-width: 0; }
.priceline--total {
  font-size: 17px; font-weight: 800; color: var(--ms-ink);
  border-top: 1px solid var(--ms-line); margin-top: 8px; padding-top: 12px;
}
.per { font-size: 12px; color: var(--ms-ink-3); font-weight: 500; }

/* Barra de acción fija sobre la barra de pestañas. */
.actions {
  position: sticky; bottom: 0; z-index: 15;
  display: flex; gap: 10px; align-items: center;
  padding: 14px 20px calc(14px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--ms-surface) 26%);
}
.actions .btn { flex: 1; }

/* ------------------------------------------------- barra de reserva
   C-004 · Es una barra fija al pie de la ficha, no una hoja modal.
   Antes heredó el estilo de hoja (inset:0 + velo oscuro) y tapaba la
   pantalla entera: el plano quedaba detrás del velo y no se podía
   tocar nada. Ahora es la barra de la maqueta: blanca translúcida,
   fina, pegada abajo, sin velo. */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  margin: 0 auto; width: 100%; max-width: 480px;
  display: flex; flex-direction: column;
  padding: 0 0 var(--safe-bottom);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--ms-line-3);
  animation: rise .26s cubic-bezier(.2,.8,.3,1);
}
/* 4.07 · la barra tiene dos alturas: la tira del pedido (si hay pedido) y la
   fila de lo que estás eligiendo ahora. */
.sheet__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
}
@keyframes rise { from { transform: translateY(100%); } }

/* 4.33 · en la barra no cabe todo: título y detalle van a una línea, con
   puntos suspensivos si sobra, y el precio no se estruja. */
.sheet__t {
  font-size: 14.5px; font-weight: 800; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sheet__s {
  font-size: 11.5px; color: var(--ms-ink-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sheet__thumb {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-md); object-fit: cover;
  background: var(--ms-line-2);
}
.sheet__info { flex: 1; min-width: 0; }
/* 6.37 · la bolsita de la barra: apagada mientras no llevas nada. */
.sheet__bag {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--ms-line-2); color: var(--ms-ink-3);
}
.sheet__bag.is-on { background: var(--ms-orange-soft, #FDE6DC); color: var(--ms-orange); }
.sheet__bag svg { width: 19px; height: 19px; }
/* 6.38 · aviso de que se está cambiando una reserva ya guardada. */
.sheetedit {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 12px; margin-bottom: 9px;
  background: var(--ms-orange-soft, #FDE6DC); border-radius: var(--r-md);
  font-size: 12.5px; font-weight: 700; color: var(--ms-orange);
}
.sheetedit svg { width: 16px; height: 16px; flex-shrink: 0; }
.sheetedit span { flex: 1; min-width: 0; }
.sheetedit button {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--ms-ink-2); text-decoration: underline;
}
.sheet__price { font-size: 15px; font-weight: 800; color: var(--ms-orange); flex-shrink: 0; }
.sheet .btn { flex-shrink: 0; }

/* ------------------------------------------------------------ modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(28,25,23,.45); animation: fade .2s ease;
}
.modal {
  width: 100%; max-width: 420px; max-height: 86dvh; overflow-y: auto;
  background: var(--ms-surface); border-radius: var(--r-2xl);
  padding: 24px; box-shadow: var(--sh-modal);
}
.modal h3 { font-size: 18px; letter-spacing: -.025em; }
.modal__sub { font-size: 13.5px; color: var(--ms-ink-3); margin: 6px 0 0; }
.modal__foot { display: flex; gap: 10px; margin-top: 20px; }
.modal__foot button { flex: 1; }

/* --------------------------------------------- reserva confirmada */
.confirm { padding: 34px 26px 20px; text-align: center; }
.confirm h1 { font-size: 22px; letter-spacing: -.03em; }
.confirm__check svg { width: 38px; height: 38px; }
.confirm__check {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--ms-success); color: var(--ms-success-ink);
  display: flex; align-items: center; justify-content: center;
  animation: pop .4s cubic-bezier(.2,1.3,.4,1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.confirm__venue { font-size: 13.5px; color: var(--ms-ink-3); margin-top: 4px; }
.confirm__ref {
  display: inline-block; margin-top: 14px; padding: 8px 16px;
  background: var(--ms-line-2); border-radius: 999px;
  font-family: var(--ms-mono); font-size: 13px; font-weight: 700;
}
.confirm__unit { font-size: 13px; color: var(--ms-ink-2); }

.factbox {
  margin: 22px 0 0; border: 1px solid var(--ms-line);
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--ms-surface); text-align: left;
}
.fact {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--ms-line-2);
}
.fact svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; color: var(--ms-ink-3); }
.fact:last-child { border-bottom: none; }
.fact__k { font-size: 11.5px; color: var(--ms-ink-3); }
.fact__v { font-size: 13.5px; font-weight: 700; margin-top: 1px; }

/* ------------------------------------------------ mis reservas
   3.04 · Reescrita según la maqueta: cabecera grande, dos contadores y una
   tarjeta por reserva con la cabecera naranja —la marca siempre visible—,
   el desglose línea a línea y las tres acciones. Se retira `.bkcard`, la
   fila con miniatura que abría un diálogo: no está en la maqueta y dejaba
   fuera lo que el cliente necesita ver de un vistazo. */
.screen--top { padding-top: calc(var(--safe-top) + 40px); }

.bkh { padding: 14px 20px 6px; }
.bkh h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.bkh p { margin: 3px 0 0; font-size: 14px; color: var(--ms-ink-3); }

.bkstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 4px; }
.bkstat {
  background: var(--ms-surface); border: 1px solid var(--ms-card-line);
  border-radius: 16px; padding: 15px;
}
.bkstat span { font-size: 11px; font-weight: 700; letter-spacing: .05em;
               text-transform: uppercase; color: var(--ms-ink-3); }
.bkstat b { display: block; font-size: 26px; font-weight: 800;
            letter-spacing: -.02em; margin-top: 4px; }
.bkstat--dark { background: var(--ms-brown); border-color: var(--ms-brown); color: #fff; }
.bkstat--dark span { color: rgba(255,255,255,.6); }

.bklist { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 0; }
.bklist--past { padding: 0; gap: 11px; }

.rcard {
  border-radius: 20px; overflow: hidden; background: var(--ms-surface);
  box-shadow: 0 1px 2px rgba(28,25,23,.05), 0 8px 22px rgba(28,25,23,.07);
}
.rcard__top {
  background: linear-gradient(135deg, var(--ms-orange), #D64510);
  padding: 16px 16px 15px; color: #fff;
}
.rcard__head { display: flex; align-items: flex-start; gap: 10px; }
.rcard__id { flex: 1; min-width: 0; }
.rcard__name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.rcard__loc { font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 2px; }
.rcard__badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.2); color: #fff;
}
.rcard__when {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.rcard__when svg { width: 15px; height: 15px; flex-shrink: 0; color: rgba(255,255,255,.9); }
.rcard__date { font-size: 14px; font-weight: 700; }
.rcard__total { margin-left: auto; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }

.rcard__b { padding: 12px 16px 4px; }
.rline { display: flex; align-items: flex-start; gap: 10px;
         padding: 9px 0; border-bottom: 1px solid var(--ms-line-3); }
.rline__m { flex: 1; min-width: 0; }
.rline__t { font-size: 13.5px; font-weight: 700; }
.rline__d { font-size: 12px; color: var(--ms-ink-3); margin-top: 1px; line-height: 1.45; }
.rline__p { font-size: 13.5px; font-weight: 800; flex-shrink: 0; }
.rline--extra .rline__m { font-size: 12.5px; color: var(--ms-ink-2); }

.rcard__acts { display: flex; gap: 9px; padding: 12px 16px 8px; }
.rbtn {
  flex: 1; min-width: 0; white-space: nowrap;
  background: var(--ms-surface); border: 1.5px solid var(--ms-line);
  border-radius: 11px; padding: 11px 8px; font-size: 12.5px; font-weight: 700;
  color: var(--ms-ink);
}
.rbtn:active { transform: scale(.97); }
.rbtn--danger { flex: 0 0 auto; padding: 11px 13px; background: #FDEBE9;
                border-color: transparent; color: var(--ms-orange-dark); }
.rbtn--off { flex: 0 0 auto; padding: 11px 13px; background: #F4F1EC;
             border-color: transparent; color: #C4BDB3; }
.rcard__note { padding: 0 16px 14px; font-size: 11.5px; color: var(--ms-ink-3); }

.bkempty { text-align: center; padding: 30px 20px; background: var(--ms-surface-2); border-radius: 18px; }
.bkempty__ico { display: block; color: var(--ms-line); margin-bottom: 10px; }
.bkempty__ico svg { width: 36px; height: 36px; margin: 0 auto; }
.bkempty__t { font-size: 15px; font-weight: 700; }
.bkempty__s { font-size: 13.5px; color: var(--ms-ink-3); margin: 4px 0 14px; line-height: 1.5; }

.pasttoggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: var(--ms-surface-2); border-radius: 13px; padding: 14px 16px;
  font-size: 13.5px; font-weight: 700; color: var(--ms-ink-2);
}
.pasttoggle svg { width: 15px; height: 15px; }
.pastrow {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--ms-surface); padding: 14px 15px; text-align: left;
}
.pastrow__m { flex: 1; min-width: 0; }
.pastrow__t { font-size: 14.5px; font-weight: 700; }
.pastrow__d { font-size: 12px; color: var(--ms-ink-3); margin-top: 1px; }
.pastrow__st { font-size: 10.5px; font-weight: 800; text-transform: uppercase;
               letter-spacing: .04em; padding: 4px 9px; border-radius: 999px;
               background: var(--ms-line-2); color: var(--ms-ink-3); }
.pastrow__p { font-size: 14px; font-weight: 800; }

.qrbox {
  text-align: center; background: var(--ms-surface-2);
  border: 1px solid var(--ms-line); border-radius: 16px;
  padding: 22px 20px; margin-bottom: 14px;
}
.qrbox__ref { font-size: 24px; font-weight: 800; letter-spacing: .06em;
              font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.qrbox__d { font-size: 12.5px; color: var(--ms-ink-3); margin-top: 6px; }

.modal__p { font-size: 13.5px; color: var(--ms-ink-2); line-height: 1.55; margin: 0 0 14px; }

.confirm__bye {
  margin: 16px 20px 0; padding: 13px 16px; text-align: center;
  background: var(--ms-cream); border-radius: 12px;
  font-size: 12.5px; font-weight: 600; color: var(--ms-brown);
}

/* ------------------------------------------------------- perfil */
/* ------------------------------------------------------- perfil
   3.05 · Rehecho según la maqueta. La lista gris de filas se sustituye por la
   cabecera naranja de marca, los datos editables en línea y las tarjetas de
   preferencias y ayuda. */
.screen--flush { padding-top: 0; }

.phead {
  background: linear-gradient(135deg, var(--ms-orange), #D64510);
  color: #fff; padding: calc(var(--safe-top) + 46px) 20px 20px;
}
.phead__top { display: flex; align-items: center; gap: 15px; }
.pavatar {
  position: relative; width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%; background: rgba(255,255,255,.22); color: #fff;
  font-size: 25px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pavatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pavatar__cam {
  position: absolute; right: -2px; bottom: -2px;
  width: 23px; height: 23px; border-radius: 50%;
  background: #fff; color: var(--ms-orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(28,25,23,.25);
}
.pavatar__cam svg { width: 13px; height: 13px; }
.phead__id { flex: 1; min-width: 0; }
.phead__name { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.phead__mail { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 2px; }
.phead__badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.2); padding: 5px 11px; border-radius: 999px;
}
.phead__badge svg { width: 12px; height: 12px; }
.phead__stats {
  display: flex; gap: 10px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.phead__stats > div, .phead__stats > button {
  flex: 1; min-width: 0; text-align: left;
  background: none; border: none; padding: 0; color: inherit;
  font-family: inherit; cursor: pointer;
}
.phead__stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.phead__stats span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.75); }

.psec { padding: 20px 20px 0; }
.psec__h {
  font-size: 12px; font-weight: 700; color: var(--ms-ink-3);
  text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px;
}
.pcard {
  border: 1px solid var(--ms-card-line); border-radius: 16px;
  overflow: hidden; background: var(--ms-surface);
}
.prow {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 15px; border-bottom: 1px solid var(--ms-line-2);
  background: var(--ms-surface); text-align: left;
}
.pcard > .prow:last-child { border-bottom: none; }
.prow--pref { padding: 14px 15px; }
.prow__ico { flex-shrink: 0; display: flex; color: var(--ms-ink-3); }
.prow__ico svg { width: 17px; height: 17px; }
.prow__f { flex: 1; min-width: 0; }
.prow__k { display: block; font-size: 11.5px; color: var(--ms-ink-3); }
.prow__v {
  width: 100%; box-sizing: border-box; border: none; outline: none;
  background: none; padding: 1px 0 0;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ms-ink);
}
.prow__t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.prow__aside { font-size: 12.5px; color: var(--ms-ink-3); font-weight: 600; }
.prow__chev { flex-shrink: 0; display: flex; color: var(--ms-ink-4); }
.prow__chev svg { width: 15px; height: 15px; }
.prow--link:active { background: var(--ms-surface-2); }

/* Interruptor de preferencia. */
.sw {
  flex-shrink: 0; width: 46px; height: 27px; border-radius: 999px;
  background: var(--ms-line); padding: 3px; display: flex;
  transition: background .18s;
}
.sw span {
  width: 21px; height: 21px; border-radius: 50%; background: #fff; display: block;
  box-shadow: 0 1px 3px rgba(28,25,23,.2); transition: transform .18s;
}
.sw.is-on { background: var(--ms-orange); }
.sw.is-on span { transform: translateX(19px); }

/* 3.10 · datos del perfil: todos obligatorios, y el email es la cuenta. */
.prow__req { color: var(--ms-orange); font-weight: 800; }
.prow__v--fijo { font-size: 14.5px; font-weight: 700; color: var(--ms-ink-2); padding: 1px 0 0; }
.prow__hint { font-size: 11px; color: var(--ms-ink-4); margin-top: 2px; }
.prow.is-bad { background: #FDF3F1; }
.prow.is-bad .prow__k, .prow.is-bad .prow__ico { color: var(--ms-orange-dark); }
.psec__note { margin: 9px 2px 0; font-size: 11.5px; color: var(--ms-ink-3); line-height: 1.5; }

/* Cuestionario de baja: una fila por motivo, con su círculo. */
.radiorow {
  display: flex; align-items: center; gap: 9px; width: 100%; box-sizing: border-box;
  text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: var(--ms-surface); border: 1.5px solid var(--ms-line);
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ms-ink-2);
}
.radiorow__dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  box-shadow: inset 0 0 0 2px currentColor;
}
.radiorow.is-on {
  border-color: var(--ms-orange); background: var(--ms-orange-soft); color: var(--ms-orange-dark);
}
.radiorow.is-on .radiorow__dot { box-shadow: inset 0 0 0 2px currentColor, inset 0 0 0 5px currentColor; }
.modal__warn {
  width: 52px; height: 52px; border-radius: 50%; background: #FDEBE9;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--ms-orange-dark);
}
.modal__warn svg { width: 24px; height: 24px; }
.btn--danger {
  background: var(--ms-orange-dark); color: #fff; border: none;
}
.btn--danger[disabled] { background: var(--ms-busy); color: var(--ms-busy-ink); }

.btn--danger-soft {
  background: var(--ms-surface); border: 1.5px solid #F3DAD3;
  color: var(--ms-orange-dark);
}
/* 3.05 · Los botones a ancho completo tienen que estirarse: `.btn` es
   inline-flex y dentro de un bloque se queda del tamaño del texto. */
.btn--block { width: 100%; }
.plink {
  width: 100%; margin-top: 10px; padding: 8px; background: none;
  font-size: 12.5px; font-weight: 600; color: var(--ms-ink-4);
}
.pver { text-align: center; font-size: 11.5px; color: #B5ADA2; margin: 14px 0 20px; }

/* Pasadas desplegables (3.05). */
.pastcard {
  border: 1px solid var(--ms-card-line); border-radius: 16px;
  background: var(--ms-surface); overflow: hidden;
}
.pastcard.is-open { box-shadow: var(--sh-card); }
.pastrow__chev { flex-shrink: 0; display: flex; color: var(--ms-ink-4); transition: transform .18s; }
.pastrow__chev svg { width: 15px; height: 15px; }
.pastcard.is-open .pastrow__chev { transform: rotate(180deg); }
.pastdet { padding: 0 15px 14px; }
.pastdet__k { font-size: 12px; color: var(--ms-ink-3); padding: 0 0 6px; }
.pastdet__tot {
  display: flex; justify-content: space-between;
  padding: 11px 0 12px; font-size: 14.5px; font-weight: 800;
}
.pastdet .rbtn { width: 100%; flex: none; }

.profile-head {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 20px 22px;
}
.avatar {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--ms-orange-soft); color: var(--ms-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; flex-shrink: 0;
}

.rowlist {
  margin: 0 20px 18px; border: 1px solid var(--ms-card-line);
  border-radius: var(--r-xl); overflow: hidden; background: var(--ms-surface);
}
.rowitem {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 16px; text-align: left;
  border-bottom: 1px solid var(--ms-line-2); font-size: 14.5px;
  transition: background .14s;
}
.rowitem:last-child { border-bottom: none; }
.rowitem:hover { background: var(--ms-surface-2); }
.rowitem span:first-of-type { flex: 1; min-width: 0; }
.rowitem__chev { color: var(--ms-ink-4); flex-shrink: 0; }
.rowitem--danger { color: var(--ms-orange-dark); }

/* ------------------------------------------------------ tabbar */
/* 3.07 · con la barra de reserva puesta (ficha de negocio), la isla del
   menú sube por encima: antes quedaba debajo y no se podía usar.
   4.04 · la isla ya va fija: subirla es mover su `bottom`. */
/* 4.07 · la barra de reserva ya no mide siempre lo mismo (con pedido lleva la
   tira encima): su alto real se publica en --sheet-h al pintarla, y de ahí
   salen tanto la altura de la isla como el sitio que reserva la pantalla. */
body.has-sheet .tabbar { bottom: calc(var(--safe-bottom) + var(--sheet-h, 86px) - 2px); }
body.has-sheet .screen--sheet {
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--sheet-h, 86px) + 26px);
}

/* Tira del pedido dentro de la barra de reserva (4.07): una línea de crema
   tocable. Sustituye al chip negro con «+»: lo que se pide se elige arriba. */
/* --------------------------------------------------------- favoritos
   3.07 · como la maqueta: título grande con el recuento y tarjetas
   horizontales con la foto a la izquierda y el corazón en la esquina. */
.fhead { padding: 26px 20px 4px; }
.fhead h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.fhead p { margin: 3px 0 0; font-size: 14px; color: var(--ms-ink-3); }
.flist { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.favrow { position: relative; }
.favcard {
  display: flex; width: 100%; text-align: left; cursor: pointer;
  border-radius: 20px; overflow: hidden; background: var(--ms-surface);
  box-shadow: 0 1px 2px rgba(28,25,23,.05), 0 8px 22px rgba(28,25,23,.07);
}
.favcard__ph {
  position: relative; width: 112px; flex-shrink: 0; background: #F2EDE5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #CFC8BE;
}
.favcard__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.favcard__ph svg { width: 22px; height: 22px; }
.favcard__ph span {
  font-size: 8.5px; font-weight: 600; color: #B5ADA2;
  text-align: center; padding: 0 8px; line-height: 1.3;
}
.favcard__b { flex: 1; min-width: 0; padding: 14px 14px 13px; }
.favcard__n {
  font-size: 15.5px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.25; padding-right: 34px;
}
.favcard__u {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--ms-ink-3); margin-top: 3px;
}
.favcard__u svg { width: 11px; height: 11px; color: var(--ms-orange); flex-shrink: 0; }
.favcard__f { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.favcard__f b { font-size: 13px; font-weight: 800; }
.favcard__f > span { font-size: 12px; color: var(--ms-ink-4); }
.favcard__f .cardicons { display: flex; align-items: center; gap: 8px; color: var(--ms-orange); }
.favcard__f .cardicons svg { width: 16px; height: 16px; display: block; }
.favlike {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ms-orange-soft); color: var(--ms-orange);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.favlike svg { width: 15px; height: 15px; }
.favempty {
  text-align: center; padding: 36px 24px;
  background: var(--ms-surface-2); border-radius: 20px;
}
.favempty__ico {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--ms-orange-soft); color: var(--ms-orange);
  display: flex; align-items: center; justify-content: center;
}
.favempty__ico svg { width: 28px; height: 28px; }
.favempty__t { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.favempty__s { font-size: 13.5px; color: var(--ms-ink-3); margin: 5px 0 16px; line-height: 1.5; }

/* 4.04 · Isla del menú: barra flotante blanca con velo, pastilla naranja
   en la pestaña activa. Va fija, así que las pantallas ya reservan su
   sitio con --tabbar-h. */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(var(--safe-bottom) + 12px);
  width: min(calc(100% - 28px), 452px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px; padding: 7px;
  box-shadow: var(--sh-3);
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ms-ink-3);
  transition: color .18s, background .22s var(--ease), transform .16s var(--ease);
}
.tabbar button:active { transform: scale(.94); }
.tabbar button.on {
  color: #fff; background: var(--ms-orange);
  box-shadow: 0 6px 16px rgba(236,82,20,.34);
}
.tabbar button svg { width: 21px; height: 21px; }

/* -------------------------------------------------- estados vacíos */
.empty {
  padding: 56px 32px; text-align: center;
  font-size: 14px; color: var(--ms-ink-3); line-height: 1.6;
}
.empty b { display: block; font-size: 16px; color: var(--ms-ink); margin-bottom: 6px; }

.skeleton {
  background: linear-gradient(90deg, var(--ms-line-2) 25%,
              var(--ms-line-3) 50%, var(--ms-line-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite; border-radius: var(--r-md);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.feat { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; }
.summary-head { display: flex; align-items: center; gap: 12px; padding: 0 20px 14px; }
.summary-img { width: 54px; height: 54px; border-radius: var(--r-md); object-fit: cover; }

/* C-005 · la tarjeta ya trae los 20 px de margen, así que sus hijos no
   los repiten: antes selectores y leyenda quedaban a 40 px del borde. */
.bcard { margin: 16px 20px 14px; }
.bcard__h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.bcard__h h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.bcard__sub { font-size: 13.5px; color: var(--ms-ink-3); margin-top: 2px; }
.bcard .pickers3 { padding: 16px 0 6px; }
.bcard .legend5 { padding: 10px 0 4px; }
/* --------------------------------------- escritorio: el móvil, centrado */
@media (min-width: 768px) {
  body { background: #ECE6DD; }
  #app {
    max-width: 430px; margin: 24px auto; min-height: calc(100dvh - 48px);
    border-radius: 34px; overflow: hidden;
    box-shadow: 0 24px 70px rgba(28,25,23,.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Aviso de notificaciones (4.18): cabecera crema con el icono de marca, avisos
   como tarjetas y cierre en naranja. */
.notihead {
  display: flex; align-items: center; gap: 12px;
  margin: -4px -4px 14px; padding: 14px 16px;
  background: var(--ms-cream-soft); border: 1px solid var(--ms-cream-line);
  border-radius: var(--r-lg);
}
.notihead__ico {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--ms-orange); color: #fff;
}
.notihead__ico svg { width: 19px; height: 19px; }
.notihead__m h3 { font-size: 17px; letter-spacing: -.02em; color: var(--ms-brown); }
.notihead__s { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: #A08A63; }

.notilist { display: flex; flex-direction: column; gap: 8px; }
.notirow {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 12px 13px; border: 1px solid var(--ms-card-line); border-radius: var(--r-lg);
  background: var(--ms-surface); font-family: inherit; cursor: pointer;
}
.notirow:active { background: var(--ms-cream-soft); }
.notirow__ico {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 10px;
}
.notirow__ico svg { width: 16px; height: 16px; }
.notirow__ico.is-cart { background: var(--ms-orange-soft); color: var(--ms-orange); }
.notirow__ico.is-ok   { background: #E8F5EC; color: #1E7A45; }
.notirow__m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notirow__t { font-size: 13.5px; font-weight: 700; color: var(--ms-ink); }
.notirow__s { font-size: 12px; font-weight: 600; color: var(--ms-ink-3); }
.notirow__chev { display: flex; color: var(--ms-ink-4); flex-shrink: 0; }
.notirow__chev svg { width: 15px; height: 15px; }

.notiempty {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 22px 16px; text-align: center;
  background: var(--ms-cream-soft); border-radius: var(--r-lg);
}
.notiempty svg { width: 30px; height: 30px; color: var(--ms-orange); margin-bottom: 4px; }
.notiempty b { font-size: 14px; color: var(--ms-brown); }
.notiempty span { font-size: 12.5px; font-weight: 600; color: #A08A63; }

/* Detalle desplegable de una línea de reserva (4.15): unidad a unidad con su
   línea, plaza a plaza o entrada a entrada. */
.rlinew { border-bottom: 1px solid var(--ms-line-3); }
.rlinew .rline { border-bottom: none; }
.rdet { padding: 0 0 10px; }
.rdet summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; background: var(--ms-cream-soft);
  font-size: 11.5px; font-weight: 700; color: var(--ms-brown);
  list-style: none;
}
.rdet summary::-webkit-details-marker { display: none; }
.rdet summary::after { content: '▾'; font-size: 10px; opacity: .6; }
.rdet[open] summary::after { content: '▴'; }
/* 8.24 · El desglose de una reserva, en columnas de verdad.

   La regla decía `.rdethead, .rdetrow, .rdethead` —el mismo selector dos veces,
   y el segundo ocupando el sitio donde tenía que estar el de la fila— y en
   ninguna de las dos se declaraba `display: grid`. Sin rejilla, los tres tramos
   de la cabecera se pegaban entre ellos («PLAZASESIÓNPRECIO») y cada fila salía
   como una frase corrida: «PLAZA 13 YOGA SUNRISE · 08:00–09:00 18 €». Eran
   columnas escritas como columnas que se pintaban como texto seguido.

   Ahora las dos comparten la misma rejilla —qué se cogió, cuándo, cuánto— con
   el precio a la derecha alineado por dígitos, así que se lee de un vistazo y
   vale igual para hamacas, tramos, plazas de sesión y entradas. */
.rdethead, .rdetrow {
  display: grid; grid-template-columns: minmax(64px, auto) 1fr auto;
  gap: 6px 14px; align-items: baseline; padding: 9px 0;
}
.rdethead {
  margin-top: 10px; border-bottom: 1px solid var(--ms-line-2);
  padding-bottom: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ms-ink-3);
}
.rdethead span:last-child, .rdetrow .rdetp { text-align: right; }
.rdetrow { border-bottom: 1px dashed var(--ms-line-2); font-size: 13px; }
.rdetrow:last-child { border-bottom: none; }
.rdetc {
  font-family: var(--ms-mono); font-weight: 700; color: var(--ms-ink);
  white-space: nowrap;
}
/* El nombre de la sesión y su hora: es lo que más varía, así que se le da el
   hueco elástico y se le deja partir por palabras en vez de desbordar. */
.rdetm { color: var(--ms-ink-2); font-weight: 600; min-width: 0; line-height: 1.45; }
.rdetp { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* En pantalla estrecha el precio se sube junto a la plaza y la sesión pasa a su
   propia línea: con tres columnas en 340 px, «Yoga Sunrise · 08:00–09:00» se
   partía en cuatro renglones. */
@media (max-width: 380px) {
  .rdethead { grid-template-columns: 1fr auto; }
  .rdethead span:nth-child(2) { display: none; }
  .rdetrow {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'c p' 'm m';
    gap: 3px 12px;
  }
  .rdetc { grid-area: c; }
  .rdetp { grid-area: p; }
  .rdetm { grid-area: m; font-size: 12.5px; }
}
/* --------------------------------------------- pestaña de información (4.13)
   La cara de la casa: cabecera de marca, datos conectados y dos acciones
   centradas del mismo tamaño. Antes eran cuatro filas de datos y dos botones
   fantasma al ancho completo. */
.infohead {
  margin: 4px 0 14px; padding: 16px; text-align: center;
  background: var(--ms-cream-soft); border: 1px solid var(--ms-cream-line);
  border-radius: var(--r-xl);
}
.infohead__n { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--ms-brown); }
.infohead__l { font-size: 12.5px; font-weight: 600; color: #A08A63; margin-top: 2px; }
.infohead__b { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.infopill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; background: var(--ms-surface);
  border: 1px solid var(--ms-cream-line);
  font-size: 12px; font-weight: 700; color: var(--ms-brown);
}
.infopill svg { width: 13px; height: 13px; color: var(--ms-orange); }
.infopill small { font-weight: 600; color: var(--ms-ink-3); }

.infodesc { font-size: 14px; color: var(--ms-ink-2); line-height: 1.6; margin: 0 0 14px; text-wrap: pretty; }
/* 7.23 · «Cómo es este sitio»: el tipo de negocio y las palabras de la
   ficha, juntos y con rótulo, en vez de sueltos sobre el fondo. */
.ginfo {
  border: 1px solid var(--ms-line-2, #F0E9DA); border-radius: 16px;
  padding: 14px 16px 15px; margin: 0 0 18px;
}
.ginfo__h {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ms-ink-3); margin-bottom: 11px;
}
.ginfo__cat {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.ginfo__cat svg { width: 16px; height: 16px; color: var(--ms-orange); align-self: center; }
.ginfo__cat b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.ginfo__cat small { font-size: 11.5px; font-weight: 600; color: var(--ms-ink-3); }
.infofeats { display: flex; flex-wrap: wrap; gap: 8px; }
.infofeat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; background: var(--ms-cream-soft);
  font-size: 12.5px; font-weight: 700; color: var(--ms-ink-2);
}
.infofeat svg { width: 14px; height: 14px; color: var(--ms-orange); }

/* 7.28 · Cancelación: una fila por plazo, no un párrafo. Es el mismo dato que
   apaga el botón «Cancelar» en Mis reservas. */
.cancrows { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.cancrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--ms-line-2);
}
.cancrow:last-child { border-bottom: none; }
.cancrow span { font-size: 13px; color: var(--ms-ink-3); font-weight: 600; }
.cancrow b { font-size: 13.5px; font-weight: 800; }
.cancrow--all span { color: var(--ms-ink-2); font-weight: 700; }
.cancnote { font-size: 12px; color: var(--ms-ink-3); line-height: 1.5; margin: 8px 0 0; text-wrap: pretty; }

/* 7.28 · Reserva confirmada: un servicio por fila, con lo justo. */
.cfline { padding: 13px 16px; border-bottom: 1px solid var(--ms-line-2); }
.cfline__h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cfline__t { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.cfline__p { font-size: 14.5px; font-weight: 800; flex-shrink: 0; }
.cfline__s { font-size: 12.5px; color: var(--ms-ink-3); margin-top: 3px; line-height: 1.45; }
/* 7.32 · Varias sesiones del mismo servicio: sus plazas, una por fila. */
.cfrows { margin-top: 9px; }
.cfrows__h {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; padding-bottom: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ms-ink-3); border-bottom: 1px solid var(--ms-line-2);
}
.cfrow {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--ms-line-2); font-size: 12.5px;
}
.cfrow:last-child { border-bottom: none; }
.cfrow__c {
  font-size: 11.5px; font-weight: 800; text-align: center; padding: 4px 0;
  border-radius: 7px; background: var(--ms-cream-soft); color: var(--ms-ink-2);
}
.cfrow__m { color: var(--ms-ink-3); font-weight: 600; }
.cfrow__p { font-weight: 800; }

.infoacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.infoacts .btn { width: 100%; }

.infoblock {
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--ms-surface); border: 1px solid var(--ms-card-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-card);
}
.infoblock__h {
  display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ms-ink-3);
}
.infoblock__h svg { width: 14px; height: 14px; color: var(--ms-orange); }
.infoblock__v { font-size: 13.5px; font-weight: 600; color: var(--ms-ink); line-height: 1.5; }
.infoblock__v--m { font-family: var(--ms-mono); font-size: 12.5px; color: var(--ms-ink-2); margin-top: 4px; }

.infohours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 14px; }
.infohour {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 5px 0; font-size: 12.5px; color: var(--ms-ink-2);
  border-bottom: 1px dashed var(--ms-line-2);
}
.infohour b { font-weight: 700; color: var(--ms-ink); font-variant-numeric: tabular-nums; }
.infohour.is-today { color: var(--ms-orange); }
.infohour.is-today b { color: var(--ms-orange); }

/* --------------------------------------------------- home (4.04)
   El arena de la home deja de ser un fondo plano: es una banda cálida que
   arranca en la marca y se apaga al llegar a los servicios, con las
   esquinas redondeadas del resto del sistema. */
.homehead {
  background: linear-gradient(180deg, var(--ms-cream) 0%, #FDF6E2 46%, #FFFBF2 74%, var(--ms-surface) 100%);
  border-radius: 0 0 var(--r-3xl) var(--r-3xl);
  padding-bottom: 20px;
}
.homehead + div { margin-top: 2px; }
#app > .topbar--plain { background: var(--ms-cream); }


/* --------------------------------------------------- perfil (4.29)
   Como en la web: los campos vacíos se ven, y las dos acciones van juntas. */
.prow.is-empty .prow__v { border-color: var(--ms-orange-border); background: var(--ms-orange-soft); }
.pacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pacts .btn { width: 100%; }
.phead__stats > *:nth-child(4) { display: none; }
@media (min-width: 380px) { .phead__stats > *:nth-child(4) { display: block; } }


/* =====================================================================
   5.23 · Un día en que el servicio no abre: no hay plano ni franjas, se
   dice por qué y se enseña el horario de la actividad.
   ===================================================================== */
.closedbox {
  background: var(--ms-surface, #fff); border: 1px solid var(--ms-line, #EBE7E1);
  border-radius: 18px; padding: 26px 22px; text-align: center;
}
.closedbox > svg { width: 26px; height: 26px; color: var(--ms-orange, #EC5214); }
.closedbox > b {
  display: block; font-size: 16px; font-weight: 800; margin-top: 10px;
  letter-spacing: -.02em;
}
.closedbox > span {
  display: block; font-size: 13.5px; color: var(--ms-ink-3, #8A837C);
  line-height: 1.55; margin-top: 5px; text-wrap: pretty;
}
.closedbox__week {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ms-line-2, #F4F1EC);
  display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.closedbox__week > div { display: flex; align-items: baseline; gap: 12px; font-size: 13.5px; }
.closedbox__week span { color: var(--ms-ink-3, #8A837C); }
.closedbox__week b { margin-left: auto; font-weight: 700; }
.closedbox__week .is-closed b { color: var(--ms-ink-4, #B5ADA2); font-weight: 600; }

/* 6.18 · «En curso»: el negocio te ha hecho el check-in y estás dentro. */
.rcard__badge.is-live {
  background: var(--ms-orange, #EC5214); color: #FFF6E6; border-color: transparent;
}


/* 6.29 · Varias fiestas en la ficha: la abierta con su tarjeta y el resto en
   una fila por fecha. El cliente entra en Eventos y las ve todas, por
   cercanía, y reserva la que quiera sin cambiar de día. */
.evhead {
  font-size: 12.5px; font-weight: 700; color: var(--ms-ink-3);
  padding: 2px 2px 10px;
}
.evrow {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border: 1px solid var(--ms-line); border-radius: 16px;
  padding: 13px 15px; margin-bottom: 10px; text-align: left; font-family: inherit;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.evrow:hover { border-color: var(--ms-orange); box-shadow: 0 6px 18px rgba(236,82,20,.10); }
.evrow__d {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 46px; border-radius: 12px; background: var(--ms-cream); padding: 7px 0;
}
.evrow__d b { font-size: 18px; line-height: 1; color: var(--ms-ink); }
.evrow__d span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ms-ink-3); font-weight: 700; margin-top: 2px; }
.evrow__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.evrow__t b { font-size: 15px; color: var(--ms-ink); }
.evrow__t span { font-size: 12.5px; color: var(--ms-ink-3); }
.evrow__p { font-size: 13px; font-weight: 700; color: var(--ms-orange); white-space: nowrap; }


/* ------------------------------------------- 6.34 · ficha de lo reservado
   El detalle de una reserva dice QUÉ se ha cogido antes de enumerarlo:
   dos columnas de campo y valor, distintas en cada familia. */
.rspecs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 10px 0 12px; background: var(--ms-line-2);
  border: 1px solid var(--ms-line-2); border-radius: var(--r-sm); overflow: hidden;
}
.rspec { background: var(--ms-surface); padding: 9px 11px; }
.rspec--wide { grid-column: 1 / -1; }
.rspec__k {
  font-size: 9.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ms-orange-dark);
}
.rspec__v { font-size: 12.5px; font-weight: 700; color: var(--ms-ink); margin-top: 2px; }
.rline__n {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px;
  background: var(--ms-orange); color: #fff;
  font-family: var(--ms-mono); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-right: 10px;
}


.login__sheet .btn {
  border-radius: 15px; padding: 15px; font-size: 15px; font-weight: 800; letter-spacing: -.01em;
}
.login__guest {
  border-radius: 999px; background: var(--ms-line-2);
  transition: background .14s, color .14s;
}
.login__guest:hover { background: var(--ms-cream); }
@media (max-height: 720px) {
  .login__title { font-size: 34px; }
}

/* =====================================================================
   7.02 · Nada de barra gris debajo de lo que se desliza. En el móvil la
   barra de desplazamiento no hace falta —se arrastra con el dedo— y en la
   app aparecía bajo cada carrusel: servicios, pestañas, plano y agenda.
   ===================================================================== */
html, body, .screen, .ptabs, [style*="overflow-x"], [style*="overflow-y"],
[style*="overflow:auto"], [style*="overflow: auto"] {
  scrollbar-width: none;                 /* Firefox */
  -ms-overflow-style: none;              /* Edge antiguo */
}
html::-webkit-scrollbar, body::-webkit-scrollbar, .screen::-webkit-scrollbar,
.ptabs::-webkit-scrollbar, [style*="overflow-x"]::-webkit-scrollbar,
[style*="overflow-y"]::-webkit-scrollbar, [style*="overflow:auto"]::-webkit-scrollbar,
[style*="overflow: auto"]::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* 7.03 · En la hoja «Todos los servicios» los cuadrados son grandes: el dibujo
   los llena en vez de quedarse pequeño en el centro. */
#svcsheet .svcbig svg, #svcsheet .svcbig > * { width: 100%; height: 100%; }


/* =====================================================================
   8.63 · REFRESCO VISUAL — la app, un punto más viva.
   Misma marca, mismos ganchos de clase y ninguna función tocada: esta capa
   sólo redefine la piel. Gradientes de marca en lo naranja, sombras más
   hondas y blandas, cristal de verdad en las barras, y micro-movimiento
   al entrar y al tocar. Si hay que volver atrás, se borra la capa entera.
   ===================================================================== */
:root {
  --grad-brand: linear-gradient(140deg, #FF7A36 0%, var(--ms-orange) 46%, #D8480F 100%);
  --sh-orange: 0 10px 24px rgba(236,82,20,.34), 0 2px 6px rgba(236,82,20,.22);
  --sh-orange-sm: 0 7px 18px rgba(236,82,20,.30);
  --sh-1: 0 1px 2px rgba(84,69,56,.05), 0 3px 10px rgba(84,69,56,.05);
  --sh-2: 0 2px 6px rgba(84,69,56,.06), 0 14px 34px rgba(84,69,56,.10);
  --sh-3: 0 10px 24px rgba(84,69,56,.12), 0 30px 64px rgba(84,69,56,.16);
}

/* --- cabecera de la home: el arena se enciende detrás de la marca ---- */
.homehead {
  background:
    radial-gradient(88% 70% at 88% -12%, rgba(236,82,20,.14) 0%, rgba(236,82,20,0) 58%),
    radial-gradient(70% 52% at -8% 4%, rgba(220,240,239,.75) 0%, rgba(220,240,239,0) 62%),
    linear-gradient(180deg, var(--ms-cream) 0%, #FDF6E2 44%, #FFFBF2 74%, var(--ms-surface) 100%);
  border-radius: 0 0 30px 30px;
}

/* --- iconos de servicio: losetas con luz y bote al pulsar ------------ */
.svc__ico {
  width: 60px; height: 60px; border-radius: 20px;
  background: linear-gradient(160deg, #FFF6F0 0%, var(--ms-orange-soft) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 8px rgba(236,82,20,.08),
              inset 0 0 0 1px rgba(236,82,20,.08);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.svc { transition: transform .16s var(--ease); }
.svc:hover .svc__ico { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(236,82,20,.16), inset 0 0 0 1px rgba(236,82,20,.10); }
.svc:active { transform: scale(.90); }

/* --- tarjeta de negocio: sin borde, más honda, foto que respira ------ */
.vcard {
  border: none; border-radius: 24px;
  box-shadow: 0 1px 2px rgba(84,69,56,.06), 0 10px 30px rgba(84,69,56,.09);
}
.vcard:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(84,69,56,.07), 0 20px 44px rgba(84,69,56,.13); }
.vcard:active { transform: scale(.982); }
.vcard__top img { transition: transform .5s var(--ease); }
.vcard:hover .vcard__top img { transform: scale(1.04); }
.vcard__loc {
  background: rgba(28,25,23,.5); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.vcard__meta { padding: 15px 17px 17px; }

/* Las listas entran en cascada, tarjeta a tarjeta. */
.vcard, .favrow, .rcard, .evrow { animation: riseIn .42s var(--ease) both; }
.vcard:nth-child(2), .favrow:nth-child(2), .rcard:nth-child(2), .evrow:nth-child(2) { animation-delay: .05s; }
.vcard:nth-child(3), .favrow:nth-child(3), .rcard:nth-child(3), .evrow:nth-child(3) { animation-delay: .10s; }
.vcard:nth-child(4), .favrow:nth-child(4), .rcard:nth-child(4), .evrow:nth-child(4) { animation-delay: .15s; }
.vcard:nth-child(n+5), .favrow:nth-child(n+5), .rcard:nth-child(n+5), .evrow:nth-child(n+5) { animation-delay: .19s; }

/* --- secciones ------------------------------------------------------- */
.section__h h2 { font-size: 19px; letter-spacing: -.03em; }
.section__link {
  padding: 6px 12px; border-radius: 999px; background: var(--ms-orange-soft);
  transition: background .15s;
}
.section__link:hover { background: #FFE4D6; }

/* --- botones: gradiente de marca y brillo ----------------------------- */
.btn--primary { background: var(--grad-brand); }
.btn--primary:hover { background: var(--grad-brand); filter: saturate(1.08) brightness(1.03); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(236,82,20,.4), 0 3px 8px rgba(236,82,20,.24); }
.btn--primary:active { transform: scale(.965); }
.btn { border-radius: 15px; }
.btn--sm { border-radius: 10px; }

/* --- pestañas de servicio -------------------------------------------- */
.ptabs { background: rgba(255,253,248,.88); backdrop-filter: blur(18px) saturate(1.5); }
.ptabs button { box-shadow: inset 0 0 0 1.5px var(--ms-line); background: rgba(255,255,255,.8); }
.ptabs button.is-active, .ptabs button.on { background: var(--grad-brand); box-shadow: var(--sh-orange-sm); }

/* --- plano de unidades ------------------------------------------------ */
.ucell { border-radius: 15px; }
.ucell.is-selected {
  background: var(--grad-brand);
  box-shadow: 0 8px 20px rgba(236,82,20,.38), inset 0 1px 0 rgba(255,255,255,.25);
}
.listitem { border-radius: 16px; }
.listitem.on, .listitem.is-selected { box-shadow: 0 6px 16px rgba(236,82,20,.12); }

/* --- isla del menú: cristal de verdad --------------------------------- */
.tabbar {
  background: rgba(255,253,247,.72);
  backdrop-filter: blur(26px) saturate(1.9);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 10px 26px rgba(84,69,56,.14), 0 32px 70px rgba(84,69,56,.18),
              inset 0 1px 0 rgba(255,255,255,.8);
  padding: 6px;
}
.tabbar button { gap: 2px; padding: 8px 0 7px; }
.tabbar button svg { transition: transform .22s var(--ease); }
.tabbar button.on { background: var(--grad-brand); box-shadow: 0 8px 18px rgba(236,82,20,.36); }
.tabbar button.on svg { transform: translateY(-1px) scale(1.06); }

/* --- barra de reserva y píldora del carrito ---------------------------- */
.sheet {
  background: rgba(255,254,250,.92);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 -12px 36px rgba(84,69,56,.12);
}
.cartpill { box-shadow: 0 12px 30px rgba(28,25,23,.34), inset 0 1px 0 rgba(255,255,255,.12); }
.cartpill b { background: var(--grad-brand); }

/* --- cabeceras naranjas (perfil, reserva) ------------------------------ */
.rcard__top, .phead { background: var(--grad-brand); }
.rcard { border-radius: 22px; box-shadow: 0 1px 2px rgba(84,69,56,.06), 0 12px 30px rgba(84,69,56,.10); }
.po__head { background: var(--grad-brand); }

/* --- modales ----------------------------------------------------------- */
.modal-bg { background: rgba(40,30,22,.42); backdrop-filter: blur(7px) saturate(1.2); }
.modal { border-radius: 26px; animation: pop .32s var(--ease); }

/* --- entrada: la marca con más teatro ---------------------------------- */
.login {
  background:
    radial-gradient(110% 70% at 84% -6%, #FFB37A 0%, rgba(255,166,104,0) 55%),
    radial-gradient(80% 55% at 4% 106%, rgba(84,69,56,.55) 0%, rgba(84,69,56,0) 60%),
    linear-gradient(166deg, #F76A22 0%, var(--ms-orange) 44%, #B93A0A 100%);
}
/* El sol: un disco de luz que respira, arriba a la derecha. */
.login__hero::before {
  content: ''; position: absolute; top: 8%; right: -60px;
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,241,213,.5) 0%, rgba(255,241,213,.12) 46%, transparent 70%);
  animation: sunpulse 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sunpulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: 1; } }
.login__title { font-size: 43px; letter-spacing: -.05em; }
.login__title em { font-style: normal; color: var(--ms-cream); }
.login__sub { font-size: 16px; }
.login__brand .brand__mark { border-radius: 16px; }
.login__sheet {
  border-radius: 30px 30px 0 0;
  padding-top: 30px;
  box-shadow: 0 -18px 50px rgba(80,26,0,.28);
}
/* Tirador: dice que la hoja es una hoja. */
.login__sheet::before {
  content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4.5px; border-radius: 999px; background: var(--ms-line);
}
.login__btns .btn { animation: riseIn .45s var(--ease) both; }
.login__btns .btn:nth-child(1) { animation-delay: .06s; }
.login__btns .btn:nth-child(2) { animation-delay: .12s; }
.login__btns .btn:nth-child(3) { animation-delay: .18s; }
.login__sheet .btn { border-radius: 17px; }
.btn--apple { box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.btn--apple:hover { transform: translateY(-1px); }
.btn--google:hover, .btn--mail:hover { background: var(--ms-cream-soft); }
.login__guest { background: var(--ms-cream-soft); }

/* --- detalles ----------------------------------------------------------- */
.iconbtn { background: rgba(84,69,56,.07); }
.iconbtn:hover { background: rgba(84,69,56,.12); }
.roundbtn { background: rgba(255,255,255,.72); backdrop-filter: blur(12px) saturate(1.5); box-shadow: 0 3px 12px rgba(28,25,23,.14), inset 0 0 0 1px rgba(255,255,255,.5); }
.chip { border-color: var(--ms-cream-line); background: var(--ms-cream-soft); }
.picker { border-radius: 14px; }
.picker:hover { border-color: var(--ms-orange-border); }
.field:focus { box-shadow: 0 0 0 4px rgba(236,82,20,.10); }
.confirm__check { background: linear-gradient(150deg, #EDF9F0, var(--ms-success)); box-shadow: 0 10px 26px rgba(30,122,69,.16); }
.bkstat, .pcard, .pastcard { border-radius: 18px; }
.bkstat--dark { background: linear-gradient(150deg, #64533F, var(--ms-brown)); box-shadow: 0 10px 26px rgba(84,69,56,.24); }
.favcard, .evcard { border-radius: 22px; box-shadow: 0 1px 2px rgba(84,69,56,.06), 0 10px 26px rgba(84,69,56,.09); }
.favcard { transition: transform .16s var(--ease), box-shadow .2s var(--ease); }
.favrow:hover .favcard { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(84,69,56,.07), 0 18px 40px rgba(84,69,56,.13); }
