:root {
    --navy: #06255c;
    --blue: #063bb5;
    --green: #0b851d;
    --ink: #101828;
    --muted: #667085;
    --line: #e5e7eb;
    --soft: #f4f7fb;
    --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, Arial, sans-serif; background: #fff; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.topbar { background: var(--navy); }
.topbar-inner { height: 76px; display: flex; align-items: center; gap: 22px; }
.brand { width: 188px; margin-right: auto; }
.brand img { height: 42px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.menu-toggle { width: 28px; padding: 4px 2px; border: 0; background: none; cursor: pointer; }
.menu-toggle span { display: block; height: 3px; margin: 4px 0; border-radius: 3px; background: #fff; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle span { transition: transform .2s ease, opacity .2s ease; }
.header-actions { display: flex; align-items: center; gap: 18px; color: #fff; font-size: 20px; font-weight: 800; }
.city-pill { padding: 9px 14px; border-radius: 6px; background: var(--green); font-size: 13px; text-transform: uppercase; }
.header-icon { display: grid; place-items: center; width: 24px; height: 24px; padding: 2px; border: 0; color: #fff; background: none; cursor: pointer; }
.header-icon img, .header-icon svg { width: 100%; height: 100%; object-fit: contain; fill: currentColor; }
.header-icon img { filter: brightness(0) invert(1); }
.menu-drawer { position: absolute; z-index: 30; top: 76px; left: 0; width: 100%; padding: 30px 0; color: #fff; background: #041b46; box-shadow: 0 18px 30px rgba(2, 15, 39, .25); }
.menu-drawer[hidden] { display: none; }
.menu-drawer-inner { display: grid; grid-template-columns: 3fr 1fr; gap: 60px; }
.menu-drawer-group { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px 26px; }
.menu-drawer-group strong { flex-basis: 100%; margin-bottom: 6px; color: #8fb0e8; font-size: 12px; text-transform: uppercase; }
.menu-drawer-group a { font-size: 14px; font-weight: 700; transition: color .18s ease; }
.menu-drawer-group a:hover { color: #fdde02; }
.site-header { position: relative; }
.category-nav { background: var(--blue); box-shadow: 0 2px 5px rgba(15, 23, 42, .12); }
.category-scroll { height: 58px; display: flex; align-items: stretch; gap: 38px; overflow-x: auto; scrollbar-width: none; }
.category-scroll a { display: flex; flex: 0 0 auto; align-items: center; color: #fff; font-size: 14px; font-weight: 700; border-bottom: 4px solid transparent; }
.category-scroll a:hover, .category-scroll a.active { border-bottom-color: #fdde02; }
#analise-widget-tickers {
    min-height: 40px;
    border-bottom: 1px solid #e7ebf1;
    background: #fff;
}
.search-panel { padding: 18px 0; background: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, .12); }
.search-panel .container { display: flex; }
.search-panel input { flex: 1; padding: 13px 16px; border: 1px solid #d0d5dd; border-radius: 7px 0 0 7px; }
.search-panel button { padding: 0 24px; border: 0; border-radius: 0 7px 7px 0; color: #fff; background: var(--green); font-weight: 800; }

.stories-strip { padding-top: 28px; }
.stories-scroll { display: flex; gap: 22px; overflow-x: auto; padding: 10px 0 40px; scrollbar-width: thin; scrollbar-color: #d0d5dd transparent; }
.story-circle { flex: 0 0 82px; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.story-circle-ring { display: block; width: 76px; height: 76px; margin: auto; padding: 3px; border: 2px solid var(--story-color); border-radius: 50%; transition: transform .2s ease, box-shadow .2s ease; }
.story-circle-ring img { width: 100%; height: 100%; border: 0; border-radius: 50%; object-fit: cover; }
.story-circle:hover .story-circle-ring { transform: translateY(-3px); box-shadow: 0 7px 18px color-mix(in srgb, var(--story-color) 30%, transparent); }
.story-circle-label { display: block; overflow: hidden; margin-top: 8px; font-size: 11px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.stories-open { overflow: hidden; }
.stories-viewer { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px; background: rgba(2, 6, 23, .94); }
.stories-viewer[hidden] { display: none; }
.stories-frame { position: relative; overflow: hidden; width: min(430px, calc(100vw - 130px)); height: min(760px, calc(100vh - 40px)); color: #fff; background: #111827; border-radius: 16px; box-shadow: 0 25px 70px rgba(0, 0, 0, .5); }
.stories-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stories-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .58), transparent 30%, transparent 47%, rgba(0, 0, 0, .88)); }
.stories-progress { position: absolute; z-index: 2; top: 13px; left: 13px; right: 13px; display: flex; gap: 5px; }
.stories-progress span { position: relative; overflow: hidden; flex: 1; height: 3px; background: rgba(255, 255, 255, .4); border-radius: 5px; }
.stories-progress span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.stories-progress span.is-complete::after { transform: scaleX(1); }
.stories-progress span.is-current::after { animation: story-progress 6s linear forwards; }
@keyframes story-progress { to { transform: scaleX(1); } }
.stories-category { position: absolute; z-index: 2; top: 30px; left: 16px; right: 50px; display: flex; align-items: center; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.stories-category strong, .stories-category small { display: block; }
.stories-category strong { font-size: 13px; text-transform: uppercase; }
.stories-category small { margin-top: 2px; color: rgba(255, 255, 255, .8); font-size: 10px; }
.stories-content { position: absolute; z-index: 2; right: 24px; bottom: 30px; left: 24px; }
.stories-content h2 { margin: 0; font-size: clamp(24px, 3.3vh, 34px); line-height: 1.08; letter-spacing: -.035em; text-shadow: 0 2px 7px rgba(0, 0, 0, .45); }
.stories-content p { display: -webkit-box; overflow: hidden; margin: 12px 0 18px; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.stories-content a { display: inline-flex; padding: 11px 16px; color: var(--navy); background: #fff; border-radius: 6px; font-size: 12px; font-weight: 800; }
.stories-content a:hover { background: #fdde02; }
.stories-arrow, .stories-close { display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); color: #fff; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.stories-arrow { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.stories-arrow svg { width: 23px; height: 23px; fill: currentColor; }
.stories-arrow:hover, .stories-close:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .2); transform: scale(1.06); }
.stories-arrow:active, .stories-close:active { transform: scale(.96); }
.stories-close { position: fixed; z-index: 3; top: 22px; right: 25px; width: 42px; height: 42px; border-radius: 50%; }
.stories-close svg { width: 24px; height: 24px; fill: currentColor; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; padding-top: 78px; }
.stories-strip ~ .hero { padding-top: 6px; }
.story-image { display: block; overflow: hidden; border-radius: 9px; background: var(--soft); }
.story-image img { height: 100%; object-fit: cover; transition: transform .3s ease; }
article:hover .story-image img { transform: scale(1.025); }
.lead-image { height: 365px; }
.story-kicker { margin-top: 16px; color: var(--blue); font-size: 14px; font-weight: 800; }
.lead-story h1 { max-width: 720px; margin: 6px 0 12px; font-size: clamp(28px, 2.55vw, 42px); line-height: 1.08; letter-spacing: -.04em; }
.lead-story p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.highlight-card .story-image { height: 174px; }
.highlight-card .story-kicker { margin-top: 12px; }
.highlight-card h2 { margin: 4px 0 0; font-size: 17px; line-height: 1.18; letter-spacing: -.02em; }

.ad-space { width: min(730px, calc(100% - 48px)); min-height: 88px; margin-top: 64px; margin-bottom: 48px; padding: 18px 32px; display: flex; align-items: center; justify-content: center; gap: 28px; color: #fff; background: linear-gradient(110deg, var(--navy), var(--blue) 60%, var(--green)); border-radius: 7px; }
.ad-space span { font-size: 9px; opacity: .8; writing-mode: vertical-rl; }
.ad-space div { font-size: 20px; font-weight: 900; letter-spacing: .06em; }

.news-section { margin-top: 54px; margin-bottom: 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.04em; }
.section-heading a { align-self: flex-end; margin-bottom: 15px; font-size: 13px; font-weight: 800; }
.section-heading a span { color: var(--green); font-size: 18px; }
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.news-card .story-image { height: 175px; }
.news-card .story-kicker { margin-top: 13px; }
.news-card h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }

.category-layout { display: grid; grid-template-columns: 1.2fr .92fr 290px; gap: 28px; }
.category-feature { grid-row: span 3; }
.category-feature .story-image { height: 310px; }
.category-feature h3 { margin: 5px 0 8px; font-size: 27px; line-height: 1.15; }
.category-feature p { margin: 0; color: var(--muted); line-height: 1.5; }
.category-row { display: grid; grid-template-columns: 145px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.category-row .story-image { height: 102px; }
.category-row .story-kicker { margin-top: 2px; font-size: 12px; }
.category-row h3 { margin: 5px 0 0; font-size: 15px; line-height: 1.25; }
.section-ad { min-height: 300px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #fff; background: linear-gradient(155deg, var(--navy), var(--blue)); border-radius: 9px; }
.section-ad small { font-size: 9px; letter-spacing: .12em; opacity: .7; }
.section-ad strong { margin: 18px 0; font-size: 28px; line-height: 1.05; }
.section-ad a { padding: 10px 13px; background: var(--green); border-radius: 5px; font-size: 11px; font-weight: 800; }

.site-footer { margin-top: 90px; color: #fff; background: var(--navy); }
.footer-main { padding: 64px 0; display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 70px; }
.footer-brand img { width: 190px; height: 48px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.footer-brand p { color: #b9c6db; }
.site-footer h3 { margin: 0 0 18px; font-size: 15px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; color: #cbd5e1; font-size: 13px; }
.footer-bottom { padding: 20px 0; color: #aab8cf; background: #031a43; font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; }
.footer-bottom a { margin-left: 20px; }

/* páginas internas */
.listing-page, #page-article, #page-search, #page-content, .static-page { padding: 20px 0 72px; font-family: Inter, Arial, sans-serif; }
.listing-header { margin-bottom: 36px; }
.listing-kicker { color: var(--blue); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.article-category { display: inline-flex; align-items: center; width: auto; min-height: 28px; padding: 0 11px; color: #fff !important; border-radius: 5px; font-family: Inter, Arial, sans-serif; font-size: 11px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.listing-title, .article-title { margin: 8px 0; font-family: Inter, Arial, sans-serif; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.listing-summary, .article-subtitle { color: var(--muted); font-size: 18px; }
.result-list { max-width: 900px; }
.result-card { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.result-card img { height: 175px; object-fit: cover; border-radius: 8px; }
.result-card h2 { margin: 8px 0; font-size: 24px; }
.result-card p { color: var(--muted); }
.result-card-meta, .article-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.tag { color: var(--blue); font-weight: 800; }
.result-card-meta .tag {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 24px;
    padding: 4px 9px;
    color: #fff !important;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
}
.load-more-wrap { max-width: 900px; padding-top: 34px; text-align: center; }
.load-more-button { min-width: 170px; padding: 13px 24px; border: 1px solid var(--navy); color: #fff; background: var(--navy); border-radius: 7px; cursor: pointer; font-weight: 800; transition: color .18s ease, background .18s ease, transform .18s ease; }
.load-more-button:hover { color: var(--navy); background: #fff; transform: translateY(-2px); }
.load-more-button:disabled { opacity: .65; cursor: wait; transform: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 850px) 300px; gap: 60px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 32px; color: var(--muted); font-family: Inter, Arial, sans-serif; font-size: 13px; }
.article-hero-img { margin: 30px 0; max-height: 520px; object-fit: cover; border-radius: 10px; }
.article-body { font-family: Inter, Arial, sans-serif; font-size: 18px; line-height: 1.75; }
.static-page-content { max-width: 900px; }
.static-page-header { margin-bottom: 34px; }
.static-page-header h1 { margin: 10px 0 12px; font-family: Inter, Arial, sans-serif; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.static-page-header p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.article-body img { height: auto; }
.article-body img, .article-body video, .article-body iframe { max-width: 100%; }
.article-body figure { max-width: 100%; margin: 28px 0; }
.author-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; color: #fff; background: var(--navy); border-radius: 50%; font-size: 11px; font-family: Inter, sans-serif; font-weight: 800; }
.author-name { color: var(--ink); font-weight: 700; }
.author-role { margin-top: 2px; }
.article-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.article-share-label { margin-right: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.share-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #344054; cursor: pointer; font-family: Inter, sans-serif; font-size: 11px; font-weight: 800; transition: transform .18s ease, opacity .18s ease; }
.share-button svg { width: 18px; height: 18px; fill: currentColor; }
.share-button:hover { color: #fff; opacity: .84; transform: translateY(-2px); }
.share-button--whatsapp { background: #20b95a; }
.share-button--facebook { background: #1877f2; font-size: 17px; }
.share-button--x { background: #111; font-size: 15px; }
.share-button--linkedin { background: #0a66c2; }
.share-button--copy.is-copied, .share-button--native.is-copied { background: var(--green); }
.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-tags-label { font-weight: 800; }
.article-tag { padding: 7px 10px; color: #475467; background: var(--soft); border-radius: 5px; font-size: 12px; }
.related-section { margin-top: 52px; padding-top: 4px; }
.related-section .section-header { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.related-section .section-title { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.related-section .section-line { flex: 1; height: 1px; background: var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, .1); }
.related-card > img { width: 100%; height: 145px; object-fit: cover; }
.related-card-body { padding: 14px; }
.tag-related { display: inline-flex; width: auto; padding: 5px 8px; color: #fff !important; border-radius: 4px; font-size: 10px; text-transform: uppercase; }
.related-card h4 { margin: 9px 0 0; font-size: 14px; line-height: 1.3; }
.ad-banner { display: flex; align-items: center; justify-content: center; min-height: 250px; background: var(--soft); color: var(--muted); }
.empty-state { padding: 40px; background: var(--soft); border-radius: 8px; }

@media (max-width: 980px) {
    .header-actions > a:not(.city-pill), .city-pill { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 42px; }
    .lead-image { height: 430px; }
    .category-layout { grid-template-columns: 1fr 1fr; }
    .section-ad { grid-column: 1 / -1; min-height: 180px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
}

@media (max-width: 700px) {
    .container { width: min(100% - 32px, var(--container)); }
    .topbar-inner { height: 66px; }
    .menu-drawer { top: 66px; }
    .menu-drawer-inner { grid-template-columns: 1fr; gap: 28px; }
    .menu-drawer-group { flex-direction: column; flex-wrap: nowrap; }
    .brand { width: 145px; }
    .brand img { height: 36px; }
    .category-nav { display: none; }
    .category-nav.is-open { display: block; }
    .category-scroll { height: auto; padding-block: 12px; flex-direction: column; gap: 0; }
    .category-scroll a { padding: 11px 0; }
    .hero { padding-top: 28px; }
    .stories-strip { width: 100%; padding: 20px 0 0 16px; }
    .stories-scroll { gap: 13px; padding: 10px 16px 16px 12px; }
    .story-circle { flex-basis: 72px; }
    .story-circle-ring { width: 66px; height: 66px; }
    .stories-strip ~ .hero { padding-top: 6px; }
    .stories-viewer { padding: 0; }
    .stories-frame { width: 100vw; height: 100dvh; border-radius: 0; }
    .stories-arrow { position: fixed; z-index: 4; top: 20%; width: 50%; height: 60%; border-radius: 0; opacity: 0; }
    .stories-arrow--previous { left: 0; }
    .stories-arrow--next { right: 0; }
    .stories-close { top: 30px; right: 14px; width: 36px; height: 36px; }
    .stories-content { right: 20px; bottom: 28px; left: 20px; }
    .lead-image { height: 250px; }
    .lead-story h1 { font-size: 29px; }
    .highlight-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
    .highlight-card .story-image { height: 115px; }
    .highlight-card h2 { font-size: 14px; }
    .ad-space { width: calc(100% - 32px); margin-top: 42px; margin-bottom: 35px; }
    .latest-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .news-card { min-width: 76vw; scroll-snap-align: start; }
    .category-layout { grid-template-columns: 1fr; }
    .category-feature { grid-row: auto; }
    .category-feature .story-image { height: 235px; }
    .section-ad { grid-column: auto; }
    .footer-main { grid-template-columns: 1fr; gap: 38px; }
    .footer-bottom .container { gap: 15px; flex-direction: column; }
    .result-card { grid-template-columns: 115px 1fr; gap: 14px; }
    .result-card img { height: 95px; }
    .result-card h2 { font-size: 17px; }
    .result-card p { display: none; }
    .article-title { font-size: 34px; }
    .article-meta { align-items: flex-start; flex-wrap: wrap; }
    .article-share-label { flex-basis: 100%; margin-bottom: 2px; }
    .related-grid { grid-template-columns: 1fr; }
    .related-card { display: grid; grid-template-columns: 125px 1fr; }
    .related-card > img { height: 100%; min-height: 112px; }
}
