/* Estilos independientes del acuerdo previo. La carga del editor los verifica
   para impedir que una copia antigua de documents.css deje el formulario sin diseño. */
.la-style-probe { --la-styles-ready: 20261030-2; display:none; }
.learning-agreement-editor { font:16px/1.5 Arial,Helvetica,sans-serif; color:#303030; background:#fcfcfe; min-height:100vh; }
html:has(.learning-agreement-editor) { scrollbar-gutter:stable; }
body.document-editor-open:has(.learning-agreement-editor) #main-content { padding:0; }
body.document-editor-open:has(.learning-agreement-editor) .educational-notice { display:none; }
body.document-editor-open:has(.learning-agreement-editor) .app-layout { display:block; }
body.document-editor-open:has(.learning-agreement-editor) :is(.app-header,.platform-bar,.app-navigation,.app-footer) { display:none; }
.learning-agreement-editor .la-header { position:sticky; top:0; z-index:9; transform:translateZ(0); min-height:56px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 16px; font-size:16px; color:#fff; background:#004494; }
.learning-agreement-editor .la-brand { display:flex; align-items:center; gap:16px; font-size:28px; line-height:1.2; white-space:nowrap; }
.learning-agreement-editor .la-flag { display:block; width:60px; height:40px; flex-shrink:0; border:1px solid #bec9db; }
.learning-agreement-editor .la-account { display:flex; align-items:center; gap:4px; }
.learning-agreement-editor .la-user { max-width:145px; margin-right:12px; line-height:1.5; }
.learning-agreement-editor .la-logout { font:inherit; line-height:1.1; padding:0 5px; color:#000; background:#f0f0f0; border:2px outset #c4c4c4; border-radius:0; }
.learning-agreement-editor .la-language { position:relative; font:bold 14px/1.3 Arial,sans-serif; padding:3px 5px; background:#fff; border:0; border-radius:2px; color:#06468e; }
.learning-agreement-editor .la-language::after { content:""; position:absolute; bottom:-5px; left:7px; border-top:6px solid white; border-right:9px solid transparent; }
.learning-agreement-editor .la-page { width:100%; max-width:none; margin:0; padding:40px; }
.learning-agreement-editor .la-history { border:1px solid #c8c8c8; box-shadow:0 1px 2px #0005; background:#fff; margin:0 0 32px; }
.learning-agreement-editor .la-history>summary { position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:8px; list-style:none; padding:12px 48px 16px 16px; font-size:20px; font-weight:bold; cursor:pointer; }
.learning-agreement-editor .la-history>summary::-webkit-details-marker { display:none; }
.learning-agreement-editor .la-history>summary::after { content:""; position:absolute; right:26px; top:28px; width:9px; height:9px; border-right:2px solid; border-bottom:2px solid; transform:rotate(45deg); }
.learning-agreement-editor .la-history[open]>summary::after { transform:rotate(225deg); }
.learning-agreement-editor .la-history>summary strong { font-size:28px; }
.learning-agreement-editor .la-history-content { padding:0 16px 16px; }
.learning-agreement-editor .la-summary { margin-bottom:44px; }
.learning-agreement-editor .la-title-row { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-bottom:16px; border-bottom:1px solid #e2e2e2; }
.learning-agreement-editor h1 { font-size:28px; line-height:1.25; margin:0; }
.learning-agreement-editor .la-metadata { text-align:right; }
.learning-agreement-editor .la-metadata p { margin:0 0 6px; }
.learning-agreement-editor .la-participant { font-size:20px; font-weight:bold; margin:14px 0 28px; }
.learning-agreement-editor .la-activity-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.learning-agreement-editor .la-activity-summary strong { font-size:20px; }
.learning-agreement-editor .la-form { width:100%; }
.learning-agreement-editor p { margin:0 0 16px; }
.learning-agreement-editor .la-section { margin-top:32px; }
.learning-agreement-editor .la-section h2 { margin:0 0 16px; color:#000; font-size:20px; line-height:1.3; }
.learning-agreement-editor h3 { font-size:16px; line-height:1.5; margin:16px 0 20px; }
.learning-agreement-editor .la-grid { display:grid; gap:16px 24px; margin:0 0 16px; align-items:start; }
.learning-agreement-editor .la-identity>.la-grid:last-child { margin-bottom:40px; }
.learning-agreement-editor .la-grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.learning-agreement-editor .la-grid-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.learning-agreement-editor .la-grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.learning-agreement-editor .la-field { display:block; min-width:0; margin:0 12px 16px 0; }
.learning-agreement-editor .la-field>label,.learning-agreement-editor .la-field-label { display:block; font-weight:bold; margin-bottom:8px; padding-left:4px; }
.learning-agreement-editor .la-required { margin-left:7px; color:#ed1834; font-weight:bold; }
.learning-agreement-editor .la-control { position:relative; }
.learning-agreement-editor .la-control input:not([type=checkbox]),.learning-agreement-editor .la-control textarea { display:block; width:100%; max-width:100%; min-width:0; padding:10px; border:1px solid #999; border-radius:2px; color:#303030; background:white; font:inherit; line-height:1.5; }
.learning-agreement-editor .la-control input:not([type=checkbox]) { height:44px; }
.learning-agreement-editor .la-control textarea { height:104px; min-height:104px; resize:vertical; }
.learning-agreement-editor .la-control input::placeholder,.learning-agreement-editor .la-control textarea::placeholder { color:#999; opacity:1; }
.learning-agreement-editor .la-counter { position:absolute; right:-9px; top:-8px; padding:0 4px; font-size:11px; line-height:16px; border:1px solid #999; border-radius:3px; color:#000; background:#eee; }
.learning-agreement-editor .la-readonly { overflow-wrap:anywhere; min-height:24px; margin:0; }
.learning-agreement-editor .la-toggle { display:flex; align-items:flex-start; gap:10px; font-weight:normal; margin:0 0 12px; cursor:pointer; }
.learning-agreement-editor .la-toggle input[type=checkbox] { appearance:none; position:relative; width:20px; height:20px; padding:0; flex:0 0 20px; margin:2px 0 0; border:2px solid #6b6b6b; border-radius:0; background:#fff; cursor:pointer; }
.learning-agreement-editor .la-toggle input[type=checkbox]:checked { background:#06468e; }
.learning-agreement-editor .la-toggle input[type=checkbox]:checked::after { content:""; position:absolute; left:4px; top:0; width:5px; height:10px; border:solid white; border-width:0 2px 2px 0; transform:rotate(45deg); }
.learning-agreement-editor .la-toggle-heading { font-size:20px; font-weight:bold; color:#000; }
.learning-agreement-editor .la-competence { margin-bottom:32px; }
.learning-agreement-editor .la-competence .la-field { margin-bottom:0; }
.learning-agreement-editor .la-optional { margin-top:48px; }
.learning-agreement-editor .la-link { display:inline; padding:0; border:0; border-radius:0; color:#0057a5; background:transparent; font:inherit; text-decoration:underline; cursor:pointer; }
.learning-agreement-editor .la-link .icon { width:12px; height:12px; margin-left:4px; }
.learning-agreement-editor .la-repeat-row { display:grid; grid-template-columns:minmax(0,1fr) 98px; gap:26px; margin-bottom:16px; }
.learning-agreement-editor .la-repeat-row .la-field { margin-bottom:0; }
.learning-agreement-editor .la-repeat-action { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.learning-agreement-editor .la-repeat-action>span { font-weight:bold; }
.learning-agreement-editor .la-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; padding:10px 16px; border:1px solid #333; border-radius:2px; font:inherit; line-height:1.4; color:#111; background:#fff; white-space:normal; }
.learning-agreement-editor .la-repeat-delete { width:44px; height:44px; padding:12px; background:transparent; color:#eb7d8c; border:1px solid #eb7d8c; border-radius:2px; }
.learning-agreement-editor .la-repeat-delete .icon { width:18px; height:18px; }
.learning-agreement-editor .la-contact-section { margin:48px 0; }
.learning-agreement-editor .la-contact-section h2 { margin-bottom:0; }
.learning-agreement-editor .la-contact-section .la-grid { margin-bottom:0; }
.learning-agreement-editor .la-contacts>h2 { margin-bottom:0; }
.learning-agreement-editor .la-contacts>h2:not(:first-child) { margin-top:32px; }
.learning-agreement-editor .la-contacts>.la-grid { margin-bottom:0; }
.learning-agreement-editor .la-contacts>.la-guardians { margin-top:0; }
.learning-agreement-editor .la-signature-text { margin:48px 0 16px; }
.learning-agreement-editor .la-signature-field { max-width:calc(100% - 124px); }
.learning-agreement-editor .la-guardian-signature { display:grid; grid-template-columns:minmax(0,1fr) 98px; align-items:end; gap:26px; }
.learning-agreement-editor .la-guardian-signature .la-toggle { align-self:center; margin:24px 0 0; }
.learning-agreement-editor .la-signatures { margin-top:48px; }
.learning-agreement-editor .la-signatures>.la-readonly { margin-bottom:16px; }
.learning-agreement-editor .la-actions { position:static; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:28px; margin-top:80px; padding:0 12px 0 0; background:transparent; border:0; }
.learning-agreement-editor .la-cancel { background:#da1730; border-color:#da1730; color:#fff; }
.learning-agreement-editor .la-generate { background:#497b38; border-color:#497b38; color:#fff; }
.learning-agreement-editor .la-tools { margin:32px 0 0; padding:0; border:0; font-size:14px; }
.learning-agreement-editor .la-tools>summary { cursor:pointer; }
.learning-agreement-editor .la-tools-content { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding-top:12px; }
.learning-agreement-editor .la-tools[open]>button { margin:12px 12px 12px 0; }
.learning-agreement-editor .la-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:16px; font-size:16px; }
.learning-agreement-editor .la-footer small { font-size:12px; }
.learning-agreement-editor #document-editor-status:empty { display:none; }
.learning-agreement-editor #document-editor-status:not(:empty) { padding:12px; margin-block:16px; background:#eef5ff; }
@media (max-width:900px) {
 .learning-agreement-editor .la-page { padding:28px; }
 .learning-agreement-editor .la-title-row { align-items:flex-start; flex-direction:column; gap:16px; }
 .learning-agreement-editor .la-metadata { text-align:left; }
 .learning-agreement-editor .la-grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .learning-agreement-editor .la-grid { column-gap:20px; }
 .learning-agreement-editor .la-user { max-width:110px; }
}
@media (max-width:600px) {
 .learning-agreement-editor .la-header { gap:10px; flex-wrap:wrap; padding:8px 12px; }
 .learning-agreement-editor .la-brand { font-size:22px; gap:10px; }
 .learning-agreement-editor .la-flag { width:48px; height:32px; }
 .learning-agreement-editor .la-account { margin-left:auto; }
 .learning-agreement-editor .la-user { font-size:13px; max-width:none; }
 .learning-agreement-editor .la-page { padding:24px 16px; }
 .learning-agreement-editor .la-grid-3,.learning-agreement-editor .la-grid-4,.learning-agreement-editor .la-grid-2 { grid-template-columns:minmax(0,1fr); gap:12px; }
 .learning-agreement-editor .la-history>summary { font-size:16px; }
 .learning-agreement-editor .la-history>summary strong { font-size:24px; }
 .learning-agreement-editor .la-activity-summary { align-items:flex-start; flex-direction:column; }
 .learning-agreement-editor .la-repeat-row { grid-template-columns:minmax(0,1fr) 44px; gap:12px; }
 .learning-agreement-editor .la-repeat-action>span { font-size:13px; }
 .learning-agreement-editor .la-signature-field { max-width:100%; }
 .learning-agreement-editor .la-guardian-signature { grid-template-columns:minmax(0,1fr) 32px; gap:12px; }
 .learning-agreement-editor .la-actions { gap:12px; margin-top:48px; padding-right:0; }
 .learning-agreement-editor .la-footer { font-size:13px; }
}
