/* ============================================
   GMAX NOTÍCIAS — Urban SP Design
   Layout magazine/bento, minimalista e moderno
   Fontes: Outfit + Bitter (diferentes do Cuiabá/Radar)
   ============================================ */

:root {
    --red: #E63946;
    --red-dark: #C1121F;
    --charcoal: #1A1A2E;
    --charcoal-light: #16213E;
    --slate: #0F3460;
    --silver: #A8AABC;
    --white: #FFFFFF;
    --off-white: #F7F7FA;
    --gray-100: #EDEDF2;
    --gray-200: #D5D5DE;
    --gray-300: #ADADBA;
    --gray-400: #8686A0;
    --gray-500: #62627A;
    --gray-600: #44445C;
    --gray-700: #2E2E42;
    --gray-800: #1E1E30;
    --gray-900: #12121F;
    --bg: var(--off-white);
    --bg-card: var(--white);
    --text: var(--gray-800);
    --text-muted: var(--gray-400);
    --border: var(--gray-200);
    --accent: var(--red);
    --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
    --shadow-md: 0 4px 20px rgba(26,26,46,0.08);
    --shadow-lg: 0 12px 40px rgba(26,26,46,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Outfit', system-ui, sans-serif;
    --font-display: 'Bitter', Georgia, serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1320px;
}

[data-theme="dark"] {
    --bg: #0D0D15;
    --bg-card: #18182A;
    --text: #E0E0EC;
    --text-muted: #7575A0;
    --border: #2A2A40;
    --off-white: #12121F;
    --gray-100: #1E1E30;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* === LOADING === */
.loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--charcoal);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-inner { text-align: center; }
.loading-logo { font-family: var(--font); font-size: 4rem; font-weight: 900; color: var(--white); letter-spacing: -2px; }
.loading-logo span { color: var(--red); }
.loading-subtitle { color: var(--silver); font-size: 0.8rem; letter-spacing: 6px; text-transform: uppercase; margin-top: -4px; }
.loading-spinner {
    width: 32px; height: 32px; border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--red); border-radius: 50%;
    margin: 24px auto 0; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === TOPBAR === */
.topbar { background: var(--charcoal); color: var(--silver); font-size: 0.75rem; padding: 6px 0; }
.topbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 6px; }
.topbar-sep { opacity: 0.3; }
.topbar-right { display: flex; gap: 2px; }
.topbar-btn { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--silver); transition: 0.2s; }
.topbar-btn:hover { background: rgba(255,255,255,0.08); color: var(--red); }
.topbar-btn .material-icons { font-size: 18px; }

/* === HEADER === */
.header { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; height: 60px; overflow: hidden; }
.brand { display: flex; align-items: baseline; gap: 2px; flex-shrink: 0; }
.brand-g { font-family: var(--font); font-size: 2rem; font-weight: 900; color: var(--red); line-height: 1; }
.brand-max { font-family: var(--font); font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1; }
.brand-noticias { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; margin-left: 6px; }

.nav-cats { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cat {
    padding: 18px 14px; font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
    white-space: nowrap; position: relative; transition: color 0.2s;
}
.nav-cat::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 3px; background: var(--red); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform 0.2s; }
.nav-cat:hover { color: var(--text); }
.nav-cat.active { color: var(--red); font-weight: 700; }
.nav-cat.active::after { transform: scaleX(1); }

.nav-mobile-toggle { display: none; color: var(--text); }
.nav-mobile-toggle .material-icons { font-size: 28px; }

/* === READING BAR === */
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; z-index: 200; background: var(--red); width: 0; transition: width 0.05s; }

/* === TICKER === */
.ticker {
    background: var(--charcoal); display: flex; align-items: center; gap: 12px;
    padding: 8px 24px; overflow: hidden; max-width: 100vw; width: 100%;
}
.ticker-badge {
    background: var(--red); color: white; padding: 3px 10px; border-radius: 4px;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; flex-shrink: 0;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.6 } }
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-text { white-space: nowrap; color: white; font-size: 0.8rem; font-weight: 500; animation: scroll 25s linear infinite; }
@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* === SEARCH === */
.search-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(13,13,21,0.92); backdrop-filter: blur(12px); display: none; padding-top: 100px; }
.search-modal.open { display: block; }
.search-modal-box { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.search-field { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); border: 2px solid var(--red); border-radius: var(--radius); padding: 14px 18px; }
.search-field .material-icons { color: var(--red); }
.search-field input { flex: 1; background: none; border: none; outline: none; color: white; font-size: 1.1rem; font-family: var(--font); }
.search-field input::placeholder { color: rgba(255,255,255,0.3); }
.search-close-btn { color: rgba(255,255,255,0.5); }
.search-results { margin-top: 16px; }
.search-results .sr-item { padding: 12px; border-radius: var(--radius-sm); color: white; cursor: pointer; transition: 0.2s; }
.search-results .sr-item:hover { background: rgba(230,57,70,0.12); }
.search-results .sr-item h4 { font-size: 0.9rem; }
.search-results .sr-item p { font-size: 0.75rem; opacity: 0.4; margin-top: 2px; }

/* === HERO CAROUSEL === */
.hero-carousel-wrap {
    max-width: var(--max-w); margin: 20px auto; padding: 0 24px; position: relative;
}
.hero-carousel { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-slide {
    display: none; position: relative; aspect-ratio: 16/7; cursor: pointer;
}
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 30%, rgba(13,13,21,0.9));
    display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
}
.hero-slide-badge { display: inline-block; background: var(--red); color: white; padding: 3px 10px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; width: fit-content; }
.hero-slide-title { color: white; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.hero-slide-meta { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* Slide Reportagem Especial */
.hero-slide-rep .hero-rep-split { position: relative; width: 100%; height: 100%; display: flex; }
.hero-slide-rep > img { display: none; }
.hero-rep-left { width: 50%; height: 100%; overflow: hidden; }
.hero-rep-left img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.hero-rep-right { width: 50%; height: 100%; overflow: hidden; }
.hero-rep-right img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-rep-overlay {
    position: absolute; bottom: 0; left: 0; width: 50%; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
    background: linear-gradient(transparent 30%, rgba(13,13,21,0.9));
}
.hero-rep-overlay .hero-slide-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
@media (max-width: 768px) {
    .hero-rep-left { width: 40%; }
    .hero-rep-right { width: 60%; }
    .hero-rep-overlay { width: 100%; padding: 20px 16px; }
    .hero-rep-overlay .hero-slide-title { font-size: 1rem; }
    .hero-rep-overlay .hero-slide-meta { display: none; }
}
@media (max-width: 480px) {
    .hero-rep-left { width: 35%; }
    .hero-rep-right { width: 65%; }
    .hero-rep-overlay .hero-slide-title { font-size: 0.9rem; }
}

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; transition: var(--transition);
}
.hero-arrow:hover { background: rgba(0,0,0,0.8); }
.hero-arrow-left { left: 36px; }
.hero-arrow-right { right: 36px; }
.hero-arrow .material-icons { font-size: 28px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--red); width: 28px; border-radius: 5px; }

/* === QUOTES BAR === */
.quotes-bar { max-width: var(--max-w); margin: 0 auto; padding: 12px 24px; overflow: hidden; width: 100%; }
.quotes-track { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.quotes-track::-webkit-scrollbar { display: none; }
.q-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--border); padding: 8px 14px; border-radius: 50px; }
.q-item .material-icons { font-size: 16px; color: var(--red); }
.q-name { font-size: 0.75rem; font-weight: 600; }
.q-val { font-size: 0.75rem; font-weight: 700; }
.q-var { font-size: 0.7rem; font-weight: 700; }
.q-var.up { color: #16a34a; }
.q-var.down { color: #dc2626; }

/* === TRENDING === */
.trending { max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; overflow: hidden; }
.trending-title { font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 4px; color: var(--red); white-space: nowrap; }
.trending-title .material-icons { font-size: 18px; }
.trending-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.t-pill { background: var(--bg-card); border: 1px solid var(--border); padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.t-pill:hover { border-color: var(--red); color: var(--red); }

/* === LAYOUT === */
.layout { max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 24px 20px; display: grid; grid-template-columns: 320px 1fr; gap: 32px; overflow: hidden; }
.col-news { order: 2; min-width: 0; overflow: hidden; }
.col-side { order: 1; min-width: 0; overflow: hidden; }

.full-sections { max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 24px 40px; overflow: hidden; }

/* === SECTION BLOCKS === */
.section-block { margin-bottom: 36px; overflow: hidden; }
.section-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.section-tabs { display: flex; gap: 4px; }
.stab { padding: 6px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); transition: 0.2s; }
.stab.active { background: var(--red); color: white; }
.stab:hover:not(.active) { background: var(--gray-100); }

/* === CARD LIST (vertical — different from Cuiabá's grid) === */
.card-list { display: flex; flex-direction: column; gap: 14px; }
.card-h {
    display: grid; grid-template-columns: 200px 1fr; gap: 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
    cursor: pointer;
}
.card-h:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-h-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card-h-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card-h:hover .card-h-img img { transform: scale(1.05); }
.card-h-badge { position: absolute; top: 8px; left: 8px; background: var(--red); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; }
.card-h-body { padding: 14px 14px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.card-h-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-h-excerpt { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.card-h-meta { font-size: 0.7rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.card-h-meta .author { font-weight: 600; }
.card-h-share { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.4); color: white; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.2s; }
.card-h:hover .card-h-share { opacity: 1; }
.card-h-share .material-icons { font-size: 14px; }

/* === LOAD MORE === */
.load-more-btn { width: 100%; padding: 12px; background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; color: var(--red); margin-top: 16px; transition: 0.2s; }
.load-more-btn:hover { border-color: var(--red); }

/* === CARD ROW (horizontal scroll for categories) === */
.card-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; max-width: 100%; }
.card-row::-webkit-scrollbar { display: none; }
.card-v {
    min-width: 240px; max-width: 240px; flex-shrink: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}
.card-v:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-v-img { aspect-ratio: 16/10; overflow: hidden; }
.card-v-img img { width: 100%; height: 100%; object-fit: cover; }
.card-v-body { padding: 12px; }
.card-v-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.card-v-meta { font-size: 0.7rem; color: var(--text-muted); }

/* === VIDEOS === */
.video-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.video-row::-webkit-scrollbar { display: none; }
.vid-card { min-width: 260px; flex-shrink: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16/9; }
.vid-card img { width: 100%; height: 100%; object-fit: cover; }
.vid-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: white; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.vid-card:hover .vid-play { transform: translate(-50%,-50%) scale(1.1); }
.vid-dur { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.7); color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.vid-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: white; font-size: 0.8rem; font-weight: 600; }

/* === SIDEBAR === */
.col-side { display: flex; flex-direction: column; gap: 20px; word-break: break-word; position: sticky; top: 70px; align-self: start; }
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.widget-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }

/* Weather */
.weather-box { background: linear-gradient(135deg, var(--charcoal), var(--slate)); border: none; color: white; }
.weather-box .widget-title { border-bottom-color: rgba(255,255,255,0.15); }
.w-main { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.w-temp { font-size: 2.8rem; font-weight: 900; font-family: var(--font-display); }
.w-icon .material-icons { font-size: 40px; color: var(--red); }
.w-desc { font-size: 0.85rem; opacity: 0.7; margin-bottom: 10px; }
.w-details { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 0.75rem; opacity: 0.6; }
.w-details span { display: flex; align-items: center; gap: 4px; }
.w-details .material-icons { font-size: 14px; }

/* Top list */
.tl-item { display: flex; gap: 10px; padding: 8px 0; cursor: pointer; border-bottom: 1px solid var(--border); transition: 0.2s; }
.tl-item:last-child { border-bottom: none; }
.tl-item:hover { opacity: 0.7; }
.tl-rank { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--red); min-width: 28px; line-height: 1; }
.tl-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

/* Side news */
.side-news-item { display: flex; gap: 10px; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--border); transition: 0.2s; }
.side-news-item:last-child { border-bottom: none; }
.side-news-item:hover { opacity: 0.7; }
.side-news-thumb { width: 72px; height: 54px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.side-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-news-info { flex: 1; min-width: 0; }
.side-news-cat { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; color: var(--red); letter-spacing: 0.5px; }
.side-news-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.side-news-meta { font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; }

/* === SHARE === */
.share-overlay { position: fixed; inset: 0; z-index: 2500; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; }
.share-overlay.open { display: flex; }
.share-box { background: var(--bg-card); border-radius: var(--radius); padding: 24px; width: 90%; max-width: 380px; position: relative; }
.share-box h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-item { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: var(--radius-sm); color: white; font-weight: 600; font-size: 0.8rem; transition: 0.2s; }
.share-item:hover { opacity: 0.85; }
.share-x { position: absolute; top: 10px; right: 10px; color: var(--text-muted); }

/* === VIDEO MODAL === */
.vmodal { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; flex-direction: column; }
.vmodal.open { display: flex; }
.vmodal-x { position: absolute; top: 16px; right: 16px; color: white; }
.vmodal-frame { width: 90%; max-width: 860px; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.vmodal-frame iframe { width: 100%; height: 100%; border: none; }
.vmodal-title { color: white; font-size: 1rem; margin-top: 12px; max-width: 860px; text-align: center; }

/* === DETAIL === */
.detail-overlay { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.detail-overlay.open { display: flex; }

/* === FOOTER === */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.6); margin-top: 40px; padding: 40px 0 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.footer-inner > * { min-width: 0; }
.footer-brand { font-family: var(--font); font-size: 2rem; font-weight: 900; color: white; margin-bottom: 10px; }
.footer-brand span { color: var(--red); }
.brand-col p { font-size: 0.8rem; line-height: 1.6; opacity: 0.5; }
.footer-col h4 { color: var(--red); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.8rem; padding: 3px 0; opacity: 0.5; transition: 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--red); }
.footer-bottom { text-align: center; padding: 16px 24px; font-size: 0.7rem; opacity: 0.3; }

/* === TOAST === */
.toast-box { position: fixed; bottom: 20px; right: 20px; z-index: 5000; overflow: hidden; }
.toast { background: var(--charcoal); color: white; padding: 12px 18px; border-radius: var(--radius-sm); margin-top: 6px; font-size: 0.82rem; border-left: 4px solid var(--red); box-shadow: var(--shadow-lg); animation: fadeIn 0.3s; }
.toast.out { animation: fadeOut 0.3s forwards; }
@keyframes fadeIn { from { transform: translateX(100%); opacity: 0; } }
@keyframes fadeOut { to { transform: translateX(100%); opacity: 0; } }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    .col-news { order: 1; }
    .col-side { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .hero-slide-title { font-size: 1.4rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .hero-slide { aspect-ratio: 16/9; }
    .hero-slide-title { font-size: 1.2rem; }
    .hero-arrow { width: 36px; height: 36px; }
    .hero-arrow .material-icons { font-size: 22px; }
    .hero-arrow-left { left: 28px; }
    .hero-arrow-right { right: 28px; }
    .col-side { grid-template-columns: 1fr; }
    .card-h { grid-template-columns: 130px 1fr; }
    .card-h-title { font-size: 0.9rem; }
    .header-inner { gap: 12px; }
    .nav-cats { display: none; }
    .nav-cats.open { display: flex; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-direction: column; padding: 10px; z-index: 99; box-shadow: var(--shadow-md); }
    .nav-mobile-toggle { display: block; margin-left: auto; }
    .brand-noticias { display: none; }
}

@media (max-width: 480px) {
    .card-h { grid-template-columns: 100px 1fr; }
    .hero-carousel-wrap { padding: 0 14px; margin: 14px auto; }
    .layout { padding: 0 14px 40px; }
    .topbar-inner, .header-inner { padding: 0 14px; }
}
