/* ─────────────────────────────────────────────────────────────────────────────
   skygroom-web v5 · LA APP EN LA TABLET (y en el portátil)
   El lienzo de Inicio de la raíz (css/app.css y parciales/app-inicio.html), cotejado con la app real en
   modo demo el 28/09 y vuelto a mirar el 29/09 en claro a 1180×820: suelo #f1f0ec, tinta #251f1e,
   titulares Lora 600, tarjetas blancas de radio 14, chips en píldora.
   Lo que cambia frente a la raíz: la escala sale del CSS (--tab, el ancho del aparato, como --tel en
   el teléfono), sin JS; y el aparato es una foto, no el canto 3D por capas (02/10).
   ───────────────────────────────────────────────────────────────────────────── */
/* La tablet en horizontal: --tab es un número (su ancho en px). Desde el 02/10 el aparato es una foto: la de
   gris espacial de frente (JOSEP, entre las que generó ChatGPT; aparatos/CREDITOS.md), con el hueco de la
   pantalla transparente. El marco va ENCIMA (::after) y pisa el filo de nuestra pantalla, que va debajo con su
   HTML: así la app sigue nítida y animada. La pantalla mide lo que el hueco (en la foto de 1404×1011, el
   93,11 % del ancho), y el lienzo de la app (1024×712) se escala a ella.
   Hasta el 02/10 era un rectángulo con degradado: «parece una tele, no una tablet real» (JOSEP). */
:where(.tab) { --tab: 680; }
.tab {
  --kt: calc(var(--tab) * 0.93114 / 1024);
  position: relative; flex: none;
  width: calc(var(--tab) * 1px);
  height: calc(var(--tab) * 0.72009px);
  border-radius: calc(var(--tab) * .052px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .14), 0 44px 80px -30px rgba(12, 22, 17, .5);
}
.tab::after { content: ""; position: absolute; inset: 0; z-index: 2; background: url("../aparatos/tablet-frente.webp") 0 0 / 100% 100% no-repeat; pointer-events: none; }
.tab-pantalla { position: absolute; left: 3.303%; top: 5.143%; width: 93.114%; height: 89.911%; border-radius: calc(var(--tab) * 0.0195px); overflow: hidden; background: #f1f0ec; isolation: isolate; }
.tab .app { transform: scale(var(--kt)); }

/* De pie, con su funda y su pata (la F1, JOSEP, 02/10: «para algunas tomas o sitios en los que pueda quedar
   bien»): la foto viene girada y apoyada, así que nuestra pantalla no se escala sin más: se deforma hasta las
   cuatro esquinas del hueco con matrix3d (sacada de la foto, aparatos/CREDITOS.md). Todo va en px de la foto
   (1436×1101) y al final se escala a --tab. La sombra de la mesa va dentro de la foto. */
.tab.de-pie { --kp: calc(var(--tab) / 1436); height: calc(var(--tab) * 0.76671px); border-radius: 0; box-shadow: none; }
.tab.de-pie::after { background-image: url("../aparatos/tablet-de-pie.webp"); }
.de-pie .tab-pantalla { left: 0; top: 0; width: 1024px; height: 712px; border-radius: 22px; transform-origin: 0 0; transform: scale(var(--kp)) matrix3d(0.864563624, -0.082307404, 0, -0.000156243, -0.205408653, 0.981261974, 0, -7.0751e-05, 0, 0, 1, 0, 194.264, 133.608, 0, 1); }
.de-pie .app { transform: none; }
/* La misma, en espejo (tablet-de-pie-espejo.webp): con la pata a la izquierda y la pantalla hacia la derecha, para ponerla
   a la IZQUIERDA de otros aparatos mirando hacia ellos (JOSEP, 02/10: «está enfocando hacia afuera»). La app no se refleja:
   tiene su propia matrix3d (scripts/aparatos/marcos.py). */
.tab.de-pie.espejo::after { background-image: url("../aparatos/tablet-de-pie-espejo.webp"); }
.de-pie.espejo .tab-pantalla { transform: scale(var(--kp)) matrix3d(1.30048432, 0.0986850865, 0, 0.000191248084, 0.122574614, 1.16706948, 0, -8.81900331e-05, 0, 0, 1, 0, 150.806, 58.72, 0, 1); }

.app {
  position: absolute; left: 0; top: 0; width: 1024px; height: 712px;
  transform-origin: 0 0; transform: scale(var(--escala, .6));
  font: 400 15px/1.5 var(--sans-app); color: #251f1e; background: #f1f0ec; letter-spacing: 0;
  overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none;
}
.app * { box-sizing: border-box; }
.app [hidden] { display: none !important; } /* sin esto, display:grid/flex de las piezas gana al atributo hidden */
.app svg { width: 18px; height: 18px; flex: none; }
.app-lienzo { position: absolute; inset: 0; transform-origin: 0 0; }

.app-barra { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 26px; background: rgba(255, 255, 255, .72); box-shadow: 0 1px 0 rgba(37, 31, 30, .12); }
.app-logo { display: flex; align-items: center; gap: 8px; font: 700 17px/1 "Lora", serif; letter-spacing: -.01em; }
.app-logo i { width: 28px; height: 28px; border-radius: 8px; background: #3e5c50; color: #fff; display: grid; place-items: center; }
.app-logo i svg { width: 16px; height: auto; }   /* el SG al 56 % del icono, como el de la app (app-canina, DECISIONES.md, 21/10) */
.app-nav { display: flex; gap: 2px; margin-left: 4px; }
.app-nav span { width: 36px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #4a403e; }
.app-nav span.on { background: #e1f0e7; color: #2c4239; }
.app-cuenta { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #6e625f; }
.app-campana { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .12); display: grid; place-items: center; color: #251f1e; }
.app-campana b { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #b0221f; color: #fff; font: 600 10px/17px var(--sans-app); text-align: center; }
.app-avatar { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .15); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #251f1e; }

.app-pantalla { padding: 18px 26px 0; }
.app-cab { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.app-cab h3 { font: 600 26px/34px "Lora", serif; letter-spacing: -.01em; margin: 0; }
.app-cab p { margin: 1px 0 0; font-size: 14px; color: #6e625f; }
.app-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 14px; background: #3e5c50; color: #fff; font: 500 14px/1 var(--sans-app); white-space: nowrap; }
.app-btn svg { width: 16px; height: 16px; }
.app-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 14px; align-items: start; }
.app-col { display: flex; flex-direction: column; gap: 11px; }
.app-carta { background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .07), 0 1px 2px rgba(37, 31, 30, .05), 0 8px 24px rgba(37, 31, 30, .05); }

/* «Ahora mismo» */
.app-ahora { border-radius: 14px; background: #e3f1ea; padding: 7px; }
.app-ahora > div { display: flex; align-items: center; gap: 12px; border-radius: 11px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(62, 92, 80, .16); border-left: 3px solid #2f8a6a; padding: 7px 8px 7px 12px; }
.app-ahora .et { display: flex; align-items: center; gap: 7px; font: 600 12px/1 var(--sans-app); letter-spacing: .07em; text-transform: uppercase; color: #1f7a5c; white-space: nowrap; }
.app-ahora .et::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f7a5c; }
.app-ahora .quien { font-weight: 600; font-size: 14px; line-height: 1.25; }
.app-ahora .quien small { display: block; font-weight: 400; font-size: 12px; color: #6e625f; }
.app-ahora .bot { margin-left: auto; display: flex; gap: 6px; }
.app-bot2 { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .16); font: 500 13px/1 var(--sans-app); color: #251f1e; white-space: nowrap; }
.app-bot2 svg { width: 15px; height: 15px; color: #128c4a; }

/* «Próxima cita»: la única superficie teñida, y la cifra más grande */
.app-proxima { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 14px; background: #dcefe3; box-shadow: inset 0 0 0 1px rgba(62, 92, 80, .16); }
.app-proxima .reloj { width: 30px; height: 30px; color: #2c4239; }
.app-proxima .reloj svg { width: 26px; height: 26px; }
.app-proxima .lab { font: 600 11px/1 var(--sans-app); letter-spacing: .07em; text-transform: uppercase; color: #4a5a52; border-left: 1px solid rgba(62, 92, 80, .25); padding-left: 14px; }
.app-proxima .lab em { display: block; font-style: normal; margin-top: 6px; letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 600; background: rgba(62, 92, 80, .12); border-radius: 999px; padding: 3px 9px; width: max-content; color: #2c4239; }
.app-proxima .hora { font: 600 44px/1 "Lora", serif; letter-spacing: -.01em; color: #243a31; }
.app-proxima .quien { font: 600 17px/1.2 "Lora", serif; }
.app-proxima .quien small { display: block; font: 400 12.5px/1.4 var(--sans-app); color: #4a5a52; margin-top: 3px; }
.app-proxima .ver { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; font: 500 13px/1 var(--sans-app); }
.app-proxima .ver svg { width: 14px; height: 14px; }

/* Listas del día */
.app-dia { padding: 12px 0 8px; }
.app-dia header { display: flex; align-items: baseline; gap: 10px; padding: 0 18px 8px; }
.app-dia h4 { font: 600 20px/26px "Lora", serif; letter-spacing: -.01em; margin: 0; }
.app-dia header span { font-size: 13.5px; color: #6e625f; }
.app-dia header .n { margin-left: auto; }
.app-fila { position: relative; display: grid; grid-template-columns: 70px 118px minmax(0, 1fr) 126px 112px 14px; align-items: center; gap: 6px; height: 31px; margin: 0 12px; padding: 0 8px 0 12px; border-top: 1px solid rgba(37, 31, 30, .07); font-size: 13.5px; white-space: nowrap; }
.app-fila::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--filo, #cfd6d2); }
.app-fila .h { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.app-fila .h svg { width: 14px; height: 14px; color: #6e625f; }
.app-fila .c { overflow: hidden; text-overflow: ellipsis; }
.app-fila .m { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; color: #4a403e; }
.app-fila .m i { width: 6px; height: 6px; border-radius: 50%; background: var(--dificultad, #2f9a52); flex: none; }
.app-fila .s { display: flex; align-items: center; gap: 5px; color: #4a403e; overflow: hidden; }
.app-fila .s svg { width: 14px; height: 14px; color: #6e625f; }
.app-fila .chev { width: 13px; height: 13px; color: #b3aaa6; }
.app-fila.hecha { color: #978c88; } .app-fila.hecha .h { font-weight: 400; } .app-fila.hecha .m, .app-fila.hecha .s { color: #978c88; }
.app-fila.marcha { background: #eef6f1; border-radius: 8px; --filo: #2f8a6a; }
.app-chip { justify-self: start; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 4px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.app-chip svg { width: 14px; height: 14px; }
.app-chip.hecha { background: #f3f2ee; color: #6e625f; }
.app-chip.conf { background: #e7f5ef; color: #007a67; }
.app-chip.marcha { background: #d8eee2; color: #1f6a4f; }
.app-chip.sin { background: #fbe9e1; color: #b0431a; }
.d-facil { --dificultad: #2f9a52; } .d-medio { --dificultad: #c0901a; } .d-dificil { --dificultad: #d0652a; } .d-muy { --dificultad: #7a3fa0; }
.f-conf { --filo: #74c69d; } .f-sin { --filo: #e39b77; } .f-hecha { --filo: #d6d1ce; }

/* Columna de la derecha */
.app-lat { padding: 12px 16px; }
.app-lat h4 { display: flex; align-items: center; justify-content: space-between; font: 600 17px/24px "Lora", serif; letter-spacing: -.01em; margin: 0 0 8px; }
.app-lat h4 i { width: 30px; height: 30px; border-radius: 9px; background: #eef5f1; color: #2c4239; display: grid; place-items: center; }
.app-lat h4 i svg { width: 16px; height: 16px; }
.app-progreso { font-size: 13.5px; }
.app-progreso b { font-weight: 600; }
.app-barra-dia { height: 7px; border-radius: 4px; background: #e9e7e2; margin: 9px 0 8px; overflow: hidden; }
.app-barra-dia i { display: block; height: 100%; width: var(--hecho, 40%); border-radius: 4px; background: #2f8a6a; }
.app-progreso p { display: flex; justify-content: space-between; margin: 0; font-size: 12px; color: #6e625f; }
.app-tarea { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-top: 1px solid rgba(37, 31, 30, .07); font-size: 13px; line-height: 1.3; }
.app-tarea:first-of-type { border-top: 0; }
.app-tarea > i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; font: 600 17px/1 "Lora", serif; font-style: normal; }
.app-tarea > i.az { background: #e6eefa; color: #2f5f96; } .app-tarea > i.oro { background: #f6eedc; color: #8a6d1a; }
.app-tarea b { display: block; font-weight: 600; font-size: 13.5px; }
.app-tarea small { color: #6e625f; font-size: 12px; }
.app-hueco { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; margin-top: 6px; border-radius: 9px; background: #e8f3ed; color: #1f5a45; font-size: 13px; font-weight: 500; }
.app-hueco small { color: #3d6b5a; font-weight: 400; }

/* ── El portátil ───────────────────────────────────────────────────────────────
   --port es su ancho en px. Desde el 02/10 es una foto: el portátil de gris espacial de frente que generó ChatGPT
   (JOSEP; v5/aparatos/CREDITOS.md), estirado un 3,6 % en vertical para que su pantalla mida 16:10, como el lienzo de
   la app (1280 × 800). La foto va encima (::after) y la pantalla, debajo, en el hueco. .port-tapa y .port-base se
   quedan en el HTML, pero ya no dibujan nada: la tapa es solo la caja del hueco. */
:where(.port) { --port: 760; }
.port { --kp: calc(var(--port) * .8526 / 1280); position: relative; isolation: isolate; flex: none; width: calc(var(--port) * 1px); height: calc(var(--port) * .61818px); }
.port::after { content: ""; position: absolute; inset: 0; z-index: 6; background: url("../aparatos/portatil.webp") 0 0 / 100% 100% no-repeat; pointer-events: none; }
.port-tapa { position: absolute; left: 7.403%; top: 4.898%; width: 85.26%; height: 86.2%; }
.port-pantalla { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--port) * .011px); background: #f1f0ec; isolation: isolate; }
.port-pantalla > .esc { transform: scale(var(--kp)); }
.port-base { display: none; }

/* La Agenda en el ordenador (parciales/portatil-agenda.html): la barra con los nombres de cada
   sección, la cabecera y la semana. */
.esc { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; font: 400 14px/1.4 var(--sans-app); color: #251f1e; background: #f1f0ec; letter-spacing: 0; overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; }
.esc * { box-sizing: border-box; }
.esc svg { width: 17px; height: 17px; flex: none; }
.esc-barra { height: 52px; display: flex; align-items: center; gap: 18px; padding: 0 26px; background: rgba(255, 255, 255, .72); box-shadow: 0 1px 0 rgba(37, 31, 30, .12); }
.esc-nav { display: flex; gap: 2px; }
.esc-nav span { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 10px; font-size: 14.5px; color: #4a403e; }
.esc-nav span.on { background: #e1f0e7; color: #2c4239; font-weight: 500; }
.esc-cab { display: flex; align-items: center; gap: 14px; height: 66px; padding: 0 26px; }
.esc-cab h3 { margin: 0 6px 0 0; font: 600 29px/1 "Lora", serif; letter-spacing: -.01em; }
.esc-seg { display: flex; gap: 6px; }
.esc-seg b, .esc-seg span { display: grid; place-items: center; height: 34px; padding: 0 15px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.esc-seg b { background: #251f1e; color: #fff; }
.esc-seg span { box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .16); }
.esc-de { display: flex; align-items: center; gap: 8px; color: #4a403e; }
.esc-de em { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; background: #fff; font-style: normal; color: #251f1e; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .12); }
.esc-de em svg { width: 14px; height: 14px; }
.esc-fechas { display: flex; align-items: center; gap: 12px; margin-left: 20px; font: 500 14px/1 var(--sans-app); letter-spacing: .08em; text-transform: uppercase; color: #4a403e; }
.esc-fechas i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .16); }
.esc-fechas i svg { width: 15px; height: 15px; }
.esc-hoy { height: 30px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; color: #978c88; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .1); }
.esc-cab .app-btn { margin-left: auto; }
.esc-semana { position: absolute; left: 26px; right: 26px; top: 120px; height: 634px; display: grid; grid-template-columns: 50px repeat(7, minmax(0, 1fr)); column-gap: 4px; padding: 8px 10px 8px 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .07), 0 8px 24px rgba(37, 31, 30, .05); }
.esc-horas { position: relative; }
.esc-horas span { position: absolute; right: 6px; translate: 0 -50%; font-size: 11.5px; color: #6e625f; font-variant-numeric: tabular-nums; }
.esc-dia { display: flex; flex-direction: column; min-width: 0; }
.esc-dia header { height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px 10px 0 0; }
.esc-dia header p { display: flex; align-items: center; gap: 7px; margin: 0; }
.esc-dia header p span { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #6e625f; }
.esc-dia header p b { font: 600 17px/1 "Lora", serif; }
.esc-dia header small { font-size: 11.5px; font-weight: 600; color: #9a7417; }
.esc-dia.hoy header { background: #e9e8e4; box-shadow: inset 0 -2px 0 #2f8a6a; }
.esc-dia.hoy header p b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2c4239; color: #fff; font-size: 15px; }
.esc-dia.cerrado header p, .esc-dia.cerrado header small { opacity: .45; }
.esc-dia.cerrado header small { color: #6e625f; font-weight: 500; }
.esc-rejilla { position: relative; height: 550px; border-radius: 0 0 8px 8px; background: repeating-linear-gradient(180deg, #ecebe7 0 49px, #e2e0db 49px 50px); }
.esc-dia.hoy .esc-rejilla { background: repeating-linear-gradient(180deg, #e3e2de 0 49px, #d9d7d1 49px 50px); }
.esc-cerrado { position: absolute; left: 0; right: 0; background: rgba(37, 31, 30, .07); }
.esc-cita { position: absolute; left: 2px; right: 2px; overflow: hidden; padding: 4px 7px; border-radius: 5px; border-top: 3px solid var(--borde); background: var(--fondo); font-size: 11.5px; line-height: 1.3; color: #3b4a45; }
.esc-cita small { display: block; font-size: 10.5px; color: rgba(37, 31, 30, .5); white-space: nowrap; }
.esc-cita b { display: flex; align-items: center; gap: 5px; font-weight: 600; color: #251f1e; white-space: nowrap; overflow: hidden; }
.esc-cita b i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--dificultad, #2f9a52); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
.esc-cita span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc-cita.conf { --fondo: #b8e1d8; --borde: #2c8a78; }
.esc-cita.sin { --fondo: #eccac5; --borde: #c4553f; }
.esc-cita.hecha { --fondo: #c9cceb; --borde: #4f5aa9; }
.esc-leyenda { position: absolute; left: 30px; right: 30px; bottom: 14px; display: flex; align-items: center; gap: 16px; font-size: 12px; color: #6e625f; }
.esc-leyenda .l { display: flex; align-items: center; gap: 6px; }
.esc-leyenda .l::before { content: ""; width: 20px; height: 11px; border-radius: 3px; border-top: 2px solid var(--borde, #2c8a78); background: var(--fondo, #b8e1d8); }
.esc-leyenda .sin { --fondo: #eccac5; --borde: #c4553f; } .esc-leyenda .hecha { --fondo: #c9cceb; --borde: #4f5aa9; } .esc-leyenda .libre { --fondo: #efe6c9; --borde: #c9b170; }
.esc-leyenda .sep { margin-left: 8px; padding-left: 16px; border-left: 1px solid rgba(37, 31, 30, .15); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; font-size: 11px; }
.esc-leyenda .p { display: flex; align-items: center; gap: 5px; }
.esc-leyenda .p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dificultad); }
.esc-leyenda .tot { margin-left: auto; font-size: 13.5px; color: #4a403e; }
.esc-leyenda .tot b { font-weight: 600; color: #251f1e; }

/* El aro que marca la misma cita en los tres aparatos (sección «aparatos»): quieto e invisible; el JS
   solo lo enciende y lo apaga (opacity y scale). */
.aro { position: absolute; inset: -3px; border: 2px solid #2f8a6a; border-radius: 10px; opacity: 0; pointer-events: none; }
.esc-cita .aro { inset: 0; border-radius: 5px; border: 2.5px solid #1f5a45; }
.app-fila .aro { inset: -2px -5px; border-radius: 9px; }
.m-hecho { position: relative; }
.m-hecho .aro { inset: -4px 36px; border-radius: 18px; border-width: 2.5px; }

/* ── Inicio en la portada, en movimiento (parciales/tablet-inicio-portada.html; la escena, en v5.js) ───────────────
   Todo dentro de la pantalla, en píxeles de la app (1024 × 712): el chat de WhatsApp que abre «Avisar», el diálogo de
   cerrar la cita con su velo y, al final, la franja «Ahora mismo» que se va y la lista que sube a su sitio. Los pasos
   los pone el kit (data-en, con las reglas .fl de telefono.css). Solo transform y opacity (D1). */
.app-avisar { display: inline-grid; }
.app-avisar b { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.app-avisar b:not(.app-avisar-wa) { color: #6e625f; }
.app-avisar b:not(.app-avisar-wa) svg { color: #6e625f; }
.app-avisar:has(.app-avisar-wa.on) { background: #25d366; box-shadow: none; color: #06301a; }
.app-avisar .app-avisar-wa svg { color: #06301a; }
.app-avisado { color: #1f7a4d; font-weight: 600; }
.app-relevo { display: grid; justify-items: start; }
.app-relevo > * { grid-area: 1 / 1; }
/* La lista sube lo que medía la franja (su alto, 61, y el hueco de la columna, 11) cuando la cita se cierra */
.app-resto { display: flex; flex-direction: column; gap: 11px; transform: translateY(calc(var(--sube, 0) * -72px)); transition: transform .55s var(--hoja) .15s; }

/* El chat de Anna, a pantalla completa, entra por la derecha como una app que se abre */
.app-wa { position: absolute; z-index: 40; inset: 0; display: flex; flex-direction: column; background: #efeae2; }
.fl .app-wa[data-en]:not(.on) { opacity: 1; transform: translateX(104%); }
.app-wa-cab { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; background: #f7f6f2; box-shadow: 0 1px 0 rgba(37, 31, 30, .1); }
.app-wa-cab i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #d9e6df; color: #3e5c50; font: 600 15px/1 var(--sans-app); font-style: normal; }
.app-wa-cab b { font-weight: 600; font-size: 16px; }
.app-wa-cab svg { color: #3e5c50; }
.app-wa-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 30px 16px; }
.app-wa-chat .m-burbuja { max-width: 420px; margin: 0; font-size: 15px; }
.fl .app-wa-chat .m-burbuja[data-en]:not(.on) { transform: translateY(10px) scale(.96); }
.app-wa-pie { display: flex; align-items: center; gap: 12px; padding: 12px 30px 22px; background: #f7f6f2; }
.app-wa-caja { flex: 1; display: grid; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 23px; background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .1); font-size: 15px; }
.app-wa-caja > * { grid-area: 1 / 1; }
.app-wa-ph { color: #978c88; }
.app-wa-cursor { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -.22em; background: #1fb955; }
html.movimiento .app-wa-cursor { animation: m-parpadea 1.06s steps(1) infinite; }
.app-wa-enviar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; }

/* El diálogo de cerrar la cita (FormDialog: 460 de ancho, cabecera con su título y la ×) */
.app-velo { position: absolute; z-index: 30; inset: 0; background: rgba(20, 24, 22, .38); }
.app-dialogo { position: absolute; z-index: 31; left: 50%; top: 50%; width: 460px; margin: -232px 0 0 -230px; border-radius: 18px; background: #fff; box-shadow: 0 30px 70px -20px rgba(16, 26, 20, .45); }
.fl .app-dialogo[data-en]:not(.on) { transform: translateY(14px) scale(.97); }
.ad-cab { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; }
.ad-cab h2 { margin: 0; font: 600 20px/1.25 "Lora", serif; letter-spacing: -.01em; }
.ad-cerrar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #6e625f; }
.ad-cuerpo { display: grid; min-height: 296px; padding: 0 24px; }
.ad-paso { grid-area: 1 / 1; }
.fl .ad-paso[data-en]:not(.on) { transform: translateX(22px); }
.ad-paso h3 { margin: 0 0 10px; font: 600 15px/1.3 var(--sans-app); }
.ad-importe { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 16px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #3e5c50; font: 600 22px/1 var(--sans-app); font-variant-numeric: tabular-nums; }
.ad-importe i { font: 500 16px/1 var(--sans-app); font-style: normal; color: #978c88; }
.ad-propuesto { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; padding: 4px 10px; border-radius: 999px; background: #e3f1e9; color: #1f7a4d; font-size: 12.5px; font-weight: 500; }
.ad-propuesto svg { width: 12px; height: 12px; }
.ad-pista { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: #6e625f; }
.ad-paso h3 + .ad-pista { margin-top: -4px; }
.ad-vias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ad-vias span { position: relative; height: 46px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .16); font: 600 14px/1 var(--sans-app); color: #4a403e; }
.ad-vias i { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; background: #3e5c50; color: #fff; font-style: normal; }
.ad-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ad-dos label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: #4a403e; }
.ad-dos small { font-size: 12px; color: #978c88; }
.ad-campo { height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .18); font: 600 17px/1 var(--sans-app); color: #251f1e; }
.ad-hecho { text-align: center; }
.ad-tic { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; background: #e3f1e9; color: #1f7a4d; }
.ad-tic svg { width: 22px; height: 22px; }
.ad-hecho > p { margin: -4px 0 12px; font-size: 14px; color: #6e625f; }
.ad-hecho dl { margin: 0; text-align: left; border-top: 1px solid rgba(37, 31, 30, .1); }
.ad-hecho dl div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid rgba(37, 31, 30, .06); }
.ad-hecho dt { color: #6e625f; }
.ad-hecho dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ad-hecho dd small { font-weight: 400; color: #978c88; }
.app-dialogo .ad-pie { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 24px 22px; }
.ad-bot { display: grid; height: 46px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(37, 31, 30, .18); font: 600 14.5px/1 var(--sans-app); color: #251f1e; place-items: center; }
.ad-bot b { grid-area: 1 / 1; font-weight: 600; }
.ad-principal { background: #3e5c50; box-shadow: none; color: #fff; }
.app-dialogo { padding-bottom: 82px; }

/* El dedo: un círculo donde se toca (lo pone el JS: sin movimiento no hay) */
.app-toque { position: absolute; z-index: 80; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(37, 31, 30, .2); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 6px 14px rgba(0, 0, 0, .15); opacity: 0; pointer-events: none; }

/* El diálogo de cerrar la cita en la portada (parciales/portada.html): un segundo lienzo de la app, encima del de Inicio,
   transparente y que no se pulsa. Usa las piezas de arriba (.app-velo, .app-dialogo, .ad-*). */
.app.app-capa { background: none; pointer-events: none; }
.m-ag .aro { inset: -3px; border-radius: 16px; border-width: 2.5px; }

/* «En el móvil, en la tablet y en el ordenador» (03/10): Inicio en el ordenador y la Agenda en la tablet. Inicio va a
   1200 × 750 (la proporción del portátil) y se escala hasta llenar la pantalla; la Agenda, a 1150 × 800, se escala hasta
   el alto de la pantalla de la tablet (712). Los dos diseños se estiran con el ancho. */
.port-pantalla > .app { width: 1200px; height: 750px; transform: scale(calc(var(--kp) * 1280 / 1200)); }
.tab-pantalla > .esc { width: 1150.6px; height: 800px; transform: scale(.89); }
.port-pantalla > .app .app-cuenta { white-space: nowrap; }

/* El portátil sobre la mesa (d1, 03/10): portatil-mesa.webp, visto un poco desde arriba, con el teclado. Codex lo
   monta con dos recortes de la misma foto (scripts/aparatos/seccion-d1.md): la foto trae el teclado más alto que el
   diseño, y así la tapa se estira un 7 % y el teclado se encoge, sin tocar el bitmap. La tapa es el ::after; el
   teclado, el ::before. Todo en proporción de --port (654,73 en el diseño). Su pantalla queda a 1,546: Inicio va a
   1220 × 789 y se escala hasta llenarla. */
.port.mesa { height: calc(var(--port) * .714188px); }
.port.mesa::after { bottom: auto; height: calc(var(--port) * .588028px); background: url("../aparatos/portatil-mesa.webp") 0 0 / 100% calc(var(--port) * .772166px) no-repeat; }
.port.mesa::before { content: ""; position: absolute; z-index: 6; left: 0; right: 0; top: calc(var(--port) * .587723px); height: calc(var(--port) * .126464px); background: url("../aparatos/portatil-mesa.webp") 0 100% / 100% calc(var(--port) * .529058px) no-repeat; pointer-events: none; }
.port.mesa .port-tapa { left: 9.646%; top: calc(var(--port) * .034152px); width: 80.708%; height: calc(var(--port) * .521956px); }
.port.mesa .port-pantalla > .app { width: 1220px; height: 789px; transform: scale(calc(var(--port) * .80708 / 1220)); }

/* La tablet y el móvil sobre la mesa (d1, 03/10): fotos nuevas, en la postura y con la luz del escenario
   (tablet-mesa.webp, 1321 × 1026; movil-mesa.webp, 741 × 1589; marcos.py, en_la_mesa). Nuestra pantalla va a su hueco
   con la matrix3d de sus cuatro esquinas, y se encoge con zoom (y no con scale) para que el texto salga nítido. */
.tab.mesa { --kp: calc(var(--tab) / 1321); height: calc(var(--tab) * .776684px); border-radius: 0; box-shadow: none; }
.tab.mesa::after { background-image: url("../aparatos/tablet-mesa.webp"); }
.tab.mesa .tab-pantalla { left: 0; top: 0; width: 1024px; height: 712px; border-radius: 22px; transform-origin: 0 0; zoom: var(--kp); transform: matrix3d(1.13998448, 0.0767002101, 0, 0.000149568561, 0.122136442, 1.14659466, 0, -7.19014788e-05, 0, 0, 1, 0, 139.424, 70.876, 0, 1); }
.tab.mesa .app { transform: none; }
.tel.mesa { --kp: calc(var(--tel) / 741); height: calc(var(--tel) * 2.144399px); }
.tel.mesa::after { background-image: url("../aparatos/movil-mesa.webp"); }
.tel.mesa .tel-pantalla { left: 0; top: 0; width: 390px; height: 924px; border-radius: 54px; transform-origin: 0 0; zoom: var(--kp); transform: matrix(1.554328, 0.010379, 0.001095, 1.599048, 73.9, 48.216); }   /* su homografía, en plano (a 2 px de pantalla): en 3D Chrome la pintaba a trozos borrosa */
.tel.mesa .pant { transform: none; zoom: 1; }
