/* v206 · Motor de estructuras, documentos y rúbricas */
.structure-page-title-v206{align-items:flex-start}
.structure-intro-v206{overflow:hidden}
.structure-flow-v206{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.structure-flow-v206 article{display:grid;grid-template-columns:38px 1fr;gap:3px 10px;align-items:center;padding:16px;border:1px solid var(--line,#dce4ef);border-radius:18px;background:var(--surface,#fff)}
.structure-flow-v206 article b{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:color-mix(in srgb,var(--brand,#245be6) 12%,var(--surface,#fff));color:var(--brand,#245be6);font-size:1rem}
.structure-flow-v206 article strong{font-size:.95rem}.structure-flow-v206 article span{font-size:.82rem;color:var(--muted,#64748b);line-height:1.4}
.structure-card-grid-v206{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.structure-card-v206{display:grid;gap:12px;padding:17px;border:1px solid var(--line,#dce4ef);border-radius:18px;background:var(--surface,#fff)}
.structure-card-v206 p{margin:0;color:var(--muted,#64748b);line-height:1.5}.structure-card-head-v206{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.structure-card-head-v206 h3{margin:6px 0 0}.structure-version-v206{font-weight:950;font-size:1.05rem;color:var(--brand,#245be6)}
.structure-version-list-v206{display:flex;gap:8px;flex-wrap:wrap}.structure-version-list-v206 a{display:grid;min-width:80px;padding:9px 12px;border:1px solid var(--line,#dce4ef);border-radius:13px;text-decoration:none;color:var(--text,#172033);background:var(--surface-2,#f7f9fc)}.structure-version-list-v206 a.active{border-color:color-mix(in srgb,var(--brand,#245be6) 45%,var(--line,#dce4ef));background:color-mix(in srgb,var(--brand,#245be6) 8%,var(--surface,#fff))}.structure-version-list-v206 span{font-size:.72rem;color:var(--muted,#64748b)}
.structure-builder-v206{display:grid;gap:15px}.structure-section-v206{border:1px solid var(--line,#dce4ef);border-radius:20px;background:var(--surface-2,#f7f9fc);padding:15px}.structure-section-head-v206{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.structure-section-head-v206 h3{margin:5px 0 3px}.structure-section-head-v206 p{margin:0;color:var(--muted,#64748b)}
.structure-block-list-v206{display:grid;gap:9px;margin-top:14px}.structure-block-v206{border:1px solid var(--line,#dce4ef);border-radius:16px;background:var(--surface,#fff);overflow:hidden}.structure-block-v206>summary{padding:13px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;list-style:none}.structure-block-v206>summary::-webkit-details-marker{display:none}.structure-block-v206>summary>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.structure-block-type-v206{font-size:.72rem;font-weight:850;color:var(--muted,#64748b);background:var(--surface-2,#f7f9fc);border:1px solid var(--line,#dce4ef);border-radius:999px;padding:5px 8px}.structure-block-form-v206{padding:15px;border-top:1px solid var(--line,#dce4ef)}
.structure-config-panels-v206{display:grid;grid-template-columns:1fr 1fr;gap:14px}.structure-config-panels-v206>div,.rubric-builder-v206{padding:14px;border:1px solid var(--line,#dce4ef);border-radius:16px;background:var(--surface-2,#f7f9fc)}.rubric-builder-head-v206{display:flex;gap:14px;justify-content:space-between;align-items:flex-start}.rubric-builder-head-v206 p{margin:.2rem 0 0}.publish-structure-v206{display:flex;justify-content:space-between;align-items:center;gap:18px;background:color-mix(in srgb,var(--brand,#245be6) 5%,var(--surface,#fff))}
.progress-line-v206{height:8px;background:var(--surface-2,#eef2f7);border-radius:999px;overflow:hidden;min-width:100px}.progress-line-v206 span{display:block;height:100%;background:var(--brand,#245be6);border-radius:inherit}.structured-progress-v206{display:grid;gap:9px}.structured-progress-v206>div:first-child{display:flex;justify-content:space-between;align-items:center}.structured-progress-v206>div:first-child strong{font-size:1.3rem}
.structured-entry-form-v206{display:grid;gap:16px}.structured-section-v206{margin:0}.structured-blocks-v206{display:grid;gap:14px}.structured-input-block-v206{display:grid;gap:10px;padding:15px;border:1px solid var(--line,#dce4ef);border-radius:18px;background:var(--surface,#fff)}.structured-block-label-v206{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.structured-block-label-v206 h3{margin:0}.structured-block-label-v206 p{margin:3px 0 0;color:var(--muted,#64748b);line-height:1.45}.structured-input-block-v206 textarea,.structured-input-block-v206 input,.structured-input-block-v206 select{max-width:100%}.media-input-v206{display:grid;gap:10px}.media-current-v206{padding:10px 12px;border:1px solid var(--line,#dce4ef);border-radius:12px;background:var(--surface-2,#f7f9fc)}
.choice-grid-v206{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.structured-table-editor-v206{display:grid;gap:10px}.structured-table-editor-v206 table input{min-width:120px}.structured-submit-bar-v206{display:flex;justify-content:space-between;gap:18px;align-items:center;position:sticky;bottom:12px;z-index:5;box-shadow:0 14px 38px rgba(15,23,42,.08)}.structured-submit-bar-v206>div:first-child{display:grid;gap:3px}.structured-submit-bar-v206 span{color:var(--muted,#64748b)}
.review-summary-v206{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.review-summary-v206 article{display:grid;gap:5px;padding:14px;border:1px solid var(--line,#dce4ef);border-radius:16px;background:var(--surface-2,#f7f9fc)}.review-summary-v206 article span{font-size:.78rem;color:var(--muted,#64748b);font-weight:800}.review-summary-v206 article strong{font-size:1.25rem}.review-section-v206{display:grid;gap:14px}.review-block-v206{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:15px;padding:15px;border:1px solid var(--line,#dce4ef);border-radius:18px}.review-block-content-v206{min-width:0}.review-block-head-v206{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.review-block-head-v206 h3{margin:5px 0 8px}.review-value-v206{padding:13px;border-radius:14px;background:var(--surface-2,#f7f9fc);line-height:1.6;white-space:normal;overflow-wrap:anywhere}.review-rubric-v206{display:grid;gap:9px;padding:13px;border-radius:15px;background:color-mix(in srgb,var(--brand,#245be6) 4%,var(--surface,#fff));border:1px solid color-mix(in srgb,var(--brand,#245be6) 14%,var(--line,#dce4ef))}.review-image-v206{margin:0;display:grid;gap:8px}.review-image-v206 img{max-width:100%;max-height:430px;object-fit:contain;border-radius:14px;border:1px solid var(--line,#dce4ef)}.review-image-v206 figcaption,.media-meta-v206{display:grid;gap:3px;color:var(--muted,#64748b)}.review-image-v206 figcaption strong,.media-meta-v206 strong{color:var(--text,#172033)}.tag-row-v206{display:flex;flex-wrap:wrap;gap:6px}.tag-row-v206 span{padding:6px 9px;border-radius:999px;background:var(--surface-2,#f7f9fc);border:1px solid var(--line,#dce4ef);font-size:.8rem;font-weight:800}.review-history-v206{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.review-history-v206 article{display:grid;gap:5px;padding:13px;border:1px solid var(--line,#dce4ef);border-radius:15px}.structured-scholarship-cta-v206{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px;border:1px solid color-mix(in srgb,var(--brand,#245be6) 20%,var(--line,#dce4ef));border-radius:18px;background:color-mix(in srgb,var(--brand,#245be6) 4%,var(--surface,#fff));margin-top:12px}.structured-scholarship-cta-v206 h3{margin:6px 0}.structured-scholarship-cta-v206 p{margin:0;color:var(--muted,#64748b);max-width:760px}
@media(max-width:1050px){.structure-flow-v206,.structure-card-grid-v206{grid-template-columns:repeat(2,minmax(0,1fr))}.review-block-v206{grid-template-columns:1fr}.review-summary-v206{grid-template-columns:repeat(2,minmax(0,1fr))}.review-history-v206{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.structure-flow-v206,.structure-card-grid-v206,.structure-config-panels-v206,.choice-grid-v206,.review-summary-v206,.review-history-v206{grid-template-columns:1fr}.publish-structure-v206,.structured-submit-bar-v206,.structured-scholarship-cta-v206{display:grid}.structured-submit-bar-v206{position:static}.structure-section-head-v206,.structured-block-label-v206,.review-block-head-v206{display:grid}.structure-block-v206>summary{align-items:flex-start}.structured-table-editor-v206 .table-wrap{overflow:auto}}


/* v208 · UX de formularios estructurados, contadores, navegación y validación */
.structured-overview-v208{display:grid;gap:14px}
.structured-section-nav-v208{display:flex;gap:8px;flex-wrap:wrap;padding-top:4px;border-top:1px solid var(--line,#dce4ef)}
.structured-section-nav-v208 a{display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--line,#dce4ef);border-radius:999px;background:var(--surface-2,#f7f9fc);color:var(--text,#172033);text-decoration:none;font-size:.82rem;font-weight:800;transition:.18s ease}
.structured-section-nav-v208 a small{display:grid;place-items:center;min-width:30px;height:22px;padding:0 7px;border-radius:999px;background:var(--surface,#fff);color:var(--muted,#64748b);border:1px solid var(--line,#dce4ef)}
.structured-section-nav-v208 a.is-complete-v208{border-color:color-mix(in srgb,#22c55e 34%,var(--line,#dce4ef));background:color-mix(in srgb,#22c55e 8%,var(--surface,#fff))}
.structured-section-nav-v208 a.is-complete-v208 small{color:#15803d}
.structured-section-v208{scroll-margin-top:110px}
.structured-input-block-v208{position:relative;scroll-margin-top:120px;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.structured-input-block-v208.is-complete-v208{border-color:color-mix(in srgb,#22c55e 25%,var(--line,#dce4ef));background:linear-gradient(180deg,color-mix(in srgb,#22c55e 2%,var(--surface,#fff)),var(--surface,#fff))}
.structured-input-block-v208.is-pending-v208[data-required="1"]{border-color:color-mix(in srgb,#f59e0b 18%,var(--line,#dce4ef))}
.structured-block-title-row-v208,.structured-block-badges-v208{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.block-state-v208.ok{background:color-mix(in srgb,#22c55e 12%,var(--surface,#fff));border-color:color-mix(in srgb,#22c55e 30%,var(--line,#dce4ef));color:#15803d}
.block-state-v208.warning{background:color-mix(in srgb,#f59e0b 11%,var(--surface,#fff));border-color:color-mix(in srgb,#f59e0b 25%,var(--line,#dce4ef));color:#a16207}
.section-progress-v208{white-space:nowrap}
.structured-counter-v208{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:-2px;font-size:.78rem;color:var(--muted,#64748b)}
.structured-counter-v208 span{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;background:var(--surface-2,#f7f9fc);border:1px solid var(--line,#dce4ef)}
.structured-counter-v208 strong{color:var(--text,#172033)}
.structured-counter-v208.near-limit .counter-limit-v208{background:color-mix(in srgb,#f59e0b 10%,var(--surface,#fff));border-color:color-mix(in srgb,#f59e0b 28%,var(--line,#dce4ef));color:#a16207}
.structured-counter-v208.over-limit .counter-limit-v208{background:color-mix(in srgb,#ef4444 10%,var(--surface,#fff));border-color:color-mix(in srgb,#ef4444 30%,var(--line,#dce4ef));color:#b91c1c;font-weight:900}
.word-limit-exceeded-v208{border-color:color-mix(in srgb,#ef4444 48%,var(--line,#dce4ef))!important}
.structured-validation-summary-v208{padding:14px 16px;border:1px solid color-mix(in srgb,#ef4444 28%,var(--line,#dce4ef));border-radius:16px;background:color-mix(in srgb,#ef4444 6%,var(--surface,#fff));color:#991b1b}
.structured-validation-summary-v208[hidden]{display:none}
.structured-validation-summary-v208 ul{margin:8px 0 0;padding-left:20px}.structured-validation-summary-v208 a{color:inherit;font-weight:850}
.structured-table-editor-v208{padding:14px;border:1px solid var(--line,#dce4ef);border-radius:16px;background:var(--surface-2,#f8fafc)}
.structured-data-table-v208{min-width:680px}.structured-data-table-v208 .row-index-head-v208,.structured-data-table-v208 .row-index-v208{width:44px;min-width:44px;text-align:center;color:var(--muted,#64748b);font-weight:900;background:var(--surface-2,#f7f9fc)}
.structured-table-actions-v208{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.structured-table-actions-v208 [data-add-row]:disabled,.structured-table-editor-v208 [data-remove-row]:disabled{opacity:.45;cursor:not-allowed}
.structured-media-v208{padding:14px;border:1px solid var(--line,#dce4ef);border-radius:16px;background:var(--surface-2,#f8fafc)}
.structured-upload-v208{background:var(--surface,#fff)}
.structured-current-image-v208,.structured-image-preview-v208{margin:0;display:grid;gap:7px;justify-items:start}
.structured-current-image-v208 img,.structured-image-preview-v208 img{display:block;max-width:min(100%,520px);max-height:320px;object-fit:contain;border:1px solid var(--line,#dce4ef);border-radius:14px;background:var(--surface,#fff)}
.structured-current-image-v208 figcaption{font-size:.8rem;color:var(--muted,#64748b)}
.structured-submit-bar-v208 [data-save-state]{display:flex;align-items:center;gap:8px}.structured-submit-bar-v208 [data-save-state]::before{content:"";width:9px;height:9px;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 4px color-mix(in srgb,#94a3b8 12%,transparent)}
.structured-submit-bar-v208:has([data-save-state]:not(:empty)){backdrop-filter:blur(8px)}
.review-live-total-v208{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid color-mix(in srgb,var(--brand,#245be6) 18%,var(--line,#dce4ef));border-radius:15px;background:color-mix(in srgb,var(--brand,#245be6) 5%,var(--surface,#fff));margin-bottom:14px}.review-live-total-v208 strong{font-size:1.12rem;color:var(--brand,#245be6)}
.score-invalid-v208{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.08)!important}
@media(max-width:760px){.structured-section-nav-v208{display:grid;grid-template-columns:1fr 1fr}.structured-section-nav-v208 a{justify-content:space-between}.structured-block-badges-v208{justify-content:flex-start}.structured-table-editor-v208{padding:11px}.structured-submit-bar-v208 .actions{display:grid}.structured-submit-bar-v208 .actions .btn{width:100%}}
@media(max-width:500px){.structured-section-nav-v208{grid-template-columns:1fr}.structured-counter-v208{gap:5px}.structured-current-image-v208 img,.structured-image-preview-v208 img{max-height:240px}}


/* v209 · Vista previa robusta */
.structured-image-preview-v208[hidden],.structured-image-preview-v209[hidden],.structured-image-preview-v209 img[hidden],.structured-image-preview-v209 [hidden]{display:none!important}
.structured-image-preview-v209{width:min(100%,560px);padding:12px;border:1px solid var(--line,#dce4ef);border-radius:16px;background:var(--surface-2,#f7f9fc);gap:10px}
.structured-image-preview-head-v209{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}
.structured-image-preview-head-v209 strong{font-size:.86rem;color:var(--text,#172033)}
.structured-image-preview-v209 img{width:auto;max-width:100%;max-height:340px;object-fit:contain;border-radius:14px;border:1px solid var(--line,#dce4ef);background:var(--surface,#fff)}
.structured-image-preview-meta-v209{display:block;color:var(--muted,#64748b);line-height:1.4;overflow-wrap:anywhere}
.structured-image-preview-v209.has-error-v209{border-color:color-mix(in srgb,#ef4444 35%,var(--line,#dce4ef));background:color-mix(in srgb,#ef4444 5%,var(--surface,#fff))}
.structured-image-preview-v209.has-error-v209 .structured-image-preview-meta-v209{color:#b42318;font-weight:750}
@media(max-width:620px){.structured-image-preview-v209{width:100%;padding:10px}.structured-image-preview-v209 img{max-height:260px}}
