/* ═══════════════════════════════════════════════════════
   BANCA LOS REBELDES – Tema Principal
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --blr-red:      #b71c1c;
  --blr-red-dark: #7f0000;
  --blr-gold:     #f9a825;
  --blr-dark:     #111111;
  --blr-mid:      #2c2c2c;
  --blr-text:     #333333;
  --blr-light:    #f8f8f8;
  --blr-border:   #e0e0e0;
  --blr-white:    #ffffff;
  --blr-font-head:'Oswald', sans-serif;
  --blr-font-body:'Open Sans', sans-serif;
  --blr-radius:   6px;
  --blr-shadow:   0 2px 12px rgba(0,0,0,.08);
}

/* ── Reset básico ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--blr-font-body);
  color: var(--blr-text);
  background: var(--blr-light);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blr-red); transition: color .2s; }
a:hover { color: var(--blr-red-dark); }

/* ── Accesibilidad ───────────────────────────────────── */
.blr-skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 9999;
  background: var(--blr-red); color: #fff; padding: 8px 16px;
  border-radius: 0 0 4px 4px; transition: top .2s;
}
.blr-skip-link:focus { top: 0; color: #fff; }

/* ── Contenedor ──────────────────────────────────────── */
.blr-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────── */
.blr-header {
  background: var(--blr-dark);
  border-bottom: 3px solid var(--blr-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.blr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.blr-logo a, .blr-logo-text { text-decoration: none; }
.blr-logo img { height: 54px; width: auto; }

/* ── Navegación ──────────────────────────────────────── */
.blr-nav { position: relative; }
.blr-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}
.blr-menu li a {
  display: block;
  padding: 8px 14px;
  color: #e0e0e0;
  font-family: var(--blr-font-head);
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--blr-radius);
  transition: background .2s, color .2s;
}
.blr-menu li a:hover,
.blr-menu li.current-menu-item > a,
.blr-menu li.current_page_item  > a {
  background: var(--blr-red);
  color: #fff;
}
.blr-menu li.blr-private-link a { background: var(--blr-gold); color: var(--blr-dark); }
.blr-menu li.blr-private-link a:hover { background: #f57f17; }

/* Hamburger */
.blr-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.blr-nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.blr-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.blr-nav-toggle.active span:nth-child(2) { opacity: 0; }
.blr-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Área principal ──────────────────────────────────── */
.blr-main { min-height: calc(100vh - 200px); padding: 32px 0; }

/* ── Layout sidebar ──────────────────────────────────── */
.blr-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.blr-full-width { grid-template-columns: 1fr; }
.blr-sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: #fff; border-radius: var(--blr-radius); padding: 20px; border: 1px solid var(--blr-border); }
.widget-title { font-family: var(--blr-font-head); font-size: 16px; color: var(--blr-dark); border-bottom: 2px solid var(--blr-red); padding-bottom: 8px; margin-bottom: 12px; }

/* ── Blog grid ───────────────────────────────────────── */
.blr-posts-grid { display: flex; flex-direction: column; gap: 28px; }
.blr-post-card { background: #fff; border-radius: var(--blr-radius); overflow: hidden; border: 1px solid var(--blr-border); display: flex; gap: 0; box-shadow: var(--blr-shadow); transition: box-shadow .2s; }
.blr-post-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.13); }
.blr-post-card-thumb { width: 260px; flex-shrink: 0; overflow: hidden; }
.blr-post-card-thumb img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s; }
.blr-post-card:hover .blr-post-card-thumb img { transform: scale(1.04); }
.blr-post-card-body { padding: 20px 24px; flex: 1; }
.blr-post-card-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.blr-post-card-meta a { color: #888; }
.blr-post-card-title { font-family: var(--blr-font-head); font-size: 20px; margin-bottom: 10px; line-height: 1.25; }
.blr-post-card-title a { color: var(--blr-dark); text-decoration: none; }
.blr-post-card-title a:hover { color: var(--blr-red); }
.blr-post-card-excerpt { font-size: 14px; color: #666; margin-bottom: 16px; }

/* ── Single post ─────────────────────────────────────── */
.blr-single-post { background: #fff; border-radius: var(--blr-radius); overflow: hidden; border: 1px solid var(--blr-border); }
.blr-post-thumb img { width: 100%; max-height: 400px; object-fit: cover; }
.blr-post-header { padding: 24px 32px 0; }
.blr-post-title  { font-family: var(--blr-font-head); font-size: 30px; color: var(--blr-dark); line-height: 1.2; margin-bottom: 10px; }
.blr-post-meta   { font-size: 13px; color: #999; margin-bottom: 20px; }
.blr-post-content { padding: 20px 32px 32px; line-height: 1.8; }
.blr-post-content h2,h3,h4 { font-family: var(--blr-font-head); color: var(--blr-dark); margin: 24px 0 10px; }
.blr-post-content p  { margin-bottom: 16px; }
.blr-post-content img { border-radius: var(--blr-radius); margin: 16px 0; }

/* ── Page ─────────────────────────────────────────────── */
.blr-page-content { background: #fff; border-radius: var(--blr-radius); padding: 32px; border: 1px solid var(--blr-border); }
.blr-page-title   { font-family: var(--blr-font-head); font-size: 28px; color: var(--blr-dark); margin-bottom: 24px; border-bottom: 2px solid var(--blr-red); padding-bottom: 10px; }

/* ── Breadcrumb ───────────────────────────────────────── */
.blr-breadcrumb { font-size: 13px; color: #999; margin-bottom: 20px; }
.blr-breadcrumb a { color: var(--blr-red); text-decoration: none; }
.blr-breadcrumb a:hover { text-decoration: underline; }
.blr-bc-sep { margin: 0 8px; color: #ccc; }

/* ── Títulos de sección ───────────────────────────────── */
.blr-archive-title,
.blr-section-tree h2 { font-family: var(--blr-font-head); font-size: 26px; color: var(--blr-dark); margin-bottom: 20px; }
.blr-section-tree h2 { border-bottom: 2px solid var(--blr-red); padding-bottom: 8px; }

/* ── Botones ──────────────────────────────────────────── */
.blr-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--blr-red);
  color: #fff;
  border: 2px solid var(--blr-red);
  border-radius: var(--blr-radius);
  font-family: var(--blr-font-head);
  font-size: 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.blr-btn:hover       { background: var(--blr-red-dark); border-color: var(--blr-red-dark); color: #fff; transform: translateY(-1px); }
.blr-btn-sm          { padding: 6px 14px; font-size: 12px; }
.blr-btn-outline     { background: transparent; color: var(--blr-red); }
.blr-btn-outline:hover { background: var(--blr-red); color: #fff; }
.blr-btn-gold        { background: var(--blr-gold); border-color: var(--blr-gold); color: var(--blr-dark); }
.blr-btn-gold:hover  { background: #f57f17; border-color: #f57f17; color: var(--blr-dark); }

/* ── Footer ───────────────────────────────────────────── */
.blr-footer { background: var(--blr-dark); color: #ccc; padding: 48px 0 0; margin-top: 64px; }
.blr-footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.blr-footer-logo  { margin-bottom: 12px; }
.blr-footer-logo img { height: 48px; }
.blr-footer-tagline { font-size: 13px; color: #888; }
.blr-footer .widget-title { color: #e0e0e0; border-color: var(--blr-red); }
.blr-footer .widget { background: transparent; border: none; padding: 0; }
.blr-footer a { color: #aaa; text-decoration: none; }
.blr-footer a:hover { color: var(--blr-gold); }
.blr-footer-bottom { border-top: 1px solid #2c2c2c; padding: 16px 0; }
.blr-footer-bottom .blr-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #666; }
.blr-footer-menu { list-style: none; display: flex; gap: 16px; }

/* ── Ejemplar single ──────────────────────────────────── */
.blr-single-wrap { background: #fff; border-radius: var(--blr-radius); padding: 32px; border: 1px solid var(--blr-border); }
.blr-section-tree { margin-top: 40px; }

/* ── Zona 404 ─────────────────────────────────────────── */
.blr-error-page { text-align: center; padding: 80px 20px; }
.blr-error-page h1 { font-family: var(--blr-font-head); font-size: 48px; color: var(--blr-red); margin-bottom: 16px; }
.blr-error-page p  { color: #888; margin-bottom: 32px; font-size: 18px; }

/* ── Navegación de posts ──────────────────────────────── */
.nav-links { margin-top: 32px; display: flex; justify-content: space-between; }
.nav-links a { color: var(--blr-red); font-family: var(--blr-font-head); text-decoration: none; font-size: 14px; text-transform: uppercase; }
.nav-links a:hover { color: var(--blr-red-dark); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .blr-layout-sidebar { grid-template-columns: 1fr; }
  .blr-sidebar { order: 2; }
  .blr-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .blr-nav-toggle { display: flex; }
  .blr-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--blr-dark);
    flex-direction: column;
    min-width: 200px;
    border-radius: var(--blr-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    padding: 8px 0;
    gap: 0;
  }
  .blr-menu.open { display: flex; }
  .blr-menu li a { border-radius: 0; padding: 12px 20px; font-size: 15px; }
  .blr-post-card { flex-direction: column; }
  .blr-post-card-thumb { width: 100%; }
  .blr-footer-inner { grid-template-columns: 1fr; }
  .blr-footer-bottom .blr-container { flex-direction: column; text-align: center; }
}
