/* ============================================================
   ALERTA BOGOTÁ — sistema de diseño
   Periódico digital rolo: tinta cálida, rojo carmesí, condensado.
   Fuentes: Anton (titulares), Archivo (UI), Newsreader (cuerpo serif)
   ============================================================ */

:root {
  --paper: #f6f3ec;          /* papel periódico cálido */
  --paper-2: #efebe1;
  --card: #ffffff;
  --ink: #181512;            /* negro cálido */
  --ink-soft: #5d564c;
  --ink-faint: #938b7d;
  --red: #e11d48;
  --red-dark: #b00b34;
  --line: rgba(24, 21, 18, 0.14);
  --line-strong: rgba(24, 21, 18, 0.28);

  /* colores por sección */
  --c-bogota: #e11d48;
  --c-soacha: #0d8f80;
  --c-politica: #2447d4;
  --c-deportes: #1f8a3b;
  --c-farandula: #b524b0;
  --c-sucesos: #e0590a;

  --maxw: 1240px;
  --gap: clamp(18px, 2.4vw, 34px);
  --shadow: 0 1px 0 var(--line);
  --shadow-lift: 0 18px 40px -22px rgba(24, 21, 18, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 18px;
  /* textura de papel sutil */
  background-image:
    radial-gradient(circle at 100% 0, rgba(225,29,72,0.04), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* font helpers */
.anton { font-family: "Anton", "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; }
.archivo { font-family: "Archivo", system-ui, sans-serif; }

/* ============================================================
   TOP BAR + TICKER
   ============================================================ */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.topbar .wrap { display: flex; align-items: stretch; gap: 0; height: 38px; }
.topbar .date { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding-right: 16px; color: #cfc8bb; text-transform: uppercase; font-weight: 600; }
.ticker { flex: 1; overflow: hidden; display: flex; align-items: center; position: relative; border-left: 1px solid rgba(255,255,255,0.14); padding-left: 16px; }
.ticker .flag {
  position: absolute; left: 0; z-index: 2; height: 100%; display: flex; align-items: center;
  background: var(--red); color: #fff; font-weight: 800; text-transform: uppercase;
  padding: 0 12px 0 16px; letter-spacing: 0.08em; font-size: 11px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}
.ticker__track { display: flex; gap: 48px; white-space: nowrap; padding-left: 92px; animation: marquee 34s linear infinite; }
.ticker__track span { color: #e7e1d6; }
.ticker__track b { color: var(--red); font-weight: 800; margin-right: 6px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.topbar:hover .ticker__track { animation-play-state: paused; }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 2px solid var(--ink);
}
.masthead .wrap { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--red), var(--red-dark));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(225,29,72,0.6);
  position: relative;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__word { line-height: 0.86; }
.brand__word .a { font-family: "Anton", sans-serif; font-size: 26px; letter-spacing: 0.02em; display: block; }
.brand__word .b { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--red); padding-left: 2px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 9px 12px; border-radius: 7px;
  color: var(--ink); position: relative; transition: color .15s;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:hover { color: var(--red); }
.nav a:hover::after { transform: scaleX(1); }

.social { display: flex; gap: 8px; flex-shrink: 0; }
.social a {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); color: var(--ink); transition: all .16s;
}
.social a svg { width: 17px; height: 17px; }
.social a.tg:hover { background: #229ed9; border-color: #229ed9; color: #fff; }
.social a.wa:hover { background: #25d366; border-color: #25d366; color: #fff; }

.burger { display: none; width: 42px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 9px; background: none; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; transition: .2s; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head { display: flex; align-items: baseline; gap: 14px; margin: clamp(34px, 5vw, 56px) 0 20px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.sec-head h2 { font-family: "Anton", sans-serif; font-size: clamp(22px, 3.4vw, 30px); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }
.sec-head h2 .tick { color: var(--red); margin-right: 2px; }
.sec-head .more { margin-left: auto; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }
.sec-head .more:hover { color: var(--red); }

/* category tag */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--red); padding: 3px 0;
}
.tag::before { content: ""; width: 14px; height: 3px; background: currentColor; border-radius: 2px; }
.tag.bogota { color: var(--c-bogota); } .tag.soacha { color: var(--c-soacha); }
.tag.politica { color: var(--c-politica); } .tag.deportes { color: var(--c-deportes); }
.tag.farandula { color: var(--c-farandula); } .tag.sucesos { color: var(--c-sucesos); }

.meta { font-family: "Archivo", sans-serif; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.02em; display: flex; align-items: center; gap: 7px; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* ============================================================
   HERO
   ============================================================ */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: var(--gap); margin-top: clamp(20px, 3vw, 30px); }

.lead { position: relative; border-radius: 16px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lift); }
.lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.lead:hover img { transform: scale(1.045); }
.lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,12,10,0.94) 8%, rgba(15,12,10,0.45) 48%, transparent 75%); }
.lead__body { position: relative; z-index: 2; padding: clamp(22px, 3vw, 38px); color: #fff; }
.lead .tag { color: #fff; }
.lead .tag::before { background: var(--red); }
.lead h1 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 56px); line-height: 0.95; letter-spacing: 0.005em; margin: 12px 0; text-wrap: balance; }
.lead p { font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,0.86); max-width: 60ch; }
.lead .meta { color: rgba(255,255,255,0.7); margin-top: 14px; }

.side { display: flex; flex-direction: column; gap: 0; }
.side__item { padding: 18px 0; border-bottom: 1px solid var(--line); display: block; }
.side__item:first-child { padding-top: 0; }
.side__item:last-child { border-bottom: none; }
.side__item h3 { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.12; margin: 7px 0; letter-spacing: -0.01em; }
.side__item:hover h3 { color: var(--red); }
.side__item p { font-size: 15px; color: var(--ink-soft); line-height: 1.4; }

/* ============================================================
   CARD GRID
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card__img { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 19px; line-height: 1.13; letter-spacing: -0.012em; text-wrap: balance; }
.card:hover h3 { color: var(--red); }
.card p { font-size: 15px; color: var(--ink-soft); line-height: 1.42; flex: 1; }
.card .meta { margin-top: auto; padding-top: 4px; }

/* compact list item (text-led) */
.list { display: flex; flex-direction: column; }
.litem { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.litem:last-child { border-bottom: none; }
.litem .thumb { aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--paper-2); }
.litem .thumb img { width: 100%; height: 100%; object-fit: cover; }
.litem h3 { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 16px; line-height: 1.15; margin-bottom: 6px; letter-spacing: -0.01em; }
.litem:hover h3 { color: var(--red); }

/* two-column feature block */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: stretch; }
.feature .card__img { aspect-ratio: 4/3; height: 100%; border-radius: 13px; }
.feature .card { border: none; background: none; }
.feature .card:hover { transform: none; box-shadow: none; }
.feature .card__body { padding: 4px 0; }
.feature h3 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); line-height: 0.98; }
.feature p { font-size: 16px; }

/* ============================================================
   ÚLTIMA HORA strip
   ============================================================ */
.lastmin { background: var(--ink); color: var(--paper); border-radius: 14px; padding: clamp(20px,3vw,28px); margin-top: var(--gap); display: grid; grid-template-columns: auto 1fr; gap: clamp(16px,3vw,32px); align-items: center; }
.lastmin__title { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(20px,3vw,28px); line-height: 0.95; }
.lastmin__title b { color: var(--red); display: block; }
.lastmin ul { display: grid; gap: 12px; }
.lastmin li { border-left: 3px solid var(--red); padding-left: 14px; }
.lastmin li a { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.2; }
.lastmin li a:hover { color: var(--red); }
.lastmin li .t { font-family: "Archivo"; font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article { max-width: 760px; margin: 0 auto; padding-top: clamp(24px, 4vw, 44px); }
.kicker { font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--red); margin-bottom: 14px; }
.article h1 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 5.4vw, 58px); line-height: 0.96; letter-spacing: 0.004em; text-wrap: balance; }
.article .dek { font-size: clamp(19px, 2.3vw, 23px); color: var(--ink-soft); font-style: italic; line-height: 1.4; margin-top: 16px; max-width: 62ch; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 22px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: "Archivo", sans-serif; font-size: 13px; }
.byline .src { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.byline .av { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(150deg, var(--red), var(--red-dark)); color: #fff; display: grid; place-items: center; font-family: "Anton"; font-size: 16px; }
.byline .when { color: var(--ink-faint); letter-spacing: 0.02em; }

.cover { border-radius: 14px; overflow: hidden; margin: 8px 0 6px; box-shadow: var(--shadow-lift); }
.cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cap { font-family: "Archivo", sans-serif; font-size: 12.5px; color: var(--ink-faint); padding: 9px 2px; letter-spacing: 0.01em; }

.body { font-size: 20px; line-height: 1.72; margin-top: 10px; }
.body p { margin: 0 0 1.25em; }
.body p:first-of-type::first-letter { font-family: "Anton", sans-serif; float: left; font-size: 4.2em; line-height: 0.74; padding: 6px 12px 0 0; color: var(--red); }
.body b, .body strong { font-weight: 600; }
.body h2 { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.4em; margin: 1.6em 0 0.5em; letter-spacing: -0.01em; }

.pullquote { border-left: 4px solid var(--red); padding: 6px 0 6px 22px; margin: 1.4em 0; font-size: 1.4em; line-height: 1.3; font-style: italic; color: var(--ink); }

.debate { background: var(--card); border: 2px solid var(--red); border-radius: 14px; padding: 22px 24px; margin: 28px 0; position: relative; }
.debate::before { content: "EL DEBATE"; position: absolute; top: -11px; left: 20px; background: var(--red); color: #fff; font-family: "Archivo"; font-weight: 800; font-size: 11px; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 5px; }
.debate p { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 21px; line-height: 1.25; }

.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share .lbl { font-family: "Archivo"; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); margin-right: 2px; }
.sbtn { display: inline-flex; align-items: center; gap: 8px; font-family: "Archivo"; font-weight: 700; font-size: 13px; color: #fff; padding: 9px 14px; border-radius: 9px; transition: transform .14s; }
.sbtn:hover { transform: translateY(-2px); }
.sbtn svg { width: 16px; height: 16px; }
.sbtn.wa { background: #25d366; } .sbtn.tg { background: #229ed9; } .sbtn.fb { background: #1877f2; } .sbtn.x { background: #111; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 30px; }
.chip { font-family: "Archivo"; font-weight: 700; font-size: 13px; color: var(--red); background: rgba(225,29,72,0.08); padding: 6px 12px; border-radius: 999px; }
.chip:hover { background: var(--red); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #cfc8bb; margin-top: clamp(50px, 7vw, 90px); padding: clamp(40px,5vw,64px) 0 30px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand__word .a { color: #fff; } .footer .brand__word .b { color: var(--red); }
.footer .about { margin-top: 16px; font-size: 15px; color: #a39c8e; max-width: 38ch; line-height: 1.5; }
.fcol h4 { font-family: "Archivo"; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: #fff; margin-bottom: 14px; }
.fcol a { display: block; font-family: "Archivo"; font-size: 14px; padding: 5px 0; color: #b6ae9f; }
.fcol a:hover { color: var(--red); }
.legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 38px; padding-top: 22px; font-family: "Archivo"; font-size: 12.5px; color: #8b8475; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   LOAD ANIMATION
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .19s; }
.d4 { animation-delay: .26s; } .d5 { animation-delay: .33s; } .d6 { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; } .ticker__track { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav, .topbar .date { display: none; }
  .burger { display: block; }
  .masthead .wrap { height: 62px; }
  .nav.open { display: flex; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 8px 16px 14px; gap: 0; }
  .nav.open a { padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .nav.open a::after { display: none; }
  .grid, .grid.cols-4 { grid-template-columns: 1fr; }
  .lastmin { grid-template-columns: 1fr; }
  .lead { min-height: 380px; }
  .litem { grid-template-columns: 70px 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; gap: 26px; }
  .body p:first-of-type::first-letter { font-size: 3.4em; }
}
@media (max-width: 420px) {
  .footer .wrap { grid-template-columns: 1fr; }
}
