/* ═══════════════════════════════════════════════
   IronQx — Tipografía de marca
   La letra extendida del logo (Michroma) en el wordmark «IRONQX» y en los
   títulos clave de cada pantalla. Es casi el doble de ancha que Barlow
   Condensed, así que cada título baja de tamaño y gana aire entre letras.
   Las cifras, los botones y el texto corrido siguen en Barlow / Inter.
   Se carga después de las demás hojas: mismos selectores, gana por orden.
═══════════════════════════════════════════════ */
:root { --iq-brand: "Michroma", "Inter", sans-serif; }

/* ── Wordmark ─────────────────────────────────── */
#sp-wordmark { gap: 0; }
#sp-wm-iron, #sp-wm-qx { font-family: var(--iq-brand); font-weight: 400; font-synthesis: none; font-size: 30px; letter-spacing: .2em; line-height: 1.15; }
#sp-wordmark { margin-right: -.2em; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
#sp-wm-iron { background-image: var(--iq-platinum); }
#sp-wm-qx { background-image: var(--iq-champagne); }
#sp-wm-qx { margin-left: 0; }
#sp-wordmark .sp-wm-m { padding-left: 0; padding-right: 0; }
#sp-tag { margin-top: 14px; font-size: 8.5px; font-weight: 500; letter-spacing: .52em; margin-right: -.52em; color: rgba(226,208,160,.78); }
#sp-brand-rule { margin-top: 16px; width: 150px; }

.tb-wm { font-family: var(--iq-brand); font-weight: 400; font-synthesis: none; font-size: 13px; letter-spacing: .14em; line-height: 1.2; }
@media (max-width: 380px) { .tb-wm { font-size: 11px; letter-spacing: .1em; } }

/* Login: marca con acabado de lujo. Símbolo contenido con un brillo que lo cruza cada pocos
   segundos (solo transform: GPU), wordmark en platino y champán, eslogan fino y un filete dorado
   con rombo. Mucho aire entre piezas: lo caro se ve tranquilo. */
:root { --iq-platinum: linear-gradient(180deg, #ffffff 0%, #eef1f5 38%, #b9c1cc 62%, #f4f6f9 100%);
        --iq-champagne: linear-gradient(180deg, #fbefc4 0%, #e2c27a 36%, #b88d3e 64%, #f0d896 100%); }
.login-mark { position: relative; width: 128px; margin-bottom: 26px; animation: lf-in .8s .05s cubic-bezier(.22,1,.36,1) both, logo-float 6s 1.6s ease-in-out infinite; }
.login-mark::before { content: ""; position: absolute; left: -30%; right: -30%; top: 35%; bottom: -45%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,168,76,.22), transparent); filter: blur(6px); pointer-events: none; }
.login-logo-full.is-symbol { position: relative; width: 100%; margin: 0; animation: none; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(201,168,76,.18)); }
.login-mark-shine { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url(../icons/logo-symbol-splash.webp) 0 0/100% 100% no-repeat; mask: url(../icons/logo-symbol-splash.webp) 0 0/100% 100% no-repeat; }
.login-mark-shine::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 38%; background: linear-gradient(105deg, transparent, rgba(255,250,232,.75) 50%, transparent); transform: translateX(-140%); animation: iq-shine 6.5s 1.4s cubic-bezier(.45,0,.2,1) infinite; will-change: transform; }
@keyframes iq-shine { 0% { transform: translateX(-140%); } 22%, 100% { transform: translateX(300%); } }
.login-wm { font: 400 27px/1.1 var(--iq-brand); font-synthesis: none; letter-spacing: .2em; margin-right: -.2em; animation: lf-in .7s .2s cubic-bezier(.22,1,.36,1) both; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.login-wm span, .login-wm b { font-weight: 400; background: var(--iq-platinum); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-wm b { background-image: var(--iq-champagne); }
.login-brand-slogan { margin-top: 14px; font: 500 8.5px/1 "Inter", sans-serif; letter-spacing: .52em; margin-right: -.52em; color: rgba(226,208,160,.78); animation: lf-in .6s .35s ease both; }
.login-brand-rule { position: relative; display: block; width: 150px; height: 9px; margin-top: 16px; animation: lf-in .6s .45s ease both; }
.login-brand-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,.85) 30%, transparent 46%, transparent 54%, rgba(201,168,76,.85) 70%, transparent); }
.login-brand-rule b { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border: 1px solid rgba(232,204,130,.95); transform: translateY(1px) rotate(45deg); }
@media (max-height: 680px) { .login-mark { width: 96px; margin-bottom: 14px; } .login-wm { font-size: 22px; } .login-brand-rule { margin-top: 10px; } }
@media (min-height: 800px) { .login-mark { width: 140px; } .login-wm { font-size: 29px; } }
@media (prefers-reduced-motion: reduce) { .login-mark, .login-mark-shine::before { animation: none; } }

/* ── Títulos clave ────────────────────────────── */
.rnw-title strong, .rn-hero h2, .rn-entry-head h2, .rn-bhead h2, .rn-head h3, .rn-cal-head strong, .rn-day-body strong,
.wp-done h2, .wp-sheet-card h3, .wps-head strong,
.settings-title, #scr-logros .logros-topbar-title, .drnotes-title, .ptd-builder-title, #atp-cfg .admin-cfg-title,
#scr-plan .plx-title, #scr-plan #plan-wrap .plx-title, .dr-cp-title, .tl-head-copy h2, .tl-dayhead h3, .tl-empty h3, .tl-entry-body h3,
.fx-title, .ptpush-title, .report-hero-title, .ptd-plan-title, .ti-head h2 {
  font-family: var(--iq-brand); font-weight: 400; font-synthesis: none; letter-spacing: .06em; line-height: 1.2;
}
/* Ojo: nombres de personas (saludo de Inicio, ficha, perfil, cabecera del paciente) NO van con la
   letra de marca: son largos y ella es el doble de ancha. Y un título con una regla más específica
   (#scr-… #…) necesita aquí su mismo selector, o se queda con el tamaño de Barlow. */
#ptd-hd-name { font-family: "Barlow Condensed", sans-serif; font-weight: 900; letter-spacing: 2px; }
.rn-hero h2 { font-size: 20px; }
.rn-entry-head h2 { font-size: 19px; }
.rn-bhead h2, .wp-done h2, .settings-title, #scr-logros .logros-topbar-title, .drnotes-title, #scr-plan #plan-wrap .plx-title { font-size: 18px; }
.ptd-builder-title, #atp-cfg .admin-cfg-title, #scr-plan .plx-title { font-size: 17px; }
.dr-cp-title, .tl-head-copy h2, .tl-dayhead h3, .tl-empty h3, .fx-title, .ptpush-title, .report-hero-title, .ptd-plan-title, .ti-head h2, .wp-sheet-card h3 { font-size: 16px; }
.tl-entry-body h3, .rn-head h3 { font-size: 15px; }
.rn-day-body strong, .wps-head strong { font-size: 14px; }
.rnw-title strong, .rn-cal-head strong { font-size: 13px; letter-spacing: .08em; }
