/*
 * Cardioteca.com — Guías Clínicas Interactivas
 * Guía: Rehabilitación cardiaca (ESC 2026)
 * Archivo: style.css · Carpeta: /components/com_cardiotools/rehab/ · Versión: 20261107e
 * © Campus Formación Sanitaria S.L. — CIF B88633318
 * Todos los selectores van bajo #rhb-root (Bootstrap 4 de la plantilla). Sin modo oscuro (retirado el 14/10/2026).
 */
#rhb-root{--bg:#f0f4f8;--surface:#fff;--surface2:#f8fafc;--border:#dde3ed;--border-focus:#0e6fbd;--navy:#0d2d5e;--navy2:#1a4a8a;--teal:#0891b2;--teal2:#0e7490;
  --green:#059669;--amber:#d97706;--red:#dc2626;--text:#1e293b;--text2:#475569;--text3:#64748b;
  --shadow:0 1px 2px rgba(13,45,94,.06),0 8px 24px rgba(13,45,94,.08);
  /* mejora 1 (07/11/2026, noche): sombras suaves en opciones, casillas y botones; el anillo de la casilla activa */
  --shadow-chip:0 1px 2px rgba(13,45,94,.07);--shadow-hover:0 4px 14px rgba(8,145,178,.16);--shadow-on:0 4px 14px rgba(13,45,94,.26);
  --ring:0 0 0 3px rgba(8,145,178,.2);
  font-family:'Source Sans 3',sans-serif;font-size:15px;line-height:1.6;color:var(--text);background:var(--bg);min-height:auto;border-radius:16px}
#rhb-root *{box-sizing:border-box}
#rhb-root .aw{max-width:820px;margin:0 auto;padding:24px 16px 40px}
#rhb-root .app-header{text-align:center;margin-bottom:20px}
#rhb-root .app-header .badge{display:inline-flex;align-items:center;gap:6px;background:var(--navy);color:#fff;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:4px 12px;border-radius:20px;margin-bottom:12px;font-family:'Outfit',sans-serif}
#rhb-root .app-header .dot{width:6px;height:6px;border-radius:50%;background:var(--teal);animation:rhbpulse 2s infinite}
@keyframes rhbpulse{0%,100%{opacity:1}50%{opacity:.4}}
#rhb-root .app-header h1{font-family:'Outfit',sans-serif;font-size:28px;font-weight:700;color:var(--navy);line-height:1.2;margin:0 0 6px}
#rhb-root .app-header h1 span{color:var(--teal)}
#rhb-root .app-header p{color:var(--text2);font-size:14.5px;max-width:560px;margin:0 auto}
/* progreso */
#rhb-root .rhb-prog-bar{display:flex;align-items:flex-start;margin:0 0 20px;padding:0 2px}
#rhb-root .prog-step{display:flex;flex-direction:column;align-items:center;gap:5px;flex:0 0 auto;min-width:44px}
#rhb-root .prog-circle{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;font-family:'Outfit',sans-serif;border:2px solid var(--border);background:var(--surface);color:var(--text3);cursor:pointer;padding:0}
#rhb-root .prog-circle:disabled{cursor:default}
#rhb-root .prog-circle.active{border-color:var(--navy);background:var(--navy);color:#fff}
#rhb-root .prog-circle.done{border-color:var(--teal2);background:var(--teal2);color:#fff}
#rhb-root .prog-label{font-size:11px;color:var(--text3);font-weight:500;text-align:center;line-height:1.25;white-space:nowrap}
#rhb-root .prog-label.active{color:var(--navy);font-weight:700}
#rhb-root .prog-label.done{color:var(--teal2)}
#rhb-root .prog-line{flex:1;height:2px;background:var(--border);margin-top:21px;min-width:4px}
#rhb-root .prog-line.done{background:var(--teal)}
/* tarjetas */
#rhb-root .card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:22px 24px;box-shadow:var(--shadow);margin-bottom:14px}
#rhb-root .card-title{font-family:'Outfit',sans-serif;font-size:19px;font-weight:700;color:var(--navy);margin-bottom:4px}
#rhb-root .card-subtitle{font-size:14px;color:var(--text2);margin-bottom:16px}
#rhb-root .form-section-title{display:flex;align-items:center;gap:8px;font-family:'Outfit',sans-serif;font-size:12.5px;font-weight:700;color:var(--teal2);text-transform:uppercase;letter-spacing:.07em;margin:20px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--border)}
#rhb-root .form-section-title::before{content:'';flex:0 0 4px;width:4px;height:14px;border-radius:2px;background:currentColor;opacity:.85}
#rhb-root .form-section-title.rhb-g-pe{color:#991b1b}
#rhb-root .form-section-title.rhb-g-e{color:#9a3412}
#rhb-root .form-section-title.rhb-g-r{color:#92400e}
/* opciones */
#rhb-root .rhb-chips{display:flex;flex-wrap:wrap;gap:8px}
#rhb-root .rhb-lista{flex-direction:column}
#rhb-root .rhb-chip{display:inline-flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:44px;padding:9px 14px;border:1.5px solid var(--border);border-radius:12px;background:#fff;color:var(--text);font-family:'Source Sans 3',sans-serif;font-size:14.5px;cursor:pointer;line-height:1.3;box-shadow:var(--shadow-chip);transition:border-color .15s,box-shadow .15s,transform .15s,background .15s}
#rhb-root .rhb-chip:hover{border-color:var(--teal);box-shadow:var(--shadow-hover);transform:translateY(-1px)}
#rhb-root .rhb-chip:focus-visible{outline:none;box-shadow:var(--ring)}
#rhb-root .rhb-chip.on{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:var(--shadow-on)}
#rhb-root .rhb-chip-t{font-weight:600}
#rhb-root .rhb-chip-s{font-size:12.5px;color:var(--text3);margin-top:1px}
#rhb-root .rhb-chip.on .rhb-chip-s{color:#cbd5e1}
#rhb-root .rhb-chip-ninguno{border-style:dashed}
#rhb-root .rhb-campos{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
@media(min-width:560px){#rhb-root .rhb-campos{grid-template-columns:1fr 1fr}}
#rhb-root .rhb-campo{display:flex;flex-direction:column;gap:5px;font-size:13.5px;font-weight:600;color:var(--navy);margin:0}
#rhb-root .rhb-campo em{font-style:normal;font-weight:400;color:var(--text3);font-size:13px}
#rhb-root .rhb-campo input{min-height:46px;border:1.5px solid var(--border);border-radius:10px;padding:10px 13px;font-size:16px;font-family:'Source Sans 3',sans-serif;background:#fff;color:var(--text);width:100%;box-shadow:inset 0 1px 2px rgba(13,45,94,.05);transition:border-color .15s,box-shadow .15s}
#rhb-root .rhb-campo input:hover{border-color:#c3cede}
#rhb-root .rhb-campo input:focus{outline:none;border-color:var(--teal);background:#fff;box-shadow:var(--ring)}
#rhb-root .rhb-campos-1{grid-template-columns:1fr}
/* mejora 6: la fecha en tres casillas (día, mes y año) */
#rhb-root .rhb-fecha{margin-top:12px}
#rhb-root .rhb-fecha-t{display:block;font-size:13.5px;font-weight:600;color:var(--navy);margin-bottom:6px}
#rhb-root .rhb-fecha-campos{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
#rhb-root .rhb-fecha-p{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:var(--text2);margin:0}
#rhb-root .rhb-fecha-p input{width:68px;min-height:46px;border:1.5px solid var(--border);border-radius:10px;padding:10px 8px;font-size:17px;text-align:center;font-family:'Source Sans 3',sans-serif;background:#fff;color:var(--text);box-shadow:inset 0 1px 2px rgba(13,45,94,.05);transition:border-color .15s,box-shadow .15s}
#rhb-root .rhb-fecha-p2 input{width:96px}
#rhb-root .rhb-fecha-p input:focus{outline:none;border-color:var(--teal);box-shadow:var(--ring)}
#rhb-root .rhb-fecha-nota:empty{display:none}
#rhb-root .rhb-fila-sn{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 0;border-bottom:1px dashed #e2e8f0}
/* mejora 7: «Revisada: no consta ninguna», al final de la lista y junto a los botones */
#rhb-root .rhb-revisada{margin-top:18px;padding-top:14px;border-top:1px dashed var(--border)}
/* mejora 5: lo que falta para seguir */
#rhb-root .rhb-falta{margin-top:20px;font-size:14px;color:#7f1d1d;background:#fef2f2;border:1px solid #fca5a5;border-radius:10px;padding:10px 14px;box-shadow:var(--shadow-chip)}
#rhb-root .rhb-falta ul{margin:4px 0 0;padding-left:20px}
#rhb-root .rhb-falta li{margin:2px 0}
#rhb-root .rhb-fila-t{font-size:14.5px;font-weight:600;color:var(--text)}
#rhb-root .rhb-sn{display:flex;gap:6px}
#rhb-root .rhb-sn .rhb-chip{min-width:64px;align-items:center}
#rhb-root .rhb-aviso{margin-top:8px;font-size:13.5px;color:#7f1d1d;background:#fef2f2;border:1px solid #fca5a5;border-radius:8px;padding:7px 11px}
#rhb-root .rhb-nota{margin-top:6px;font-size:14px;color:var(--text2);font-weight:600}
/* navegación */
#rhb-root .nav-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}
#rhb-root .btn-back{min-height:44px;background:#fff;border:1.5px solid var(--border);border-radius:10px;padding:9px 20px;font-size:14.5px;font-weight:600;color:var(--text2);cursor:pointer;box-shadow:var(--shadow-chip);transition:border-color .15s,color .15s}
#rhb-root .btn-back:hover{border-color:var(--navy);color:var(--navy)}
#rhb-root .btn-next{min-height:44px;background:var(--navy);color:#fff;border:none;border-radius:10px;padding:10px 26px;font-family:'Outfit',sans-serif;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px rgba(13,45,94,.24);transition:background .15s,transform .15s}
#rhb-root .btn-next:hover{background:var(--navy2);transform:translateY(-1px)}
#rhb-root .btn-next:disabled{background:#94a3b8;cursor:not-allowed}
#rhb-root .btn-analyze{min-height:48px;background:linear-gradient(135deg,var(--teal2),var(--navy));color:#fff;border:none;border-radius:10px;padding:12px 28px;font-family:'Outfit',sans-serif;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 4px 16px rgba(8,145,178,.3)}
#rhb-root .rhb-cargando{text-align:center;color:var(--text2);padding:20px}
/* resultado */
#rhb-root .res-head{display:flex;gap:14px;align-items:flex-start}
#rhb-root .res-ico{width:52px;height:52px;border-radius:14px;background:#ecfdf5;display:flex;align-items:center;justify-content:center;font-size:25px;flex-shrink:0}
#rhb-root .res-tit{font-family:'Outfit',sans-serif;font-size:21px;font-weight:700;color:var(--navy);line-height:1.25}
#rhb-root .res-sub{font-size:14px;color:var(--text2);margin-top:3px}
#rhb-root .res-dec{margin:12px 0 4px;font-size:14px;color:#334155;background:#f1f5f9;border-radius:9px;padding:9px 13px}
#rhb-root .rhb-sec{border-top:1px solid var(--border);margin-top:16px;padding-top:14px}
#rhb-root .sec-t{font-family:'Outfit',sans-serif;font-size:16.5px;font-weight:700;color:var(--navy);margin:0 0 8px;display:flex;align-items:center;gap:9px}
#rhb-root .sec-t .num{display:inline-flex;width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;font-size:13px;align-items:center;justify-content:center;flex-shrink:0}
#rhb-root .rec{display:flex;gap:9px;align-items:flex-start;padding:6px 0;border-bottom:1px solid #f1f5f9;font-size:14.5px;line-height:1.5}
#rhb-root .ev{display:inline-flex;gap:3px;flex-shrink:0;margin-top:1px}
#rhb-root .ev b{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:500;border:1.5px solid;border-radius:12px;padding:0 7px;line-height:20px}
#rhb-root .ev .c1{background:#f0fdf4;color:#065f46;border-color:#6ee7b7}
#rhb-root .ev .c2a{background:#eff6ff;color:#1e40af;border-color:#93c5fd}
#rhb-root .ev .c2b{background:#fffbeb;color:#92400e;border-color:#fcd34d}
#rhb-root .ev .c3{background:#fef2f2;color:#991b1b;border-color:#fca5a5}
#rhb-root .ev .lv{background:#f8fafc;color:#475569;border-color:#dde3ed}
#rhb-root .pr{font-family:'JetBrains Mono',monospace;font-size:11px;color:#64748b;white-space:nowrap}
#rhb-root .sub-t{font-size:12.5px;font-weight:700;color:var(--teal2);text-transform:uppercase;letter-spacing:.07em;margin:12px 0 4px;font-family:'Outfit',sans-serif}
#rhb-root .rhb-p{font-size:14.5px;color:#334155;margin:7px 0;line-height:1.55}
#rhb-root .box{border-radius:10px;padding:10px 14px;font-size:14px;margin:9px 0;line-height:1.5}
#rhb-root .box ul{margin:6px 0 0;padding-left:20px}
#rhb-root .box b.et{display:block;font-family:'Outfit',sans-serif;font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;margin-bottom:3px}
#rhb-root .box-ok{background:#f0fdf4;border:1px solid #6ee7b7;color:#065f46}
#rhb-root .box-amb{background:#fffbeb;border:1px solid #fcd34d;color:#78350f}
#rhb-root .box-rojo{background:#fef2f2;border:1px solid #fca5a5;color:#7f1d1d}
#rhb-root .box-info{background:#eff6ff;border:1px solid #93c5fd;color:#1e3a8a}
#rhb-root .box-ft{background:#fff1f2;border:1.5px solid #fb7185;color:#881337}
#rhb-root .box-ctk{background:#fff7ed;border:1.5px dashed #ea580c;color:#7c2d12}
#rhb-root .box-fuera{background:#f5f3ff;border:1px solid #c4b5fd;color:#4c1d95}
#rhb-root .box-orig{background:#ecfeff;border:1px solid #67e8f9;color:#164e63}
#rhb-root .rhb-pms{margin-top:5px}
#rhb-root .rhb-pm{font-family:'JetBrains Mono',monospace;font-size:11.5px;color:var(--teal2);text-decoration:underline;white-space:nowrap}
#rhb-root .rhb-tw{overflow-x:auto;margin:8px 0}
#rhb-root table.fitt{width:100%;border-collapse:collapse;font-size:13.8px}
#rhb-root table.fitt caption{caption-side:top;text-align:left;font-family:'Outfit',sans-serif;font-weight:700;color:var(--navy);font-size:13.5px;padding:0 0 5px}
#rhb-root table.fitt th{background:var(--navy);color:#fff;font-family:'Outfit',sans-serif;font-weight:600;text-align:left;padding:6px 8px;font-size:12.8px;vertical-align:bottom}
#rhb-root table.fitt td{border-bottom:1px solid #e2e8f0;padding:6px 8px;vertical-align:top}
#rhb-root table.fitt td:first-child{color:#475569;font-weight:600}
#rhb-root .zona{display:flex;margin:10px 0 2px;border-radius:9px;overflow:hidden;font-size:12.5px;font-family:'Outfit',sans-serif;text-align:center}
#rhb-root .zona div{padding:8px 4px;line-height:1.3}
#rhb-root .zona .z1{flex:3;background:#e0f2fe;color:#075985}
#rhb-root .zona .z2{flex:4;background:#bbf7d0;color:#14532d;font-weight:700}
#rhb-root .zona .z3{flex:3;background:#fde68a;color:#78350f}
#rhb-root .rhb-zona-o{font-size:12.5px;color:var(--text3);margin-bottom:6px}
#rhb-root .cuenta{font-family:'JetBrains Mono',monospace;font-size:12.8px;background:var(--surface2);border:1px solid #e2e8f0;border-radius:8px;padding:8px 11px;margin:7px 0;color:#0f172a;overflow-x:auto}
#rhb-root .linea{position:relative;height:28px;margin:12px 8px 30px;border-radius:6px;display:flex}
#rhb-root .linea .tr{height:28px}
#rhb-root .linea .t-ok{background:#bbf7d0;border-radius:6px 0 0 6px}
#rhb-root .linea .t-amb{background:#fde68a;border-radius:0 6px 6px 0}
#rhb-root .linea .marca{position:absolute;top:-6px;width:3px;height:40px;background:var(--navy);border-radius:2px}
#rhb-root .linea .marca span{position:absolute;top:-22px;left:-34px;width:72px;text-align:center;font-size:12px;font-weight:700;color:var(--navy);background:#fff;border-radius:4px;font-family:'Outfit',sans-serif}
#rhb-root .linea .tick{position:absolute;top:31px;font-size:11.5px;color:#475569;font-family:'JetBrains Mono',monospace;transform:translateX(-50%)}
/* el pie (PIE-1) */
#rhb-root .rhb-pie .pie-t{font-family:'Outfit',sans-serif;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#475569;margin-bottom:8px}
#rhb-root .pie-acc{display:grid;grid-template-columns:1fr;gap:9px}
@media(min-width:560px){#rhb-root .pie-acc{grid-template-columns:repeat(3,1fr)}}
#rhb-root .rhb-b{min-height:48px;border-radius:10px;font-family:'Outfit',sans-serif;font-weight:600;font-size:15px;cursor:pointer;padding:8px 12px}
#rhb-root .rhb-b1{background:linear-gradient(135deg,var(--teal2),var(--navy));color:#fff;border:none;box-shadow:0 4px 14px rgba(8,145,178,.3)}
#rhb-root .rhb-b2{background:#fff;color:var(--teal2);border:2px solid var(--teal2)}
#rhb-root .rhb-save-form{margin-top:10px}
#rhb-root .rhb-btn-save{width:100%}
#rhb-root .rhb-save-warn{font-size:13px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:8px 12px;margin-top:8px;line-height:1.5}
#rhb-root .rhb-save-open{background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:12px}
#rhb-root .rhb-save-b{display:flex;gap:10px;margin-top:10px}
#rhb-root .rhb-saved{background:#f0fdf4;border:1px solid #6ee7b7;border-radius:10px;padding:10px 12px;color:#065f46;font-size:14px}
#rhb-root .pie-saltos{margin:12px 0;font-size:14px;background:var(--surface2);border-radius:9px;padding:9px 13px}
#rhb-root .pie-saltos a{color:var(--teal2);font-weight:600;text-decoration:none}
#rhb-root .pie-nav{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}
#rhb-root .rhb-bn2{min-height:42px;border:1.5px solid var(--border);border-radius:9px;background:#fff;font-size:14.5px;color:#475569;font-weight:600;cursor:pointer}
#rhb-root .disclaimer{background:#fff8e1;border:1px solid #fde68a;border-radius:10px;padding:11px 15px;margin-top:10px}
#rhb-root .disclaimer-text{font-size:12.5px;color:#78350f;line-height:1.55}
#rhb-root .disclaimer-text > strong:first-child{display:block;margin-bottom:3px}
/* sesión y casos */
#rhb-root .rhb-banner,#rhb-root .rhb-loaded{display:flex;gap:12px;align-items:flex-start;background:#eff6ff;border:1px solid #93c5fd;border-radius:12px;padding:12px 14px;margin-bottom:12px}
#rhb-root .rhb-banner-t,#rhb-root .rhb-loaded-t{font-weight:700;color:var(--navy)}
#rhb-root .rhb-banner-d,#rhb-root .rhb-loaded-d{font-size:13.5px;color:var(--text2)}
#rhb-root .rhb-banner-b{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#rhb-root .rhb-bs1{min-height:42px;background:var(--navy);color:#fff;border:none;border-radius:9px;padding:8px 16px;font-weight:600;cursor:pointer}
#rhb-root .rhb-bs2{min-height:42px;background:#fff;color:var(--navy);border:1.5px solid var(--navy);border-radius:9px;padding:8px 16px;font-weight:600;cursor:pointer}
#rhb-root .rhb-x{min-width:42px;min-height:42px;border:none;background:none;font-size:22px;color:var(--text2);cursor:pointer}
#rhb-root .rhb-casos{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 14px;margin-bottom:12px}
#rhb-root .rhb-casos-t{font-family:'Outfit',sans-serif;font-weight:700;color:var(--navy)}
#rhb-root .rhb-casos-d{font-size:12.5px;color:var(--text3);margin-bottom:6px}
#rhb-root .rhb-caso{display:flex;align-items:center;gap:6px;border-top:1px solid #f1f5f9;padding:6px 0}
#rhb-root .rhb-caso-n{flex:1;min-width:0;display:flex;flex-direction:column}
#rhb-root .rhb-caso-t{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#rhb-root .rhb-caso-f{font-size:12px;color:var(--text3)}
#rhb-root .rhb-ic{min-width:42px;min-height:42px;border:none;background:none;font-size:18px;cursor:pointer}
#rhb-root .app-footer{text-align:center;margin-top:18px;font-size:12px;color:var(--text3);line-height:1.6}
#rhb-root .app-footer a{color:var(--teal2)}
@media(max-width:520px){
  #rhb-root .aw{padding:16px 10px 30px}
  #rhb-root .card{padding:16px 14px}
  #rhb-root .app-header h1{font-size:23px}
  #rhb-root .prog-label{display:none}
  #rhb-root .prog-step{min-width:34px}
  #rhb-root .res-tit{font-size:19px}
  #rhb-root .rec{font-size:14px}
}
@media print{#rhb-root .rhb-pie,#rhb-root .rhb-prog-bar{display:none}}
/* segunda versión (07/11/2026): la propuesta de prueba del paso 4 y los «No tengo los datos» */
#rhb-root .rhb-propone{border:1.5px solid #9fd8e6;background:#ecf8fb;border-radius:12px;padding:12px 14px;margin:12px 0 4px;box-shadow:var(--shadow-chip)}
#rhb-root .rhb-propone p{margin:6px 0 0;font-size:14.5px;line-height:1.55;color:var(--text)}
#rhb-root .rhb-propone-t{font-family:'Outfit',sans-serif;font-weight:700;font-size:16px;color:var(--teal2)}
#rhb-root .rhb-propone-vacia{border-style:dashed;background:var(--surface2);color:var(--text2);font-size:14.5px}
#rhb-root .rhb-propone-c{font-size:13.5px;color:var(--text2)}
#rhb-root .rhb-propone .et{display:inline-block;font-size:11.5px;font-weight:700;color:#7c2d12;background:#fff7ed;border:1px dashed #ea580c;border-radius:5px;padding:0 6px;margin-right:6px}
#rhb-root .rhb-chip-nd{border-style:dashed}
