#hc-antecedentes-root{container:hcAntecedentes/inline-size;--ant-blue:#1769e0;--ant-navy:#18314f;--ant-muted:#6c8098;--ant-line:#d7e3f1;--ant-soft:#f5f8fc;color:var(--ant-navy)}
.hc-ant,.hc-ant *{box-sizing:border-box}.hc-ant{display:flex;flex-direction:column;gap:12px;width:100%;max-width:100%;min-width:0;overflow-x:hidden}.hc-ant h3,.hc-ant h4,.hc-ant h5,.hc-ant p{margin:0}
.hc-ant-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--ant-line);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(27,67,112,.07)}.hc-ant-heading{display:flex;align-items:center;gap:12px;min-width:0}.hc-ant-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#e5f1ff,#f2f8ff);color:var(--ant-blue);font-size:20px;box-shadow:inset 0 0 0 1px #d7eaff}.hc-ant h3{font-size:1.12rem;letter-spacing:-.02em}.hc-ant-head p{margin-top:3px;color:var(--ant-muted);font-size:.78rem}.hc-ant-head-state{display:flex;align-items:flex-end;gap:9px}.hc-ant-head-state label{color:#60748c;font-size:.69rem;font-weight:800}.hc-ant-head select{display:block;min-width:205px;margin-top:4px;padding:9px 34px 9px 11px}
.hc-ant select,.hc-ant input,.hc-ant textarea{width:100%;border:1px solid #bfd2ea;border-radius:9px;background:#fff;color:var(--ant-navy);font:inherit;outline:none}.hc-ant select:focus,.hc-ant input:focus,.hc-ant textarea:focus{border-color:var(--ant-blue);box-shadow:0 0 0 3px rgba(23,105,224,.12)}.hc-ant-status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:8px 10px;font-size:.72rem;font-weight:850}.hc-ant-status:before{content:'';width:7px;height:7px;border-radius:50%;margin-right:7px}.hc-ant-status.sin_registrar{background:#eef2f6;color:#66788c}.hc-ant-status.sin_registrar:before{background:#91a0b0}.hc-ant-status.niega{background:#e8f8f0;color:#147848}.hc-ant-status.niega:before{background:#21a966}.hc-ant-status.con_antecedentes{background:#fff4df;color:#9a5a09}.hc-ant-status.con_antecedentes:before{background:#e99316}
.hc-ant-section{width:100%;max-width:100%;padding:15px;border:1px solid var(--ant-line);border-radius:16px;background:#f8fafd}.hc-ant-section-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.hc-ant-section-title>span{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#e8f2ff;color:var(--ant-blue);font-size:.72rem;font-weight:900}.hc-ant-section-title>div{min-width:0}.hc-ant-section-title h4{font-size:.98rem;letter-spacing:-.01em}.hc-ant-section-title p{margin-top:2px;color:var(--ant-muted);font-size:.74rem;line-height:1.35}
.hc-ant-grid{display:grid;gap:10px}.hc-ant-grid.personal{grid-template-columns:repeat(4,minmax(0,1fr))}.hc-ant-grid.family{grid-template-columns:repeat(2,minmax(0,1fr))}.hc-ant-card{display:flex;flex-direction:column;min-width:0;padding:14px;border:1px solid #d6e2f0;border-radius:13px;background:#fff;box-shadow:0 2px 8px rgba(31,71,112,.035)}.hc-ant-card h5{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:.87rem}.hc-ant-card h5 i{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;font-style:normal}.hc-ant-card h5 .blue{background:#eaf2ff;color:#1768d9}.hc-ant-card h5 .violet{background:#f0edff;color:#6745df}.hc-ant-card h5 .coral{background:#fff0ed;color:#dc5039}.hc-ant-card h5 .teal{background:#e5f8f4;color:#07816c}.hc-ant-hint{margin:-3px 0 6px!important;color:var(--ant-muted);font-size:.75rem;line-height:1.4}
.hc-ant-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.hc-ant-checks label{display:flex;align-items:center;gap:7px;min-width:0;min-height:34px;padding:6px 7px;border:1px solid transparent;border-radius:8px;color:#334d69;font-size:.78rem;line-height:1.25;cursor:pointer;transition:background .14s,border-color .14s}.hc-ant-checks label:hover{background:#f3f8fe;border-color:#d9e7f7}.hc-ant-checks label:has(input:checked){background:#eaf4ff;border-color:#9cc8fb;color:#075caf;font-weight:750}.hc-ant-checks input{flex:0 0 17px;width:17px;height:17px;margin:0;accent-color:var(--ant-blue)}.hc-ant-checks span{display:block;min-width:0;overflow-wrap:anywhere}
.hc-ant-field{display:block;margin-top:11px;color:#425d78;font-size:.7rem;font-weight:800}.hc-ant-field input,.hc-ant-field select,.hc-ant-field textarea{display:block;min-height:40px;margin-top:5px;padding:9px 10px;font-size:.8rem;font-weight:500;line-height:1.4}.hc-ant-field textarea{min-height:86px;resize:vertical}.hc-ant-field.grow{display:flex;flex:1;flex-direction:column}.hc-ant-field.grow textarea{flex:1}.hc-ant-family-fields{display:grid;grid-template-columns:minmax(110px,.75fr) minmax(0,1.25fr);gap:8px;margin-top:auto}.hc-ant-section.compact>.hc-ant-checks{grid-template-columns:repeat(4,minmax(0,1fr))}.hc-ant-field.inline{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:10px;margin-top:11px}.hc-ant-field.inline input{margin:0}.hc-ant-legacy{padding:11px 13px;border:1px dashed #9fc2ed;border-radius:12px;background:#f7fbff;color:#4b6685;font-size:.78rem}.hc-ant-legacy summary{cursor:pointer;font-weight:800;color:#1768d9}.hc-ant-legacy p{margin-top:8px;line-height:1.5}
@container hcAntecedentes (max-width:900px){.hc-ant-grid.personal{grid-template-columns:repeat(2,minmax(0,1fr))}.hc-ant-section.compact>.hc-ant-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.hc-ant-card{padding:13px}.hc-ant-checks label{min-height:38px}.hc-ant-status{display:none}.hc-ant-heading{flex:1}.hc-ant-family-fields{grid-template-columns:1fr}}
@container hcAntecedentes (max-width:590px){.hc-ant{gap:10px}.hc-ant-head{align-items:stretch;flex-direction:column;padding:14px}.hc-ant-head-state{align-items:center;justify-content:space-between}.hc-ant-head-state label{flex:1}.hc-ant-head select{min-width:0;min-height:44px}.hc-ant-status{display:none}.hc-ant-section{padding:12px}.hc-ant-grid.personal,.hc-ant-grid.family{grid-template-columns:1fr}.hc-ant-checks label{min-height:42px;font-size:.82rem}.hc-ant-checks input{width:20px;height:20px;flex-basis:20px}.hc-ant-family-fields,.hc-ant-field.inline{grid-template-columns:1fr}.hc-ant-field.inline input{margin-top:5px}.hc-ant input,.hc-ant select{min-height:44px}}
@container hcAntecedentes (max-width:390px){.hc-ant-checks,.hc-ant-section.compact>.hc-ant-checks{grid-template-columns:1fr}.hc-ant h3{font-size:1.05rem}}
@media(prefers-reduced-motion:reduce){.hc-ant-checks label{transition:none}}

/* Navegación clínica compacta: un foco de anamnesis a la vez. */
.hc-ant-view-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:7px;border:1px solid var(--ant-line);border-radius:14px;background:#edf3f9}.hc-ant-view-nav button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:43px;padding:7px 9px;border:1px solid transparent;border-radius:10px;background:transparent;color:#58708a;font:inherit;font-size:.78rem;font-weight:800;cursor:pointer}.hc-ant-view-nav button i{font-style:normal;color:#7a91aa}.hc-ant-view-nav button b,.hc-ant-view-nav button em{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:#dce6f0;color:#64788d;font-size:.65rem;font-style:normal}.hc-ant-view-nav button.active{border-color:#b8d4f6;background:#fff;color:#075fca;box-shadow:0 3px 10px rgba(39,83,132,.09)}.hc-ant-view-nav button.active i{color:#1377e9}.hc-ant-view-nav button.active b{background:#1674e8;color:#fff}.hc-ant-workspace{min-height:300px;padding:14px;border:1px solid var(--ant-line);border-radius:16px;background:#f8fafd}.hc-ant-workspace .hc-ant-card{height:100%}.hc-ant-focus-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px}.hc-ant-focus-nav button{display:flex;align-items:center;gap:7px;min-width:0;min-height:42px;padding:8px;border:1px solid #d4e1ef;border-radius:10px;background:#fff;color:#526a83;font:inherit;font-size:.72rem;font-weight:750;cursor:pointer}.hc-ant-focus-nav button i{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:8px;background:#edf4fc;color:#2170d2;font-style:normal}.hc-ant-focus-nav button span{min-width:0;overflow:hidden;text-overflow:ellipsis}.hc-ant-focus-nav button b{margin-left:auto;color:#1670df}.hc-ant-focus-nav button.active{border-color:#78acf0;background:#edf6ff;color:#075daf;box-shadow:inset 0 -2px #1670df}.hc-ant-focus-nav button.active i{background:#1670df;color:#fff}.hc-ant-card.focus-card{min-height:245px}.hc-ant-card.focus-card>.hc-ant-checks{grid-template-columns:repeat(3,minmax(0,1fr))}.hc-ant-card.focus-card .hc-ant-field textarea{min-height:125px}.hc-ant-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px;color:#71849a;font-size:.68rem}.hc-ant-progress span{display:flex;align-items:center;gap:6px}.hc-ant-progress span i{width:7px;height:7px;border-radius:50%;background:#23aa6a;box-shadow:0 0 0 4px #e5f7ee}.hc-ant-progress b{color:#456079}
@container hcAntecedentes (max-width:700px){.hc-ant-head{padding:12px 14px}.hc-ant-icon{width:37px;height:37px;flex-basis:37px}.hc-ant-head-state label{font-size:0}.hc-ant-head select{font-size:.76rem}.hc-ant-view-nav{gap:4px}.hc-ant-view-nav button{gap:5px;padding:6px}.hc-ant-workspace{min-height:320px;padding:11px}.hc-ant-focus-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.hc-ant-card.focus-card>.hc-ant-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container hcAntecedentes (max-width:470px){.hc-ant-head p{display:none}.hc-ant-view-nav button{flex-direction:column;gap:2px;min-height:54px;font-size:.7rem}.hc-ant-view-nav button i{display:none}.hc-ant-view-nav button b,.hc-ant-view-nav button em{height:17px;min-width:17px}.hc-ant-workspace{min-height:360px}.hc-ant-grid.family{grid-template-columns:1fr}.hc-ant-progress span{display:none}}

/* La opción Otra siempre debe quedar clínicamente identificada. */
.hc-ant-other{padding:9px 10px;border:1px solid #9cc8fb;border-radius:10px;background:#f1f7ff;color:#075caf}.hc-ant-other span{display:block}.hc-ant-other input{background:#fff!important}

/* En teléfono se recupera la navegación compacta: una tarjeta visible,
   controles horizontales y sin alturas artificiales que provoquen scroll. */
@media(max-width:700px){.hc-ant{gap:8px}.hc-ant-head{border-radius:13px}.hc-ant-view-nav{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}.hc-ant-view-nav::-webkit-scrollbar{display:none}.hc-ant-view-nav button{flex:0 0 92px;scroll-snap-align:start}.hc-ant-workspace{min-height:0;padding:9px;border-radius:13px}.hc-ant-card.focus-card{min-height:0;padding:11px}.hc-ant-focus-nav{display:flex;overflow-x:auto;gap:6px;margin-bottom:8px;scrollbar-width:none}.hc-ant-focus-nav::-webkit-scrollbar{display:none}.hc-ant-focus-nav button{flex:0 0 138px}.hc-ant-card.focus-card>.hc-ant-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.hc-ant-card.focus-card .hc-ant-field textarea{min-height:88px}.hc-ant-progress{padding-bottom:3px}}

/* Segmentos clínicos: iconografía legible y sin marcadores vacíos. */
.hc-ant-view-nav{padding:5px;gap:5px;background:#f1f5f9;border-color:#dbe5f0}.hc-ant-view-nav button{justify-content:flex-start;min-height:46px;padding:7px 12px;border-radius:10px}.hc-ant-view-nav .hc-ant-tab-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#fff;color:#71859b;font-size:18px;box-shadow:inset 0 0 0 1px #dbe5f0}.hc-ant-view-nav .hc-ant-tab-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hc-ant-view-nav button.active{border-color:#9dc5f7;background:#fff;color:#075fca;box-shadow:0 3px 10px rgba(39,83,132,.1),inset 0 -2px #1670df}.hc-ant-view-nav button.active .hc-ant-tab-icon{background:#1670df;color:#fff;box-shadow:none}.hc-ant-view-nav button b{margin-left:auto;background:#dcecff;color:#1767c5}.hc-ant-deny{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 10px;border:1px solid #a7e4c3;border-radius:10px;background:#f0fdf6;color:#157347;font:inherit;font-size:.7rem;font-weight:800;cursor:pointer;white-space:nowrap}.hc-ant-deny .material-symbols-outlined{font-size:18px}.hc-ant-deny:hover,.hc-ant-deny.active{border-color:#39b976;background:#e3f8ed;color:#09683b}.hc-ant-deny.active{box-shadow:inset 0 0 0 1px #39b976}
@media(max-width:900px){.hc-ant-head-state{flex-wrap:wrap;justify-content:flex-end}.hc-ant-deny{order:3}}
@media(max-width:700px){.hc-ant-view-nav button{flex-basis:124px;min-height:44px;padding:6px 9px;flex-direction:row}.hc-ant-view-nav .hc-ant-tab-icon{display:grid;flex-basis:28px;width:28px;height:28px}.hc-ant-deny{order:0;width:100%;justify-content:center}.hc-ant-head-state{align-items:stretch}.hc-ant-head-state label{min-width:0}.hc-ant-head-state select{width:100%}}

.hc-ant-denied{display:flex;align-items:center;gap:14px;min-height:150px;padding:24px;border:1px solid #9de1bd;border-radius:16px;background:linear-gradient(145deg,#f1fcf6,#e9f9f1);color:#11633b}.hc-ant-denied>.material-symbols-outlined{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:50%;background:#fff;color:#159457;font-size:30px;box-shadow:0 5px 16px rgba(21,148,87,.13)}.hc-ant-denied>div{flex:1;min-width:0}.hc-ant-denied strong{display:block;font-size:1rem}.hc-ant-denied p{margin-top:4px!important;color:#4d7863;font-size:.76rem;line-height:1.4}.hc-ant-denied button{min-height:40px;padding:8px 12px;border:1px solid #7bcda1;border-radius:10px;background:#fff;color:#107244;font:inherit;font-size:.72rem;font-weight:800;cursor:pointer;white-space:nowrap}.hc-ant-denied button:hover{background:#daf5e7}
@media(max-width:700px){.hc-ant-denied{align-items:flex-start;min-height:0;padding:16px;flex-wrap:wrap}.hc-ant-denied>.material-symbols-outlined{flex-basis:42px;width:42px;height:42px;font-size:25px}.hc-ant-denied>div{flex:1 1 calc(100% - 60px)}.hc-ant-denied button{width:100%}}

.hc-ant-quickbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:42px;padding:5px 7px;color:#71849a;font-size:.7rem}.hc-ant-quickbar button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 11px;border:1px solid #a7e4c3;border-radius:10px;background:#f0fdf6;color:#157347;font:inherit;font-size:.72rem;font-weight:800;cursor:pointer}.hc-ant-quickbar button:hover{border-color:#39b976;background:#e3f8ed}.hc-ant-quickbar .material-symbols-outlined{font-size:18px}
@media(max-width:700px){.hc-ant-quickbar{align-items:stretch;flex-direction:column;padding:2px}.hc-ant-quickbar button{justify-content:center;width:100%}}
