/* ============================================================
   Noticias de Boyacá en Línea — Portal regional independiente
   Estilo: periódico regional colombiano · Roboto/Open Sans
   ============================================================ */

:root {
    --bra-red: #D32027;
    --bra-red-dark: #A8171D;
    --bra-yellow: #FDC82F;
    --bra-green: #008B3D;
    --ink: #111418;
    --ink-2: #2B2F36;
    --muted: #6B7280;
    --muted-2: #9AA1AC;
    --rule: #E5E7EB;
    --bg: #F4F5F7;
    --paper: #FFFFFF;
    --link: #1D4ED8;
    --link-hover: #1E3A8A;
    --max: 1200px;
    --radius: 2px;
    --shadow-sm: 0 1px 2px rgba(17,20,24,.06);
    --shadow-md: 0 4px 12px rgba(17,20,24,.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ============================================================
   Top utility bar
   ============================================================ */
.topbar {
    background: var(--ink);
    color: #C9CED6;
    font-size: 12px;
    line-height: 28px;
    height: 28px;
}
.topbar .wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #C9CED6; }
.topbar a:hover { color: #fff; }
.topbar .date { text-transform: uppercase; letter-spacing: .5px; }
.topbar .utility { display: flex; gap: 16px; }
.topbar .utility a { font-weight: 600; }

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.logo-block {
    text-align: center;
    grid-column: 2;
}
.logo-block .brand {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 38px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.5px;
    text-decoration: none;
    display: block;
}
.logo-block .brand .accent { color: var(--bra-red); }
.logo-block .tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 600;
}
.masthead-left, .masthead-right {
    font-size: 13px;
}
.masthead-right { text-align: right; }
.masthead .weather { color: var(--muted); font-weight: 600; }
.masthead .weather strong { color: var(--ink); }
.masthead .search-link { color: var(--ink-2); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }

/* ============================================================
   Primary nav
   ============================================================ */
.primary-nav {
    background: var(--bra-red);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.primary-nav .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.primary-nav .wrap::-webkit-scrollbar { display: none; }
.primary-nav a {
    color: #fff;
    text-decoration: none;
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 14px 16px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: border-color .15s;
}
.primary-nav a:hover,
.primary-nav a.active {
    background: var(--bra-red-dark);
    border-bottom-color: var(--bra-yellow);
    text-decoration: none;
}

/* ============================================================
   Breaking news strip
   ============================================================ */
.breaking {
    background: #1A1A1A;
    color: #fff;
    font-size: 13px;
    line-height: 40px;
    height: 40px;
    overflow: hidden;
    border-bottom: 2px solid var(--bra-yellow);
}
.breaking .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.breaking .badge {
    background: var(--bra-red);
    color: #fff;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    font-size: 11px;
    flex-shrink: 0;
}
.breaking .items { display: flex; gap: 32px; overflow: hidden; flex: 1; }
.breaking a { color: #fff; font-weight: 500; white-space: nowrap; }
.breaking a:hover { color: var(--bra-yellow); text-decoration: none; }

/* ============================================================
   Main layout
   ============================================================ */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 16px;
}
.grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}
@media (max-width: 900px) {
    .grid-main { grid-template-columns: 1fr; }
}

/* ============================================================
   Section headers
   ============================================================ */
.section-title {
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    padding-bottom: 6px;
    border-bottom: 3px solid var(--bra-red);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.section-title .more-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1px;
}

/* ============================================================
   Hero block (homepage lead)
   ============================================================ */
.hero {
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
}
.hero-main {
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.hero-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-main .body { padding: 20px; }
.hero-main .kicker {
    color: var(--bra-red);
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.hero-main h1,
.hero-main h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 12px 0;
    color: var(--ink);
    letter-spacing: -.5px;
}
.hero-main h2 a { color: var(--ink); text-decoration: none; }
.hero-main h2 a:hover { color: var(--bra-red); }
.hero-main .dek { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.hero-main .byline {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.hero-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}
.hero-side .item {
    background: var(--paper);
    padding: 14px;
    border-left: 3px solid var(--bra-red);
    box-shadow: var(--shadow-sm);
}
.hero-side .kicker { color: var(--bra-red); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.hero-side h3 { margin: 0; font-size: 16px; line-height: 1.3; font-family: "Roboto", sans-serif; font-weight: 700; }
.hero-side h3 a { color: var(--ink); }
.hero-side h3 a:hover { color: var(--bra-red); text-decoration: none; }

/* ============================================================
   Card grid (category rows)
   ============================================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

.card {
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card .body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.card .kicker { color: var(--bra-red); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.card h3 { margin: 0 0 8px 0; font-size: 16px; line-height: 1.3; font-family: "Roboto", sans-serif; font-weight: 700; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--bra-red); text-decoration: none; }
.card .excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.card .meta { margin-top: 10px; font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar .widget { background: var(--paper); padding: 16px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.sidebar .widget h3 {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--ink);
    color: var(--ink);
}
.most-read { list-style: none; padding: 0; margin: 0; counter-reset: mr; }
.most-read li {
    counter-increment: mr;
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dotted var(--rule);
}
.most-read li:last-child { border-bottom: none; }
.most-read li::before {
    content: counter(mr);
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--bra-red);
    line-height: 1;
    flex-shrink: 0;
    width: 32px;
}
.most-read a { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.3; }
.most-read a:hover { color: var(--bra-red); text-decoration: none; }

.newsletter-widget { background: var(--ink); color: #fff; padding: 20px; }
.newsletter-widget h3 { color: #fff; border-color: var(--bra-yellow); }
.newsletter-widget p { font-size: 13px; color: #C9CED6; margin: 0 0 12px 0; }
.newsletter-widget .note { font-size: 11px; color: var(--muted-2); margin-top: 8px; }

.contact-widget dt { font-weight: 700; font-size: 12px; color: var(--ink); text-transform: uppercase; letter-spacing: .5px; margin-top: 10px; }
.contact-widget dd { margin: 2px 0 0 0; font-size: 13px; color: var(--ink-2); }
.contact-widget dl { margin: 0; }

/* ============================================================
   Article page
   ============================================================ */
.article {
    background: var(--paper);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.article .breadcrumbs {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}
.article .breadcrumbs a { color: var(--muted); }
.article .breadcrumbs a:hover { color: var(--bra-red); }
.article .kicker {
    color: var(--bra-red);
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.article h1 {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 16px 0;
    letter-spacing: -.5px;
}
@media (max-width: 600px) { .article h1 { font-size: 28px; } }
.article .dek {
    font-size: 19px;
    line-height: 1.45;
    color: var(--ink-2);
    margin-bottom: 20px;
    font-weight: 400;
}
.article .byline {
    font-size: 13px;
    color: var(--muted);
    padding: 12px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.article .byline strong { color: var(--ink); }
.article figure { margin: 0 0 24px 0; }
.article figure img { width: 100%; }
.article figure figcaption {
    font-size: 12px;
    color: var(--muted);
    padding: 8px 0;
    font-style: italic;
    border-bottom: 1px solid var(--rule);
}
.article .body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-2);
}
.article .body p { margin: 0 0 20px 0; }
.article .body p:first-of-type::first-letter {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 54px;
    float: left;
    line-height: .9;
    padding: 6px 10px 0 0;
    color: var(--bra-red);
}
.article .body h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1.25;
    margin: 32px 0 14px 0;
    color: var(--ink);
}
.article .body h3 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 19px;
    margin: 24px 0 12px 0;
    color: var(--ink);
}
.article .body blockquote {
    border-left: 4px solid var(--bra-red);
    padding: 4px 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 1.5;
}
.article .body ul, .article .body ol { padding-left: 24px; margin: 0 0 20px 0; }
.article .body li { margin-bottom: 8px; }
.article .body a { color: var(--link); border-bottom: 1px solid rgba(29,78,216,.35); }
.article .body a:hover { color: var(--link-hover); border-bottom-color: var(--link-hover); text-decoration: none; }
.article .tags {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.article .tags a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg);
    margin-right: 6px;
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
}
.article .tags a:hover { background: var(--bra-red); color: #fff; }

.related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--ink);
}

/* ============================================================
   Category archive
   ============================================================ */
.archive-header {
    background: var(--ink);
    color: #fff;
    padding: 32px;
    margin-bottom: 24px;
}
.archive-header .kicker {
    color: var(--bra-yellow);
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.archive-header h1 {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 40px;
    margin: 0 0 12px 0;
    color: #fff;
    letter-spacing: -.5px;
}
.archive-header p { color: #C9CED6; font-size: 16px; margin: 0; max-width: 720px; }

.archive-list { display: grid; grid-template-columns: 1fr; gap: 24px; }
.archive-list .item {
    background: var(--paper);
    padding: 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {
    .archive-list .item { grid-template-columns: 1fr; }
}
.archive-list .item img { aspect-ratio: 16/10; object-fit: cover; }
.archive-list .item h3 { font-family: "Roboto", sans-serif; font-weight: 700; font-size: 20px; margin: 0 0 8px 0; }
.archive-list .item h3 a { color: var(--ink); }
.archive-list .item h3 a:hover { color: var(--bra-red); text-decoration: none; }
.archive-list .item .excerpt { color: var(--muted); font-size: 14px; line-height: 1.5; }
.archive-list .item .meta { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .5px; margin-top: 10px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #0E1115;
    color: #B0B6C0;
    margin-top: 48px;
    padding: 40px 0 20px 0;
    font-size: 13px;
}
.site-footer .wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.site-footer .cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: "Roboto Condensed", sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: 1.5px; margin: 0 0 12px 0; padding-bottom: 8px; border-bottom: 2px solid var(--bra-red); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #B0B6C0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .about p { line-height: 1.6; }
.site-footer .legal {
    border-top: 1px solid #2A2F37;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6B7280;
}
.site-footer .legal a { color: #6B7280; }

/* ============================================================
   Disclosure / transparency notice
   ============================================================ */
.transparency {
    background: #FFF8E1;
    border: 1px solid #E8C45C;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 24px 0;
}
.transparency strong { color: var(--ink); }

/* ============================================================
   Static pages (legal, contact, about)
   ============================================================ */
.page {
    background: var(--paper);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    max-width: 820px;
    margin: 0 auto;
}
.page h1 { font-family: "Roboto", sans-serif; font-weight: 900; font-size: 36px; margin: 0 0 8px 0; color: var(--ink); }
.page .updated { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.page h2 { font-family: "Roboto", sans-serif; font-weight: 700; font-size: 22px; margin: 28px 0 12px 0; }
.page p, .page li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* ============================================================
   Utilities
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 0; }

/* Print */
@media print {
    .topbar, .primary-nav, .breaking, .site-footer, .sidebar, .related { display: none; }
    .article { box-shadow: none; padding: 0; }
    body { background: #fff; }
}
