/* Clínica Genia — escala de letra en el celular, para el panel de
   programación y el portal médico (y la referencia para la app).

   Las páginas traen casi todos sus tamaños escritos en cada elemento
   (style="font-size:14.5px"). En vez de tocar cientos de líneas, aquí se
   baja toda la escala de una vez: en la página ya armada esos estilos se
   leen como «font-size: 14.5px» y un selector de atributo con !important
   gana sobre ellos. Para cambiar la escala, se cambia aquí.

   Criterio: el texto principal baja un punto, el secundario medio punto y
   los títulos un poco más; nada por debajo de 12 px. Los campos de texto
   quedan en 16 px a propósito: con menos, el iPhone hace zoom al tocarlos. */
@media (max-width: 760px) {
  /* Títulos */
  h1, [style*="clamp(24px"], [style*="clamp(22px"] { font-size: 21px !important; }
  [style*="font-size: 26px"], [style*="font-size: 23px"] { font-size: 20px !important; }
  [style*="font-size: 22px"], [style*="font-size: 21px"] { font-size: 19px !important; }
  [style*="font-size: 18px"] { font-size: 16px !important; }
  [style*="font-size: 17px"] { font-size: 15.5px !important; }

  /* Texto principal */
  [style*="font-size: 16.5px"], [style*="font-size: 16px"] { font-size: 15px !important; }
  [style*="font-size: 15.5px"] { font-size: 14.5px !important; }
  [style*="font-size: 15px"] { font-size: 14px !important; }
  [style*="font-size: 14.5px"] { font-size: 13.5px !important; }
  [style*="font-size: 14px"] { font-size: 13px !important; }

  /* Texto secundario */
  [style*="font-size: 13.5px"] { font-size: 13px !important; }
  [style*="font-size: 13px"] { font-size: 12.5px !important; }
  [style*="font-size: 12.5px"] { font-size: 12px !important; }

  /* Clases compartidas por las dos páginas */
  .rx-btn { font-size: 14.5px !important; padding: 12px 20px !important; }
  .rx-ghost { font-size: 14px !important; }
  .rx-tag, .rx-badge { font-size: 12px !important; }
  .rx-field label { font-size: 12.5px !important; }
  .rx-field input, .rx-field select, .rx-field textarea { font-size: 16px !important; padding: 10px 12px !important; }
  .rx-chip, .rx-segbtn, .rx-ct-btn { font-size: 13px !important; }
  .rx-topbar-t { font-size: 14.5px !important; }
  .rx-li, .rx-nota, .rx-pref small, .rx-atencion small { font-size: 13px !important; }
  .rx-pref b, .rx-atencion b, .rx-ag-item b, .rx-menu-item { font-size: 14px !important; }
  .rx-ag-item small, .rx-menu-quien span { font-size: 12.5px !important; }
  .rx-ag h3, .rx-bloque-t { font-size: 13px !important; }
  .rx-avisos-cab h2, .rx-perfil-sec h2 { font-size: 16px !important; }
  .rx-avisos-cab p { font-size: 13px !important; }
  .rx-ct-nombre { font-size: 14.5px !important; }
  .rx-ct-dato, .rx-check small { font-size: 13px !important; }
  .rx-check label { font-size: 13.5px !important; }
  .rx-datos dd { font-size: 14.5px !important; }
  .rx-eyebrow { font-size: 13px !important; }
  .rx-day { font-size: 14px !important; }
  .rx-slot { font-size: 13px !important; }
}
