:root{--ed-ink:#18324b;--ed-muted:#60748a;--ed-blue:#1877f2;--ed-teal:#12a89d;--ed-line:#d7e1eb;--ed-paper:#fff;--ed-wash:#edf3f9;--ed-shadow:0 18px 55px rgba(24,50,75,.11)}
.ed-public,.ed-admin-shell,.ed-article-shell{width:min(1180px,calc(100% - 40px));margin:38px auto 72px;color:var(--ed-ink)}
.ed-hero{padding:clamp(30px,6vw,72px);border-radius:30px;background:radial-gradient(circle at 90% 15%,rgba(67,160,255,.2),transparent 34%),linear-gradient(135deg,#f8fbff,#e8f4ff);border:1px solid #d0e5fa;box-shadow:var(--ed-shadow)}
.ed-kicker{display:inline-block;color:#1972c5;font-size:.78rem;letter-spacing:.16em;font-weight:850;text-transform:uppercase}.ed-hero h1{max-width:850px;margin:14px 0;font-weight:900;font-size:clamp(2.1rem,5vw,4rem);line-height:1.06;letter-spacing:-.045em}.ed-hero p{max-width:760px;margin:0;color:var(--ed-muted);font-size:clamp(1rem,2vw,1.22rem);line-height:1.7}
.ed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:30px}.ed-card{overflow:hidden;border:1px solid var(--ed-line);border-radius:24px;background:var(--ed-paper);box-shadow:0 10px 35px rgba(24,57,89,.08);transition:transform .2s,box-shadow .2s}.ed-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(24,57,89,.14)}.ed-card--featured{grid-column:1/-1}.ed-card-link{display:grid;grid-template-columns:minmax(220px,.8fr) 1fr;min-height:260px;color:inherit;text-decoration:none}.ed-card:not(.ed-card--featured) .ed-card-link{display:flex;flex-direction:column}.ed-card-image{width:100%;height:100%;min-height:260px;max-height:410px;object-fit:cover}.ed-card:not(.ed-card--featured) .ed-card-image{height:220px;min-height:220px}.ed-card-placeholder{display:grid;place-items:center;color:#fff;font-size:4rem;background:linear-gradient(135deg,#1675c8,#19a6a0)}.ed-card-content{padding:28px;display:flex;align-items:flex-start;flex-direction:column}.ed-card-meta{color:#3684bd;font-size:.72rem;letter-spacing:.12em;font-weight:800}.ed-card h2{font-size:clamp(1.35rem,2.5vw,2rem);line-height:1.2;margin:12px 0;font-weight:850;letter-spacing:-.025em}.ed-card p{margin:0;color:var(--ed-muted);line-height:1.65}.ed-read{margin-top:auto;padding-top:22px;color:var(--ed-blue);font-weight:800}.ed-read b{padding-left:6px}.ed-card-link:hover .ed-read{color:#0858b8}
.ed-trust{display:flex;gap:14px;align-items:flex-start;margin:30px 0;padding:18px 22px;border-radius:18px;background:#f5f9fd;border:1px solid var(--ed-line);color:var(--ed-muted)}.ed-trust p{margin:0;line-height:1.6}.ed-empty{text-align:center;padding:65px 24px;border-radius:24px;background:var(--ed-wash);margin:28px 0}.ed-empty>span{font-size:2.2rem}.ed-empty h2{margin:12px 0;color:var(--ed-ink)}.ed-empty p{color:var(--ed-muted)}
.ed-article-shell{max-width:1050px}.ed-back{display:inline-flex;text-decoration:none;color:#176fc1;font-weight:800;margin:0 0 18px}.ed-article{overflow:hidden;border:1px solid var(--ed-line);border-radius:28px;background:var(--ed-paper);box-shadow:var(--ed-shadow)}.ed-article-head{padding:clamp(28px,6vw,66px) clamp(24px,8vw,100px) 30px}.ed-article-head h1{font-size:clamp(2.2rem,6vw,4.5rem);line-height:1.05;letter-spacing:-.05em;margin:15px 0;color:#153958;font-weight:900}.ed-deck{font-size:clamp(1.12rem,2.4vw,1.4rem);line-height:1.6;color:var(--ed-muted);margin:0}.ed-byline{display:flex;align-items:center;gap:12px;margin-top:26px}.ed-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#287bf5;color:#fff;font-weight:900}.ed-byline strong,.ed-byline small{display:block}.ed-byline small{color:var(--ed-muted);margin-top:3px}.ed-cover{margin:0 clamp(18px,4vw,50px)}.ed-cover img{display:block;width:100%;max-height:570px;object-fit:cover;border-radius:20px}.ed-cover figcaption{color:var(--ed-muted);font-size:.85rem;margin:8px 4px}.ed-article-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:45px;padding:clamp(28px,6vw,65px) clamp(24px,8vw,100px)}.ed-prose{font-size:1.14rem;line-height:1.9;color:#304f68;white-space:normal}.ed-prose p{margin:0 0 1.35em;white-space:pre-line}.ed-source-box{align-self:start;padding:20px;border:1px solid var(--ed-line);border-radius:18px;background:#f4f8fc}.ed-source-box>span{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:#3980b5;font-weight:800}.ed-source-box h2{font-size:1.12rem;margin:8px 0 16px}.ed-source-box a{display:flex;justify-content:space-between;gap:8px;color:#0868c7;font-weight:750;overflow-wrap:anywhere}.ed-source-box p{color:var(--ed-muted);margin:0}.ed-article-footer{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px clamp(24px,8vw,100px);border-top:1px solid var(--ed-line);background:#f8fbfe}.ed-article-footer p{margin:0;color:var(--ed-muted);max-width:600px;line-height:1.6}
.ed-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:1px solid #cedce8;border-radius:12px;background:#fff;color:#284964;font:inherit;font-weight:750;text-decoration:none;cursor:pointer;white-space:nowrap}.ed-button:hover{background:#f2f7fc;color:#125fa9}.ed-button--primary{border-color:#176ed4;background:linear-gradient(135deg,#1884ed,#2365d8);color:#fff;box-shadow:0 8px 20px rgba(24,119,242,.2)}.ed-button--primary:hover{background:linear-gradient(135deg,#0c70d8,#194fbd);color:#fff}.ed-button--danger{border-color:#f0d4d7;color:#b52e3d}.ed-button--danger:hover{background:#fff2f2}
.ed-admin-shell{max-width:1120px}.ed-login{width:min(480px,100%);margin:8vh auto;padding:clamp(26px,5vw,44px);border:1px solid var(--ed-line);border-radius:24px;background:#fff;box-shadow:var(--ed-shadow)}.ed-login h1,.ed-admin-head h1,.ed-editor-head h1{font-weight:900;letter-spacing:-.035em;color:var(--ed-ink);margin:10px 0}.ed-login p,.ed-admin-head p,.ed-editor-head p{color:var(--ed-muted);line-height:1.6}.ed-login form{display:grid;gap:10px;margin-top:25px}.ed-login label,.ed-form>label,.ed-form label{font-weight:750;margin-top:10px}.ed-login input,.ed-form input:not([type=checkbox]):not([type=file]),.ed-form textarea,.ed-form select{width:100%;padding:13px 14px;border:1px solid #cbd9e7;border-radius:12px;background:#fff;color:#1c3d59;font:inherit}.ed-login input:focus,.ed-form input:focus,.ed-form textarea:focus,.ed-form select:focus{outline:3px solid #1877f226;border-color:#1877f2}.ed-login button{margin-top:12px}.ed-error{padding:12px 14px;border:1px solid #f0b8bd;border-radius:12px;background:#fff1f2;color:#9b2431}.ed-admin-head{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:28px 0}.ed-head-actions,.ed-row-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ed-admin-list{display:grid;gap:14px}.ed-row{display:grid;grid-template-columns:120px minmax(0,1fr) auto;align-items:center;gap:20px;padding:16px;border:1px solid var(--ed-line);border-radius:18px;background:#fff;box-shadow:0 6px 22px rgba(24,57,89,.06)}.ed-row>img,.ed-row-placeholder{width:120px;height:88px;object-fit:cover;border-radius:12px}.ed-row-placeholder{display:grid;place-items:center;background:#edf6fc;font-size:2rem}.ed-row-copy h2{font-size:1.15rem;margin:7px 0}.ed-row-copy p{margin:0 0 6px;color:var(--ed-muted)}.ed-row-copy small{color:#72879a}.ed-status{display:inline-block;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:850}.ed-status--publicado{color:#12804d}.ed-status--borrador{color:#b07a00}.ed-status--archivado{color:#687b8d}.ed-row-actions form{margin:0}.ed-editor-head{margin:22px 0}.ed-form{display:grid;gap:9px;padding:clamp(22px,5vw,42px);border:1px solid var(--ed-line);border-radius:22px;background:#fff;box-shadow:var(--ed-shadow)}.ed-form textarea{resize:vertical;line-height:1.6}.ed-field-error{color:#b52e3d;font-size:.85rem}.ed-slug-prefix{display:flex;align-items:center;padding-left:13px;border:1px solid #cbd9e7;border-radius:12px;color:#71869a;font-size:.88rem;overflow:hidden}.ed-slug-prefix input{border:0!important}.ed-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.ed-form-grid>div{display:grid;align-content:start;gap:8px}.ed-form small{color:var(--ed-muted);line-height:1.5}.ed-image-preview{width:min(480px,100%);max-height:260px;object-fit:cover;border-radius:14px}.ed-sources{border:1px solid var(--ed-line);border-radius:16px;padding:18px;margin:12px 0}.ed-sources legend{float:none;width:auto;padding:0 8px;font-weight:850}.ed-check{display:flex!important;align-items:center;gap:10px;padding-top:30px}.ed-check label{margin:0}.ed-check input{width:20px;height:20px}.ed-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.ed-admin-shell--login{min-height:clamp(520px,calc(100svh - 330px),760px);display:grid;align-items:center}.ed-admin-shell--login .ed-login{margin:0 auto}
.ed-admin-shell:has(> .ed-login){min-height:calc(100svh - 250px);display:flex;align-items:center;justify-content:center}
.ed-admin-shell:has(> .ed-login) .ed-login{margin:0 auto}
@media(max-width:800px){.ed-public,.ed-admin-shell,.ed-article-shell{width:min(100% - 24px,680px);margin:22px auto 50px}.ed-grid{grid-template-columns:1fr}.ed-card--featured{grid-column:auto}.ed-card-link,.ed-card:not(.ed-card--featured) .ed-card-link{display:flex;flex-direction:column}.ed-card-image{height:220px;min-height:220px}.ed-article-layout{grid-template-columns:1fr;gap:22px}.ed-source-box{order:-1}.ed-article-footer,.ed-admin-head{align-items:flex-start;flex-direction:column}.ed-row{grid-template-columns:76px minmax(0,1fr)}.ed-row>img,.ed-row-placeholder{width:76px;height:76px}.ed-row-actions{grid-column:1/-1}.ed-row-actions .ed-button{padding:9px 11px;font-size:.86rem}}
@media(max-width:520px){.ed-form-grid{grid-template-columns:1fr}.ed-slug-prefix{display:block;padding:10px}.ed-slug-prefix input{margin-top:6px}.ed-head-actions{width:100%}.ed-head-actions form,.ed-head-actions .ed-button{flex:1}.ed-row{align-items:start;gap:12px}.ed-row-copy p{font-size:.9rem}.ed-row-copy small{font-size:.75rem}.ed-row-actions{gap:6px}.ed-row-actions .ed-button{font-size:.78rem;padding:8px}.ed-trust{padding:15px}.ed-article-footer{align-items:stretch}.ed-article-footer .ed-button{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){.ed-card{transition:none}}
html.tema-oscuro .ed-public,html.tema-oscuro .ed-admin-shell,html.tema-oscuro .ed-article-shell{color:#e5f0fa}
html.tema-oscuro .ed-hero{background:radial-gradient(circle at 90% 15%,rgba(48,131,210,.22),transparent 34%),linear-gradient(135deg,#172d40,#1a3b51);border-color:#34566e}
html.tema-oscuro .ed-hero h1,html.tema-oscuro .ed-article-head h1,html.tema-oscuro .ed-login h1,html.tema-oscuro .ed-admin-head h1,html.tema-oscuro .ed-editor-head h1,html.tema-oscuro .ed-card h2,html.tema-oscuro .ed-source-box h2,html.tema-oscuro .ed-empty h2{color:#eff7ff}
html.tema-oscuro .ed-card,html.tema-oscuro .ed-article,html.tema-oscuro .ed-login,html.tema-oscuro .ed-form,html.tema-oscuro .ed-row{background:#172d3d;border-color:#355269}
html.tema-oscuro .ed-card p,html.tema-oscuro .ed-hero p,html.tema-oscuro .ed-deck,html.tema-oscuro .ed-prose,html.tema-oscuro .ed-byline small,html.tema-oscuro .ed-trust,html.tema-oscuro .ed-login p,html.tema-oscuro .ed-admin-head p,html.tema-oscuro .ed-editor-head p,html.tema-oscuro .ed-row-copy p,html.tema-oscuro .ed-row-copy small,html.tema-oscuro .ed-article-footer p{color:#bbccda}
html.tema-oscuro .ed-trust,html.tema-oscuro .ed-source-box,html.tema-oscuro .ed-article-footer,html.tema-oscuro .ed-empty{background:#1c3548;border-color:#355269}
html.tema-oscuro .ed-login input,html.tema-oscuro .ed-form input:not([type=checkbox]):not([type=file]),html.tema-oscuro .ed-form textarea,html.tema-oscuro .ed-form select,html.tema-oscuro .ed-slug-prefix{background:#102433;color:#e7f1fa;border-color:#45647c}
html.tema-oscuro .ed-button:not(.ed-button--primary):not(.ed-button--danger){background:#203b50;color:#d9e9f7;border-color:#45647c}
