* { box-sizing: border-box; }
[hidden] { display: none !important; }
textarea { width: 100%; padding: 12px; font: inherit; border: 1px solid #9daabe; border-radius: 6px; resize: vertical; }
.page-heading,.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.button-link { display: inline-block; background: var(--color-secondary); color: white; padding: 12px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.dashboard-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin: 28px 0; }
.stat-card { display: grid; padding: 22px; background: white; border: 1px solid var(--color-border); border-radius: 10px; text-decoration: none; }
.stat-card strong { font-size: 2rem; }
.filters { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.filters > div { flex: 1; min-width: 180px; }
.news-row { display: flex; gap: 24px; }
.news-thumb { width: 160px; height: 120px; object-fit: contain; background: #e8edf5; border-radius: 8px; }
.news-summary { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row-actions form,.row-actions button { margin: 0; }
.link-button { background: transparent; color: var(--color-secondary); text-decoration: underline; padding: 0; font-weight: 400; }
.link-button:hover { background: transparent; color: var(--color-primary); }
.badge { display: inline-block; font-size: .8rem; padding: 4px 10px; border-radius: 20px; background: #e7edf6; }
.state-publicada { background: #dcf4e5; color: #185b38; }.state-en_revision { background: #fff0ca; color: #795500; }
.state-papelera { background: #ffe4df; color: #8a2119; }
.pagination { display: flex; gap: 12px; margin: 24px 0; }.pagination a { padding: 8px 16px; background: white; }.pagination [aria-current] { background: var(--color-secondary); color: white; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border: 1px solid #9daabe; background: #edf2fa; border-radius: 6px 6px 0 0; }
.editor-tools button { font-size: .85rem; min-height: 36px; padding: 6px 12px; }
.rich-editor { min-height: 320px; padding: 20px; border: 1px solid #9daabe; border-top: 0; border-radius: 0 0 6px 6px; overflow-wrap: anywhere; background: white; }
.rich-editor h2 { margin-top: 24px; }.rich-editor p { margin: 0 0 12px; }
.cover-preview { display: block; max-width: 100%; max-height: 300px; margin-top: 18px; object-fit: contain; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }.secondary-button { background: #e0e9f7; color: var(--color-primary); }
.gallery-edit,.article-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-edit img { width: 100%; height: 140px; object-fit: contain; background: #e8edf5; }.gallery-edit input { width: auto; min-height: 0; }
.article-preview { max-width: 850px; margin-left: auto; margin-right: auto; }
.article-summary { font-size: 1.2rem; color: var(--color-text-light); }.article-cover { width: 100%; max-height: 550px; object-fit: contain; }
.article-content { line-height: 1.85; overflow-wrap: anywhere; margin-top: 28px; }.article-content blockquote { border-left: 4px solid #adc5ec; padding-left: 20px; }
.article-gallery figure { margin: 0; }.article-gallery img { width: 100%; height: auto; }
.empty-state { text-align: center; padding: 48px; }
@media(max-width:700px) { .dashboard-stats { grid-template-columns: repeat(2,1fr); }.news-row { flex-direction: column; }.news-thumb { width:100%; height:180px; }.gallery-edit,.article-gallery { grid-template-columns: repeat(2,1fr); } }
select { width: 100%; min-height: 46px; padding: 10px; font: inherit; border: 1px solid #9daabe; border-radius: 6px; background: white; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid var(--color-border); }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: var(--color-secondary); text-underline-offset: 3px; }
h1, h2 { color: var(--color-primary); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 12px 0 20px; }
h2 { font-size: 1.3rem; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--color-primary); }
.login-card { width: 100%; max-width: 460px; padding: clamp(24px, 5vw, 40px); background: white; border-radius: 16px; box-shadow: var(--shadow-soft); }
.panel-logo { width: 68px; height: 68px; object-fit: contain; border-radius: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--color-secondary); }
label { display: block; font-weight: 600; margin: 18px 0 6px; }
input { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; border: 1px solid #9daabe; border-radius: 6px; background: white; }
button { border: 0; border-radius: 6px; background: var(--color-secondary); color: white; font: inherit; font-weight: 600; padding: 12px 20px; cursor: pointer; min-height: 44px; }
form > button { margin-top: 24px; }
.login-card button { width: 100%; }
button:hover { background: var(--color-primary); }
:focus-visible { outline: 3px solid #3979d6; outline-offset: 3px; }
.help { color: var(--color-text-light); font-size: .9rem; }
.alert { padding: 12px 16px; border-left: 4px solid #b42318; background: #fff0ee; color: #8a2119; margin: 20px 0; }
.alert.success { border-color: #1b7546; background: #eaf7ef; color: #185b38; }
.panel-header { background: white; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px max(24px, calc((100vw - 1100px) / 2)); }
.panel-brand { font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--color-primary); }
.panel-brand span { display: block; font-size: .8rem; font-weight: 400; }
.panel-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.panel-header form { margin: 0; }
.panel-header button { margin: 0; }
.panel-main { max-width: 1100px; margin: 0 auto; padding: 48px 24px; min-height: 70vh; }
.panel-card { padding: 28px; background: white; border: 1px solid var(--color-border); border-radius: 10px; margin-top: 28px; }
.narrow { max-width: 560px; }
.panel-footer { padding: 24px; text-align: center; color: var(--color-text-light); font-size: .85rem; }
@media (max-width: 700px) { .panel-header { align-items: flex-start; flex-direction: column; } .panel-header nav { gap: 14px; } .panel-main { padding-top: 28px; } }
