/* ═══════════════════════════════════════════
   RANKVIRAL — styles.css
   Aesthetic: Dark Editorial / Brutalist Magazine
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Barlow+Condensed:wght@600;700;900&display=swap');

/* ── TOKENS ─────────────────────────────── */
:root {
  --red:     #E8271E;
  --red-dim: #8b1611;
  --yellow:  #F5C518;
  --black:   #080808;
  --bg:      #0d0d0d;
  --card:    #111111;
  --card2:   #181818;
  --card3:   #1f1f1f;
  --text:    #ECECEC;
  --muted:   #666;
  --border:  #1e1e1e;
  --border2: #2a2a2a;
  --radius:  8px;
}

/* ── RESET & BASE ────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, button { outline: none; }
ul { list-style: none; }

/* noise overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .28;
}

/* ── SCROLLBAR ───────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── TYPOGRAPHY HELPERS ──────────────────── */
.f-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1.5px; line-height: .92; }
.f-cond    { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; }
.f-body    { font-family: 'Barlow', sans-serif; }

/* ── PAGE WRAPPER ────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
#site-header {
  background: rgba(8,8,8,.96);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--red);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.95rem; letter-spacing: 3px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.site-logo svg { flex-shrink: 0; }
.logo-word b { color: var(--red); }
.logo-live {
  background: var(--yellow); color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: .55rem;
  letter-spacing: 2px; padding: 3px 8px;
  transform: rotate(-3deg); display: inline-block;
  line-height: 1.7; flex-shrink: 0;
}

/* main nav */
.main-nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .82rem;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 13px; border-radius: 4px;
  transition: color .18s, background .18s;
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--text); background: var(--card2); }
.nav-link.active { color: var(--yellow); border-color: var(--border2); }

/* mobile hamburger */
.hamburger {
  display: none; background: none; border: 1px solid var(--border2);
  color: var(--text); padding: 7px 10px; border-radius: 4px;
  font-size: 1.1rem;
}

/* mobile drawer */
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--card); border-bottom: 1px solid var(--border2);
  padding: 12px 24px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 10px 0; border-radius: 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.mobile-nav .nav-link:last-child { border-bottom: none; }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
}

/* ══════════════════════════════════════════
   TICKER
══════════════════════════════════════════ */
.ticker-bar {
  background: var(--red);
  overflow: hidden; padding: 8px 0; position: relative;
}
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--yellow); color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: .88rem; letter-spacing: 2px;
  padding: 0 18px;
  display: flex; align-items: center; gap: 6px;
  z-index: 2; white-space: nowrap;
}
.ticker-track {
  display: flex; animation: scrollticker 40s linear infinite;
  white-space: nowrap; padding-left: 160px;
}
.ticker-track span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .88rem;
  text-transform: uppercase; padding: 0 26px;
}
.ticker-track span::after {
  content: '◆'; margin-left: 26px;
  opacity: .35; font-size: .45rem; vertical-align: middle;
}
@keyframes scrollticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   AD SLOTS
══════════════════════════════════════════ */
.ad-wrap { max-width: 1240px; margin: 0 auto; padding: 10px 24px; }
.ad-label { font-size: .58rem; color: #2e2e2e; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.ad-slot {
  background: var(--card);
  border: 1px dashed #1a1a1a;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #1e1e1e; font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem; letter-spacing: 1px; text-transform: uppercase;
  text-align: center;
}
.ad-slot iframe { display: block; margin: 0 auto; }

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.sec-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.sec-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: .65rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.sec-tag.red    { background: var(--red); color: #fff; }
.sec-tag.yellow { background: var(--yellow); color: #000; }
.sec-tag.dark   { background: var(--card3); color: var(--muted); border: 1px solid var(--border2); }
.sec-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; letter-spacing: 1px; white-space: nowrap;
}
.sec-title .accent { color: var(--red); }
.sec-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border2), transparent); }

/* ══════════════════════════════════════════
   CATEGORY DOT BADGES
══════════════════════════════════════════ */
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-geo   { background: #4ecdc4; }
.dot-money { background: #F5C518; }
.dot-nat   { background: #6bcb77; }
.dot-sci   { background: #a78bfa; }
.dot-tech  { background: #60a5fa; }
.dot-food  { background: #f97316; }
.dot-hist  { background: #ef4444; }

/* ══════════════════════════════════════════
   SVG THUMB WRAPPER
══════════════════════════════════════════ */
.thumb-wrap {
  position: relative; overflow: hidden;
  width: 100%;
}
.thumb-wrap svg {
  width: 100%; height: 100%; display: block;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}
.thumb-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 52%);
  pointer-events: none;
}
.thumb-16-9  { aspect-ratio: 16/9; }
.thumb-21-9  { aspect-ratio: 21/9; }
.thumb-4-3   { aspect-ratio: 4/3; }

/* pill on thumb */
.thumb-pill {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.8); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--yellow);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: .6rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px;
  display: flex; align-items: center; gap: 4px;
}
.thumb-rank {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--red); color: #fff;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem;
  width: 36px; height: 36px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 20px 48px rgba(232,39,30,.12);
}
.card:hover .thumb-wrap svg { transform: scale(1.05); }

.card-body { padding: 16px 18px 20px; }
.card-cat {
  font-size: .62rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
  color: var(--muted);
}
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.3rem; line-height: 1.2;
  margin-bottom: 8px;
}
.card-desc  { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.card-meta  {
  margin-top: 12px; display: flex; align-items: center;
  gap: 12px; font-size: .72rem; color: #3a3a3a;
}
.card-meta .views { color: var(--red); font-weight: 700; }

/* featured grid */
.featured-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 14px;
}
@media (max-width: 820px) { .featured-grid { grid-template-columns: 1fr; } }

/* mini grid */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
}

/* ══════════════════════════════════════════
   RANKING LIST (unique thumbs)
══════════════════════════════════════════ */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: stretch;
  overflow: hidden; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.rank-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--border2);
  transition: background .2s;
}
.rank-item:hover {
  border-color: var(--yellow);
  transform: translateX(5px);
  box-shadow: 0 6px 24px rgba(245,197,24,.07);
}
.rank-item:hover::before { background: var(--yellow); }
.rank-item:nth-child(1)::before { background: #FFD600; }
.rank-item:nth-child(2)::before { background: #C0C0C0; }
.rank-item:nth-child(3)::before { background: #CD7F32; }

.rank-thumb {
  width: 100px; min-width: 100px; height: 72px;
  overflow: hidden; flex-shrink: 0;
}
.rank-thumb svg { width: 100%; height: 100%; display: block; }

.rank-num-col {
  min-width: 52px; display: flex; align-items: center;
  justify-content: center; padding: 0 4px;
}
.rank-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; line-height: 1;
  color: var(--border2); transition: color .2s;
}
.rank-item:hover .rank-num { color: var(--yellow); }
.rank-item:nth-child(1) .rank-num { color: #FFD600; }
.rank-item:nth-child(2) .rank-num { color: #C0C0C0; }
.rank-item:nth-child(3) .rank-num { color: #CD7F32; }

.rank-info { flex: 1; padding: 12px 14px 12px 6px; }
.rank-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .98rem;
  margin-bottom: 4px; line-height: 1.2;
}
.rank-sub { font-size: .76rem; color: var(--muted); }

.rank-score-col { padding-right: 18px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
.rank-score { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--red); line-height: 1; }
.rank-score-lbl { font-size: .58rem; color: #333; text-transform: uppercase; letter-spacing: 1px; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-section {
  padding: 72px 24px 56px;
  text-align: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, #220000, transparent 68%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: .68rem;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 5px 16px; margin-bottom: 20px;
  animation: eyebrowpulse 2.4s ease-in-out infinite;
}
@keyframes eyebrowpulse { 0%,100%{opacity:1} 50%{opacity:.65} }
.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.4rem, 10vw, 8rem);
  line-height: .88; letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-h1 .line-red    { color: var(--red); display: block; }
.hero-h1 .line-yellow { -webkit-text-stroke: 2px var(--yellow); color: transparent; display: block; }
.hero-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 480px; margin: 0 auto 36px; line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -10px auto 28px;
}
.hero-google { padding: 10px 16px; }
.hero-note { font-size: .78rem; color: var(--muted); }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--yellow); line-height: 1; }
.stat-lbl { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ══════════════════════════════════════════
   VOTE WIDGET
══════════════════════════════════════════ */
.vote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  background-image: radial-gradient(ellipse at 80% 50%, #1c0000, transparent 55%);
}
.vote-q {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.95rem; margin-bottom: 8px;
}
  .vote-hint { font-size: .82rem; color: var(--muted); margin-bottom: 24px; }
  .vote-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: -10px 0 22px;
  }
  .google-btn {
    background: #fff;
    color: #111;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .google-btn:hover { border-color: #cfcfcf; }
  .g-ico { width: 16px; height: 16px; display: inline-block; }
  .vote-note { font-size: .74rem; color: var(--muted); }
.vote-opts { display: flex; flex-direction: column; gap: 10px; max-width: 530px; margin: 0 auto; }
.vote-btn {
  background: var(--card2);
  border: 2px solid var(--border2);
  color: var(--text);
  padding: 12px 18px; border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .98rem;
  transition: all .18s;
  display: flex; align-items: center; gap: 12px;
  text-align: left; cursor: pointer;
}
.vote-btn:hover:not(:disabled) { border-color: var(--yellow); }
.vote-btn.voted { border-color: var(--red); background: #1c0000; }
.vote-btn:disabled { cursor: not-allowed; opacity: .75; }
.v-ico  { font-size: 1.3rem; min-width: 26px; }
.v-txt  { flex: 1; }
.v-bar-w { width: 72px; height: 5px; background: var(--border2); border-radius: 3px; overflow: hidden; }
.v-bar   { height: 100%; background: var(--red); border-radius: 3px; transition: width .6s ease; }
.v-pct   { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; color: var(--yellow); min-width: 36px; text-align: right; }
.vote-total { margin-top: 18px; font-size: .75rem; color: #3a3a3a; }

/* ══════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════ */
.newsletter-wrap {
  background: linear-gradient(135deg, #140000 0%, #090909 100%);
  border: 1px solid #2b0000; border-radius: 14px;
  padding: 44px 32px; text-align: center; position: relative; overflow: hidden;
}
.nl-deco {
  position: absolute; right: -30px; top: -30px;
  font-size: 9rem; opacity: .04; pointer-events: none;
  transform: rotate(15deg);
}
.nl-h {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem; margin-bottom: 10px;
}
.nl-sub { color: var(--muted); font-size: .93rem; margin-bottom: 28px; }
.nl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nl-input {
  background: var(--card); border: 2px solid var(--border2);
  color: var(--text); padding: 12px 20px; border-radius: 6px;
  font-family: 'Barlow', sans-serif; font-size: .93rem;
  width: 280px; outline: none; transition: border-color .2s;
}
.nl-input:focus  { border-color: var(--yellow); }
.nl-input::placeholder { color: #333; }
.nl-btn {
  background: var(--red); color: #fff; border: none;
  padding: 12px 28px; border-radius: 6px;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem;
  letter-spacing: 1.5px; transition: background .2s, transform .15s;
  display: flex; align-items: center; gap: 8px;
}
.nl-btn:hover { background: #c4211a; transform: translateY(-2px); }
.nl-btn:active { transform: translateY(0); }

/* success state */
.nl-success {
  display: none; flex-direction: column; align-items: center; gap: 14px;
}
.nl-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #1a0000, #2a0000);
  border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  animation: successPop .5s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.nl-success h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem; color: var(--yellow);
}
.nl-success p { font-size: .88rem; color: var(--muted); }
.nl-shown-form { transition: opacity .3s, transform .3s; }
.nl-shown-form.hiding { opacity: 0; transform: translateY(-10px); }

/* ══════════════════════════════════════════
   ARTICLE OVERLAY
══════════════════════════════════════════ */
.article-overlay {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 300; overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.article-overlay.open { visibility: visible; opacity: 1; }

.art-header {
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--red);
  padding: 13px 24px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 10;
}
.art-back {
  background: none; border: 1px solid var(--border2);
  color: var(--text); padding: 7px 14px;
  border-radius: 4px; font-size: .8rem;
  transition: all .18s; display: flex; align-items: center; gap: 5px;
}
.art-back:hover { border-color: var(--red); color: var(--red); }

.art-content {
  max-width: 800px; margin: 0 auto;
  padding: 40px 24px 60px;
  animation: artSlideIn .35s ease both;
  position: relative;
}
@keyframes artSlideIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.art-hero { border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.art-hero svg { width: 100%; aspect-ratio: 21/9; display: block; }

/* article intro + entry background video */
.art-entry.has-video { position: relative; }
.ae-video-bg {
  position: absolute;
  left: 0; right: 0; top: 8px;
  height: 150px;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none; z-index: 0;
  transform: translateX(40px);
}
.ae-video-bg.avispa-video {
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%);
}
.ae-video-bg.pulpo-video {
  top: 0;
  height: 480px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%);
}
.ae-video-bg.extincion-video {
  top: -130px;
  height: 900px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%);
}
.art-video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: .08;
}
.art-content.show-avispa .ae-video-bg.avispa-video { opacity: 1; }
.art-content.show-pulpo .ae-video-bg.pulpo-video { opacity: 1; }
.art-content.show-extincion .ae-video-bg.extincion-video { opacity: 1; }
.art-content.show-paises .intro-video-bg.paises-video { opacity: 1; }
.art-content.hide-paises .intro-video-bg.paises-video { opacity: 0; }
.art-entry.has-video > :not(.ae-video-bg) { position: relative; z-index: 1; }
.art-entry.has-video .ae-video-bg { z-index: 0; }
.art-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: .7rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.art-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: .95; margin-bottom: 16px;
}
.art-intro {
  font-size: 1rem; color: #aaa;
  line-height: 1.68;
  border-left: 3px solid var(--red);
  padding-left: 18px; margin-bottom: 32px;
}
.art-intro-wrap { position: relative; margin-bottom: 32px; }
.art-intro-wrap .art-intro { margin-bottom: 0; }
.art-head-wrap { position: relative; margin-bottom: 32px; }
.art-head-wrap .art-intro { margin-bottom: 0; }
.art-head-wrap > :not(.intro-video-bg) { position: relative; z-index: 1; }
.intro-video-bg {
  position: absolute;
  left: -40px; right: -40px; top: -160px;
  height: 420px;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none; z-index: 0;
  transform: translateX(0);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 25%, rgba(0,0,0,.18) 58%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 25%, rgba(0,0,0,.18) 58%, rgba(0,0,0,0) 100%);
}
.intro-video-bg.paises-video {
  left: -24px; right: -24px; top: -20px;
  height: 360px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,.1) 50%, rgba(0,0,0,0) 100%);
  z-index: 0;
  opacity: 1;
  animation: paisesFadeOut .6s ease 6.5s forwards;
}
.art-video.paises-video {
  opacity: .2;
}

@keyframes paisesFadeOut {
  to { opacity: 0; }
}
.art-intro-wrap .art-intro { position: relative; z-index: 1; }

/* article entry rows */
.art-entry {
  display: flex; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.art-entry:last-child { border-bottom: none; }
.ae-left { min-width: 58px; text-align: center; flex-shrink: 0; }
.ae-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.4rem; line-height: 1; color: var(--border2);
}
.art-entry:nth-child(1) .ae-num { color: #FFD600; }
.art-entry:nth-child(2) .ae-num { color: #C0C0C0; }
.art-entry:nth-child(3) .ae-num { color: #CD7F32; }
.ae-flag { font-size: 1.9rem; margin-top: 4px; }
.ae-body { flex: 1; }
.ae-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.4rem; margin-bottom: 7px;
}
.ae-body p { font-size: .9rem; color: #bbb; line-height: 1.68; }
.ae-thumb { width: 116px; min-width: 116px; height: 78px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.ae-thumb svg { width: 100%; height: 100%; display: block; }
.ae-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.art-mid-ad {
  background: var(--card); border: 1px dashed var(--border2);
  border-radius: 4px; padding: 12px; text-align: center;
  color: #1e1e1e; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase;
  min-height: 99px; max-width: 730px;
  display: flex; align-items: center; justify-content: center;
  margin: 28px auto; font-family: 'Barlow Condensed', sans-serif;
}
.art-mid-ad iframe { display: block; margin: 0 auto; }

/* ══════════════════════════════════════════
   INNER PAGES  (Política / Privacidad / etc)
══════════════════════════════════════════ */
.page-inner {
  max-width: 800px; margin: 0 auto;
  padding: 56px 24px 80px;
}
.page-inner h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem; margin-bottom: 8px;
}
.page-inner .pi-sub {
  font-size: .82rem; color: var(--muted);
  margin-bottom: 36px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.page-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; color: var(--red);
  margin: 32px 0 12px; letter-spacing: 1px;
}
.page-inner p  { font-size: .93rem; color: #aaa; line-height: 1.72; margin-bottom: 14px; }
.page-inner ul { padding-left: 20px; }
.page-inner ul li {
  font-size: .93rem; color: #aaa;
  line-height: 1.72; margin-bottom: 8px;
  list-style: none; padding-left: 16px; position: relative;
}
.page-inner ul li::before {
  content: '▸'; position: absolute; left: 0; color: var(--red);
}
.page-inner a { color: var(--yellow); }
.page-inner a:hover { text-decoration: underline; }
.pi-contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px; margin-top: 20px;
}
.pi-contact-form label {
  display: block; font-size: .78rem;
  font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.pi-contact-form input,
.pi-contact-form textarea {
  width: 100%; background: var(--card2);
  border: 1.5px solid var(--border2);
  color: var(--text); padding: 10px 16px;
  border-radius: 5px; font-family: 'Barlow', sans-serif;
  font-size: .9rem; margin-bottom: 16px;
  outline: none; transition: border-color .2s; display: block;
}
.pi-contact-form input:focus,
.pi-contact-form textarea:focus { border-color: var(--yellow); }
.pi-contact-form textarea { min-height: 110px; resize: vertical; }
.pi-contact-form input::placeholder,
.pi-contact-form textarea::placeholder { color: #333; }
.pi-submit {
  background: var(--red); color: #fff; border: none;
  padding: 11px 26px; border-radius: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 1px;
  transition: background .2s;
}
.pi-submit:hover { background: #c4211a; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#site-footer {
  border-top: 1px solid var(--border);
  background: var(--black);
  padding: 48px 24px 36px;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px 24px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .site-logo { font-size: 1.7rem; margin-bottom: 12px; }
.footer-brand p { font-size: .82rem; color: var(--muted); line-height: 1.6; }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: .72rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: .84rem; color: #555;
  transition: color .18s;
}
.footer-col ul li a:hover { color: var(--yellow); }
.footer-col ul li a.active-page { color: var(--text); }

.footer-bottom {
  max-width: 1240px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: .74rem; color: #333; }
.footer-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem; color: #2a2a2a;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ══════════════════════════════════════════
   SECTION WRAPPER
══════════════════════════════════════════ */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px;
}

/* ══════════════════════════════════════════
   FADE-IN ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu  { animation: fadeUp .5s ease both; }
.d1  { animation-delay: .08s; }
.d2  { animation-delay: .18s; }
.d3  { animation-delay: .28s; }
.d4  { animation-delay: .38s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-h1 { font-size: 3.2rem; }
  .hero-sub { max-width: 100%; padding: 0 8px; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .hero-google { width: 100%; justify-content: center; }
  .hero-stats { gap: 18px; }
  .stat-num { font-size: 2rem; }
  .sec-title { font-size: 1.55rem; }
  .card-body { padding: 16px; }
  .card-title { font-size: 1.05rem; }
  .card-meta { font-size: .8rem; }
  .vote-opts { max-width: 100%; }
  .vote-btn { padding: 12px 14px; font-size: .92rem; }
  .vote-login { flex-direction: column; gap: 8px; }
  .google-btn { width: 100%; justify-content: center; }
  .vote-card { padding: 24px 16px; }
  .newsletter-wrap { padding: 32px 18px; }
  .nl-input { width: 100%; }
  .art-entry { flex-direction: column; }
  .ae-thumb { width: 100%; height: 140px; min-width: unset; }
}
