/* AyudaGlobal · Edición editorial y publicaciones; estilos encapsulados sin parches globales */
.ag-editor-section{background:#f4f7f9;min-height:65vh;color:#213944}
.ag-editor-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.ag-editor-header h1{margin:5px 0;font-size:clamp(1.65rem,2.8vw,2.25rem)}
.ag-editor-header p{margin:0;color:#526978;max-width:730px}
.ag-editor-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:20px;align-items:start}
.ag-editor-card{background:#fff;border:1px solid #dce6ec;border-radius:18px;box-shadow:0 6px 20px #1330440c;padding:clamp(17px,2.6vw,28px);min-width:0}
.ag-editor-card h2{font-size:1.25rem;color:#153b54;margin:0 0 12px}
.ag-editor-cardhead{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:20px}
.ag-editor-cardhead p{color:#59707b;font-size:.85rem;margin:0}.ag-editor-cardhead code{white-space:normal;overflow-wrap:anywhere}
.ag-editor-crumb{margin:8px 0 18px;color:#607684;font-size:.9rem}.ag-editor-crumb a{color:#17567b}
.ag-editor-state{background:#eff3f5;color:#455d6a;white-space:nowrap;border-radius:30px;padding:6px 11px;font-size:.75rem;font-weight:700}.ag-editor-state.is-live{background:#e0f3e9;color:#176243}
.ag-editor-form{display:flex;flex-direction:column;gap:11px}.ag-editor-form label:not(.ag-editor-check){font-size:.88rem;font-weight:700;color:#284756}
.ag-editor-form input:not([type="hidden"]):not([type="checkbox"]),.ag-editor-form textarea{border:1px solid #aebfca;border-radius:11px;background:white;padding:12px 13px;width:100%;font:inherit;color:#1b3443;line-height:1.6}
.ag-editor-form :is(input,textarea):focus-visible{outline:3px solid #9ec9e7;outline-offset:1px;border-color:#165e88}
.ag-editor-tools{display:flex;gap:7px;flex-wrap:wrap}.ag-editor-tools button{font-size:.8rem;background:#edf5fa;border:1px solid #c4d9e6;color:#234a67;border-radius:8px;padding:6px 9px;cursor:pointer}
.ag-editor-tools button:hover{background:#ddecf5}.ag-editor-help{color:#576f7b;line-height:1.55;font-size:.82rem;margin:5px 0 10px}
.ag-editor-help code{background:#eff3f6;border-radius:3px;padding:1px 5px;white-space:normal}
.ag-editor-check{display:flex;align-items:flex-start;gap:9px;color:#455968;font-size:.84rem;line-height:1.4}.ag-editor-check input{width:18px;height:18px;accent-color:#21648f;flex-shrink:0;margin-top:2px}
.ag-editor-actions,.ag-editor-subactions{display:flex;flex-wrap:wrap;gap:9px;margin:7px 0}.ag-editor-actions button,.ag-editor-subactions button{cursor:pointer}
.ag-editor-previewbox{position:sticky;top:82px}.ag-editor-preview-body{border-radius:14px;border:1px solid #e0e8ef;background:linear-gradient(135deg,#f8fbfd,#f0f5f7);padding:23px;overflow-wrap:anywhere}
.ag-editor-preview-label{font-weight:800;font-size:.7rem;letter-spacing:.08em;color:#46748c}.ag-editor-preview-body h3{font-size:1.65rem;white-space:pre-line;margin:14px 0;color:#143d5b}.ag-editor-preview-body p{white-space:pre-line;line-height:1.7;color:#486270}.ag-editor-preview-text{max-height:260px;overflow:auto}
.ag-editor-list{display:flex;flex-direction:column;gap:10px;margin-top:20px}.ag-editor-listitem{display:flex;justify-content:space-between;align-items:center;gap:15px;border:1px solid #e0e8ed;border-radius:12px;padding:14px;color:#143b54!important;text-decoration:none!important}.ag-editor-listitem:hover{background:#f6fafc}.ag-editor-listitem small{display:block;color:#647785;overflow-wrap:anywhere;margin-top:5px}
.ag-editor-preview-ribbon{padding:12px 15px;border-radius:9px;background:#fff2d9;color:#75531c;border:1px solid #eacb89;font-weight:800;margin-bottom:17px}
.ag-editor-preview-public{max-width:890px!important}.ag-article-view{background:#fff;border:1px solid #dce7ee;border-radius:18px;padding:clamp(22px,4vw,50px);box-shadow:0 5px 18px #143b5010;margin-top:16px;overflow-wrap:anywhere}
.ag-article-view h1{font-size:clamp(1.85rem,4vw,2.7rem);line-height:1.2;margin:12px 0 20px;color:#173c54}.ag-article-lead{font-size:1.13rem;color:#4a6573;line-height:1.7}.ag-article-body{font-size:1.06rem;line-height:1.85;color:#254451}
.ag-article-body h2{font-size:1.5rem;margin:30px 0 12px}.ag-article-body h3{font-size:1.25rem;margin:26px 0 12px}.ag-article-body p{margin:15px 0}.ag-article-body li{margin:8px 0}.ag-article-body a{color:#0b5d9f;text-decoration:underline;text-underline-offset:3px}
.ag-publicaciones-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ag-publicacion-card{display:flex;flex-direction:column;align-items:start;gap:10px}.ag-publicacion-card a{color:#115985}.ag-publicacion-card p{color:#526978;line-height:1.7}.ag-publicacion-card .btn{margin-top:auto}
@media(max-width:850px){.ag-editor-layout{grid-template-columns:1fr}.ag-editor-previewbox{position:static}.ag-editor-header{align-items:start;flex-direction:column}.ag-publicaciones-grid{grid-template-columns:1fr}}
@media(max-width:520px){.ag-editor-actions .btn,.ag-editor-subactions .btn{width:100%;text-align:center}.ag-editor-listitem{align-items:start;flex-direction:column}}
/* v2.12.52: experiencia editorial guiada, móvil, sin duplicar reglas globales. */
.ag-editor-section .ag-editor-head-actions{display:flex;flex-wrap:wrap;gap:9px}
.ag-editor-section .ag-editor-head-actions .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.ag-editor-section .ag-editor-welcome{border:1px solid #bcd9e8;background:#eaf4f9;color:#1c425d;border-radius:15px;padding:15px 18px;margin-bottom:20px;display:flex;flex-direction:column;gap:5px}
.ag-editor-section .ag-editor-welcome strong{font-size:1.1rem}
.ag-editor-section .ag-editor-welcome span{color:#315b73;line-height:1.55}
.ag-editor-section .ag-editor-welcome-main{align-items:start}
.ag-editor-section .ag-editor-welcome-main .btn{margin-top:9px;min-height:48px;display:inline-flex;align-items:center;justify-content:center}
.ag-editor-section .ag-editor-required{font-size:.72rem;color:#904526;font-weight:600}
.ag-editor-section .ag-editor-optional{font-size:.72rem;color:#5e7380;font-weight:500}
.ag-editor-section .ag-editor-tools button{min-height:40px;padding:9px 12px;touch-action:manipulation}
.ag-editor-section .ag-editor-form textarea{resize:vertical;min-height:95px}
.ag-editor-section .ag-editor-form #ag-editor-cuerpo{min-height:260px}
.ag-editor-section .ag-editor-form input[type=file]{border:1px dashed #9fb9c7;border-radius:12px;background:#f4f9fc;padding:13px;width:100%;max-width:100%;line-height:1.4}
.ag-editor-section .ag-editor-form input[type=file]::file-selector-button{border:1px solid #31769a;border-radius:9px;padding:9px 13px;background:#e3f2fa;color:#18465c;margin-right:12px;cursor:pointer}
.ag-editor-section .ag-editor-guide{background:linear-gradient(155deg,#fff,#f8fbfd)}
.ag-editor-section .ag-editor-guide-step{padding:12px 0;border-bottom:1px solid #e3edf2}
.ag-editor-section .ag-editor-guide-step p{margin:5px 0;color:#4a6978}
.ag-editor-section .ag-editor-badges{display:flex;flex-wrap:wrap;gap:6px}
.ag-editor-section .ag-editor-pending{background:#fff3d9;color:#765418}
.ag-editor-section .ag-editor-image img,.ag-editor-section .ag-editor-file-preview img{width:100%;max-height:280px;object-fit:cover;display:block;border-radius:12px;border:1px solid #d4e1e9}
.ag-editor-section .ag-editor-file-preview{margin:4px 0}
.ag-editor-section .ag-editor-preview-cover{width:100%;max-height:240px;object-fit:cover;border-radius:10px;display:block;margin-bottom:14px}
.ag-editor-section .ag-editor-preview-cover[hidden]{display:none}
.ag-editor-section .ag-editor-tips{font-size:.86rem;line-height:1.55;color:#3c6074}
.ag-editor-section .ag-editor-tips summary{cursor:pointer;font-weight:700;min-height:40px;display:flex;align-items:center}
.ag-article-cover{display:block;width:100%;max-height:480px;aspect-ratio:16/9;object-fit:cover;border-radius:13px;margin:0 0 22px}
.ag-publicacion-card-img{width:100%;display:block;overflow:hidden;border-radius:12px;margin-bottom:6px}
.ag-publicacion-card-img img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.ag-publicacion-card-img:hover img{transform:scale(1.02);transition:transform .2s ease}
@media(max-width:850px){
 .ag-editor-section .ag-editor-head-actions{width:100%}
 .ag-editor-section .ag-editor-head-actions .btn{flex:1}
 .ag-editor-section .ag-editor-previewbox{position:static}
 .ag-editor-section .ag-editor-form input,.ag-editor-section .ag-editor-form textarea{font-size:16px!important}
 .ag-editor-section .ag-editor-actions{position:static;background:#f7fbfd;padding:10px 8px;border:1px solid #d7e5ed;border-radius:12px;display:flex;flex-wrap:nowrap}
 .ag-editor-section .ag-editor-actions .btn{min-width:0;flex:1;padding:10px 8px;min-height:46px}
}
@media(max-width:520px){
 .ag-editor-section .ag-editor-head-actions .btn{width:100%}
 .ag-editor-section .ag-editor-actions{gap:6px}
 .ag-editor-section .ag-editor-actions .btn{font-size:.86rem}
 .ag-editor-section .ag-editor-card{padding:16px 14px}
 .ag-editor-section .ag-editor-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .ag-editor-section .ag-editor-tools button{padding:8px 5px;font-size:.74rem}
 .ag-editor-section .ag-editor-header{margin-bottom:15px}
}
@media(prefers-reduced-motion:reduce){.ag-publicacion-card-img:hover img{transition:none;transform:none}}
.ag-article-share{margin:30px 0;padding:20px;border-radius:14px;background:#eef6fa;border:1px solid #cae2ee}
.ag-article-share strong{color:#1b4864;display:block;margin-bottom:12px}
.ag-article-share div{display:flex;flex-wrap:wrap;gap:9px}
.ag-article-share :is(a,button){appearance:none;border:1px solid #a8c8dc;border-radius:10px;background:#fff;color:#135681;padding:10px 14px;text-decoration:none;font:inherit;font-size:.88rem;font-weight:700;cursor:pointer;min-height:44px}
.ag-editor-preview-text.ag-article-body{max-height:400px}
.ag-editor-preview-text.ag-article-body p{white-space:normal}
