/* ─────────────────────────────────────────────────────────────────────────────
   skygroom-web v5 · LA APP EN EL TELÉFONO
   Copiada de la v4 (v4/css/movil.css), que está cotejada con la app real en modo demo a 390×844
   (29/09/2026): suelo #f1f0ec, tarjetas blancas de radio 16, titulares Lora 600, interfaz Inter,
   «Avisar» y «Mandar» en el verde de WhatsApp, la barra de abajo con «Nueva cita» en el centro.
   Lo que cambia frente a la v4: los pasos de las escenas los mueve js/v5.js (con el kit de
   movimiento), la barra de «Mensajes» crece con transform y no con el ancho, y las piezas que se
   salen del teléfono (.pieza) usan las mismas clases de la app.

   Tamaño: --tel es un número (el ancho del aparato en px). La pantalla se dibuja a 390×924 «píxeles
   de app» y se escala con --k, que sale de --tel sin JS.
   ───────────────────────────────────────────────────────────────────────────── */
/* El tamaño por defecto, sin especificidad: así cualquier regla de la página (.portada-tel…) lo cambia
   aunque esta hoja se cargue después. Con .tel { --tel } a secas, la portada se quedaba en 300. */
:where(.tel) { --tel: 300; }
/* Desde el 02/10 el aparato es una foto: el móvil de gris espacial que generó ChatGPT (JOSEP; v5/aparatos/CREDITOS.md),
   con el hueco de la pantalla transparente. El marco va ENCIMA (::after) y nuestra pantalla, debajo, con su HTML. Su
   pantalla es algo más alargada que la de antes (390 × 924 y no 844): la app crece por el medio, porque todo en ella
   va anclado arriba (la barra de estado, el contenido) o abajo (las pestañas, las hojas). Medidas, de
   scripts/aparatos/marcos.py (la foto, 819 × 1812). Hasta el 02/10, un rectángulo con degradado. */
.tel {
  --k: calc(var(--tel) * .89744 / 390);
  position: relative; flex: none;
  width: calc(var(--tel) * 1px);
  height: calc(var(--tel) * 2.21245px);
  border-radius: calc(var(--tel) * .15px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .14), 0 34px 60px -18px rgba(12, 22, 17, .55);
}
.tel::after { content: ""; position: absolute; inset: 0; z-index: 60; background: url("../aparatos/movil.webp") 0 0 / 100% 100% no-repeat; pointer-events: none; }
.tel-pantalla {
  position: absolute; left: 5.128%; top: 1.932%; width: 89.744%; height: 96.137%;
  border-radius: calc(var(--tel) * .1251px);
  overflow: hidden; background: #f1f0ec;
  isolation: isolate;
}
.pant {
  position: absolute; left: 0; top: 0; width: 390px; height: 924px;
  transform-origin: 0 0; transform: scale(var(--k));
  font: 400 15px/1.45 var(--sans-app); color: #251f1e; background: #f1f0ec; letter-spacing: 0;
  overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none;
}
.pant *, .pant *::before, .pant *::after { box-sizing: border-box; }
.pant p, .pant h4, .pant h5 { margin: 0; }
.pant svg { width: 18px; height: 18px; flex: none; }
.pant [hidden] { display: none !important; }

/* La barra de estado del teléfono: la hora es la de la escena */
.m-estado { position: absolute; z-index: 50; left: 0; right: 0; top: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 36px; font: 600 16px/1 var(--sans-app); letter-spacing: -.01em; }
.m-estado-iconos { display: flex; align-items: center; gap: 6px; }
.m-cobertura { width: 18px; height: 11px; background:
  linear-gradient(currentColor, currentColor) 0 100% / 3px 4px no-repeat,
  linear-gradient(currentColor, currentColor) 5px 100% / 3px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 10px 100% / 3px 8.5px no-repeat,
  linear-gradient(currentColor, currentColor) 15px 100% / 3px 11px no-repeat; }
.m-wifi { width: 16px; height: 11px; border-radius: 16px 16px 0 0; background: radial-gradient(circle at 50% 100%, currentColor 0 2.2px, transparent 2.8px 4.6px, currentColor 5.2px 7px, transparent 7.6px 9.4px, currentColor 10px 11.8px, transparent 12.4px); }
.m-bateria { position: relative; width: 25px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .45); }
.m-bateria::before { content: ""; position: absolute; inset: 2px; right: 6px; border-radius: 2px; background: currentColor; }
.m-bateria::after { content: ""; position: absolute; right: -3px; top: 4px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(37, 31, 30, .45); }
.m-isla { position: absolute; z-index: 51; top: 11px; left: calc(50% - 62px); width: 124px; height: 35px; border-radius: 20px; background: #000; }
.m-home { position: absolute; z-index: 51; bottom: 8px; left: calc(50% - 68px); width: 136px; height: 5px; border-radius: 3px; background: #1a1a1a; }

.m-cuerpo { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; padding: 4px 12px 0; display: flex; flex-direction: column; gap: 12px; }

/* Cabeceras de pantalla */
.m-saludo { display: flex; align-items: baseline; gap: 10px; padding: 6px 4px 0; }
.m-saludo h4, .m-titulo h4 { font: 600 25px/1.2 "Lora", serif; letter-spacing: -.01em; }
.m-saludo > span { font-size: 15px; color: #6e625f; }
.m-campana { position: relative; margin-left: auto; align-self: center; color: #4a403e; }
.m-campana svg { width: 24px; height: 24px; }
.m-campana b { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #b0221f; color: #fff; font: 700 11px/18px var(--sans-app); text-align: center; }
.m-titulo { display: flex; align-items: center; gap: 10px; padding: 6px 4px 0; }
.m-titulo .m-extra { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 600 15px/1 var(--sans-app); color: #4a403e; }

/* Tarjetas y piezas comunes */
.m-carta { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .07), 0 1px 2px rgba(37, 31, 30, .04), 0 6px 18px rgba(37, 31, 30, .05); }
.m-carta h5 { font: 600 20px/1.25 "Lora", serif; display: flex; align-items: baseline; gap: 6px; }
.m-carta h5 small { font: 400 14px/1 var(--sans-app); color: #6e625f; }
.m-rotulo { display: flex; align-items: center; gap: 7px; font: 600 12px/1 var(--sans-app); letter-spacing: .08em; text-transform: uppercase; color: #4a5a52; }
.m-rotulo i { width: 7px; height: 7px; border-radius: 50%; background: #2f9a52; }
.m-ahora .m-rotulo { color: #1f7a4d; }
.m-quien { margin-top: 8px; font: 600 17px/1.3 "Lora", serif; }
.m-sub { margin-top: 2px; font-size: 14px; color: #6e625f; }
.m-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.m-btn { height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans-app); white-space: nowrap; }
.m-btn svg { width: 18px; height: 18px; }
.m-btn-borde { background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .18); color: #251f1e; }
.m-btn-wa { background: #25d366; color: #fff; }
.m-btn-verde { background: #3e5c50; color: #fff; }
.m-btn-apagado { background: #e7e5df; color: #a39a96; }

.m-proxima { background: #dcefe3; box-shadow: inset 0 0 0 1px rgba(62, 92, 80, .28); }
.m-proxima-fila { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.m-hora-grande { font: 600 44px/1.05 "Lora", serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.m-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(62, 92, 80, .14); font: 600 13px/1 var(--sans-app); color: #3e4a44; white-space: nowrap; }
.m-verficha { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 16px; border-radius: 999px; background: #fff; font: 600 14px/1 var(--sans-app); }
.m-verficha svg { width: 15px; height: 15px; }

.m-tarea { display: flex; align-items: center; gap: 12px; padding: 12px 0 2px; }
.m-tarea + .m-tarea { border-top: 1px solid rgba(37, 31, 30, .07); margin-top: 10px; }
.m-tarea-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.m-tarea-ic.azul { background: #e7edfb; color: #4d67c8; }
.m-tarea-ic.ocre { background: #f4eddb; color: #8b6d2a; }
.m-tarea > span:not(.m-avatares) { display: flex; flex-direction: column; min-width: 0; }
.m-tarea b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.m-tarea small { font-size: 13px; color: #6e625f; }
.m-avatares { margin-left: auto; display: flex; gap: 3px; }
.m-avatares i { width: 24px; height: 24px; border-radius: 50%; background: #e6ece8; display: grid; place-items: center; font: 600 11px/1 var(--sans-app); font-style: normal; color: #3e4a44; }
.m-chev { margin-left: 6px; color: #a39a96; }
.m-tarea .m-chev:only-of-type { margin-left: auto; }

.m-cita { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(37, 31, 30, .07); }
.m-carta h5 + .m-cita { margin-top: 8px; }
.m-cita > b { width: 50px; font: 600 16px/1 var(--sans-app); font-variant-numeric: tabular-nums; }
.m-cita.hecha > b, .m-cita.hecha em { color: #978c88; font-weight: 400; }
.m-dif { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #2f9a52; }
.m-dif.medio { background: #c78c1c; } .m-dif.dificil { background: #8f4fc7; }
.m-cita > span:not(.m-est) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.m-cita em { font-style: normal; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cita small { font-size: 13.5px; color: #6e625f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-est { flex: none; height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font: 600 12.5px/1 var(--sans-app); white-space: nowrap; }
.m-est.gris { background: #eeece7; color: #6e625f; }
.m-est.verde { background: #dcefe3; color: #25704a; }
.m-est.azul { background: #e7edfb; color: #3f58b8; }
.m-est.rojo { background: #fbe4e0; color: #b0221f; }
.m-est.ambar { background: #fbf0d9; color: #8b6109; }

/* La barra de abajo */
.m-tabs { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; height: 88px; padding: 8px 10px 24px; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .96); box-shadow: 0 -1px 0 rgba(37, 31, 30, .08); }
.m-tabs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; font: 500 12px/1 var(--sans-app); color: #4a403e; }
.m-tabs svg { width: 22px; height: 22px; }
.m-tabs .on { background: #e1f0e7; color: #243a31; }
.m-tab-nueva i { width: 40px; height: 40px; margin-top: -6px; border-radius: 50%; background: #3e5c50; color: #fff; display: grid; place-items: center; }
.m-tab-nueva svg { width: 20px; height: 20px; }

/* La hoja que sube desde abajo (Nueva cita, Cerrar la cita, Exportar) */
.m-velo { position: absolute; z-index: 30; inset: 0; background: rgba(20, 24, 22, .38); }
.m-hoja { position: absolute; z-index: 31; left: 0; right: 0; bottom: 0; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(20, 24, 22, .14); padding: 0 20px 30px; }
.m-hoja::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: #d9d5cf; margin: 9px auto 10px; }
.m-hoja-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid rgba(37, 31, 30, .08); margin: 0 -20px 16px; padding-left: 20px; padding-right: 20px; }
.m-hoja-cab h5 { font: 600 21px/1.25 "Lora", serif; }
.m-cerrar { width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .16); display: grid; place-items: center; }
.m-cerrar svg { width: 16px; height: 16px; }
.m-etiq { font: 600 12px/1 var(--sans-app); letter-spacing: .07em; text-transform: uppercase; color: #6e625f; margin: 14px 0 8px; }
.m-campo { height: 48px; border-radius: 12px; background: #f4f3ef; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .1); display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 16px; color: #251f1e; }
.m-campo svg { color: #978c88; }
.m-campo .m-placeholder { color: #978c88; }
.m-cursor { display: inline-block; width: 1.5px; height: 20px; margin-left: 1px; background: #3e5c50; vertical-align: middle; }
.m-segmentado { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #f1efea; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .08); }
.m-segmentado span { height: 38px; border-radius: 999px; display: grid; place-items: center; font: 600 14px/1 var(--sans-app); color: #6e625f; }
.m-segmentado .on { background: #3e5c50; color: #fff; }
.m-cliente { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #f4f3ef; }
.m-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--sans-app); background: #dcefe3; color: #25704a; }
.m-cliente span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m-cliente b { font-weight: 600; font-size: 15.5px; }
.m-cliente small { font-size: 13.5px; color: #6e625f; }
.m-cliente .m-cambiar { font: 600 14px/1 var(--sans-app); color: #3e5c50; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chips span { height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .16); font: 600 14.5px/1 var(--sans-app); }
.m-chips .on { background: #3e5c50; color: #fff; box-shadow: none; }
.m-servicio { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: #eaf5ee; box-shadow: inset 0 0 0 1.5px #3e5c50; }
.m-servicio b { display: block; font-weight: 600; font-size: 16px; }
.m-servicio small { font-size: 13.5px; color: #4a5a52; }
.m-servicio svg { color: #3e5c50; }
.m-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-num { display: flex; flex-direction: column; gap: 6px; }
.m-num > span:first-child { font-size: 13.5px; color: #4a403e; font-weight: 500; }
.m-num .m-campo { height: 50px; box-shadow: inset 0 0 0 1.5px #3e5c50; background: #fff; font: 600 19px/1 var(--sans-app); justify-content: space-between; }
.m-num .m-campo i { font: 500 14px/1 var(--sans-app); font-style: normal; color: #978c88; }
.m-num small { font-size: 12.5px; line-height: 1.35; color: #6e625f; }
.m-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.m-dias span { height: 58px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 11px/1 var(--sans-app); letter-spacing: .04em; text-transform: uppercase; color: #6e625f; }
.m-dias span b { font: 600 18px/1 var(--sans-app); color: #251f1e; letter-spacing: 0; }
.m-dias .on { background: #3e5c50; box-shadow: none; color: rgba(255, 255, 255, .8); }
.m-dias .on b { color: #fff; }
.m-dias .off { opacity: .4; }
.m-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-horas span { height: 42px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .16); display: grid; place-items: center; font: 600 15px/1 var(--sans-app); font-variant-numeric: tabular-nums; }
.m-horas .on { background: #3e5c50; color: #fff; box-shadow: none; }
.m-boton-grande { height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 16.5px/1 var(--sans-app); }
.m-pasos { display: flex; align-items: center; gap: 8px; font: 500 13.5px/1 var(--sans-app); color: #6e625f; }
.m-pasos i { width: 7px; height: 7px; border-radius: 50%; background: #d9d5cf; }
.m-pasos i.on { background: #3e5c50; }
.m-caja { padding: 12px 14px; border-radius: 12px; background: #f4f3ef; }
.m-caja b { font-weight: 600; }
.m-caja small { display: block; margin-top: 3px; font-size: 13.5px; color: #6e625f; }
.m-pregunta { font: 600 26px/1.2 "Lora", serif; letter-spacing: -.01em; margin: 18px 0 12px; }
.m-importe { height: 62px; border-radius: 14px; background: #f4f3ef; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .1); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font: 600 28px/1 var(--sans-app); font-variant-numeric: tabular-nums; }
.m-importe i { font-style: normal; font-weight: 500; color: #978c88; font-size: 24px; }
.m-pista { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 26px; padding: 0 11px; border-radius: 999px; background: #dff3e5; color: #1f7a4d; font: 600 13px/1 var(--sans-app); }
.m-pista svg { width: 14px; height: 14px; }
.m-ayuda { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #4a403e; }
.m-formas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-formas span { height: 50px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .16); display: grid; place-items: center; font: 600 15px/1 var(--sans-app); }
.m-formas .on { background: #3e5c50; color: #fff; box-shadow: none; }
.m-hecho { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 4px; }
.m-hecho > i { width: 54px; height: 54px; border-radius: 50%; background: #dcefe3; color: #25704a; display: grid; place-items: center; }
.m-hecho > i svg { width: 26px; height: 26px; }
.m-hecho b { margin-top: 12px; font: 600 22px/1.25 "Lora", serif; }
.m-hecho small { margin-top: 3px; font-size: 14px; color: #6e625f; }
.m-lineas { border-radius: 14px; background: #f4f3ef; }
.m-lineas p { display: flex; justify-content: space-between; padding: 13px 16px; font-size: 15px; }
.m-lineas p + p { border-top: 1px solid rgba(37, 31, 30, .08); }
.m-lineas p span { color: #6e625f; }
.m-lineas p b { font-weight: 600; }
.m-cita-texto { padding: 12px 14px; border-radius: 12px; background: #f4f3ef; font-size: 14px; line-height: 1.5; color: #4a403e; }
.m-aviso-ok { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #dff3e5; color: #1f7a4d; font: 600 14.5px/1.3 var(--sans-app); }
.m-aviso-ok small { font: 400 13px/1.3 var(--sans-app); color: #3f7a5a; }

/* La notificación que cae de arriba */
.m-notif { position: absolute; z-index: 40; left: 10px; right: 10px; top: 54px; display: flex; gap: 12px; padding: 12px 14px; border-radius: 22px; background: rgba(250, 250, 248, .97); box-shadow: 0 10px 30px rgba(20, 24, 22, .18), inset 0 0 0 1px rgba(37, 31, 30, .06); }
.m-notif > i { width: 38px; height: 38px; flex: none; border-radius: 10px; background: #25d366; color: #fff; display: grid; place-items: center; }
.m-notif > i svg { width: 22px; height: 22px; }
.m-notif span { display: flex; flex-direction: column; min-width: 0; font-size: 14.5px; line-height: 1.35; }
.m-notif small { font-size: 12.5px; color: #6e625f; }
.m-notif b { font-weight: 600; }

/* El chat de WhatsApp, neutro: no se copia su interfaz */
.m-chat { position: absolute; z-index: 35; inset: 0; background: #efece6; display: flex; flex-direction: column; }
.m-chat-cab { display: flex; align-items: center; gap: 10px; padding: 58px 16px 12px; background: #f7f6f2; box-shadow: 0 1px 0 rgba(37, 31, 30, .08); }
.m-chat-cab svg { color: #3e5c50; }
.m-chat-cab b { font-weight: 600; font-size: 16.5px; }
.m-chat-cab small { display: block; font-size: 12.5px; color: #6e625f; }
.m-chat-vacio { flex: 1; display: grid; place-items: center; padding: 30px; text-align: center; font-size: 14px; color: #6e625f; }
.m-chat-vacio span { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .7); }
.m-chat-pie { display: flex; align-items: center; gap: 10px; padding: 10px 12px 34px; background: #f7f6f2; }
.m-chat-pie span { flex: 1; height: 44px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .1); display: flex; align-items: center; padding: 0 16px; color: #978c88; }
.m-chat-pie i { width: 44px; height: 44px; border-radius: 50%; background: #25d366; }
.m-burbuja { align-self: flex-end; max-width: 300px; margin: 0 14px 12px; padding: 10px 12px 8px; border-radius: 16px 16px 4px 16px; background: #dcf6c9; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(37, 31, 30, .08); }
.m-burbuja small { display: block; text-align: right; font-size: 11.5px; color: #6e7f66; margin-top: 2px; }

/* Mensajes */
.m-progreso { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; font-size: 14px; color: #6e625f; }
.m-progreso-fila { display: flex; justify-content: space-between; }
.m-barra { height: 6px; border-radius: 3px; background: #e2dfd8; overflow: hidden; }
.m-barra i { display: block; height: 100%; width: 100%; border-radius: 3px; background: #3e5c50; transform-origin: 0 50%; transform: scaleX(var(--hecho, 0)); transition: transform .5s var(--ease-out); }
.m-rec { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(37, 31, 30, .07); }
.m-rec-hora { width: 52px; flex: none; font: 600 16px/1.2 var(--sans-app); font-variant-numeric: tabular-nums; }
.m-rec-hora small { display: block; font-weight: 400; font-size: 12px; color: #6e625f; }
.m-rec > span:not(.m-rec-hora):not(.m-rec-acc) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m-rec b { font-weight: 600; font-size: 15.5px; }
.m-rec small { font-size: 13.5px; color: #6e625f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-rec-acc { flex: none; display: grid; }
.m-rec-acc > * { grid-area: 1 / 1; justify-self: end; }
.m-mandar { height: 40px; padding: 0 16px; border-radius: 12px; background: #25d366; color: #fff; display: inline-flex; align-items: center; gap: 7px; font: 600 14.5px/1 var(--sans-app); }
.m-mandar svg { width: 17px; height: 17px; }
.m-enviado { height: 30px; padding: 0 12px; border-radius: 999px; background: #dcefe3; color: #25704a; display: inline-flex; align-items: center; gap: 5px; font: 600 13px/1 var(--sans-app); white-space: nowrap; }
.m-enviado svg { width: 14px; height: 14px; }
.m-al-dia { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 999px; background: #dcefe3; color: #25704a; font: 600 13.5px/1 var(--sans-app); }
.m-al-dia svg { width: 14px; height: 14px; }
.m-quedan { display: inline-flex; height: 28px; padding: 0 12px; border-radius: 999px; align-items: center; background: #fbf0d9; color: #8b6109; font: 600 13.5px/1 var(--sans-app); }

/* Agenda */
.m-semana { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 6px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .07); }
.m-semana span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 12px; font: 500 13px/1 var(--sans-app); color: #6e625f; }
.m-semana span b { font: 600 19px/1 var(--sans-app); color: #251f1e; }
.m-semana span i { display: flex; gap: 2px; height: 4px; }
.m-semana span i::before, .m-semana span i::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #3e5c50; opacity: .7; }
.m-semana .on { background: #dcefe3; }
.m-semana .off { opacity: .45; }
.m-dia-cab { display: flex; align-items: baseline; gap: 8px; }
.m-dia-cab h5 { font: 600 22px/1.2 "Lora", serif; }
.m-dia-datos { margin-top: 6px; font-size: 14px; color: #4a403e; }
.m-dia-datos b { font-weight: 600; }
.m-siguiente { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: #2c4239; color: #fff; }
.m-siguiente b { font: 600 24px/1 var(--sans-app); font-variant-numeric: tabular-nums; }
.m-siguiente span { display: flex; flex-direction: column; gap: 4px; }
.m-siguiente small { font: 600 11.5px/1 var(--sans-app); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.m-siguiente em { font-style: normal; font-weight: 600; font-size: 16px; }
.m-ag { position: relative; padding: 12px 14px 12px 16px; border-radius: 14px; background: #f7f6f2; box-shadow: inset 3px 0 0 var(--filo, #3e5c50); }
.m-ag + .m-ag { margin-top: 8px; }
.m-ag-fila { display: flex; align-items: center; gap: 10px; }
.m-ag-fila b { font: 600 17px/1 var(--sans-app); font-variant-numeric: tabular-nums; }
.m-ag-fila em { font-style: normal; font-weight: 600; font-size: 16px; }
.m-ag-fila .m-est { margin-left: auto; }
.m-ag p { margin-top: 5px; padding-left: 58px; font-size: 14px; color: #4a403e; }
.m-ag p + p { margin-top: 3px; display: flex; align-items: center; gap: 6px; color: #251f1e; }
.m-ag p + p small { color: #6e625f; font-size: 13px; font-weight: 600; }
.m-libre { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: #eaf5ee; font-size: 14.5px; color: #25704a; }
.m-libre b { font: 600 15px/1 var(--sans-app); font-variant-numeric: tabular-nums; color: #251f1e; }
.m-libre i { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: #3e5c50; color: #fff; display: grid; place-items: center; }
.m-libre i svg { width: 14px; height: 14px; }

/* La ficha */
.m-volver { display: flex; align-items: center; gap: 4px; padding: 4px 2px 0; font: 600 15px/1 var(--sans-app); color: #3e5c50; }
.m-volver svg { width: 18px; height: 18px; }
.m-mascota { display: flex; align-items: center; gap: 14px; }
.m-mascota > i { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #eef1ee; color: #4a5a52; display: grid; place-items: center; }
.m-mascota > i svg { width: 28px; height: 28px; }
.m-mascota h4 { font: 600 28px/1.1 "Lora", serif; }
.m-mascota small { font-size: 14.5px; color: #6e625f; }
.m-alerta { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fbe4e0; color: #9b1f1b; font-size: 14.5px; }
.m-alerta svg { width: 18px; height: 18px; }
.m-alerta b { font-weight: 700; }
.m-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 10px; }
.m-datos span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.m-datos small { font-size: 12.5px; color: #6e625f; }
.m-datos .rojo { color: #b0221f; font-weight: 700; }
.m-datos .ancho { grid-column: 1 / -1; }
.m-marca { background-image: linear-gradient(rgba(176, 34, 31, .16), rgba(176, 34, 31, .16)); background-repeat: no-repeat; background-size: 100% .5em; background-position: 0 88%; }
.m-dato-grande { font: 600 30px/1.1 "Lora", serif; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* Dinero, de noche: la app en su tema oscuro, que es el suyo por defecto */
.pant.oscura { background: #121614; color: #ece8e4; }
.pant.oscura .m-bateria { box-shadow: inset 0 0 0 1px rgba(236, 232, 228, .5); }
.pant.oscura .m-bateria::after { background: rgba(236, 232, 228, .5); }
.pant.oscura .m-carta { background: #1b201d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pant.oscura .m-sub, .pant.oscura .m-carta h5 small, .pant.oscura .m-titulo .m-extra { color: #a8a19c; }
.pant.oscura .m-tabs { background: rgba(22, 27, 24, .97); box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
.pant.oscura .m-tabs span { color: #b9b2ad; }
.pant.oscura .m-tabs .on { background: #24352d; color: #cfe6da; }
.pant.oscura .m-home { background: #e8e4e0; }
.pant.oscura .m-hoja { background: #1b201d; }
.pant.oscura .m-hoja-cab { border-color: rgba(255, 255, 255, .08); }
.pant.oscura .m-cerrar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.pant.oscura .m-etiq { color: #a8a19c; }
.m-mes-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-mes-botones span { height: 44px; border-radius: 12px; display: grid; place-items: center; font: 600 15px/1 var(--sans-app); }
.m-mes-botones span:first-child { background: #3e5c50; color: #fff; }
.m-mes-botones span:last-child { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.m-cuentas { background: #17231d !important; box-shadow: inset 0 0 0 1px rgba(111, 207, 151, .16) !important; }
.m-cuentas-fila { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; }   /* cada cifra en una línea: con las de septiembre (2000,00 €) el «€» bajaba */
.m-cuentas-fila span { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #a8a19c; }
.m-cuentas-fila b { font: 600 17px/1 "Lora", serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-cuentas-fila .entra { color: #3cc79a; } .m-cuentas-fila .sale { color: #ea7a5c; }
.m-cuentas-fila .queda { color: #3cc79a; font-size: 25px; }
.m-mes-dia { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: #a8a19c; }
.m-mes-dia b { color: #ece8e4; font-weight: 600; }
.m-mes-dia i { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3cc79a 42%, rgba(255, 255, 255, .12) 42%); }
.m-mes-cerrado i { background: #3cc79a; }   /* un mes cerrado: la barra, entera */
.m-pagos { display: flex; height: 16px; margin-top: 12px; border-radius: 8px; overflow: hidden; gap: 2px; }
.m-pagos i { height: 100%; }
.m-leyenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.m-leyenda span { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #a8a19c; }
.m-leyenda span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.m-leyenda b { font: 600 14px/1 var(--sans-app); color: #ece8e4; font-variant-numeric: tabular-nums; }
.m-excel p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: #a8a19c; }
.m-excel .m-btn { margin-top: 12px; width: max-content; padding: 0 16px; }
.m-archivo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #1b201d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.m-archivo svg { width: 26px; height: 26px; color: #8fbfa9; }
.m-archivo span { display: flex; flex-direction: column; min-width: 0; }
.m-archivo b { font-weight: 600; font-size: 13.5px; overflow-wrap: break-word; }
.m-archivo small { font-size: 12.5px; color: #a8a19c; }
.pant.oscura .m-chips span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.pant.oscura .m-chips .on { background: #3e5c50; box-shadow: none; }
.pant.oscura .m-cita-texto { background: #232925; color: #cfc8c3; }

/* ── Los pasos de las escenas (js/v5.js, con el kit de movimiento) ─────────────
   Cada pieza dice en qué pasos se ve (data-en="2-4"); el kit le pone .on cuando toca. El HTML trae
   marcadas con .on las del último paso: sin JS o con movimiento reducido, la escena está terminada. */
.m-relevo { display: grid; }
.m-relevo > * { grid-area: 1 / 1; }
.m-caras { display: grid; }
.m-caras > .cara { grid-area: 1 / 1; min-width: 0; }
.fl [data-en] { transition: opacity .3s var(--ease-out), transform .5s var(--ease-hoja), visibility 0s linear .5s; }
.fl [data-en].on { transition: opacity .3s var(--ease-out), transform .5s var(--ease-hoja), visibility 0s; }
.fl [data-en]:not(.on) { opacity: 0; visibility: hidden; }
.fl .cara[data-en]:not(.on) { transform: translateY(10px); }
.fl .m-hoja[data-en]:not(.on) { opacity: 1; transform: translateY(104%); }
.fl .m-notif[data-en]:not(.on) { transform: translateY(-140%); }
.fl .m-chat[data-en]:not(.on) { opacity: 1; transform: translateX(104%); }
.fl .m-archivo[data-en]:not(.on) { transform: translateY(12px); }
/* Mientras se prepara una escena (se vuelve al primer paso), nada transiciona; y mientras se mide de
   dónde despegan las piezas, lo escondido se mide en su sitio, sin el desplazamiento de su paso */
.sin-transicion * { transition: none !important; }
.midiendo [data-en] { transform: none !important; }
.m-pagos i { transform-origin: 0 50%; }

/* ── El cierre de la demo (parciales/demo.html; la escena, en v5.js) ───────────────────────────────────────────
   Del verde de la marca, como la pantalla de carga. El logo, a un tercio; debajo, las cuatro cosas, y la prueba. */
.pant-cierre { background: radial-gradient(120% 80% at 50% 30%, #47695c 0%, #3e5c50 55%, #35524a 100%); color: #fff; }
.pant-cierre .m-estado { color: #fff; }
.pant-cierre .m-estado-iconos i { filter: invert(1); }
.cierre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 60px 34px 40px; }
.cierre-logo { --s: 150px; display: flex; flex-direction: column; align-items: center; gap: calc(var(--s) * 44 / 897); color: #fff; }
.cierre-logo .c-simbolo { width: var(--s); height: auto; overflow: visible; }
.cierre-logo .c-palabra { width: calc(var(--s) * 1314 / 897); height: auto; }
.cierre-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; }
.cierre-lista li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font: 600 18px/1.2 "Lora", serif; }
.cierre-lista i { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #3e5c50; }
.cierre-lista svg { width: 20px; height: 20px; }
.cierre-prueba { font-size: 14px; color: rgba(255, 255, 255, .78); text-align: center; }
