/* =====================================================================
   Notícias Juris — estilo do site público
   ===================================================================== */

:root {
    --navy: #0b1f3a;
    --navy-2: #13305a;
    --navy-3: #1d4078;
    --gold: #b8924a;
    --gold-2: #d4b06f;
    --ink: #17202c;
    --text: #2b3442;
    --muted: #5f6b7a;
    --line: #e3e6ea;
    --soft: #f4f5f7;
    --paper: #ffffff;
    --success: #1f7a4d;
    --danger: #b3261e;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 6px 20px rgba(11, 31, 58, .06);
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--gold); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.icon { flex-shrink: 0; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.2; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: none; color: var(--navy); border-radius: 8px; }
.icon-btn:hover { background: var(--soft); }

/* ---------- Cabeçalho ---------- */
.topbar { background: var(--navy); color: #c9d3e1; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.today { letter-spacing: .01em; }
.social { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.social a { display: inline-flex; padding: 6px; color: inherit; border-radius: 6px; }
.social a:hover { color: var(--gold-2); }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.menu-toggle, .search-toggle { display: none; }
.brand { grid-column: 2; display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-logo { max-height: 64px; width: auto; }
.brand-mark { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--gold-2); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 2.1rem; letter-spacing: -.01em; line-height: 1; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-tagline { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-top: 6px; }

.search-form { grid-column: 3; justify-self: end; display: flex; align-items: center; width: 100%; max-width: 300px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); transition: border-color .2s, background .2s; }
.search-form:focus-within { border-color: var(--navy-3); background: #fff; }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; padding: 9px 4px 9px 16px; font: inherit; font-size: .9rem; color: var(--ink); outline: none; }
.search-form button { border: 0; background: none; color: var(--navy); padding: 8px 14px 8px 8px; display: inline-flex; }

.mainnav { background: var(--navy-2); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.mainnav a {
    display: block; padding: 14px 20px; color: #e8edf5;
    font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* ---------- Títulos de seção, selos ---------- */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-title { position: relative; font-size: 1.35rem; margin-bottom: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); flex: 1; }
.section-title span { position: relative; }
.section-title span::after { content: ""; position: absolute; left: 0; bottom: -11px; width: 100%; height: 3px; background: var(--gold); }
.section-head .section-title { margin-bottom: 22px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; margin-bottom: 32px; white-space: nowrap; }

.badge {
    display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: var(--gold); margin-bottom: 8px;
}
.badge:hover { color: var(--navy); }
.badge-solid { background: var(--gold); color: #fff; padding: 4px 10px; border-radius: 4px; }

/* ---------- Página inicial: destaque + mais lidas ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; }
.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); min-height: 440px; }
.hero-track { display: grid; height: 100%; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-link { position: relative; display: block; height: 100%; min-height: 440px; color: #fff; }
.hero-link:hover { color: #fff; }
.hero-link img, .placeholder-hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero-slide.is-active .hero-link img { transform: scale(1.04); }
.hero-overlay {
    position: absolute; inset: auto 0 0 0; padding: 90px 32px 56px;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0) 0%, rgba(11, 31, 58, .78) 45%, rgba(8, 20, 38, .95) 100%);
}
.hero-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.25rem); margin: 10px 0 10px; max-width: 30ch; }
.hero-link:hover .hero-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hero-sub { color: #dbe3ee; margin: 0 0 12px; max-width: 60ch; font-size: 1.02rem; }
.hero-meta { color: #b5c2d4; font-size: .85rem; margin: 0; }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s, background .2s;
}
.hero:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: var(--gold); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots { position: absolute; z-index: 3; left: 32px; bottom: 22px; display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 14px; padding: 5px 0; background: none; border: 0; }
.hero-dots span { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.hero-dots button[aria-selected="true"] span::after {
    content: ""; position: absolute; inset: 0; background: var(--gold-2); transform-origin: left;
    animation: dot-fill var(--hero-interval, 6s) linear forwards;
}
.hero.is-paused .hero-dots button[aria-selected="true"] span::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-empty { display: flex; align-items: flex-end; }
.hero-empty .hero-overlay { position: static; background: none; }

.placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 100%; color: rgba(212, 176, 111, .7);
    background: radial-gradient(circle at 30% 20%, var(--navy-3), var(--navy) 70%);
    font-family: var(--serif); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem;
}
.placeholder span { color: #c9d3e1; }
.placeholder-hero { align-items: center; padding-bottom: 120px; }

.most-read { border-top: 0; }
.most-read ol { list-style: none; counter-reset: mr; margin: 0; padding: 0; }
.most-read li { counter-increment: mr; border-bottom: 1px solid var(--line); }
.most-read li:last-child { border-bottom: 0; }
.most-read a { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 14px 0; color: var(--ink); }
.most-read a::before {
    content: counter(mr); grid-row: 1 / 3; font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--gold);
}
.mr-cat { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mr-title { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.most-read a:hover .mr-title { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--soft); margin-bottom: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-title { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card-sub { color: var(--muted); margin: 0 0 10px; font-size: .95rem; }
.byline { font-size: .8rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.byline a { color: var(--text); font-weight: 600; }
.byline a:hover { color: var(--gold); }

.list { display: flex; flex-direction: column; }
.card-list { flex-direction: row; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.card-list:first-child { padding-top: 0; }
.card-list .card-media { flex: 0 0 300px; margin: 0; }
.card-list .card-title { font-size: 1.4rem; }

/* ---------- Cabeçalho de páginas ---------- */
.breadcrumb { font-size: .82rem; color: var(--muted); margin: 24px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.page-head { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 8px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; max-width: 70ch; }
.empty { padding: 40px 0; color: var(--muted); }

.author-head { display: flex; align-items: center; gap: 20px; }
.avatar {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold-2);
    font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
}
.avatar-lg { width: 60px; height: 60px; font-size: 1.5rem; }
.avatar-xl { width: 84px; height: 84px; font-size: 2.2rem; }

/* ---------- Publicação ---------- */
.article { max-width: 880px; }
.article-head { margin-bottom: 28px; }
.article-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; letter-spacing: -.01em; margin: 4px 0 14px; }
.article-sub { font-size: 1.2rem; color: var(--muted); margin: 0 0 22px; font-family: var(--serif); line-height: 1.5; }
.article-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-line { display: flex; align-items: center; gap: 12px; }
.author-name { margin: 0; font-weight: 600; color: var(--ink); }
.author-name a { color: var(--ink); }
.author-name a:hover { color: var(--gold); }
.dates { margin: 0; font-size: .82rem; color: var(--muted); }
.share { display: flex; gap: 6px; }
.share a, .share button {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
}
.share a:hover, .share button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share button.copied { background: var(--success); border-color: var(--success); color: #fff; }

.article-figure { margin: 0 0 32px; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.credit { display: inline-block; margin-left: 6px; font-style: italic; }

.precedent { background: #f7f4ee; border: 1px solid #eadfca; border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 32px; }
.precedent-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: var(--navy); margin-bottom: 14px; }
.precedent-title .icon { color: var(--gold); }
.precedent dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; margin: 0; }
.precedent dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.precedent dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.tese { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #dccfb3; }
.tese-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.tese blockquote { margin: 0; font-family: var(--serif); font-size: 1.08rem; font-style: italic; color: var(--ink); line-height: 1.6; }

.prose { font-family: var(--serif); font-size: 1.16rem; line-height: 1.8; color: #222a35; }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: var(--navy); font-style: italic; font-size: 1.2rem; }
.prose img { border-radius: 8px; margin: 1.5em auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--soft); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.prose code { font-size: .9em; background: var(--soft); padding: 2px 6px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.source { margin-top: 28px; font-size: .9rem; color: var(--muted); }
.source a { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 44px; padding: 22px; border-radius: var(--radius); background: var(--soft); }
.author-box p { margin: 0; }
.author-box-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.author-box-name a { color: var(--ink); }

.preview-bar { background: #fff4d6; color: #6b4e00; text-align: center; padding: 10px 16px; font-size: .9rem; }
.preview-bar a { font-weight: 700; }

/* ---------- Formulários ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #cfd5dd; border-radius: 8px;
    font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29, 64, 120, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { background: #e7f5ee; color: var(--success); border: 1px solid #b9e2cc; }
.alert-error { background: #fcecea; color: var(--danger); border: 1px solid #f2c4bf; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-info { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.contact-info h2 { font-size: 1.2rem; }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info li .icon { color: var(--gold); margin-top: 3px; }
.contact-info li div { display: flex; flex-direction: column; word-break: break-word; }

.search-big { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.search-big input { flex: 1; min-width: 220px; padding: 13px 16px; border: 1px solid #cfd5dd; border-radius: 8px; font: inherit; }
.search-big input:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29, 64, 120, .15); }

/* ---------- Paginação ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 40px 0 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px;
    justify-content: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy);
}
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .gap { border: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 60px 16px; }
.notfound-code { font-family: var(--serif); font-size: 6rem; font-weight: 700; color: var(--gold); margin: 0; line-height: 1; }
.notfound .search-big { max-width: 520px; margin: 24px auto; }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 72px; background: var(--navy); color: #c2cddd; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-mark { width: 42px; height: 42px; background: rgba(255, 255, 255, .08); }
.brand-footer .brand-name { font-size: 1.5rem; }
.footer-about p { margin: 0 0 16px; max-width: 40ch; }
.footer-about .social { margin-left: -6px; }
.footer-title { color: #fff; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #c2cddd; }
.site-footer a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; word-break: break-word; }
.footer-contact .icon { margin-top: 3px; color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 22px; font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal .link-btn { color: #c2cddd; text-decoration: none; font-size: inherit; }
.footer-legal .link-btn:hover { color: var(--gold-2); }
.sep { margin: 0 4px; }
.disclaimer { margin-top: 10px !important; color: #8796ac; font-size: .78rem; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
    position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
    background: #fff; color: var(--text); border-radius: 12px; padding: 18px 20px;
    box-shadow: 0 10px 40px rgba(11, 31, 58, .25); display: flex; gap: 16px; align-items: center; font-size: .88rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .home-top { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .card-list .card-media { flex-basis: 240px; }
}

@media (max-width: 760px) {
    .topbar .social { display: none; }
    .masthead-inner { grid-template-columns: auto 1fr auto; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
    .menu-toggle, .search-toggle { display: inline-flex; }
    .brand { grid-column: 2; justify-self: center; gap: 8px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-mark .icon { width: 22px; height: 22px; }
    .brand-name { font-size: 1.45rem; }
    .brand-tagline { display: none; }
    .brand-logo { max-height: 44px; }
    .search-form { display: none; grid-column: 1 / -1; grid-row: 2; max-width: none; }
    .masthead.search-open .search-form { display: flex; }

    .mainnav { position: static; display: none; }
    .mainnav.is-open { display: block; }
    .mainnav ul { flex-direction: column; }
    .mainnav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid transparent; padding-left: 12px; }
    .mainnav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .08); border-left-color: var(--gold); }

    .home-top { margin-top: 16px; gap: 24px; }
    .hero, .hero-link { min-height: 380px; }
    .hero-overlay { padding: 70px 20px 48px; }
    .hero-dots { left: 20px; }
    .hero-nav { display: none; }

    .grid-3 { grid-template-columns: 1fr; }
    .card-list { flex-direction: column; gap: 14px; }
    .card-list .card-media { flex-basis: auto; }
    .card-list .card-title { font-size: 1.25rem; }

    .prose { font-size: 1.08rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .cookie-actions .btn { flex: 1; }
    .author-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
