/* Fisioregio — identidad tomada de @fisio_regio22: azul rey con textura de papel,
   bordes de papel rasgado, uniforme azul marino / azul claro, tipografía sans gruesa y compacta. */
:root {
  --blue: #1E4BA6;
  --blue-ink: #173C88;
  --navy: #1B2A4A;
  --sky: #8FA9E0;
  --sky-soft: #E7EDF9;
  --paper: #F4F1EA;
  --paper-2: #ECE7DC;
  --white: #FFFFFF;
  --ink: #1B2A4A;
  --muted: #5E6B85;
  --line: #DCD6C8;
  --ok: #1F8A5B;
  --ok-soft: #E3F4EA;
  --warn: #B7791F;
  --warn-soft: #FBF1DE;
  --danger: #C2362F;
  --danger-soft: #FBE7E5;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 6px 18px rgba(27, 42, 74, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 6px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- cabecera de papel azul */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--blue);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 85% 0%, #2A5BC0 0%, transparent 60%);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 44px;
}
.hero::after {
  /* borde de papel rasgado */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L12 10 L22 15 L35 8 L48 13 L60 9 L74 16 L86 11 L97 14 L110 7 L124 13 L137 10 L149 15 L163 9 L176 14 L189 8 L203 13 L216 10 L228 16 L242 9 L255 14 L268 11 L281 15 L294 8 L307 13 L320 10 L334 16 L347 9 L360 14 L373 10 L387 15 L400 11 L400 26 L0 26 Z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L12 10 L22 15 L35 8 L48 13 L60 9 L74 16 L86 11 L97 14 L110 7 L124 13 L137 10 L149 15 L163 9 L176 14 L189 8 L203 13 L216 10 L228 16 L242 9 L255 14 L268 11 L281 15 L294 8 L307 13 L320 10 L334 16 L347 9 L360 14 L373 10 L387 15 L400 11 L400 26 L0 26 Z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hero .brand { font-weight: 800; letter-spacing: -0.04em; font-size: 18px; opacity: .95; }
.hero .brand b { color: var(--sky); }
.hero h1 { margin-top: 14px; font-size: 32px; }
.hero p { opacity: .88; margin-top: 6px; }
.hero .back { color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; opacity: .9; }

main.page { padding: 4px 16px calc(96px + var(--safe-b)); max-width: 720px; margin: 0 auto; }
main.page.wide { max-width: 980px; }

/* ---------------------------------------------------------------- tarjetas */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card + .card, .card + .section, .section + .card { margin-top: 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.blue { background: var(--blue); color: var(--white); }
.card.navy { background: var(--navy); color: var(--white); }
.card.sky { background: var(--sky-soft); box-shadow: none; }
.card.danger { background: var(--danger-soft); box-shadow: none; border: 1px solid #F1C4BF; }
.card.warn { background: var(--warn-soft); box-shadow: none; }
.section { margin-top: 22px; }
.section > h2, .section > .section-title { margin: 0 4px 10px; }
.section-title { font-weight: 800; letter-spacing: .05em; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.card.blue .kicker, .card.navy .kicker { color: var(--sky); }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 13px 18px; min-height: 48px;
  font-weight: 800; letter-spacing: -0.01em; font-size: 15px; cursor: pointer; white-space: nowrap;
  background: var(--blue); color: var(--white); text-decoration: none;
  transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.navy { background: var(--navy); }
.btn.light { background: var(--sky-soft); color: var(--blue-ink); }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--sky); }
.btn.wa { background: #1FA855; color: var(--white); }
.btn.white { background: var(--white); color: var(--blue); }
.btn.ok { background: var(--ok); }
.btn.danger { background: var(--danger); }
.btn.wa { background: #1FA855; }
.btn.sm { min-height: 38px; padding: 8px 12px; font-size: 14px; border-radius: 12px; }
.btn.icon { width: 44px; min-height: 44px; padding: 0; }
.link { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 6px 0; }

/* ---------------------------------------------------------------- chips y badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--sky-soft); color: var(--blue-ink);
}
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.navy { background: var(--navy); color: var(--white); }
.badge {
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px;
  background: var(--danger); color: var(--white); font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------- formularios */
label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 2px 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--white);
  border-radius: 12px; padding: 12px 13px; font-size: 16px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 75, 166, .15); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--blue); flex: none; }

.days { display: flex; gap: 6px; }
.days button {
  flex: 1; min-height: 38px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--white); font-weight: 800; cursor: pointer;
}
.days button.on { background: var(--blue); border-color: var(--blue); color: var(--white); }

.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.scale button {
  aspect-ratio: 1; border: 0; border-radius: 10px; font-weight: 800; font-size: 15px; cursor: pointer;
  background: var(--paper-2);
}
.scale button.on { color: var(--white); transform: scale(1.08); }
.scale-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- navegación inferior */
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + var(--safe-b));
}
nav.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 6px 0; position: relative;
}
nav.tabs a .ico { font-size: 21px; line-height: 1; filter: grayscale(1); opacity: .7; }
nav.tabs a.on { color: var(--blue); }
nav.tabs a.on .ico { filter: none; opacity: 1; }
nav.tabs a .badge { position: absolute; top: 0; left: calc(50% + 6px); }

/* ---------------------------------------------------------------- tareas del día */
.slot-time { display: flex; align-items: baseline; gap: 8px; margin: 18px 4px 8px; }
.slot-time b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.task {
  display: flex; gap: 12px; align-items: center;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; margin-top: 8px; cursor: pointer;
}
.task .thumb {
  width: 64px; height: 64px; border-radius: 14px; flex: none; overflow: hidden;
  background: var(--sky-soft); display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.task .thumb img { width: 100%; height: 100%; object-fit: cover; }
.task .title { font-weight: 800; letter-spacing: -0.02em; }
.task .dose { font-size: 13.5px; color: var(--muted); }
.task.done { background: var(--ok-soft); box-shadow: none; }
.task.done .title { color: var(--ok); }
.task.late { box-shadow: inset 4px 0 0 var(--warn), var(--shadow); }
.donebtn {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 2.5px solid var(--sky); background: var(--white); color: var(--blue);
  font-size: 22px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.task.done .donebtn { background: var(--ok); border-color: var(--ok); color: var(--white); }

.progress { display: flex; align-items: center; gap: 16px; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--sky) calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0);
  display: flex; align-items: center; justify-content: center; }
.ring > span { width: 60px; height: 60px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }

/* ---------------------------------------------------------------- ilustraciones */
.illus { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.illus figure { margin: 0; background: var(--paper); border-radius: 14px; overflow: hidden; position: relative; }
.illus figcaption {
  position: absolute; top: 8px; left: 8px; background: var(--navy); color: var(--white);
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.illus img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.illus .ph { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
ol.steps { padding-left: 20px; margin: 0; }
ol.steps li + li { margin-top: 6px; }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
ul.clean li:first-child { border-top: 0; }
ul.dots { padding-left: 18px; margin: 0; }
ul.dots li + li { margin-top: 6px; }

/* ---------------------------------------------------------------- hoja inferior (modal) */
.sheet-bg {
  position: fixed; inset: 0; background: rgba(27, 42, 74, .45); z-index: 40;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease;
}
.sheet {
  background: var(--paper); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto;
  border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + var(--safe-b));
  animation: up .2s ease;
}
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@keyframes fade { from { opacity: 0; } }

.toast {
  /* Arriba, bajo la barra: abajo tapaba los campos de las hojas que se abren justo después. */
  position: fixed; left: 50%; top: calc(62px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 95;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 14px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow); max-width: 90vw; animation: up .2s ease;
}

/* ---------------------------------------------------------------- barras simples */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.bars .bar { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--sky); min-height: 3px; }
.bars .bar.full { background: var(--blue); }
.bars .lbl { font-size: 10px; color: var(--muted); font-weight: 700; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--sky-soft); border-top-color: var(--blue); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.mic {
  width: 96px; height: 96px; border-radius: 50%; border: 0; cursor: pointer; margin: 0 auto;
  background: var(--blue); color: var(--white); font-size: 38px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(30, 75, 166, .35);
}
.mic.rec { background: var(--danger); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 16px rgba(194, 54, 47, .15); } }

.list-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; margin-top: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.segmented { display: flex; background: var(--paper-2); border-radius: 12px; padding: 4px; gap: 4px; overflow-x: auto; }
.segmented button { flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.segmented button.on { background: var(--white); color: var(--blue); box-shadow: var(--shadow); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--sky); }
.timeline .ev { position: relative; }
.timeline .ev::before { content: ""; position: absolute; left: -20px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--paper); }
.timeline .ev + .ev { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.excard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; }
.excard .img { aspect-ratio: 4 / 3; background: var(--sky-soft); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.excard .img img { width: 100%; height: 100%; object-fit: cover; }
.excard .body { padding: 10px 12px 12px; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.prose p + p { margin-top: 8px; }
pre.transcript { white-space: pre-wrap; font-family: inherit; margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- barra superior fija */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: calc(54px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0 20px;
  background: var(--blue); color: var(--white);
  transition: box-shadow .2s ease;
}
body.scrolled .topbar { box-shadow: 0 6px 18px rgba(27, 42, 74, .25); }
.topbar .brand { font-weight: 800; letter-spacing: -0.04em; font-size: 18px; }
.topbar .brand b { color: var(--sky); }
.tb-back { color: var(--white); text-decoration: none; font-weight: 800; font-size: 15px; padding: 10px 0; }
.tb-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.tb-btn:active { background: rgba(255, 255, 255, .26); }
.tb-actions { display: flex; gap: 8px; }
.tb-help { text-decoration: none; font-weight: 800; font-size: 20px; }
.topbar + .hero { padding-top: 6px; }

/* ---------------------------------------------------------------- dictado */
.field-mic { position: relative; }
.field-mic > textarea, .field-mic > input { padding-right: 52px; }
.mic-sm {
  position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--sky-soft); color: var(--blue); display: flex; align-items: center; justify-content: center;
}
.mic-sm.rec { background: var(--danger); color: var(--white); animation: pulse 1.2s ease infinite; }
.mic-sm.busy { opacity: .6; pointer-events: none; }
.mic-sm.busy::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--blue); animation: spin .8s linear infinite; }
.voicefill { display: flex; align-items: center; gap: 12px; background: var(--sky-soft); border-radius: 14px; padding: 10px 12px; }
.voicefill .mic-big { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.voicefill .mic-big.rec { background: var(--danger); animation: pulse 1.2s ease infinite; }
.voicefill .mic-big svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- video */
video.player { width: 100%; max-height: 70vh; border-radius: 16px; background: #000; }
.video-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--navy); color: var(--white); border: 0; border-radius: 14px; padding: 10px 14px 10px 10px;
  font-weight: 800; font-size: 15px; cursor: pointer; text-align: left;
}
.video-btn .pv { width: 54px; height: 40px; border-radius: 9px; background: #000 center/cover; flex: none; position: relative; }
.video-btn .pv::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.progressbar { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.progressbar > div { height: 100%; background: var(--blue); width: 0; transition: width .2s ease; }

/* ---------------------------------------------------------------- calendario */
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.daystrip::-webkit-scrollbar { display: none; }
.daychip {
  flex: none; width: 58px; padding: 8px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; scroll-snap-align: start;
}
.daychip .dw { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.daychip .dn { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.daychip .dc { font-size: 10.5px; font-weight: 700; color: var(--ok); }
.daychip.off { opacity: .45; }
.daychip.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.daychip.on .dw, .daychip.on .dc { color: var(--sky-soft); }
.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slotgrid button {
  min-height: 46px; border-radius: 12px; border: 1.5px solid var(--sky); background: var(--white);
  color: var(--blue-ink); font-weight: 800; font-size: 15px; cursor: pointer;
}
.slotgrid button.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.slotgrid button.taken { background: var(--paper-2); border-color: var(--paper-2); color: var(--muted); cursor: default; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 15px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(22px); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------------------------------------------------------------- consultas */
.consult-item { display: block; text-decoration: none; color: inherit; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-top: 10px; position: relative; }
.consult-item .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 22px; }
.consult-item.latest { box-shadow: inset 4px 0 0 var(--blue), var(--shadow); }
.minibar { display: flex; gap: 2px; align-items: flex-end; height: 22px; margin-top: 8px; }
.minibar > i { flex: 1; background: var(--sky); border-radius: 2px; min-height: 2px; }
.minibar > i.full { background: var(--blue); }
.tb-sub { opacity: .7; font-weight: 700; font-size: 13px; letter-spacing: 0; margin-left: 4px; }
.action-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; border: 0; font: inherit; color: inherit; }
.action-card .ac-ico { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.action-card b { font-size: 17px; letter-spacing: -0.02em; }
.task .thumb.emoji { font-size: 22px; white-space: nowrap; letter-spacing: -4px; }
.btn.white { box-shadow: inset 0 0 0 1.5px var(--sky); }

/* ---------------------------------------------------------------- tutoriales */
.tut-list { display: grid; gap: 10px; }
.tut-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--white);
  text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(27, 42, 74, .07); }
.tut-card b { display: block; line-height: 1.25; }
.tut-card .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.tut-thumb { position: relative; flex: 0 0 112px; height: 70px; border-radius: 12px; background: var(--navy) center/cover; }
.tut-play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 12px; padding-left: 2px; }
.tut-dur { position: absolute; right: 6px; bottom: 5px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(27, 42, 74, .8);
  padding: 1px 6px; border-radius: 6px; }
.tut-text { margin-top: 12px; }
.tut-text h3 { font-size: 16px; margin: 14px 0 6px; color: var(--blue); }
.tut-text h3:first-child { margin-top: 0; }
.tut-text ol, .tut-text ul { padding-left: 20px; margin: 0; }
.tut-text li { margin: 4px 0; }
.tut-text p { margin: 4px 0; }
