/* ==========================================================================
   LOOP · estilos.css
   Única hoja de estilos del prototipo. Sin estilos inline.
   Índice
   01. Tokens               08. Listas y tarjetas      15. Chat
   02. Base                 09. Ilustraciones          16. Menú, perfil, ajustes
   03. Escenario / panel    10. Detalle y ticket QR    17. Operario
   04. Dispositivo          11. Formularios            18. Escáner y feedback
   05. Barra inferior       12. Calendario y turnos    19. Splash / onboarding / acceso
   06. Vistas y barra sup.  13. Hojas y diálogos       20. Animaciones
   07. Botones y chips      14. Toast y loader         21. Responsive / PWA
   ========================================================================== */

/* 01. Tokens -------------------------------------------------------------- */
:root {
  --blue: #2F55D4;
  --blue-600: #2445B8;
  --blue-700: #1C3794;
  --blue-100: #D7E1FF;
  --blue-50: #EAF0FF;
  --coral: #FF7A59;
  --coral-600: #E9603F;
  --coral-50: #FFEEE8;
  --ink: #14213D;
  --ink-2: #47536E;
  --ink-3: #8A93A8;
  --line: #E3E7F0;
  --line-2: #EEF1F7;
  --bg: #FFFFFF;
  --bg-2: #F5F7FC;
  --ok: #17905F;
  --ok-50: #E3F5EC;
  --warn: #B87800;
  --warn-50: #FFF4D6;
  --danger: #D93C40;
  --danger-50: #FDEBEC;

  --stage: #1B1D22;
  --stage-2: #24272E;
  --stage-3: #30343D;
  --stage-ink: #F2F4F8;
  --stage-ink-2: #9BA3B4;

  --flow-yellow: #F7D54A;
  --flow-blue: #6E86E6;
  --flow-green: #33C47E;
  --flow-pink: #F59AD6;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06), 0 1px 1px rgba(20, 33, 61, .04);
  --shadow: 0 6px 18px rgba(20, 33, 61, .08), 0 2px 4px rgba(20, 33, 61, .05);
  --shadow-lg: 0 18px 50px rgba(20, 33, 61, .18);
  --shadow-blue: 0 8px 20px rgba(47, 85, 212, .32);

  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --pad: 20px;
  --device-w: 390px;
  --device-h: 844px;
  --tabbar-h: 74px;
  --status-h: 50px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* 02. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(47, 85, 212, .45); outline-offset: 2px; }
b, strong { font-weight: 650; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon--mark { stroke-width: 4; }
.icon--muted { color: var(--ink-3); width: 18px; height: 18px; }
.noscript { color: #fff; padding: 24px; }

/* 03. Escenario / panel de flujos ----------------------------------------- */
.stage {
  height: 100%;
  display: grid;
  grid-template-columns: 340px 1fr;
  background:
    radial-gradient(circle at 70% 20%, rgba(47, 85, 212, .22), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(255, 122, 89, .12), transparent 40%),
    var(--stage);
}
.flows {
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--stage-2);
  border-right: 1px solid var(--stage-3);
  color: var(--stage-ink);
  min-height: 0;
}
.flows__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px 14px;
}
.flows__brand { display: flex; align-items: center; gap: 12px; }
.flows__logo {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
}
.flows__logo .icon { width: 28px; height: 28px; }
.flows__title { font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.flows__subtitle { color: var(--stage-ink-2); font-size: 12.5px; }
.flows__close { display: none; color: var(--stage-ink-2); padding: 6px; border-radius: 8px; }
.flows__session {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 22px 10px; padding: 10px 12px;
  background: var(--stage); border-radius: 12px; font-size: 13px;
}
.flows__chip {
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--stage-3); color: var(--stage-ink); font-weight: 600; font-size: 11.5px;
}
.flows__chip--estudiante { background: var(--blue); }
.flows__chip--operario { background: var(--coral); color: var(--ink); }
.flows__who { color: var(--stage-ink-2); }
.flows__list {
  flex: 1; overflow-y: auto; padding: 4px 14px 16px;
  scrollbar-width: thin; scrollbar-color: var(--stage-3) transparent;
}
.flow { padding: 10px 8px 6px; }
.flow__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--stage-ink-2); margin-bottom: 6px;
}
.flow__num {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; color: var(--ink);
}
.flow--yellow .flow__num, .flow--yellow .flow__step.is-active .flow__dot { background: var(--flow-yellow); }
.flow--blue .flow__num, .flow--blue .flow__step.is-active .flow__dot { background: var(--flow-blue); }
.flow--green .flow__num, .flow--green .flow__step.is-active .flow__dot { background: var(--flow-green); }
.flow--pink .flow__num, .flow--pink .flow__step.is-active .flow__dot { background: var(--flow-pink); }
.flow__steps { position: relative; padding-left: 9px; }
.flow__steps::before {
  content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px;
  width: 1px; background: var(--stage-3);
}
.flow__step {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 7px 10px 7px 0; border-radius: 9px;
  font-size: 13.5px; color: var(--stage-ink);
  transition: background .15s, color .15s;
}
.flow__step:hover { background: var(--stage-3); }
.flow__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--stage-2); border: 2px solid var(--stage-ink-2);
  position: relative; z-index: 1;
}
.flow__step.is-active { background: var(--stage-3); font-weight: 650; }
.flow__step.is-active .flow__dot { border-color: transparent; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.flows__foot { padding: 14px 22px 20px; border-top: 1px solid var(--stage-3); }
.flows__reset {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--stage-ink); font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; background: var(--stage-3);
}
.flows__reset .icon { width: 17px; height: 17px; }
.flows__hint { margin-top: 10px; font-size: 11.5px; color: var(--stage-ink-2); line-height: 1.5; }
.flows__hint b { color: var(--stage-ink); font-weight: 600; }
.flows-fab { display: none; }

/* 04. Dispositivo --------------------------------------------------------- */
.device {
  display: grid; place-items: center;
  min-height: 0; padding: 24px;
  overflow: auto;
}
.device__frame {
  position: relative;
  width: var(--device-w); height: min(var(--device-h), calc(100vh - 48px));
  display: flex; flex-direction: column;
  background: var(--bg);
  border-radius: 52px;
  overflow: hidden;
  box-shadow: 0 0 0 11px #0B0C0F, 0 0 0 13px #3A3E47, var(--shadow-lg), 0 40px 80px rgba(0, 0, 0, .45);
  isolation: isolate;
}
.statusbar {
  position: absolute; z-index: 6; left: 0; right: 0; top: 0;
  height: var(--status-h); pointer-events: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 0 36px;
  font-size: 15px; font-weight: 650; letter-spacing: -.01em;
  color: var(--ink);
  transition: color .2s, background .2s;
}
.statusbar__island {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
  width: 118px; height: 33px; border-radius: 20px; background: #000;
}
.statusbar__icons { display: flex; align-items: center; gap: 7px; }
.statusbar__signal { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.statusbar__signal i { width: 3px; border-radius: 1px; background: currentColor; }
.statusbar__signal i:nth-child(1) { height: 4px; }
.statusbar__signal i:nth-child(2) { height: 6px; }
.statusbar__signal i:nth-child(3) { height: 8.5px; }
.statusbar__signal i:nth-child(4) { height: 11px; }
.statusbar__battery {
  position: relative; width: 25px; height: 12px; border-radius: 4px;
  border: 1.5px solid currentColor; padding: 1.5px; opacity: .9;
}
.statusbar__battery::after {
  content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px;
  border-radius: 0 1px 1px 0; background: currentColor;
}
.statusbar__battery i { display: block; height: 100%; width: 78%; border-radius: 1.5px; background: currentColor; }
.device.is-status-light .statusbar { color: #fff; }
.device.is-dark .device__frame { background: #0E1220; }

.screen { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.screen.is-busy::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 9;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: busy 1s linear infinite;
}


/* 05. Barra inferior ------------------------------------------------------ */
.tabbar {
  position: relative; z-index: 5;
  flex: none; height: calc(var(--tabbar-h) + 10px);
  display: flex; align-items: flex-start; justify-content: space-around;
  padding: 8px 8px 0;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
}
.tabbar[hidden] { display: none; }
.tabbar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0; color: var(--ink-3); font-size: 10.5px; font-weight: 600;
  transition: color .15s;
}
.tabbar__icon { position: relative; display: grid; place-items: center; width: 44px; height: 30px; border-radius: 15px; transition: background .2s; }
.tabbar__item.is-active { color: var(--blue); }
.tabbar__item.is-active .tabbar__icon { background: var(--blue-50); }
.tabbar__item--main .tabbar__icon {
  width: 52px; height: 52px; border-radius: 50%; margin-top: -18px;
  background: var(--blue); color: #fff; box-shadow: var(--shadow-blue);
}
.tabbar__item--main .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.tabbar__item--main.is-active .tabbar__icon { background: var(--blue-600); }
.tabbar__item--main .tabbar__label { margin-top: -2px; }
.tabbar__badge {
  position: absolute; top: -3px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--coral); color: #fff; font-size: 10px; font-weight: 700;
  border: 2px solid #fff;
}

/* 06. Vistas y barra superior --------------------------------------------- */
.view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding-top: var(--status-h);
  background: var(--bg);
}
.view__body {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 8px var(--pad) 24px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.view__body::-webkit-scrollbar { display: none; }
.view__body--tabbed { padding-top: 10px; }
.view__body--flush { padding: 0 0 24px; }
.view__body--center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px 32px;
}
.view__footer {
  flex: none; display: flex; flex-direction: column; gap: 8px;
  padding: 12px var(--pad) calc(18px + var(--safe-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line-2);
}
.view__footer--plain { border-top: 0; }
.view__footer--dark { background: transparent; border-top: 0; }

.appbar {
  flex: none; position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 4px 12px;
  background: var(--bg);
}
.appbar__btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink); flex: none; transition: background .15s;
}
.appbar__btn:hover { background: var(--bg-2); }
.appbar__title {
  flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbar__btn + .appbar__title { margin-left: -2px; }
.appbar > .appbar__title:first-child { padding-left: 8px; font-size: 24px; letter-spacing: -.02em; }
.appbar__spacer { width: 40px; flex: none; }
.appbar__titles { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.appbar__subtitle { font-size: 12.5px; color: var(--ink-3); }
.appbar--clear { background: transparent; }
.appbar--dark { background: transparent; color: #fff; }
.appbar--dark .appbar__btn { color: #fff; }
.appbar--dark .appbar__btn:hover { background: rgba(255, 255, 255, .1); }
.appbar--search { gap: 4px; padding-right: var(--pad); }
.appbar--chat { border-bottom: 1px solid var(--line-2); gap: 10px; }

.screen-title { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; margin: 6px 0 18px; }
.screen-title--sm { font-size: 20px; margin-bottom: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.section-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.section-head .section-title { margin: 0; }
.view__body > .section-title { margin: 20px 0 12px; }
.section-count {
  min-width: 26px; height: 22px; padding: 0 8px; border-radius: 11px;
  display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2);
  font-size: 12px; font-weight: 700;
}
.label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); margin: 22px 0 10px;
}
.lead { color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.muted { color: var(--ink-3); font-size: 14px; }
.hint { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--warn); }
.hint .icon { width: 16px; height: 16px; }

/* 07. Botones, enlaces y chips -------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 650; font-size: 15.5px; letter-spacing: -.005em;
  background: var(--bg-2); color: var(--ink);
  transition: background .15s, transform .12s, box-shadow .2s, opacity .2s, color .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { background: var(--line); color: var(--ink-3); box-shadow: none; }
.btn .icon { width: 20px; height: 20px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn--sm .icon { width: 17px; height: 17px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover:not(:disabled) { background: var(--blue-600); }
.btn--soft { background: var(--blue-50); color: var(--blue); }
.btn--soft:hover:not(:disabled) { background: var(--blue-100); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover:not(:disabled) { background: var(--bg-2); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger-ghost { background: transparent; color: var(--danger); }
.btn--danger-ghost:hover { background: var(--danger-50); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn--soft.is-loading::after, .btn--ghost.is-loading::after { border-color: var(--blue-100); border-top-color: var(--blue); }

.link { color: var(--blue); font-weight: 600; font-size: 14px; padding: 4px 0; }
.link:hover { text-decoration: underline; }
.link--right { align-self: flex-end; font-size: 13.5px; margin: -4px 0 6px; }
.link--strong { font-weight: 700; }

.iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; background: var(--bg-2); color: var(--ink); flex: none;
}
.iconbtn--sm { width: 34px; height: 34px; border-radius: 10px; }
.iconbtn--sm .icon { width: 18px; height: 18px; }
.iconbtn:disabled { opacity: .35; }
.iconbtn__dot {
  position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--coral); border: 2px solid var(--bg-2);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 4px;
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--pad { padding: 4px var(--pad) 10px; flex: none; }
.chip {
  flex: none; height: 36px; padding: 0 15px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.chip:hover { background: var(--line-2); }
.chip.is-selected { background: var(--ink); color: #fff; }
.chip--outline { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.chip--outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); background: var(--bg); }
.chip--outline.is-selected { background: var(--blue); color: #fff; box-shadow: none; }
.chips--segmented {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 4px; border-radius: var(--radius-sm); background: var(--bg-2);
}
.chips--segmented .chip { justify-content: center; background: transparent; box-shadow: none; color: var(--ink-2); border-radius: 9px; }
.chips--segmented .chip.is-selected { background: var(--bg); color: var(--blue); box-shadow: var(--shadow-sm); }

.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.badge--ok { background: var(--ok-50); color: var(--ok); }
.badge--blue { background: var(--blue-50); color: var(--blue); }
.badge--warn { background: var(--warn-50); color: var(--warn); }
.badge--neutral { background: var(--bg-2); color: var(--ink-2); }
.badge--danger { background: var(--danger-50); color: var(--danger); }
.badge--coral { background: var(--coral-50); color: var(--coral-600); }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 6px; background: var(--bg-2); color: var(--ink-2);
  font-size: 11.5px; font-weight: 600;
}
.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: grid; place-items: center; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700;
}

/* 08. Listas y tarjetas --------------------------------------------------- */
.hello { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.hello__hi { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.hello__title { font-size: 23px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }

.searchbar {
  width: 100%; height: 50px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; margin-bottom: 14px;
  border-radius: var(--radius-sm); background: var(--bg-2);
  color: var(--ink-3); font-size: 15px; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.searchbar:hover { box-shadow: inset 0 0 0 1.5px var(--blue-100); }
.searchfield {
  flex: 1; height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 6px 0 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink-3);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s;
}
.searchfield:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--bg); }
.searchfield .icon { width: 19px; height: 19px; }
.searchfield__input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 15px;
}
.searchfield__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.searchfield__input::placeholder { color: var(--ink-3); }
.searchfield__clear {
  width: 30px; height: 30px; border-radius: 50%; display: none; place-items: center; color: var(--ink-3);
}
.searchfield.has-value .searchfield__clear { display: grid; }
.searchfield__clear .icon { width: 16px; height: 16px; }
.searchfield--static { color: var(--ink); font-weight: 600; text-align: left; }
.searchfield--block { width: 100%; margin-bottom: 16px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.pcard { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; }
.pcard .art { margin-bottom: 7px; transition: transform .2s var(--ease); }
.pcard:hover .art { transform: translateY(-2px); }
.pcard__title { font-weight: 650; font-size: 14.5px; line-height: 1.25; }
.pcard__meta { font-size: 13px; color: var(--ink-3); }

.rows { display: flex; flex-direction: column; }
.row {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line-2);
}
.rows li:last-child .row { border-bottom: 0; }
.row.is-muted { opacity: .65; }
.row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row__title { font-weight: 650; font-size: 15px; }
.row__meta { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.row__meta--soft { color: var(--ink-3); font-size: 12px; }
.row__meta .icon { width: 13px; height: 13px; }
.row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.results-count { color: var(--ink-3); font-size: 13.5px; margin: 6px 0 4px; }

.list { display: flex; flex-direction: column; }
.list__item {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 10px 4px; min-height: 58px;
  border-bottom: 1px solid var(--line-2); text-align: left;
  font-size: 15.5px; font-weight: 550;
  transition: background .15s;
}
.list__item:hover { background: var(--bg-2); }
.list li:last-child .list__item { border-bottom: 0; }
.list__label { flex: 1; }
.list__icon { flex: none; }
.list__icon--round {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2);
}
.list__icon--round .icon { width: 20px; height: 20px; }
.list__item--danger { color: var(--danger); }
.list__item--danger .list__icon--round { background: var(--danger-50); color: var(--danger); }
.list--menu { margin-top: 8px; }

.mcard {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; margin-top: 16px;
  border-radius: var(--radius); background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mcard__body { flex: 1; min-width: 0; }
.mcard__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mcard__badge { position: absolute; top: 14px; right: 14px; }
.mcard--compact { margin-top: 0; box-shadow: none; padding: 0; }
.mcard__body > .badge { margin-bottom: 6px; }
.mcard__body > .badge + .mcard__title { padding-right: 0; }
.mcard--compact .specs__row { padding: 1px 0; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.activity {
  padding: 14px; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line); background: var(--bg);
}
.activity__actions {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
}

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 16px; gap: 6px; }
.empty__icon {
  width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 10px;
}
.empty__icon .icon { width: 30px; height: 30px; }
.empty__title { font-size: 17px; font-weight: 700; }
.empty__text { color: var(--ink-2); font-size: 14px; max-width: 280px; margin-bottom: 14px; }

.tabs {
  flex: none; display: grid; grid-template-columns: 1fr 1fr;
  margin: 0 var(--pad) 6px; border-bottom: 1px solid var(--line);
}
.tabs__item {
  position: relative; padding: 12px 0; font-weight: 650; font-size: 14.5px; color: var(--ink-3);
  transition: color .15s;
}
.tabs__item::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: transparent; transition: background .2s;
}
.tabs__item.is-active { color: var(--ink); }
.tabs__item.is-active::after { background: var(--blue); }

/* 09. Ilustraciones de materiales ----------------------------------------- */
.art {
  --art-bg: var(--bg-2); --art-1: #E8E2D2; --art-2: #D8D0BB; --art-ink: rgba(20, 33, 61, .18);
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden;
  background: var(--art-bg);
  display: grid; place-items: center;
}
.art__svg { width: 82%; height: auto; }
.art__img { width: 100%; height: 100%; object-fit: cover; }
.art--xs { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.art--sm { width: 72px; height: 72px; border-radius: 14px; flex: none; }
.art--lg { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.art--xl { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.art--xl .art__svg { width: 64%; }
.art--xs .art__svg, .art--sm .art__svg { width: 92%; }

.art__shadow { fill: rgba(20, 33, 61, .08); }
.art__a { fill: var(--art-1); }
.art__b { fill: var(--art-2); }
.art__cap { fill: var(--ink); }
.art__line { fill: none; stroke: var(--art-ink); stroke-width: 1.6; stroke-linecap: round; }
.art__shine { fill: rgba(255, 255, 255, .45); stroke: rgba(255, 255, 255, .5); stroke-width: 3; stroke-linecap: round; }
.art__label { fill: rgba(255, 255, 255, .85); }
.art__pages { fill: #FFFFFF; stroke: var(--art-ink); stroke-width: 1; }
.art__label-line { stroke: rgba(255, 255, 255, .8); stroke-width: 3; stroke-linecap: round; }
.art__thread { fill: none; stroke: var(--art-2); stroke-width: 2.4; stroke-linecap: round; }

/* Paletas por material */
.art--carton { --art-bg: #F4EEE3; --art-1: #E7D7B9; --art-2: #CDB48A; }
.art--madera { --art-bg: #F5EDE2; --art-1: #D9B88A; --art-2: #BF9466; }
.art--lamina { --art-bg: #EAF3FA; --art-1: #CFE4F3; --art-2: #A8CBE6; }
.art--aerosol { --art-bg: #FFF0EA; --art-1: var(--coral); --art-2: #C9CFDB; }
.art--libro { --art-bg: var(--blue-50); --art-1: var(--blue); --art-2: var(--blue-700); }
.art--tela { --art-bg: #F3EEF8; --art-1: #CDB8E4; --art-2: #AF93D1; }
.art--hilo { --art-bg: #F1F5E8; --art-1: #CFC08F; --art-2: #A79060; }
.art--pincel { --art-bg: #FFF6E2; --art-1: #2C2C34; --art-2: #E0A84C; }
.art--photo { background: var(--bg-2); }

/* Tonos (color del material) */
.art--carton.tono--blanco, .art--lamina.tono--blanco { --art-1: #FFFFFF; --art-2: #E4E6EC; --art-bg: #EEF1F7; }
.art--carton.tono--negro, .art--lamina.tono--negro { --art-1: #2B2F3A; --art-2: #14161C; --art-bg: #E9EBF1; --art-ink: rgba(255, 255, 255, .2); }
.art--carton.tono--marron { --art-1: #D6B583; --art-2: #B48B55; }
.art--lamina.tono--trans { --art-1: rgba(168, 203, 230, .55); --art-2: rgba(120, 170, 210, .45); }
.art--aerosol.tono--rojo { --art-1: #E5484D; --art-bg: #FDECEC; }
.art--aerosol.tono--azul { --art-1: var(--blue); --art-bg: var(--blue-50); }
.art--aerosol.tono--verde { --art-1: #2FA36B; --art-bg: #E4F5EC; }
.art--aerosol.tono--amarillo { --art-1: #F2B90C; --art-bg: #FFF5D6; }
.art--aerosol.tono--negro { --art-1: #2B2F3A; --art-bg: #ECEEF3; }
.art--aerosol.tono--blanco { --art-1: #F4F5F8; --art-bg: #E8EBF2; }
.art--tela.tono--natural { --art-1: #E8DCC4; --art-2: #D2C2A0; --art-bg: #F7F2E9; }
.art--hilo.tono--natural { --art-1: #D9C7A0; --art-2: #B59D6E; }

/* 10. Detalle y ticket QR ------------------------------------------------- */
.detail__media { position: relative; height: 330px; background: var(--bg-2); }
.gallery {
  height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery--art { display: block; }
.gallery__dots {
  position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px;
}
.gallery__dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .6); transition: width .2s, background .2s; }
.gallery__dots span.is-active { width: 20px; background: #fff; }
.fab-back {
  position: absolute; top: 10px; left: 14px;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); color: var(--ink);
}
.detail__info {
  position: relative; margin-top: -22px; padding: 22px var(--pad) 0;
  background: var(--bg); border-radius: 24px 24px 0 0;
}
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail__title { font-size: 24px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 12px; }
.detail__donor { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.specs { display: flex; flex-direction: column; }
.specs__row {
  display: flex; justify-content: space-between; gap: 16px; padding: 7px 0;
  border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.specs__row:last-child { border-bottom: 0; }
.specs__row dt { color: var(--ink-3); }
.specs__row dd { font-weight: 600; text-align: right; }
.mcard .specs__row { padding: 2px 0; border: 0; font-size: 13px; justify-content: flex-start; }
.mcard .specs__row dt { width: 78px; flex: none; }
.mcard .specs__row dd { text-align: left; }
.specs--card { margin-top: 16px; padding: 4px 16px; border-radius: var(--radius); background: var(--bg-2); }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--blue-50); color: var(--ink-2); font-size: 13.5px;
}
.note .icon { color: var(--blue); width: 20px; height: 20px; margin-top: 1px; }
.note b { color: var(--ink); }
.note--soft { background: var(--bg-2); }
.note--soft .icon { color: var(--ink-2); }
.note--warn { background: var(--warn-50); }
.note--warn .icon { color: var(--warn); }

.ticket {
  position: relative; text-align: center;
  padding: 22px 20px 20px; margin-top: 4px;
  border-radius: var(--radius-lg); background: var(--blue-50);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; bottom: 64px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg);
}
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.ticket__title { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.ticket__text { color: var(--ink-2); font-size: 14px; margin: 6px auto 0; max-width: 290px; }
.ticket__qr {
  position: relative; width: 196px; margin: 18px auto 8px; padding: 10px;
  border-radius: 20px; background: #fff; box-shadow: var(--shadow);
}
.ticket__stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  padding: 4px 14px; border: 3px solid var(--ink-2); border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: var(--ink-2);
  font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .08em;
}
.ticket.is-inactive { background: var(--bg-2); }
.ticket.is-inactive .qr { opacity: .3; }
.ticket.is-done { background: var(--ok-50); }
.ticket.is-done .ticket__stamp { border-color: var(--ok); color: var(--ok); }
.ticket__valid {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding-top: 14px; border-top: 2px dashed rgba(47, 85, 212, .2);
  color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.ticket__valid .icon { width: 17px; height: 17px; color: var(--blue); }

.qr { display: block; width: 100%; height: auto; }
.qr__bg { fill: #fff; }
.qr__dots { fill: var(--ink); }
.qr__badge { fill: var(--blue); }
.qr__mark { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.code-digits { display: flex; justify-content: center; gap: 6px; font-variant-numeric: tabular-nums; }
.code-digits span {
  width: 30px; height: 38px; display: grid; place-items: center;
  border-radius: 8px; background: #fff; font-weight: 750; font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.when {
  display: flex; gap: 12px; align-items: center; margin-top: 14px;
  padding: 14px; border-radius: var(--radius-sm); background: var(--coral-50);
  font-size: 14px; color: var(--ink-2);
}
.when b { color: var(--ink); }
.when span { color: var(--ink-3); }
.when .icon { color: var(--coral-600); }
.when--inline { margin: 0; padding: 10px 12px; font-size: 13px; }
.when--inline span { color: var(--ink-2); }
.when--inline .icon { width: 18px; height: 18px; }

/* 11. Formularios --------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.field__control {
  position: relative; display: flex; align-items: center;
  height: 52px; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .15s, background .15s;
}
.field__control:focus-within { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(47, 85, 212, .1); }
.field__input {
  flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 15.5px; color: var(--ink);
  -moz-appearance: textfield;
}
.field__input::-webkit-outer-spin-button, .field__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field__input::placeholder { color: var(--ink-3); }
.field__eye { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-3); border-radius: 10px; margin-right: -8px; }
.field__unit { color: var(--ink-3); font-size: 13.5px; font-weight: 600; margin-left: 4px; }
.field__hint { font-size: 12.5px; color: var(--ink-3); transition: color .15s; }
.field__hint.is-ok { color: var(--ok); }
.field__hint.is-ok::before { content: "✓ "; }
.field__hint.is-bad { color: var(--warn); }
.field__error { display: none; font-size: 12.5px; font-weight: 600; color: var(--danger); }
.field.has-error .field__control { box-shadow: inset 0 0 0 1.5px var(--danger); background: var(--danger-50); }
.field.has-error .field__error { display: block; }
.field--code .field__control { height: 64px; }
.field__input--code { text-align: center; font-size: 28px; font-weight: 750; letter-spacing: .3em; font-variant-numeric: tabular-nums; }

.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.field-row .field__control { padding: 0 10px; }
.field-row .field__label { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.group { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.group:first-of-type { margin-top: 14px; }
.group__label { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.group > .group__label { margin-bottom: 0; }
.group--inline { flex-direction: row; align-items: center; justify-content: space-between; }
.group .field + .field { margin-top: 10px; }
.optional { font-weight: 500; color: var(--ink-3); font-size: 12.5px; margin-left: 4px; }
.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.reveal > * { overflow: hidden; }
.reveal.is-open { grid-template-rows: 1fr; }

.stepper {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: var(--radius-sm); background: var(--bg-2);
}
.stepper__btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm);
}
.stepper__btn:disabled { opacity: .4; box-shadow: none; }
.stepper__btn .icon { width: 18px; height: 18px; }
.stepper__value { min-width: 34px; text-align: center; font-weight: 750; font-size: 16px; }

.uploads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.upload {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-2);
}
.upload__img { width: 100%; height: 100%; object-fit: cover; }
.upload__remove {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(20, 33, 61, .7); color: #fff;
}
.upload__remove .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.upload--add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; color: var(--blue); font-size: 11px; font-weight: 650; text-align: center; padding: 6px;
  background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue-100);
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(47, 85, 212, .04) 8px 16px);
}
.upload--add:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.uploads:has(.upload:only-child) { grid-template-columns: 1fr; }
.uploads:has(.upload:only-child) .upload--add { aspect-ratio: 3 / 1; flex-direction: row; gap: 10px; font-size: 14px; }

.radios { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; text-align: left; }
.radio {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); cursor: pointer; font-size: 14.5px; font-weight: 550;
}
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio__dot { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--ink-3); transition: box-shadow .15s; }
.radio:has(input:checked) { background: var(--danger-50); }
.radio input:checked + .radio__dot { box-shadow: inset 0 0 0 6px var(--danger); }
.radio input:focus-visible + .radio__dot { outline: 3px solid rgba(47, 85, 212, .45); outline-offset: 2px; }

.switch { position: relative; flex: none; width: 50px; height: 30px; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: background .2s; pointer-events: none; }
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease);
}
.switch__input:checked + .switch__track { background: var(--blue); }
.switch__input:checked + .switch__track::after { transform: translateX(20px); }
.switch__input:focus-visible + .switch__track { outline: 3px solid rgba(47, 85, 212, .45); outline-offset: 2px; }

/* 12. Calendario y turnos ------------------------------------------------- */
.cal { padding: 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__month { font-weight: 700; font-size: 15px; }
.cal__nav { display: flex; gap: 6px; }
.cal__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.cal__cell {
  position: relative; aspect-ratio: 1 / 1; max-height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: background .15s, color .15s;
}
.cal__cell:hover:not(:disabled):not(.is-selected) { background: var(--blue-50); }
.cal__cell:disabled { color: var(--line); cursor: default; text-decoration: none; }
.cal__cell.is-today::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral);
}
.cal__cell.is-selected { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.cal__cell.is-selected::after { background: #fff; }
.cal__cell--blank { pointer-events: none; }

.turnos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.turno {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px;
  border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .15s, box-shadow .15s, color .15s;
}
.turno:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.turno__name { font-weight: 700; font-size: 14.5px; }
.turno__range { font-size: 11.5px; color: var(--ink-3); }
.turno.is-selected { background: var(--blue); box-shadow: none; color: #fff; }
.turno.is-selected .turno__range { color: rgba(255, 255, 255, .8); }
.turno:disabled { opacity: .4; background: var(--bg-2); box-shadow: none; }

/* 13. Hojas y diálogos ---------------------------------------------------- */
.sheet-root { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.sheet { position: absolute; inset: 0; pointer-events: auto; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sheet--bottom { align-items: flex-end; padding: 0; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(14, 18, 32, .5); opacity: 0; transition: opacity .22s; }
.sheet__panel {
  position: relative; width: 100%; max-width: 340px;
  padding: 26px 22px 16px; border-radius: 26px; background: var(--bg);
  text-align: center; box-shadow: var(--shadow-lg);
  transform: scale(.92); opacity: 0; transition: transform .25s var(--ease), opacity .2s;
}
.sheet--bottom .sheet__panel {
  max-width: none; border-radius: 26px 26px 0 0; padding: 12px 22px calc(18px + var(--safe-bottom));
  transform: translateY(100%); opacity: 1; text-align: left;
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
.sheet__grip { display: block; width: 40px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: var(--line); }
.sheet__icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue);
}
.sheet--bottom .sheet__icon { margin: 0 0 12px; width: 48px; height: 48px; border-radius: 15px; }
.sheet__icon--danger { background: var(--danger-50); color: var(--danger); }
.sheet__icon .icon { width: 28px; height: 28px; }
.sheet__title { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.sheet__text { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 4px; }
.sheet__panel > .field, .sheet__panel > .radios { margin-top: 16px; text-align: left; }
.sheet__actions { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }

/* 14. Toast y loader ------------------------------------------------------ */
.toast {
  position: absolute; z-index: 40; left: 16px; right: 16px; top: 58px;
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .25s;
}
.toast.is-visible { transform: none; opacity: 1; }
.toast .icon { width: 20px; height: 20px; }
.toast--ok .icon { color: #5BE0A2; }
.toast--error { background: var(--danger); }
.toast--info .icon { color: var(--blue-100); }

.loader {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--blue); color: #fff; opacity: 0; transition: opacity .25s;
}
.loader[hidden] { display: none; }
.loader.is-visible { opacity: 1; }
.loader__mark { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.loader__mark .icon { width: 50px; height: 50px; stroke-width: 4.2; }
.loader__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: spin .9s linear infinite;
}
.loader__text { font-weight: 650; font-size: 16px; }

/* 15. Mensajes y chat ----------------------------------------------------- */
.convs { display: flex; flex-direction: column; }
.conv {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2); text-align: left;
}
.conv__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv__title { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv__preview { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.is-unread .conv__title { font-weight: 750; }
.conv.is-unread .conv__preview { color: var(--ink); font-weight: 550; }
.conv__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.conv__time { font-size: 12px; color: var(--ink-3); }
.conv.is-unread .conv__time { color: var(--blue); font-weight: 650; }

.view--chat { background: var(--bg-2); }
.view--chat .appbar { background: var(--bg); }
.chat-ctx {
  flex: none; display: flex; align-items: center; gap: 12px;
  margin: 10px 14px 0; padding: 10px 10px 10px 10px; border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow-sm);
}
.chat-ctx__body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); }
.chat-ctx__body b { font-size: 14px; color: var(--ink); }
.view__body--chat { padding: 10px 14px 12px; }
.bubbles { display: flex; flex-direction: column; gap: 6px; }
.daysep { display: flex; justify-content: center; margin: 10px 0 6px; }
.daysep span { padding: 3px 10px; border-radius: 10px; background: var(--line-2); font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.bubble {
  max-width: 78%; padding: 9px 12px 6px; border-radius: 18px;
  font-size: 14.5px; line-height: 1.38; animation: pop .25s var(--ease);
}
.bubble p { white-space: pre-wrap; word-wrap: break-word; }
.bubble time { display: block; text-align: right; font-size: 10.5px; margin-top: 2px; opacity: .65; }
.bubble--in { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.bubble--out { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bubble--typing { display: flex; gap: 4px; padding: 13px 14px; }
.bubble--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1s infinite; }
.bubble--typing span:nth-child(2) { animation-delay: .15s; }
.bubble--typing span:nth-child(3) { animation-delay: .3s; }
.composer {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px calc(12px + var(--safe-bottom)); background: var(--bg); border-top: 1px solid var(--line-2);
}
.composer__input {
  flex: 1; height: 44px; padding: 0 16px; border-radius: 22px; border: 0; outline: 0;
  background: var(--bg-2); font-size: 15px;
}
.composer__input:focus { box-shadow: inset 0 0 0 1.5px var(--blue); }
.composer__send {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; transition: opacity .15s, transform .15s;
}
.composer__send:disabled { opacity: .35; }
.composer__send .icon { width: 20px; height: 20px; }

/* 16. Menú, perfil y ajustes ---------------------------------------------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--coral-50); color: var(--coral-600);
  font-weight: 750; font-size: 15px;
}
.avatar--brand { background: var(--blue); color: #fff; border-radius: 14px; }
.avatar--brand .icon { width: 28px; height: 28px; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.avatar--lg.avatar--brand { border-radius: 20px; }
.avatar--lg .icon { width: 40px; height: 40px; }
.avatar--xl { width: 92px; height: 92px; font-size: 32px; }
.avatar--xl.avatar--brand { border-radius: 28px; }
.avatar--xl .icon { width: 56px; height: 56px; }
.profile { display: flex; align-items: center; gap: 16px; padding: 14px 0 18px; border-bottom: 1px solid var(--line-2); }
.profile__name { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.profile__mail { color: var(--ink-3); font-size: 13.5px; margin-bottom: 6px; }
.profile--center { flex-direction: column; text-align: center; gap: 8px; border: 0; }
.version { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 28px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px; border-radius: var(--radius); background: var(--bg-2); text-align: left;
}
.stat__value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat__label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.stat--blue { background: var(--blue-50); }
.stat--blue .stat__value { color: var(--blue); }
.stat--coral { background: var(--coral-50); }
.stat--coral .stat__value { color: var(--coral-600); }
.stats--compact { margin: 16px 0 0; }
.stats--compact .stat { padding: 12px; transition: background .15s; }
.stats--compact .stat:hover { background: var(--line-2); }

.settings { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--bg-2); padding: 4px 16px; margin-top: 6px; }
.setting { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting__text { flex: 1; display: flex; flex-direction: column; }
.setting__label { font-weight: 650; font-size: 15px; }
.setting__sub { font-size: 12.5px; color: var(--ink-3); }

/* 17. Operario ------------------------------------------------------------ */
.actions-grid { display: grid; gap: 12px; }
.action-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 14px; align-items: center; text-align: left;
  padding: 18px 44px 18px 18px; border-radius: var(--radius-lg);
  background: var(--blue); color: #fff; box-shadow: var(--shadow-blue);
  transition: transform .15s;
}
.action-card:active { transform: scale(.98); }
.action-card__icon {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
}
.action-card__icon .icon { width: 28px; height: 28px; }
.action-card__title { font-weight: 750; font-size: 17px; }
.action-card__sub { font-size: 13px; opacity: .85; }
.action-card__chev { position: absolute; right: 16px; top: 50%; margin-top: -11px; opacity: .8; }
.action-card--coral { background: var(--coral); color: var(--ink); box-shadow: 0 8px 20px rgba(255, 122, 89, .32); }
.action-card--coral .action-card__icon { background: rgba(255, 255, 255, .35); }

.slots { display: flex; flex-direction: column; gap: 8px; }
.slot {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 12px 10px 10px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .15s, background .15s;
}
.slot:hover { background: var(--bg-2); }
.slot__time { width: 46px; flex: none; font-weight: 750; font-size: 13.5px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.slot__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.slot__title { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot__meta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-date { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 20px 0 10px; }
.chips + div > .group-date:first-child { margin-top: 18px; }

.review__code { font-size: 15px; color: var(--ink-2); margin: 4px 0 12px; }
.review__code b { color: var(--ink); font-size: 18px; letter-spacing: .02em; }
.review__art { margin-bottom: 16px; }
.review__photos { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.review__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); flex: 0 0 100%; }
.review__photos .review__photo:not(:only-child) { flex: 0 0 82%; }
.view__body > .field { margin-top: 18px; }

/* 18. Escáner y pantallas de feedback ------------------------------------- */
.view--scanner { background: radial-gradient(circle at 50% 40%, #1E2A4E, #0E1220 70%); color: #fff; }
.view__body--scanner { display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.scanner__title { text-align: center; font-size: 19px; font-weight: 700; max-width: 270px; line-height: 1.3; margin-bottom: 28px; }
.scanner {
  position: relative; width: 250px; height: 250px; border-radius: 28px; flex: none;
  background: rgba(255, 255, 255, .04); overflow: hidden;
}
.scanner__corner { position: absolute; width: 46px; height: 46px; border: 4px solid #fff; transition: border-color .2s; }
.scanner__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 26px 0 0 0; }
.scanner__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 26px 0 0; }
.scanner__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 26px; }
.scanner__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 26px 0; }
.scanner__line {
  position: absolute; left: 18px; right: 18px; top: 18px; height: 3px; border-radius: 3px;
  background: var(--coral); box-shadow: 0 0 18px 4px rgba(255, 122, 89, .55);
  animation: scanline 2.2s ease-in-out infinite alternate;
}
.scanner__ghost { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .14); transition: color .3s, transform .3s; }
.scanner__ghost .icon { width: 120px; height: 120px; stroke-width: 1.2; }
.scanner__ok {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.6);
  transition: opacity .25s, transform .3s var(--ease);
}
.scanner__ok .icon { width: 84px; height: 84px; padding: 18px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 2.6; }
.scanner.is-reading .scanner__ghost { color: rgba(255, 255, 255, .55); transform: scale(1.06); }
.scanner.is-reading .scanner__line { animation-duration: .5s; }
.scanner.is-read .scanner__corner { border-color: #5BE0A2; }
.scanner.is-read .scanner__line, .scanner.is-read .scanner__ghost { opacity: 0; }
.scanner.is-read .scanner__ok { opacity: 1; transform: none; }
.scanner__hint { margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .6); text-align: center; }

.feedback__icon {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px;
  animation: pop .45s var(--ease) both;
}
.feedback__icon .icon { width: 52px; height: 52px; stroke-width: 2.6; }
.feedback__icon--ok { background: var(--ok); color: #fff; box-shadow: 0 0 0 14px var(--ok-50); }
.feedback__icon--danger { background: var(--danger); color: #fff; box-shadow: 0 0 0 14px var(--danger-50); }
.feedback__title { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; animation: rise .4s .1s var(--ease) both; }
.feedback__text { color: var(--ink-2); margin-top: 10px; font-size: 15px; animation: rise .4s .16s var(--ease) both; }
.feedback__code { margin-top: 18px; padding: 6px 12px; border-radius: 8px; background: var(--bg-2); font-size: 13px; font-weight: 650; color: var(--ink-2); }

/* 19. Splash, onboarding y acceso ----------------------------------------- */
.view--splash { background: var(--blue); color: #fff; cursor: pointer; }
.splash { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.splash__ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
  transform: translate(-50%, -50%) scale(.4); opacity: 0;
  animation: ring 3s var(--ease) infinite;
}
.splash__ring--1 { width: 220px; height: 220px; }
.splash__ring--2 { width: 380px; height: 380px; animation-delay: .35s; }
.splash__ring--3 { width: 560px; height: 560px; animation-delay: .7s; }
.splash__logo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: -40px; }
.splash__mark { width: 116px; height: 116px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.splash__stroke { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease) forwards; }
.splash__stroke--1 { animation-delay: .25s; animation-duration: .9s; }
.splash__stroke--2 { animation-delay: 1s; }
.splash__stroke--3 { animation-delay: 1.35s; }
.splash__word {
  font-family: var(--font-display); font-weight: 800; font-size: 46px; letter-spacing: -.04em; line-height: 1;
  opacity: 0; transform: translateY(10px); animation: rise .6s 1.75s var(--ease) forwards;
}
.splash__tag {
  position: absolute; bottom: 64px; font-size: 14px; color: rgba(255, 255, 255, .75);
  opacity: 0; animation: rise .6s 2.1s var(--ease) forwards;
}

.view--onboarding { padding-bottom: 0; }
.onb__top { flex: none; display: flex; justify-content: flex-end; height: 44px; padding: 4px var(--pad) 0; }
.onb__top .link { color: var(--ink-2); }
.onb__art { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 24px; }
.ill { width: 100%; max-width: 300px; height: auto; max-height: 100%; animation: rise .5s var(--ease) both; }
.ill__blob { fill: var(--blue-50); }
.ill__dot { fill: var(--blue); }
.ill__dot--coral { fill: var(--coral); }
.ill__ring { fill: none; stroke: var(--coral); stroke-width: 3; }
.ill__phone { fill: var(--ink); }
.ill__screen { fill: #fff; }
.ill__notch { fill: #2B3655; }
.ill__card { fill: var(--blue-50); }
.ill__mountain { fill: var(--blue); }
.ill__sun { fill: var(--coral); }
.ill__line { fill: var(--ink); opacity: .85; }
.ill__line--soft { opacity: .25; }
.ill__btn { fill: var(--blue); }
.ill__book { fill: var(--coral); }
.ill__book-spine { fill: var(--coral-600); }
.ill__badge { fill: var(--blue); }
.ill__badge--ok { fill: var(--ok); }
.ill__plus, .ill__tick { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ill__qrbg { fill: #fff; stroke: var(--line); stroke-width: 2; }
.ill__qr { fill: var(--ink); }
.ill__scanline { stroke: var(--coral); stroke-width: 3; stroke-linecap: round; }
.ill__scan { animation: illscan 2s ease-in-out infinite alternate; }
.ill__store { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.ill__awning { fill: var(--coral); }
.ill__search { fill: var(--bg-2); stroke: var(--line); stroke-width: 1.5; }
.ill__tile { fill: var(--blue-50); }
.ill__tile--alt { fill: var(--coral-50); }
.ill__box { fill: #E7D7B9; }
.ill__boxlid { fill: none; stroke: #B48B55; stroke-width: 3; }
.ill__float { animation: float 3.2s ease-in-out infinite; }
.ill__float--2 { animation-delay: -1.6s; }

.onb__copy { flex: none; padding: 8px 32px 0; text-align: center; animation: rise .45s .08s var(--ease) both; }
.onb__title { font-size: 25px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.onb__text { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.onb__dots { flex: none; display: flex; justify-content: center; gap: 8px; padding: 22px 0 6px; }
.onb__dot { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .25s var(--ease), background .25s; }
.onb__dot.is-active { width: 26px; background: var(--blue); }

.view--auth { background: var(--bg); }
.view__body--auth { display: flex; flex-direction: column; justify-content: center; padding: 20px 26px 30px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 40px; }
.brand__tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.brand__tile .icon { width: 36px; height: 36px; }
.brand__word { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -.045em; color: var(--blue); line-height: 1; }
.auth__alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.form .btn--block { margin-top: 6px; }

/* Búsqueda vacía y sugerencias */
.search-empty { padding: 30px 4px 0; }
.search-empty__title { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.search-empty__text { color: var(--ink-2); margin-top: 6px; }
.suggest { display: flex; flex-direction: column; margin-top: 4px; }
.suggest__item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--line-2); text-align: left; font-size: 15px; color: var(--ink-2);
}
.suggest__item > .icon:first-child { width: 18px; height: 18px; color: var(--ink-3); }
.suggest__item span { flex: 1; }
.suggest__item b { color: var(--ink); font-weight: 700; }
.suggest__none { color: var(--ink-3); padding: 20px 4px; font-size: 14px; }

/* 20. Animaciones --------------------------------------------------------- */
.enter--forward { animation: in-forward .32s var(--ease) both; }
.enter--back { animation: in-back .32s var(--ease) both; }
.enter--fade { animation: in-fade .28s ease both; }

@keyframes in-forward { from { transform: translateX(28%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes in-back { from { transform: translateX(-22%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes in-fade { from { opacity: 0; transform: scale(.99); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes busy { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}
@keyframes scanline { from { top: 18px; } to { top: calc(100% - 21px); } }
@keyframes illscan { from { transform: translateY(-26px); } to { transform: translateY(26px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .splash__stroke { stroke-dashoffset: 0; }
  .splash__word, .splash__tag { opacity: 1; transform: none; }
}

/* 21. Responsive y modo app instalada (PWA) ------------------------------- */
@media (max-width: 1080px) {
  .stage { grid-template-columns: 1fr; }
  .flows {
    position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(340px, 88vw);
    transform: translateX(-102%); transition: transform .3s var(--ease);
    box-shadow: 20px 0 60px rgba(0, 0, 0, .4);
  }
  .flows__close { display: grid; }
  body.flows-open .flows { transform: none; }
  .flows-fab {
    position: fixed; z-index: 45; left: 18px; bottom: 18px;
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: var(--stage-2); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    border: 1px solid var(--stage-3);
  }
}

/* Teléfono real o app instalada: la app ocupa toda la pantalla */
@media (max-width: 520px), (display-mode: standalone) {
  body { background: var(--bg); }
  .stage { display: block; background: var(--bg); }
  .device { display: block; padding: 0; height: 100%; }
  .device__frame {
    width: 100%; height: 100vh; height: 100dvh;
    border-radius: 0; box-shadow: none;
  }
  :root { --status-h: var(--safe-top); }
  .statusbar { padding: 0; }
  .statusbar > * { display: none; }
  .tabbar { height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); }
  .toast { top: calc(var(--safe-top) + 10px); }
  .flows-fab { left: auto; right: 14px; bottom: calc(96px + var(--safe-bottom)); width: 42px; height: 42px; border-radius: 13px; opacity: .85; }
  .device.is-status-light ~ .flows-fab, .device:not(.has-tabbar) ~ .flows-fab { bottom: calc(110px + var(--safe-bottom)); }
}
@media (display-mode: standalone) {
  .flows, .flows-fab { display: none; }
}
@media (max-height: 760px) and (min-width: 521px) {
  .detail__media { height: 270px; }
}
