/* Armonización orofacial — paleta de la clínica y estilos del módulo.
   Se carga después de app.css: solo redefine colores y agrega lo nuevo. */

/* ---------- Paleta (malva y oro rosa) ---------- */
:root {
  --brand-navy: #6b3f50;
  --brand-sky: #d9a28b;
  --brand-sky-ink: #a0614a;
  --brand-sky-soft: #f8ebe5;
  --brand-yellow: #e8c39e;
  --primary: #7a4a5c;
  --primary-light: #8d5a6d;
  --accent: #a8644f;
  --accent-hover: #8f5241;
  --tab-active: #6b3f50;
  --bg: #faf6f4;
  --surface2: #fcf8f6;
  --border: #ead9d3;
  --shadow: 0 1px 3px rgba(122,74,92,0.07), 0 4px 14px rgba(122,74,92,0.07);
  --shadow-lg: 0 10px 30px rgba(122,74,92,0.16);
  --glass-bg: rgba(250,246,244,0.96);
  --armo-toxina: #7c5cd6; --armo-hialuronico: #e0567f; --armo-bioestimulador: #2fa37a;
  --armo-hilos: #d48a1f; --armo-enzima: #2b8fd6; --armo-skinbooster: #14a3a3; --armo-prp: #c0392b;
  --armo-ok: #2e8b57; --armo-warn: #b7791f; --armo-bad: #c0392b;
}
#dashboard {
  background:
    radial-gradient(1200px 400px at 100% -10%, rgba(217,162,139,0.18), transparent 60%),
    radial-gradient(800px 300px at -10% 0%, rgba(122,74,92,0.08), transparent 60%),
    var(--bg);
}
:root[data-theme="dark"] {
  --primary: #d79bb0; --primary-light: #e2adc0; --tab-active: #d79bb0; --accent: #e0a48c; --accent-hover: #ebb7a2;
  --brand-navy: #f0c4d2; --brand-sky-ink: #e8b49f; --brand-sky-soft: #3a2530; --bg: #17121a; --surface: #221a25; --surface2: #2a2030; --border: #3d2f42;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #d79bb0; --primary-light: #e2adc0; --tab-active: #d79bb0; --accent: #e0a48c; --accent-hover: #ebb7a2;
    --brand-navy: #f0c4d2; --brand-sky-ink: #e8b49f; --brand-sky-soft: #3a2530; --bg: #17121a; --surface: #221a25; --surface2: #2a2030; --border: #3d2f42;
  }
  :root:not([data-theme="light"]) #dashboard { background: var(--bg); }
}
:root[data-theme="dark"] #dashboard { background: var(--bg); }

/* ---------- Pestañas de la historia en el orden visual ---------- */
#tabs-list { display: flex; }
#tab-add-esp { order: 9999; }
.tab-btn.armo-tab .tab-num { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }

/* ---------- Comunes del módulo ---------- */
.armo-sub { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.armo-sub button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .86rem; cursor: pointer; }
.armo-sub button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.armo-sub button .armo-badge { margin-left: 6px; }
.armo-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; background: var(--armo-bad); color: #fff; }
.armo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.armo-head .section-title { margin: 0; }
.armo-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.armo-vacio { color: var(--text-muted); padding: 18px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; }
.armo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.armo-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.armo-card h4 { margin: 0 0 4px; font-size: 1rem; color: var(--brand-navy); }
.armo-meta { color: var(--text-muted); font-size: .82rem; }
.armo-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.armo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; background: var(--surface2); border: 1px solid var(--border); }
.armo-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.armo-estado { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.armo-estado.borrador { background: #eee7e4; color: #6b5a54; }
.armo-estado.propuesta { background: #fdf0d9; color: #8a5a0b; }
.armo-estado.realizada { background: #dff3e8; color: #1f6b44; }
.armo-alerta { border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; }
.armo-alerta.roja { background: #fdecea; color: #922b21; border: 1px solid #f5c6c0; }
.armo-alerta.ambar { background: #fff6e6; color: #7a4f05; border: 1px solid #f3d98c; }
.armo-alerta.info { background: var(--brand-sky-soft); color: var(--brand-navy); border: 1px solid var(--border); }
:root[data-theme="dark"] .armo-alerta.roja { background: #3d1d1d; color: #ffb4ab; border-color: #6b2a2a; }
:root[data-theme="dark"] .armo-alerta.ambar { background: #33240d; color: #ffc77a; border-color: #6b4a14; }
.armo-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 16px; }
.armo-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.armo-checks label { display: flex; gap: 8px; align-items: center; font-size: .88rem; cursor: pointer; }
.armo-checks label.riesgo input:checked + span { color: var(--armo-bad); font-weight: 600; }
.armo-previos-row { display: grid; grid-template-columns: 1.3fr 1fr 140px 1.3fr 36px; gap: 8px; margin-bottom: 6px; }
@media (max-width: 720px) { .armo-previos-row { grid-template-columns: 1fr 1fr; } }
.armo-barra { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; border: 1px solid var(--border); }
.armo-barra > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.armo-tabla { width: 100%; border-collapse: collapse; font-size: .85rem; }
.armo-tabla th, .armo-tabla td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.armo-tabla th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.armo-tabla td.num, .armo-tabla th.num { text-align: right; white-space: nowrap; }
.armo-ok { color: var(--armo-ok); } .armo-warn { color: var(--armo-warn); } .armo-bad { color: var(--armo-bad); font-weight: 600; }

/* ---------- Rostro SVG ---------- */
.armo-rostro { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.armo-zona { fill: rgba(150,118,190,0); stroke: rgba(255,255,255,0); stroke-width: 1.5; pointer-events: all; transition: fill .2s, stroke .2s, filter .2s; cursor: crosshair; }
.armo-ver-zonas .armo-zona, .armo-rostro.zonas-visibles .armo-zona { fill: rgba(150,118,190,.42); stroke: rgba(255,255,255,.75); }
.armo-zona:hover, .armo-zona.hover { fill: rgba(224,86,127,.30); stroke: #fff; filter: drop-shadow(0 0 5px rgba(224,86,127,.95)); }
.armo-zona.on { fill: rgba(224,86,127,.34); stroke: #fff; filter: drop-shadow(0 0 6px rgba(224,86,127,.9)); animation: armo-brillo 2.4s ease-in-out infinite; }
@keyframes armo-brillo { 50% { fill: rgba(224,86,127,.18); filter: drop-shadow(0 0 2px rgba(224,86,127,.6)); } }
@media (prefers-reduced-motion: reduce) { .armo-zona.on { animation: none; } }
.armo-musculo { cursor: crosshair; transition: filter .15s; }
.armo-musculo:hover { filter: brightness(1.18) drop-shadow(0 0 3px rgba(255,255,255,.8)); }
/* Ilustración (mujer): los músculos son zonas invisibles que se iluminan al pasar */
.armo-musculo.hit { fill: rgba(255,240,220,0); stroke: rgba(255,255,255,0); stroke-width: 1.2; pointer-events: all; }
.armo-musculo.hit:hover { fill: rgba(255,240,220,.22); stroke: rgba(255,255,255,.9); stroke-dasharray: 3 2; filter: none; }
.armo-ilustracion image { pointer-events: none; }
.armo-etiquetas line { stroke: #7a4a5c; stroke-width: .8; stroke-opacity: .7; }
.armo-etiquetas circle { fill: #7a4a5c; }
.armo-etiquetas text { font: 600 11.5px Outfit, Arial, sans-serif; fill: #5a3343; }
.armo-etq.on text { fill: #d6336c; } .armo-etq.on line { stroke: #d6336c; stroke-opacity: 1; stroke-width: 1.4; } .armo-etq.on circle { fill: #d6336c; }
:root[data-theme="dark"] .armo-etiquetas text { fill: #f0c4d2; } :root[data-theme="dark"] .armo-etiquetas line, :root[data-theme="dark"] .armo-etiquetas circle { stroke: #e2adc0; fill: #e2adc0; }
.armo-punto { cursor: grab; }
.armo-punto:active { cursor: grabbing; }
.armo-punto circle.p { stroke: #fff; }
.armo-punto.propuesto circle.p { fill: #fff !important; stroke-dasharray: 3 2; }
.armo-punto.sel circle.halo { fill: none; stroke: #111; stroke-width: 1.5; stroke-dasharray: 2 2; }
.armo-punto text { font-family: Outfit, Arial, sans-serif; font-weight: 700; fill: #3b2a30; paint-order: stroke; stroke: rgba(255,255,255,.92); stroke-width: 3px; pointer-events: none; }
.armo-punto.nuevo circle.p { animation: armo-pop .45s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes armo-pop { 0% { transform: scale(.2); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
.armo-capa-hist circle { opacity: .35; pointer-events: none; }
.armo-zoom { display: inline-flex; gap: 4px; align-items: center; }
.armo-zoom button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 17px; line-height: 1; }
.armo-zoom button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.armo-zoom span { font-size: .78rem; color: var(--text-muted); min-width: 40px; text-align: center; }
.armo-lienzo.mover svg { cursor: grab; }
.armo-lienzo.nombres { max-width: 780px; }

/* ---------- Editor de sesión (pantalla completa) ---------- */
.armo-overlay { position: fixed; inset: 0; z-index: 1200; background: var(--bg); display: flex; flex-direction: column; }
.armo-overlay[hidden] { display: none; }
.armo-ed-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.armo-ed-top h3 { margin: 0; font-size: 1.02rem; color: var(--brand-navy); flex: 1 1 200px; min-width: 0; }
.armo-ed-top h3 small { display: block; font-weight: 400; color: var(--text-muted); font-size: .8rem; }
.armo-ed-top input[type=date] { width: auto; }
.armo-x { border: none; background: var(--surface2); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--text); }
.armo-ed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.armo-ed-mapa { display: flex; flex-direction: column; min-height: 0; padding: 12px; gap: 10px; overflow: auto; }
.armo-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.armo-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.armo-seg button { border: none; background: none; padding: 7px 12px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--text); }
.armo-seg button.on { background: var(--primary); color: #fff; }
.armo-lienzo { position: relative; margin: 0 auto; width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; }
.armo-leyenda { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: .78rem; color: var(--text-muted); }
.armo-zona-tip { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(40,25,32,.85); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .78rem; pointer-events: none; white-space: nowrap; }
.armo-zona-tip[hidden] { display: none; }
.armo-ed-panel { border-left: 1px solid var(--border); background: var(--surface); overflow: auto; padding: 14px 16px 24px; }
.armo-ed-panel section { margin-bottom: 16px; }
.armo-ed-panel h5 { margin: 0 0 8px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.armo-pincel { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.armo-pincel .form-group { margin-bottom: 8px; }
.armo-cant { display: flex; gap: 6px; align-items: center; }
.armo-cant button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 18px; color: var(--text); }
.armo-cant input { width: 90px; text-align: center; }
.armo-rapidas { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.armo-rapidas button { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 3px 8px; font-size: .78rem; cursor: pointer; color: var(--text); }
.armo-total-prod { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: .86rem; }
@media (max-width: 960px) {
  .armo-ed-body { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .armo-ed-mapa { overflow: visible; min-height: auto; }
  .armo-ed-panel { border-left: none; border-top: 1px solid var(--border); overflow: visible; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .armo-alerta.roja { background: #3d1d1d; color: #ffb4ab; border-color: #6b2a2a; }
  :root:not([data-theme="light"]) .armo-alerta.ambar { background: #33240d; color: #ffc77a; border-color: #6b4a14; }
}

/* Ventanita para editar un punto */
.armo-pop { position: fixed; z-index: 1300; width: 290px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px; }
.armo-pop[hidden] { display: none; }
.armo-pop h6 { margin: 0 0 8px; font-size: .9rem; color: var(--brand-navy); }
.armo-pop .form-group { margin-bottom: 7px; }
.armo-pop-acc { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; }

/* ---------- Fotos ---------- */
.armo-fotos-grupo { margin-bottom: 18px; }
.armo-fotos-grupo h5 { margin: 0 0 8px; font-size: .86rem; color: var(--brand-navy); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.armo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.armo-thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface2); aspect-ratio: 3 / 4; cursor: pointer; padding: 0; }
.armo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.armo-thumb span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .74rem; padding: 14px 6px 5px; text-align: left; }
.armo-thumb.sel { outline: 3px solid var(--primary); outline-offset: -3px; }
.armo-thumb .armo-anot { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.9); color: var(--primary); border-radius: 999px; font-size: .68rem; padding: 1px 6px; font-weight: 700; }
.armo-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.armo-slot { border: 1px dashed var(--border); border-radius: 14px; padding: 8px; text-align: center; background: var(--surface); }
.armo-slot .armo-slot-img { aspect-ratio: 3 / 4; border-radius: 10px; background: var(--surface2); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 6px; }
.armo-slot .armo-slot-img img { width: 100%; height: 100%; object-fit: cover; }
.armo-slot .armo-slot-img svg { width: 70%; opacity: .35; }
.armo-slot b { display: block; font-size: .82rem; margin-bottom: 6px; }
.armo-slot .armo-acciones { justify-content: center; }
.armo-slot.lista { border-style: solid; border-color: var(--armo-ok); }
.armo-cam { position: relative; flex: 1; min-height: 0; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.armo-cam video { max-width: 100%; max-height: 100%; }
.armo-cam video.espejo { transform: scaleX(-1); }
.armo-cam .armo-guia { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.armo-cam .armo-guia svg { height: 88%; max-width: 92%; }
.armo-cam-bar { display: flex; gap: 10px; justify-content: center; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: #111; }
.armo-disparo { width: 70px; height: 70px; border-radius: 50%; border: 5px solid #fff; background: var(--primary); cursor: pointer; }

/* Visor con anotaciones y guías de proporción */
.armo-visor-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.armo-visor-tools { border-right: 1px solid var(--border); background: var(--surface); padding: 12px; overflow: auto; }
.armo-visor-tools h5 { margin: 12px 0 6px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.armo-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.armo-tools button { border: 1px solid var(--border); background: var(--surface2); border-radius: 10px; padding: 8px 6px; cursor: pointer; font: inherit; font-size: .8rem; color: var(--text); }
.armo-tools button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.armo-colores { display: flex; gap: 6px; flex-wrap: wrap; }
.armo-colores button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.armo-colores button.on { box-shadow: 0 0 0 2px var(--text); }
.armo-escena { position: relative; display: flex; align-items: center; justify-content: center; background: #1b1418; overflow: hidden; min-height: 0; }
.armo-escena img { max-width: 100%; max-height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.armo-escena canvas { position: absolute; touch-action: none; }
.armo-ratios { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 8px; font-size: .8rem; line-height: 1.5; }
@media (max-width: 860px) {
  .armo-visor-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .armo-visor-tools { border-right: none; border-top: 1px solid var(--border); order: 2; max-height: 40vh; }
}

/* Comparador antes / después */
.armo-comp-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px; gap: 10px; }
.armo-comp-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.armo-comp-escena { position: relative; flex: 1; min-height: 260px; background: #1b1418; border-radius: 14px; overflow: hidden; touch-action: none; user-select: none; }
.armo-comp-escena img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.armo-comp-escena .armo-b { transform-origin: 50% 50%; }
.armo-comp-escena.lado { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.armo-comp-escena.lado img { position: static; }
.armo-comp-mango { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.5); cursor: ew-resize; }
.armo-comp-mango::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: var(--shadow-lg); }
.armo-comp-et { position: absolute; top: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .78rem; }
.armo-comp-ctrl { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .84rem; }
.armo-comp-ctrl input[type=range] { width: 160px; }

/* Preparar para la galería (zonas difuminadas) */
.armo-pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.armo-pub-grid canvas { width: 100%; height: auto; border-radius: 10px; background: #222; touch-action: none; cursor: move; }
@media (max-width: 640px) { .armo-pub-grid, .armo-comp-sel { grid-template-columns: 1fr; } }

/* ---------- Panel (dashboard) ---------- */
.armo-seg-fila { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.armo-seg-fila:last-child { border-bottom: none; }
.armo-seg-fila .armo-acciones { justify-content: flex-end; }
.armo-cuando { font-size: .78rem; font-weight: 600; }
.armo-cuando.vencido { color: var(--armo-bad); } .armo-cuando.pronto { color: var(--armo-warn); }
@media (max-width: 760px) { .armo-seg-fila { grid-template-columns: 1fr; } .armo-seg-fila .armo-acciones { justify-content: flex-start; } }
.armo-lote { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface2); margin-top: 6px; font-size: .84rem; }
.armo-barras { display: flex; flex-direction: column; gap: 6px; }
.armo-barras .fila { display: grid; grid-template-columns: 170px 1fr 70px; gap: 8px; align-items: center; font-size: .82rem; }
.armo-barras .fila .armo-barra { height: 12px; }
.armo-cols { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.armo-cols div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .7rem; color: var(--text-muted); gap: 4px; }
.armo-cols i { display: block; width: 100%; max-width: 38px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent), var(--primary)); min-height: 2px; }
.armo-inicio { margin-bottom: 18px; }
.armo-cat-zonas { max-width: 260px; margin: 0 auto 10px; }
.armo-zonas-txt { font-size: .8rem; color: var(--text-muted); text-align: center; margin-bottom: 10px; }
.armo-protocolo { border-left: 4px solid var(--armo-bad); }
.armo-protocolo ol { margin: 6px 0 0 18px; font-size: .86rem; line-height: 1.55; }

/* Tarjeta de bienvenida con la paleta de la clínica */
.hero-card { background: linear-gradient(135deg, #6b3f50 0%, #8d5a6d 55%, #c08a6b 100%); }
/* Modo armonización: el botón "Ortodoncia" del encabezado solo aparece si el paciente ya lo tiene marcado */
body.armo-modo #ph-orto:not([aria-pressed="true"]) { display: none; }
:root[data-theme="dark"] .armo-estado.borrador { background: #3a3036; color: #e2d3d9; }
:root[data-theme="dark"] .armo-estado.propuesta { background: #3a2a10; color: #ffc77a; }
:root[data-theme="dark"] .armo-estado.realizada { background: #153626; color: #7ddba3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .armo-estado.borrador { background: #3a3036; color: #e2d3d9; }
  :root:not([data-theme="light"]) .armo-estado.propuesta { background: #3a2a10; color: #ffc77a; }
  :root:not([data-theme="light"]) .armo-estado.realizada { background: #153626; color: #7ddba3; }
}
