/* apple-kit.css: tokens y piezas estáticas de iOS 26 MEDIDOS en el iPhone de Kevin (13 Pro Max, 428×926 pt, oscuro).
   Origen de cada valor entre corchetes. Lo que no está medido va marcado [UIKit].
   Claro: solo hay medidas en oscuro; los valores claros son los de sistema de UIKit [UIKit] y Kevin los revisa. */

:root {
  /* ── Curvas (MEMORIA parte 1 §3) para lo que NO se coge con el dedo (Safari ≥ 17.2) ── */
  --crit: linear(0, 0.11, 0.311, 0.504, 0.659, 0.772, 0.851, 0.905, 0.94, 0.962, 0.976, 0.985, 0.991, 0.995, 0.997, 1);            /* ζ 1, duración ≈ 8,4/ω */
  --m-menu: linear(0, .062, .203, .372, .536, .68, .795, .882, .944, .984, 1.008, 1.021, 1.025, 1.025, 1.022, 1.018, 1.013, 1.009, 1.006, 1.004, 1); /* 300 ms ζ .76 → 375 ms */
  --m-botones: linear(0, .084, .268, .476, .666, .816, .923, .992, 1.029, 1.044, 1.045, 1.039, 1.03, 1.02, 1.012, 1.006, 1.002, 1, .998, .998, 1); /* 500 ms ζ .70 → 730 ms */
  --m-borde: linear(0, .064, .203, .364, .517, .65, .756, .838, .897, .939, .967, .984, .995, 1.001, 1.004, 1.005, 1.005, 1.004, 1.003, 1.003, 1); /* 295 ms ζ .86 → 380 ms */
  --t-hoja: 460ms;      /* muelle crítico 0,343 s al 99 % [c21] */
  --t-menu: 375ms;
  --t-salir-menu: 170ms; /* los menús se funden en su sitio, sin encogerse [c20] */
  --ease-hoy: cubic-bezier(0.345, 0.31, 0.24, 1); /* «Hoy» / tocar un día: 430 ms [c24] */

  /* ── Material de cristal (Liquid Glass) [parte 1 §11]: claro [UIKit, Pauta] ── */
  --lg-fill: rgba(255,255,255,.6);
  --lg-edge: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.55), inset 0 0 0 .5px rgba(255,255,255,.5), inset 0 0 16px rgba(255,255,255,.35);
  --lg-drop: 0 0 0 .5px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.09);
  --lg-sel: rgba(0,0,0,.075);
  --lg-press: rgba(0,0,0,.06);
  --lg-blur: blur(10px) saturate(2) brightness(1.03);  /* WebKit no refracta: se imita con brillo + desenfoque + borde */

  /* ── Colores MEDIDOS en claro [claro-y-texto-normal.md §3.2] (PNG sRGB) ── */
  --fondo: #f3f2f8; --fondo-plano: #ffffff; --tarjeta: #ffffff; --texto: #000000;
  --texto-2: rgb(60 60 67 / .6); --texto-3: rgb(60 60 67 / .3); --subtitulo: #7f7f7f; --separador: #e8e8e8;
  --azul: #0088ff; --verde: #34c759; --rojo: #ff383c; --naranja: #ff8d28;
  --int-on: #34c85a; --int-off: #c5c5c7; --mando: #ffffff; --reg-vacio: #e5e5e5; --relleno-campo: #efeff1;
  --cristal: #fcfbff; --cristal-filo: #ffffff; --cristal-filo-2: #ffffff; --cristal-sombra: 0 2px 8px rgb(0 0 0 / .08);
  --cristal-icono: #19181c; --cristal-ejemplo: #737375;
  --pestana-elegida: #eae9ed; --pestana-tinte: #007ef5; --pestana-texto: #19181c;
  --seg-pista: #ededef; --seg-cap: #ffffff; --insignia: #fe393b;
  --resaltado: #d1d1d6;   /* [UIKit] sin medir en claro */
  --rampa: 255 255 255;   /* el velo bajo las barras aclara hacia blanco */
  --hoja-grande: #ffffff; --hoja-cristal: rgb(255 255 255 / .65);
  --velo: #000;           /* el velo de las hojas: opacidad 0,48 [c21] */
  --banda-rueda: rgb(118 118 128 / .12); --rueda-fuera: var(--texto-2); --rueda-dentro: var(--texto);   /* [UIKit]: Reloj solo existe en oscuro */
  --capsula-fila: var(--relleno-campo);
  --menu-cristal: rgb(250 250 252 / .86);   /* [UIKit] sin medir en claro */
  --lente-filo: rgb(0 0 0 / .16); --lente-sombra: rgb(255 255 255 / .9); --lente-fuera: 0 4px 10px rgb(0 0 0 / .14);   /* claro: filo oscuro, medias lunas blancas y sombra [cl02] */
  --cm-linea-alto: 2px;
  --barra-dura: rgb(243 242 248 / .75);   /* sin medir en claro */
  --lente-cuerpo: #f4f4f6;        /* sin medir en claro; en oscuro #3b3b3b [kit-vs-apple-controles §4] */
  --tabs-pulsada: #ffffff;        /* sin medir en claro */
  --capsula-buscar: var(--cristal); --capsula-buscar-on: #f2f1f6; --capsula-buscar-filtro: blur(2px);   /* claro sin medir: casi blanca */
  --aspa-on: #d1d1d6;             /* sin medir en claro */
  --cm-linea: rgb(0 0 0 / .1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --lg-fill: rgba(255,255,255,.13);   /* ≈13 % [medido] */
  --lg-edge: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.16), inset 0 0 0 .5px rgba(255,255,255,.06);
  --lg-drop: 0 0 0 .5px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.35);
  --lg-sel: rgba(255,255,255,.14); --lg-press: rgba(255,255,255,.1);
  --fondo: #000000; --fondo-plano: #000000; --tarjeta: #1c1c1e; --texto: #ffffff;
  --texto-2: rgb(235 235 245 / .6); --texto-3: rgb(235 235 245 / .3); --subtitulo: #8e8e90; --separador: #38373b;
  --azul: #0091ff; --verde: #30d158; --rojo: #ff4245; --naranja: #ff9230;
  --int-on: #30d159; --int-off: #5a595d; --mando: #ffffff; --reg-vacio: #333335; --relleno-campo: #1c1b1f;
  --cristal: #191919; --cristal-filo: #3a3a3a; --cristal-filo-2: #333; --cristal-sombra: 0 0 0 0 transparent;
  --cristal-icono: #f3f3f3; --cristal-ejemplo: #a3a3a3;
  --pestana-elegida: #3a3a3a; --pestana-tinte: #1fb0ff; --pestana-texto: #f4f4f6;
  --seg-pista: #1c1b1f; --seg-cap: #5b5a60; --insignia: #fe4346;
  --resaltado: #3a3a3c; --rampa: 0 0 0; --hoja-grande: #1a1a1c; --hoja-cristal: rgb(28 28 30 / .72);
  --banda-rueda: #131316; --rueda-fuera: #5f5f5f; --rueda-dentro: #bcbcbe; --capsula-fila: #2a2a2d; --menu-cristal: rgb(24 24 26 / .72); --lente-filo: rgb(255 255 255 / .55); --lente-sombra: #050505; --lente-fuera: 0 0 0 0 transparent;
  --lente-cuerpo: #3b3b3b; --tabs-pulsada: #282828; --capsula-buscar: rgb(255 255 255 / .09); --capsula-buscar-on: rgb(255 255 255 / .145); --capsula-buscar-filtro: blur(2px) brightness(.2); --aspa-on: #8f8f8f; --cm-linea: rgb(255 255 255 / .05); --barra-dura: rgb(14 14 14 / .75);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --lg-fill: rgba(255,255,255,.13);
  --lg-edge: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.16), inset 0 0 0 .5px rgba(255,255,255,.06);
  --lg-drop: 0 0 0 .5px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.35);
  --lg-sel: rgba(255,255,255,.14); --lg-press: rgba(255,255,255,.1);
  --fondo: #000000; --fondo-plano: #000000; --tarjeta: #1c1c1e; --texto: #ffffff;
  --texto-2: rgb(235 235 245 / .6); --texto-3: rgb(235 235 245 / .3); --subtitulo: #8e8e90; --separador: #38373b;
  --azul: #0091ff; --verde: #30d158; --rojo: #ff4245; --naranja: #ff9230;
  --int-on: #30d159; --int-off: #5a595d; --mando: #ffffff; --reg-vacio: #333335; --relleno-campo: #1c1b1f;
  --cristal: #191919; --cristal-filo: #3a3a3a; --cristal-filo-2: #333; --cristal-sombra: 0 0 0 0 transparent;
  --cristal-icono: #f3f3f3; --cristal-ejemplo: #a3a3a3;
  --pestana-elegida: #3a3a3a; --pestana-tinte: #1fb0ff; --pestana-texto: #f4f4f6;
  --seg-pista: #1c1b1f; --seg-cap: #5b5a60; --insignia: #fe4346;
  --resaltado: #3a3a3c; --rampa: 0 0 0; --hoja-grande: #1a1a1c; --hoja-cristal: rgb(28 28 30 / .72);
  --banda-rueda: #131316; --rueda-fuera: #5f5f5f; --rueda-dentro: #bcbcbe; --capsula-fila: #2a2a2d; --menu-cristal: rgb(24 24 26 / .72); --lente-filo: rgb(255 255 255 / .55); --lente-sombra: #050505; --lente-fuera: 0 0 0 0 transparent;
  --lente-cuerpo: #3b3b3b; --tabs-pulsada: #282828; --capsula-buscar: rgb(255 255 255 / .09); --capsula-buscar-on: rgb(255 255 255 / .145); --capsula-buscar-filtro: blur(2px) brightness(.2); --aspa-on: #8f8f8f; --cm-linea: rgb(255 255 255 / .05); --barra-dura: rgb(14 14 14 / .75);
  color-scheme: dark;
}

/* ── Base ── */
.ak { font: 17px/1.294 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: var(--texto); background: var(--fondo);
      -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
.ak *, .ak *::before, .ak *::after { -webkit-touch-callout: none; box-sizing: border-box; }
/* En el iPhone, mantener pulsado selecciona texto (asas azules) si no se quita: las apps de Apple no lo hacen [probado en iPhone] */
.ak { -webkit-user-select: none; user-select: none; }
.ak input, .ak textarea, .ak [contenteditable="true"], .ak .seleccionable { -webkit-user-select: text; user-select: text; }

/* Tamaño de texto: en el iPhone sigue el ajuste del sistema, como las apps de Apple (17 pt por defecto, 21 en el de Kevin).
   Todo lo que escala va en em; lo que Apple no escala (radios, iconos, interruptor, barra de pestañas, cápsulas) va en px
   [claro-y-texto-normal.md §2.3]. */
@supports (font: -apple-system-body) { @media (pointer: coarse) { .ak { font: -apple-system-body; font-family: -apple-system, system-ui, sans-serif; line-height: 1.294; } } }

/* Cristal: cápsulas de 36 pt, botones de 44 pt [medido] */
.lg { background: var(--lg-fill); -webkit-backdrop-filter: blur(10px) saturate(2) brightness(1.03); backdrop-filter: var(--lg-blur);
      box-shadow: var(--lg-edge), var(--lg-drop); color: var(--texto); border: 0; }
.lg-boton { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; }
.lg-capsula { height: 36px; border-radius: 18px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Velo de las hojas: aparece ENTERO de golpe, antes de que suba la hoja [c21]; la opacidad la lleva el JS */
.ak-velo { position: fixed; inset: 0; background: var(--velo); opacity: .48; z-index: 50; }
.ak-hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--tarjeta); color: var(--texto);
           border-radius: 38px 38px 0 0; /* radio ≈37–38 pt, borde de arriba en y = 47 [r08] */
           max-height: calc(100% - 47px); will-change: transform; }
.ak-hoja.posiciones { height: calc(100% - 47px); }   /* hoja de Mapas: siempre alta, se mueve entre posiciones */

/* Menús: nacen de su botón con --m-menu desde scale(.2); se funden en su sitio en 170 ms */
@keyframes ak-menu-entra { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.ak-menu { animation: ak-menu-entra var(--t-menu) var(--m-menu) both; }
.ak-menu.sale { animation: none; transition: opacity var(--t-salir-menu) linear; opacity: 0; }

/* ── Lista agrupada de Ajustes (iOS 26) [ajustes.md §0; claro-y-texto-normal.md §2.2, §3.1]. Normal 17 pt, xxL 21 pt. ── */
.ak-pagina { background: var(--fondo); min-height: 100%; padding: 0 0 40px; }
.ak-titulo-grande { font-weight: 700; font-size: calc(1em + 17px); line-height: 1.2; margin: 0; padding: 10px 20px 8px; position: relative; z-index: 21; pointer-events: none; }  /* 34 → 38; encima de la rampa de la barra */
.ak-titulo-pequeno { font-weight: 600; font-size: 1em; }
.ak-cabecera { font-weight: 600; font-size: 1em; color: var(--texto-2); padding: 32px 21px 9.7px; }   /* mismo tamaño que la fila, seminegrita, NO versalitas */
.ak-pie { font-size: calc(1em - 4px); line-height: 1.35; color: var(--texto-2); padding: 13px 21px 0; }   /* 13 → 17 */
.ak-grupo { margin: 0 20px; background: var(--tarjeta); border-radius: 26px; overflow: hidden; }   /* radio 26 fijo, esquina continua */
.ak-grupo + .ak-grupo, .ak-pie + .ak-grupo { margin-top: 34px; }                                   /* 34 fijo */
.ak-fila { position: relative; display: flex; align-items: center; gap: calc(.575em + 3.5px); padding: 0 20px 0 18px;  /* hueco icono-texto 13,3 → 15,6 */
           font: inherit; color: var(--texto); background: transparent; border: 0; width: 100%; text-align: left; text-decoration: none; }
.ak-fila.resaltada { background: var(--resaltado); }  /* sin transición, todo el ancho. Lo pone el JS: :active no se pinta en un toque rápido en Safari [A6] */
.ak-fila + .ak-fila::before { content: ""; position: absolute; top: 0; right: 20px; left: var(--sep-x, 20px); height: 1px;
                              background: var(--separador); transform: scaleY(.333); transform-origin: top; } /* empieza donde empieza el TEXTO */
.ak-grupo.con-iconos .ak-fila + .ak-fila::before { --sep-x: calc(47px + .575em + 3.5px); }
.ak-icono { flex: none; width: 29px; height: 29px; border-radius: 7.5px; display: grid; place-items: center; color: #fff; }  /* 29 fijo, r ≈ 26 %; iguales en claro y oscuro */
.ak-fila .texto { flex: 1; min-width: 0; padding: 16px 0; }      /* 22 + 32 = 54 a 17 pt; 27 + 32 = 59 a 21 pt [medido 53–54 / 59–60] */
.ak-fila .subtitulo { display: block; font-size: calc(1em - 4px); color: var(--subtitulo); }
.ak-fila .valor { color: var(--texto-2); }
.ak-fila .chevron { flex: none; width: calc(.55em - 3px); height: calc(.925em - 4.7px); color: var(--texto-3); }  /* 6,3×11 → 8,7×14,7 */
.ak-insignia { min-width: 28px; height: 28px; border-radius: 14px; background: var(--insignia); color: #fff; display: grid; place-items: center; margin-right: 6px; }
.ak-check { color: var(--azul); }   /* ✓ salta de fila en 1 fotograma [A12] */

/* Interruptor [A10; kit-vs-apple-controles §1]: pista 63×28, mando píldora 37×24, recorrido 22 pt; lente ×1,57 mientras hay dedo.
   translate, no transform: `scale` individual multiplicaría el recorrido. La lente sale en ≈85 ms y es casi transparente, sin desenfoque. */
.ak-sw { position: relative; flex: none; width: 63px; height: 28px; border-radius: 14px; border: 0; padding: 0; margin-right: -2px; background: var(--int-off); transition: background-color 220ms var(--crit); }
.ak-sw[aria-checked="true"] { background: var(--int-on); transition: background-color 400ms linear(0, .5 35.5%, .9 79%, 1); }
.ak-sw .mando { position: absolute; top: 2px; left: 2px; width: 37px; height: 24px; border-radius: 12px; background: #fff;
  transition: translate 420ms var(--crit), background-color 270ms ease-out, scale 270ms ease-out, box-shadow 270ms; }
.ak-sw[aria-checked="true"] .mando { translate: 22px 0; }
.ak-sw.lente .mando { scale: 1.57; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 .64px rgb(255 255 255 / .30), 0 5px 8px rgb(255 255 255 / .05);
  transition: scale 85ms linear 17ms, background-color 33ms linear, translate 420ms var(--crit); }

/* Regulador [A1]: pista 6 pt (#333335), relleno azul, el mismo mando 37×24 que se hace lente */
.ak-sw[aria-checked="true"].lente .mando::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1.27px 0 rgb(48 209 89 / .7), inset 0 -1.27px 0 rgb(48 209 89 / .85); }   /* filo teñido de la pista, ≈2 pt: imita, WebKit no refracta */
.ak-reg { position: relative; height: 43px; flex: 1; touch-action: none; }
.ak-reg .pista { position: absolute; left: 0; right: 0; top: 18.5px; height: 6px; border-radius: 3px; background: var(--reg-vacio); }
.ak-reg .relleno { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--azul); }
.ak-reg .mando { position: absolute; top: 9.5px; width: 37px; height: 24px; margin-left: -18.5px; border-radius: 12px; background: #fff;
  transition: scale 240ms ease-out, background-color 240ms ease-out, box-shadow 240ms; }
.ak-reg.activo .mando { scale: 1.57; background: rgb(255 255 255 / .085); box-shadow: inset 0 -.64px 0 rgb(255 255 255 / .30), inset .64px 0 0 rgb(255 255 255 / .22), inset -.64px 0 0 rgb(255 255 255 / .22), 0 5px 8px rgb(255 255 255 / .05);
  transition: scale 100ms linear 17ms, background-color 33ms linear; }   /* sin filo arriba: en Apple casi no se ve */

/* Buscador de abajo [A2] y botón ‹ de cristal [A6] */
.ak-capsula { position: fixed; left: 28px; right: 28px; bottom: calc(28px + env(safe-area-inset-bottom, 0px) * 0); height: 48px; border-radius: 24px; z-index: 40;
  display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--cristal-icono); background: var(--capsula-buscar); -webkit-backdrop-filter: blur(2px) brightness(.2); backdrop-filter: var(--capsula-buscar-filtro); box-shadow: inset 0 1px 0 var(--cristal-filo), inset 0 -1px 0 var(--cristal-filo-2), var(--cristal-sombra); }
.ak-capsula.pulsada { scale: 1.01; background: var(--capsula-buscar-on); transition: scale 80ms ease-out, background-color 80ms linear; }
.ak-buscando .ak-capsula { left: 12px; right: 72px; }   /* la anima AK.buscadorAbajo por WAAPI: una transición aquí la duplicaría */
.ak-capsula.enfocando input { caret-color: transparent; }
.ak-capsula.enfocando::after { content: ''; position: absolute; left: 42px; top: 13px; width: 2px; height: 22px; border-radius: 1px; background: var(--azul); }   /* cursor pintado hasta que llega el foco real [kit-vs-apple-flotantes §1.8] */
.ak-capsula input { flex: 1; min-width: 0; background: none; border: 0; color: inherit; font: inherit; font-size: max(1em, 16px); outline: none; }
.ak-aspa { position: fixed; right: 12px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%; z-index: 40; background: var(--cristal); color: var(--cristal-icono);
  box-shadow: inset 0 1px 0 var(--cristal-filo), inset 0 -1px 0 var(--cristal-filo-2), var(--cristal-sombra); border: 0; display: grid; place-items: center; }
.ak-aspa.pulsada { background: var(--aspa-on); filter: none; transition: background-color 130ms; }   /* se ilumina, no crece; dura ≈100 ms [A4.2 corregido] */
.ak-atras { position: fixed; left: 20px; top: env(safe-area-inset-top, 0px); z-index: 40; width: 44px; height: 44px; border-radius: 50%; background: var(--cristal); box-shadow: inset 0 1px 0 var(--cristal-filo), inset 0 -1px 0 var(--cristal-filo-2), var(--cristal-sombra); color: var(--cristal-icono); border: 0;
  display: grid; place-items: center; }   /* no va con la página: se queda fijo y se apaga en 80 ms al volver [kit-vs-apple-navegacion §2.3] */
.ak-atras.nace { animation: ak-vidrio 450ms ease-out both; }
.ak-atras svg { width: 14px; height: 24px; translate: -1.8px 0; stroke-width: 3; }
.ak-atras.nace svg { animation: ak-chevron 420ms 175ms cubic-bezier(.25,.8,.3,1) both; }
@keyframes ak-vidrio { from { background-color: transparent; box-shadow: none; } }
@keyframes ak-chevron { from { opacity: 0; filter: blur(3px); transform: translateX(-2px); } }
/* Oscurecimiento bajo las barras (sin desenfoque) [scroll-topes §4, ajustes §0.6] */
.ak-sombra-abajo { position: fixed; left: 0; right: 0; bottom: 0; height: 116px; pointer-events: none; z-index: 39;
  background: linear-gradient(to bottom, rgb(var(--rampa) / 0) 0%, rgb(var(--rampa) / .03) 10.3%, rgb(var(--rampa) / .10) 17.2%, rgb(var(--rampa) / .14) 24.1%, rgb(var(--rampa) / .24) 31%, rgb(var(--rampa) / .34) 37.9%, rgb(var(--rampa) / .45) 44.8%, rgb(var(--rampa) / .55) 51.7%, rgb(var(--rampa) / .66) 58.6%, rgb(var(--rampa) / .72) 65.5%, rgb(var(--rampa) / .79) 72.4%, rgb(var(--rampa) / .83) 79.3%); }
/* Arriba, alto 128 desde la pantalla. Solo apaga el contenido que pasa: el título grande va ENCIMA (Apple lo deja en 245–253 aunque pase por aquí). */
.ak-sombra-arriba, .ak-barra::before { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) - 47px); height: 128px; pointer-events: none; z-index: 39;
  background: linear-gradient(to top, rgb(var(--rampa) / 0) 0%, rgb(var(--rampa) / .03) 6.25%, rgb(var(--rampa) / .10) 12.5%, rgb(var(--rampa) / .17) 18.75%, rgb(var(--rampa) / .31) 25%, rgb(var(--rampa) / .45) 31.25%, rgb(var(--rampa) / .59) 37.5%, rgb(var(--rampa) / .72) 43.75%, rgb(var(--rampa) / .79) 50%, rgb(var(--rampa) / .86) 62.5%); }

/* Tecla de Calculadora [calculadora-atajos §1]: crece y se aclara al bajar el dedo; vuelve con rebote */
.ak-tecla { --c: #2d2d2d; --c-on: #6f6f6f; position: relative; width: 93px; height: 90px; border-radius: 45px; border: 0; color: #fff; font: 400 38px/1 -apple-system, system-ui;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: background-color 610ms var(--crit), filter 610ms var(--crit); touch-action: none; will-change: transform; }
.ak-tecla.fila1 { --c: #5e5e5e; --c-on: #a2a2a2; }
.ak-tecla.op { --c: #fd9000; --c-on: #fcc400; }
.ak-tecla.on { background-color: var(--c-on); transition-duration: 125ms, 0ms; }
.ak-tecla::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--lx,50%) var(--ly,50%), rgba(255,255,255,.055), transparent 60%); }

/* Menú contextual con vista previa [calculadora-atajos §2] */
.ak-cm-velo { position: fixed; inset: 0; background: rgb(15 25 55 / .2); z-index: 60; }            /* ×0,8 con un punto azul, sin desenfoque [kit-vs-apple-flotantes §3] */
.ak-cm-prev { position: fixed !important; margin: 0 !important; z-index: 61; pointer-events: auto; }
.ak-cm-menu { position: fixed; z-index: 62; width: 250px; max-width: calc(100vw - 40px); border-radius: 29px; overflow: hidden; padding: 10px 0 8px;
  background: var(--menu-cristal); -webkit-backdrop-filter: blur(8px) saturate(1.6); backdrop-filter: blur(8px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .12), 0 10px 30px rgb(0 0 0 / .35); }
.ak-cm-menu .grupo + .grupo { margin-top: 20px; position: relative; }                                    /* 20 pt entre grupos, con una línea en medio */
.ak-cm-menu .grupo + .grupo::before { content: ''; position: absolute; top: -10px; left: 24px; right: 24px; height: var(--cm-linea-alto); background: var(--cm-linea); }
.ak-cm-menu button { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: 51px; padding: 0 28px; border: 0;
  background: none; color: var(--texto); font: 400 1em -apple-system, system-ui; text-align: left; }
.ak-cm-menu button:active { background: var(--lg-press); }
.ak-cm-menu button.rojo { color: #f8516b; }

/* Hoja con posiciones (Mapas) [mapas.md §0, §7]: tarjeta de cristal con margen 8,3 en media, opaca #1a1a1c en grande */
.ak-hoja.posiciones { top: 0; bottom: auto; height: 100%; max-height: none; left: var(--margen, 0px); right: var(--margen, 0px);
  border-radius: var(--radio, 38px); background: color-mix(in srgb, var(--hoja-grande) calc(var(--opaco, 0) * 100%), var(--hoja-cristal)); -webkit-backdrop-filter: blur(30px) saturate(1.2); backdrop-filter: blur(30px) saturate(1.2);
  clip-path: inset(0 0 calc(100% - var(--alto-hoja, 100%)) 0 round var(--radio, 38px));   /* la silueta sube con la hoja: el clip la corta sin escalar */
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / calc(.18 * (1 - var(--opaco, 0)))); }
.ak-hoja .lg { background: rgb(255 255 255 / .032); }
.ak-hoja .tirador { width: 54px; height: 5px; border-radius: 2.5px; margin: 4.7px auto 0; background: rgb(255 255 255 / .30); }

/* Rueda [reloj.md §1.7; kit-vs-apple-controles §3]: física propia en JS, sin scroll nativo */
.ak-rueda { position: relative; width: 105px; height: 292px; touch-action: none; overflow: hidden; outline: none; }
.ak-rueda .tambor { position: absolute; inset: 0; pointer-events: none; }
.ak-rueda .tambor > b { position: absolute; left: 0; right: 0; top: 146px; height: 32px; margin-top: -16px; display: grid; place-items: center;
  font: 400 22px/1 -apple-system, system-ui; font-variant-numeric: tabular-nums; }
.ak-rueda.con-etiqueta .tambor > b { justify-items: end; padding-right: calc(100% - 44px); }
.ak-rueda .eti { position: absolute; left: 50px; top: 146px; translate: 0 -50%; color: var(--texto); font: 600 17px -apple-system, system-ui; pointer-events: none; }
.ak-rueda .gris > b { color: var(--rueda-fuera); }
.ak-rueda .claro { clip-path: inset(129px 0 129px 0); }
.ak-rueda .claro > b { color: var(--rueda-dentro); }
.ak-banda { position: absolute; height: 34px; border-radius: 17px; background: var(--banda-rueda); }   /* una sola, detrás de las ruedas */

/* Barra de pestañas con lente [reloj.md §2.7] */
.ak-tabs { position: fixed; left: 20.8px; right: 20.8px; bottom: 21.2px; width: fit-content; max-width: calc(100% - 41.6px); margin-inline: auto; height: 62px; z-index: 40;
  /* La barra mide lo que sus pestañas [medido: Reloj 4 → 386, Atajos 3 → ≈335, Salud 2 → 188]: no ocupa todo el ancho con pocas. */
  border-radius: 31px; background: color-mix(in srgb, var(--cristal) 94%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--cristal-filo), inset 0 -1px 0 var(--cristal-filo-2), var(--cristal-sombra); touch-action: none; transform-origin: 50% 50%; }
.ak-tabs { transition: background-color 400ms ease-out 120ms; }
.ak-tabs.pulsada { background: var(--tabs-pulsada); transition: background-color 150ms linear; }
.ak-tabs .ventana { position: absolute; inset: 0; pointer-events: none; }
.ak-tabs .capsula { position: absolute; top: 4px; height: 54px; border-radius: 27px; background: var(--pestana-elegida); }
.ak-tabs .fila { position: relative; display: flex; height: 100%; padding: 0 4px; pointer-events: none; }
.ak-tabs .fila.tinta { position: absolute; inset: 0; }
/* Con 5 pestañas, 5 × 84 no cabe en un iPhone: la barra ocupa todo el ancho y lo reparten a partes iguales [PropAnalytix Socios, 15 nov, sin medir] */
.ak-tabs:has(> .fila > :nth-child(5)) { width: auto; }
.ak-tabs .fila:has(> :nth-child(5)) > * { flex: 1 1 0; min-width: 0; padding: 0 4px; }
.ak-tabs .fila > * { flex: 1 1 auto; min-width: 84px; padding: 0 14px; height: 54px; margin-top: 4px; display: grid; place-items: center; align-content: center; gap: 1px;
  font: 500 10px -apple-system, system-ui; color: var(--pestana-texto); background: none; border: 0; white-space: nowrap; }
.ak-tabs .fila.tinta > * { color: var(--tinta-pestana, var(--pestana-tinte)); }   /* --tinta-pestana: el color de marca de la app */
.ak-tabs .lente { position: absolute; border-radius: 999px; opacity: 0; pointer-events: none; background: var(--lente-cuerpo);
  box-shadow: inset 0 0 0 1px var(--lente-filo), inset 0 6px 1px -1px var(--lente-sombra), inset 0 -6px 1px -1px var(--lente-sombra), var(--lente-fuera); }   /* banda casi negra de ≈5 pt; sin los reflejos de color de Apple */

/* Control segmentado [salud.md H3] */
.ak-seg { position: relative; display: flex; height: 30px; border-radius: 15px; background: var(--seg-pista); padding: 0; }
.ak-seg .cap { position: absolute; left: 0; top: 2.5px; height: 25.5px; border-radius: 13px; background: var(--seg-cap); }
.ak-seg button { position: relative; flex: 1; border: 0; background: none; color: var(--texto); font: 500 13px -apple-system, system-ui; }

/* Buscar de Salud: píldora y círculo */
.ak-vidrio { position: fixed; z-index: 40; bottom: 21px; height: 62px; border-radius: 999px; background: var(--cristal); transition: height 280ms var(--m-menu), bottom 280ms var(--m-menu);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(255 255 255 / .16); }
.ak-modo-buscar .ak-vidrio { height: 48px; bottom: 28px; }


/* Barra de título que se pliega [S1, scroll-topes.md]: el pequeño va por TIEMPO, no por desplazamiento.
   Lleva su propia rampa detrás de sus botones: el contenido se apaga al pasar por debajo, ella no. */
.ak-barra { position: sticky; top: 0;   /* 0, no la zona segura: sticky ya respeta el padding del scroller; sumarla la baja encima del título */ z-index: 20; height: 44px; display: flex; align-items: center; justify-content: center; }
.ak-barra::before { content: ''; position: absolute; top: -47px; z-index: -1; }
/* Fondo de color arriba del todo (Resumen de Salud): sin rampa en reposo [barra-de-estado.md]. Quitar la clase al desplazar. */
.ak-barra.sin-rampa::before { content: none; }
/* Opcional. Banda con corte [salud.md §0.45]: captura de otro iPhone; en el de las medidas no sale. Cuándo aparece, sin medir: va con .plegada, de golpe. */
.ak-barra.dura.plegada::before { height: 115px; background: var(--barra-dura); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 .33px 0 rgb(127 127 127 / .12); }
.ak-barra .ak-titulo-pequeno { opacity: 0; translate: 0 14px; filter: blur(3px); /* sale despacio [kit-vs-apple-navegacion §5] */
  transition: opacity 500ms linear(0, .079, .19, .345, .47, .593, .68, .749, .794, .83, .866, .89, .909, .929, .941, .955, .964, .972, .98, .986, 1), translate 480ms cubic-bezier(.2,.6,.3,1), filter 480ms cubic-bezier(.2,.6,.3,1); }
.ak-barra.plegada .ak-titulo-pequeno { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity 450ms var(--crit), translate 450ms var(--crit), filter 450ms var(--crit); }
.ak-barra .izq { position: absolute; left: 20px; top: 0; } .ak-barra .der { position: absolute; right: 20px; top: 0; }

/* Botones redondos y números de Reloj [reloj.md §3]: discos planos sin aro, disco = color del texto al 20 % sobre negro.
   Pulsado: opacidad .75 en 1 fotograma, sin escala ni transición. Actúan al soltar. Reloj es siempre oscura. */
.ak-disco { --c: #ffffff; flex: none; width: calc(4.53em + 3px); height: calc(4.53em + 3px); border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  font: inherit; color: var(--c); background: color-mix(in srgb, var(--c) 20%, #000); }   /* 80 → 99 */
.ak-disco:active { opacity: .75; }
.ak-disco.verde { --c: #30d159; } .ak-disco.rojo { --c: #fe4346; } .ak-disco.apagado { --c: #9798a0; background: #1c1c1e; }
.ak-num-grande { font-size: 89px; font-weight: 100; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1; }
.ak-num-fila { font-size: 60px; font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1; }   /* medido wght ≈180; no sigue el tamaño de texto */

/* Fila deslizable [R1–R3]: la fila pasa a cápsula gris y las píldoras nacen a su derecha */
.ak-deslizable { position: relative; overflow: hidden; }
.ak-deslizable .cara { position: relative; will-change: transform; background: var(--tarjeta); transition: background-color 500ms linear(0, .19 10%, .43 23%, .55 30%, .67 40%, .76 50%, .83 60%, .9 67%, .95 87%, 1); }
.ak-deslizable .cara.moviendo { background: var(--capsula-fila); border-radius: 0 999px 999px 0; }
.ak-pildora { position: absolute; right: 10px; top: 4px; bottom: 4px; border: 0; border-radius: 999px; padding: 0 13.5px; display: flex; align-items: center; gap: 8px;
  background: var(--rojo); color: #fff; font: inherit; font-weight: 500; white-space: nowrap; visibility: hidden; }
/* Carrusel horizontal, solo donde Apple lo usa [Recientes de Mapas: tarjetas de 396 con paso de 404, margen de 16, m02].
   Scroll nativo; el encaje es [UIKit], sin medir. */
.ak-carrusel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ak-carrusel::-webkit-scrollbar { display: none; }
.ak-carrusel > * { flex: none; width: calc(100% - 32px); scroll-snap-align: start; }

/*@@PIEZAS_4NOV_CSS@@*/
