/* ==========================================================
   retrojoal.css — Estilos globales del tema RetroJoal
   Cargado por functions.php vía wp_enqueue_scripts
   ========================================================== */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ink:      #0D0C0A;
  --ink2:     #1A1714;
  --ink3:     #252220;
  --gold:     #F5B800;
  --gold-dim: #B08800;
  --gold-b:   rgba(245,184,0,.14);
  --gold-bg:  rgba(245,184,0,.06);
  --muted:    #7A6E64;
  --dim:      #4A433B;
  --light:    #E8E0D0;
  --border2:  rgba(255,255,255,.07);
  --shadow:   0 8px 40px rgba(0,0,0,.55);
  --r:        10px;
  --r-lg:     16px;
  --tr:       .2s ease;
  --tr-slow:  .4s cubic-bezier(.25,.46,.45,.94);
  --ft:       'Barlow Condensed', sans-serif;
  --fb:       'DM Sans', sans-serif;
  --fm:       'DM Mono', monospace;
  --nav-h:    64px;
}

/* ── Base ────────────────────────────────────────────────────── */
body {
  background: var(--ink);
  color: var(--light);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── Logo shine ──────────────────────────────────────────────── */
@keyframes rj-logo-shine {
  0%,45%,55%,100% { opacity: 1; }
  50% { opacity: .5; filter: brightness(1.8); }
}
.rj-logo {
  font-family: var(--ft);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--light);
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.rj-logo span {
  color: var(--gold);
  display: inline-block;
  animation: rj-logo-shine 4s ease-in-out infinite;
}
.rj-logo em {
  font-family: var(--fb);
  font-size: .48rem;
  font-style: normal;
  font-weight: 300;
  color: #a09690;
  display: block;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ══ HEADER ══════════════════════════════════════════════════ */
#rj-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(13,12,10,.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--gold-b);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 24px;
  transition: background var(--tr);
}
#rj-header.scrolled { background: rgba(13,12,10,.98); }

/* ── Nav principal ───────────────────────────────────────────── */
.rj-nav {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}
.rj-nav a {
  font-family: var(--fb);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.rj-nav a:hover,
.rj-nav a.current-menu-item { color: var(--light); background: var(--border2); }
.rj-nav a.active { color: var(--gold); background: rgba(245,184,0,.1); }

.rj-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ══ BOTONES ═════════════════════════════════════════════════ */
.rj-btn {
  font-family: var(--fb);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--tr);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.rj-btn--gold     { background: var(--gold); color: var(--ink); }
.rj-btn--gold:hover { background: #ffc820; box-shadow: 0 4px 20px rgba(245,184,0,.3); }
.rj-btn--border   { background: transparent; color: var(--muted); border: 1px solid var(--gold-b); }
.rj-btn--border:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-bg); }
.rj-btn--ghost    { background: transparent; color: var(--light); border: 1px solid var(--border2); }
.rj-btn--ghost:hover { border-color: rgba(245,184,0,.4); color: var(--gold); }
.rj-btn--wa       { background: #25D366; color: #fff; }
.rj-btn--wa:hover { background: #1DA851; }

/* ══ SECCIÓN WRAPPER ═════════════════════════════════════════ */
.rj-section { padding: 88px 40px; }
.rj-section--alt { background: var(--ink2); }
.rj-section-inner { max-width: 1200px; margin: 0 auto; }

.rj-eyebrow {
  font-family: var(--fm);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.rj-eyebrow::before { content:''; display:block; width:18px; height:1px; background:var(--gold); }

h2.rj-h2 {
  font-family: var(--ft);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--light);
  line-height: 1.0;
  margin-bottom: 6px;
}
.rj-sub {
  font-family: var(--fb);
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 48px;
}
.rj-sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.rj-sec-link {
  font-family: var(--fb);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--tr);
  white-space: nowrap;
}
.rj-sec-link:hover { gap: 12px; }

/* ══ HUB GRID ════════════════════════════════════════════════ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.hub-card {
  background: var(--ink2);
  border: 1px solid var(--gold-b);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background var(--tr), border-color var(--tr);
  text-decoration: none;
  min-height: 280px;
}
.hub-card:hover { background: var(--ink3); border-color: rgba(245,184,0,.3); }
.hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.hub-card:hover::before,
.hub-card--active::before { transform: scaleX(1); }
.hub-card-bg {
  position: absolute; inset: 0;
  font-size: 8rem;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 20px;
  opacity: .04; pointer-events: none;
  transition: opacity .3s; line-height: 1;
}
.hub-card:hover .hub-card-bg { opacity: .07; }
.hub-status {
  font-family: var(--fm); font-size: .55rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  display: inline-block; margin-bottom: 20px; align-self: flex-start;
}
.hub-status--on   { background: rgba(245,184,0,.14); color: var(--gold); }
.hub-status--soon { background: rgba(255,255,255,.05); color: var(--muted); }
h3.hub-title {
  font-family: var(--ft); font-size: 1.6rem; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase; color: var(--light);
  margin-bottom: 10px; line-height: 1.05;
}
.hub-desc { font-family: var(--fb); font-size: .8rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 24px; }
.hub-action {
  font-family: var(--fb); font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 6px; transition: gap var(--tr);
}
.hub-card:hover .hub-action { gap: 12px; }
.hub-action--muted { color: var(--dim); }

/* ══ BENTO GRID ══════════════════════════════════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 10px;
}
article.bento-card {
  background: var(--ink2);
  border: 1px solid var(--gold-b);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--tr), transform var(--tr-slow);
}
article.bento-card:hover { border-color: rgba(245,184,0,.28); transform: translateY(-3px); box-shadow: var(--shadow); }
.b-feat { grid-column: 1 / -1; }
.b-med  { grid-column: span 2; }

.bc-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.bc-cat {
  font-family: var(--fm); font-size: .55rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block;
}
h3.bc-title {
  font-family: var(--ft); font-weight: 800; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--light);
  line-height: 1.1; margin-bottom: 8px; flex: 1;
}
.b-feat .bc-title { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.b-sm   .bc-title { font-size: .9rem; }
.bc-excerpt { font-family: var(--fb); font-size: .8rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.bc-read {
  font-family: var(--fb); font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 6px; transition: gap var(--tr); margin-top: auto;
}
article.bento-card:hover .bc-read { gap: 12px; }
.bc-img-wrap { position: relative; overflow: hidden; background: var(--ink3); flex-shrink: 0; }
.b-feat .bc-img-wrap { height: 220px; }
.b-med  .bc-img-wrap { height: 130px; }
.b-sm   .bc-img-wrap { height: 80px; }
.bc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .85; }
article.bento-card:hover .bc-img-wrap img { transform: scale(1.04); opacity: 1; }
.bc-noimg {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: .18; pointer-events: none; transition: opacity .3s;
}
article.bento-card:hover .bc-noimg { opacity: .3; }
.bc-noimg-icon { font-size: 2.2rem; filter: grayscale(1); line-height: 1; }
.bc-noimg-text { font-family: var(--fm); font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.bc-img-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--fm); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(13,12,10,.85); border: 1px solid var(--gold-b); color: var(--gold); z-index: 1;
}

/* ══ GALERÍA ═════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
article.gallery-card {
  background: var(--ink2); border: 1px solid var(--gold-b); border-radius: var(--r);
  overflow: hidden; transition: border-color var(--tr), transform var(--tr-slow);
}
article.gallery-card:hover { border-color: rgba(245,184,0,.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.gc-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--ink3); position: relative; }
.gc-img-wrap img { width:100%;height:100%;object-fit:cover;transition:transform .4s,opacity .3s;opacity:.8; }
article.gallery-card:hover .gc-img-wrap img { transform: scale(1.05); opacity: 1; }
.gc-noimg {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: .18; pointer-events: none; transition: opacity .3s;
}
article.gallery-card:hover .gc-noimg { opacity: .3; }
.gc-noimg-icon { font-size: 2.8rem; filter: grayscale(1); line-height: 1; }
.gc-noimg-text { font-family: var(--fm); font-size: .52rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.gc-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--fm); font-size: .52rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(13,12,10,.85); border: 1px solid var(--gold-b); color: var(--gold);
}
.gc-body { padding: 18px 20px; }
.gc-cat { font-family: var(--fm); font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: block; }
h3.gc-title { font-family: var(--ft); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--light); margin-bottom: 6px; }
.gc-desc { font-family: var(--fb); font-size: .78rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.gc-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--gold-b); background: rgba(245,184,0,.025); }
.gc-price { font-family: var(--ft); font-size: .95rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; }

/* ══ ADSENSE ═════════════════════════════════════════════════ */
.ads-wrap { padding: 20px 40px; background: var(--ink); }
.adsense-placeholder {
  width: 100%; background: rgba(255,255,255,.018);
  border: 1px dashed rgba(245,184,0,.1); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fm); font-size: .55rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(245,184,0,.25); min-height: 90px;
}

/* ══ GRIDS OCULTOS ═══════════════════════════════════════════ */
.grid-hidden { display: none !important; }
.grid-hidden.grid-visible { display: grid !important; }
.show-more-wrap { text-align: center; margin-top: 32px; }
.show-more-btn {
  font-family: var(--fb); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: transparent; border: 1px solid var(--gold-b); padding: 11px 28px;
  border-radius: 999px; cursor: pointer; transition: all var(--tr);
  display: inline-flex; align-items: center; gap: 8px;
}
.show-more-btn:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-bg); }
.show-more-btn.hidden { display: none; }

/* ══ CTA ═════════════════════════════════════════════════════ */
.cta-wrap { text-align: center; max-width: 660px; margin: 0 auto; }
.cta-wrap .rj-eyebrow { justify-content: center; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.cta-note {
  margin-top: 28px; font-family: var(--fm); font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.cta-note::before, .cta-note::after { content: ''; display: block; width: 32px; height: 1px; background: var(--gold-b); }

/* ══ FOOTER ══════════════════════════════════════════════════ */
#rj-footer {
  padding: 36px 40px calc(36px + 60px);
  background: #0A0908;
  border-top: 1px solid var(--gold-b);
  text-align: center;
}
.footer-top {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--gold-b); flex-direction: column;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-family: var(--fb); font-size: .7rem; color: var(--muted); transition: color var(--tr); }
.footer-links a:hover { color: var(--gold); }
.footer-legal-block { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-legal-block p { font-family: var(--fm); font-size: .58rem; letter-spacing: .04em; color: var(--dim); line-height: 1.7; max-width: 760px; text-align: center; }
.footer-legal-block a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; transition: color var(--tr); }
.footer-legal-block a:hover { color: var(--gold); }
.footer-copy { font-weight: 600; color: var(--dim) !important; margin-top: 4px; }

/* ══ MOBILE BOTTOM NAV ══════════════════════════════════════ */
@keyframes rj-nav-up { from { transform: translateY(100%); opacity:0; } to { transform: translateY(0); opacity:1; } }
#mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: rgba(13,12,10,.97); border-top: 1px solid var(--gold-b);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: rj-nav-up .4s cubic-bezier(.25,.46,.45,.94) both;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-inner { display: flex; }
.mob-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 12px 4px 10px; text-decoration: none; color: var(--dim);
  transition: color var(--tr); -webkit-tap-highlight-color: transparent;
  font-size: 0; position: relative;
}
.mob-item::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gold); transition: width .25s ease; }
.mob-item.active::after { width: 28px; }
.mob-item.active, .mob-item:hover { color: var(--gold); }
.mob-icon { font-size: 1.25rem; line-height: 1; display: block; }
.mob-label { font-family: var(--fm); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; display: block; }

/* ══ SCROLL REVEAL ═══════════════════════════════════════════ */
@keyframes rj-su { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.v { animation: rj-su .6s cubic-bezier(.25,.46,.45,.94) both; }

/* ══ ENTRADAS DE WORDPRESS (blog) ════════════════════════════ */
.rj-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.rj-post-card {
  background: var(--ink2); border: 1px solid var(--gold-b); border-radius: var(--r);
  overflow: hidden; transition: border-color var(--tr), transform var(--tr-slow);
  display: flex; flex-direction: column;
}
.rj-post-card:hover { border-color: rgba(245,184,0,.28); transform: translateY(-3px); box-shadow: var(--shadow); }
.rj-post-card .thumbnail { aspect-ratio: 16/9; overflow: hidden; background: var(--ink3); }
.rj-post-card .thumbnail img { width:100%;height:100%;object-fit:cover;transition:transform .4s,opacity .3s;opacity:.85; }
.rj-post-card:hover .thumbnail img { transform: scale(1.04); opacity: 1; }
.rj-post-card .card-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.rj-post-card .card-cat { font-family: var(--fm); font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.rj-post-card h2, .rj-post-card h3 { font-family: var(--ft); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--light); margin-bottom: 8px; line-height: 1.1; }
.rj-post-card .excerpt { font-family: var(--fb); font-size: .8rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.rj-post-card .read-more { font-family: var(--fb); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 6px; transition: gap var(--tr); margin-top: auto; }
.rj-post-card:hover .read-more { gap: 12px; }

/* ══ PAGINACIÓN ═══════════════════════════════════════════════ */
.rj-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.rj-pagination a, .rj-pagination span {
  font-family: var(--fm); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gold-b); color: var(--muted);
  transition: all var(--tr); display: flex; align-items: center; gap: 6px;
}
.rj-pagination a:hover, .rj-pagination .current { color: var(--gold); border-color: var(--gold); background: var(--gold-bg); }

/* ══ ARTÍCULO SINGULAR ═══════════════════════════════════════ */
.rj-section--single {
  padding: 0;
  width: 100%;
}
.rj-single-inner {
  width: 100%;
  max-width: var(--wrapper-boxed, 1200px);
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 40px) 80px;
}
.rj-single {
  width: 100%;
}
.rj-single .entry-header { margin-bottom: 40px; }
.rj-single .entry-header .post-cat { font-family: var(--fm); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block; }
.rj-single h1.entry-title { font-family: var(--ft); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; color: var(--light); line-height: 1.0; margin-bottom: 20px; }
.rj-single .entry-meta { font-family: var(--fm); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.rj-single .entry-thumbnail { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r); margin-bottom: 40px; background: var(--ink2); }
.rj-single .entry-thumbnail img { width:100%;height:100%;object-fit:cover; }
.rj-single .entry-content { font-family: var(--fb); font-size: .95rem; color: var(--muted); line-height: 1.8; width: 100%; }
.rj-single .entry-content h2, .rj-single .entry-content h3 { font-family: var(--ft); text-transform: uppercase; color: var(--light); margin: 36px 0 14px; letter-spacing: .02em; }
.rj-single .entry-content h2 { font-size: 1.6rem; }
.rj-single .entry-content h3 { font-size: 1.2rem; }
.rj-single .entry-content p { margin-bottom: 18px; }
.rj-single .entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.rj-single .entry-content a:hover { color: var(--light); }
.rj-single .entry-content ul, .rj-single .entry-content ol { padding-left: 20px; margin-bottom: 18px; }
.rj-single .entry-content li { margin-bottom: 8px; list-style: disc; }
.rj-single .entry-content ol li { list-style: decimal; }
.rj-single .entry-content blockquote { border-left: 3px solid var(--gold); padding: 14px 0 14px 20px; margin: 28px 0; font-style: italic; color: var(--light); }
.rj-single .entry-content img { border-radius: var(--r); margin: 24px 0; max-width: 100%; }
.rj-single .entry-content code { font-family: var(--fm); background: var(--ink3); padding: 2px 7px; border-radius: 4px; font-size: .85em; color: var(--gold); }
.rj-single .entry-content pre { background: var(--ink2); border: 1px solid var(--gold-b); border-radius: var(--r); padding: 20px; overflow-x: auto; margin-bottom: 18px; }
.rj-single .entry-content pre code { background: none; padding: 0; }

/* Página estática de portada / páginas sueltas */
.rj-page-content {
  width: 100%;
  max-width: var(--wrapper-boxed, 1200px);
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 40px) 80px;
}

/* Metadatos extra: breadcrumbs, tiempo de lectura, compartir */
.rj-breadcrumb {
  font-family: var(--fm); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.rj-breadcrumb a { color: var(--muted); transition: color var(--tr); }
.rj-breadcrumb a:hover { color: var(--gold); }
.rj-breadcrumb .sep { opacity: .4; }

.rj-read-time {
  font-family: var(--fm); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 6px;
}
.rj-read-time::before { content: '⏱'; font-size: .8rem; }

.rj-share-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--gold-b); flex-wrap: wrap;
}
.rj-share-bar__label {
  font-family: var(--fm); font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.rj-share-bar a {
  font-family: var(--fm); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--gold-b);
  color: var(--muted); transition: all var(--tr); display: inline-flex; align-items: center; gap: 6px;
}
.rj-share-bar a:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-bg); }

.rj-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--gold-b); }
.rj-related__title {
  font-family: var(--ft); font-size: 1.1rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--light); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.rj-related__title::after { content: ''; flex: 1; height: 1px; background: var(--gold-b); }

/* Back to top */
#rj-back-top {
  position: fixed; bottom: 90px; right: 20px; z-index: 250;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink2); border: 1px solid var(--gold-b);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; transition: all var(--tr);
  opacity: 0; pointer-events: none; font-size: .9rem;
}
#rj-back-top.visible { opacity: 1; pointer-events: auto; }
#rj-back-top:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ══ 404 / PÁGINA VACÍA ══════════════════════════════════════ */
.rj-404 { text-align: center; padding: calc(var(--nav-h) + 100px) 40px 100px; }
.rj-404 .code { font-family: var(--ft); font-size: clamp(6rem, 20vw, 14rem); font-weight: 900; color: var(--gold-b); letter-spacing: -.05em; line-height: 1; display: block; }
.rj-404 h1 { font-family: var(--ft); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; text-transform: uppercase; color: var(--light); margin-bottom: 16px; }
.rj-404 p { font-size: .9rem; color: var(--muted); margin-bottom: 32px; }

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  #rj-header { padding: 0 20px; }
  .rj-nav { display: none; }
  #mob-nav { display: flex; }
  .rj-section { padding: 64px 20px; }
  .hub-grid { grid-template-columns: 1fr; gap: 8px; }
  .bento { grid-template-columns: 1fr; }
  .b-feat, .b-med { grid-column: 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ads-wrap { padding: 16px 20px; }
  .footer-top { align-items: center; }
  #rj-footer { padding: 28px 20px calc(28px + 70px); }
  .rj-single-inner { padding: 32px 20px 60px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  h2.rj-h2 { font-size: 1.7rem; }
}

/* ══════════════════════════════════════════════════════════
   LAYOUT PREMIUM — ANCHO COMPLETO
   ══════════════════════════════════════════════════════════ */

/**
 * .wrapper-full  — 100vw de lado a lado (Hero, Mapa, Secciones de fondo)
 * .wrapper-boxed — Contenido centrado al ancho del Customizer (default 1200px)
 *                  Se controla con --wrapper-boxed (Personalizar → Layout)
 */

/* Reset global para ancho completo */
html, body { width: 100%; overflow-x: hidden; }
body { margin: 0 !important; padding: 0 !important; }
#rj-main { width: 100%; }

/* Wrapper 100% viewport */
.wrapper-full {
  width: 100%;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}

/* Wrapper centrado con max-width configurable */
.wrapper-boxed {
  max-width: var(--wrapper-boxed, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
  width: 100%;
}

/* Secciones del tema usan wrapper-full exteriormente */
.rj-section {
  padding: 48px 0 var(--section-pad, 88px);
  width: 100%;
}

/* El contenido interno de cada sección usa wrapper-boxed */
.rj-section-inner {
  max-width: var(--wrapper-boxed, 1200px);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

/* Hero siempre full-width */
#hero { width: 100%; max-width: 100vw; }

/* Header full-width */
#rj-header { width: 100%; max-width: 100vw; }
.rj-header-inner {
  max-width: var(--wrapper-boxed, 1200px);
  margin: 0 auto;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 40px);
  gap: 24px;
}

/* Footer full-width */
#rj-footer { width: 100%; }
.footer-inner {
  max-width: var(--wrapper-boxed, 1200px);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* Bloque de WordPress "align-wide" (ancho extendido) */
.alignwide {
  width: calc(100% + min(8vw, 80px));
  margin-left: calc(-1 * min(4vw, 40px));
  max-width: none;
}
/* Bloque "align-full" (100vw) */
.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: 100vw;
}

/* ══════════════════════════════════════════════════════════
   MOBILE APP BOTTOM BAR — Menú como app nativa
   ══════════════════════════════════════════════════════════ */

/*
 * El menú "Menú móvil (Bottom Bar)" registrado en functions.php
 * se renderiza con la clase .rj-mobile-app-nav en footer.php.
 * Soporta iconos personalizados vía campo "Descripción" de cada
 * elemento de menú en Apariencia → Menús.
 */
.rj-mobile-app-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(13,12,10,.97);
  border-top: 1px solid var(--gold-b);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.rj-mobile-app-nav ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
}
.rj-mobile-app-nav li { flex: 1; }
.rj-mobile-app-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  color: var(--dim);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--tr);
  position: relative;
}
.rj-mobile-app-nav a::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.rj-mobile-app-nav .current-menu-item a,
.rj-mobile-app-nav a:hover { color: var(--gold); }
.rj-mobile-app-nav .current-menu-item a::after,
.rj-mobile-app-nav a:hover::after { width: 28px; }

/* Icono (primer span dentro del enlace) */
.rj-mobile-app-nav .menu-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}
/* Etiqueta (segundo span dentro del enlace) */
.rj-mobile-app-nav .menu-label {
  font-family: var(--fm);
  font-size: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   ADSENSE SLOTS
   ══════════════════════════════════════════════════════════ */
.ads-wrap { width: 100%; background: var(--ink); }
.ads-wrap-inner {
  max-width: var(--wrapper-boxed, 1200px);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px);
}
.adsense-placeholder {
  width: 100%; min-height: 90px;
  background: rgba(255,255,255,.018);
  border: 1px dashed rgba(245,184,0,.1);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fm); font-size: .55rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(245,184,0,.3);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE PREMIUM OVERRIDES
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .rj-mobile-app-nav { display: flex; flex-direction: column; }
  #mob-nav            { display: none; } /* Ocultar el nav hardcoded si existe */
  .rj-section         { padding: calc(var(--section-pad, 88px) * .65) 0; }
  .alignwide          { width: 100%; margin-left: 0; }
}

/* ══ PAGINACIÓN NAV-LINKS (WordPress nativo) ════════════════ */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.nav-links a,
.nav-links span {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-b);
  color: var(--muted);
  transition: all var(--tr);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links .current {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-bg);
}
.nav-links .dots {
  border-color: transparent;
  color: var(--dim);
}