/**
 * shared/nav.css — Sententia Banner Styles
 * ==========================================
 * Estilos del banner inyectado por nav.js.
 * Para cambiar colores o layout del nav: edita SOLO este archivo.
 *
 * NO incluir aqui estilos de contenido de pagina (fallo, index, etc.)
 * Esos van en el <style> interno de cada HTML generado.
 */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@900&family=Playfair+Display:wght@700;800&display=swap');

/* === VARIABLES === */
:root {
  --bg:#0a0a0a; --bg2:#111111; --card:#1a1a1a;
  --border:rgba(255,255,255,0.1);
  --accent:#ffffff; --accent-glow:rgba(255,255,255,0.08);
  --gold:#c9a84c; --gold-glow:rgba(201,168,76,0.15);
  --text:#ffffff; --muted:rgba(255,255,255,0.45);
  --success:#34d399; --blue:#3b82f6; --blue-glow:rgba(59,130,246,0.12); --red:#ef4444;
}
body.theme-light {
  --bg:#ffffff; --bg2:#f4f4f2; --card:#f0f0ee; --border:#c8c8c8;
  --accent:#000000; --accent-glow:rgba(0,0,0,0.06);
  --text:#0a0a0a; --muted:rgba(0,0,0,0.62);
}

/* === BASE RESET (solo lo necesario para el banner) === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background .3s, color .3s;
}
a { text-decoration: none; color: inherit; }



/* === TOP BAR === */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 5%; border-bottom: 1px solid var(--border);
  font-size: .73rem; color: var(--muted); background: var(--bg);
}
.topbar-left  { display: flex; align-items: center; gap: 16px; }
.topbar-date  { font-weight: 600; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a { color: var(--muted); transition: color .2s; font-weight: 500; }
.topbar-right a:hover { color: var(--text); }
.topbar-divider { width: 1px; height: 12px; background: var(--border); }
.theme-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text); padding: 3px 10px; border-radius: 20px;
  cursor: pointer; font-size: .7rem; font-family: 'Inter', sans-serif;
  transition: border-color .2s;
}
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }

/* === MASTHEAD === */
.masthead {
  text-align: center; padding: 28px 5% 20px;
  border-bottom: 3px solid var(--gold); background: var(--bg);
}
.masthead-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900; letter-spacing: 2px;
  color: var(--text); line-height: 1;
}
.masthead-logo span { color: var(--text); }
.masthead-tagline {
  font-size: .78rem; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 6px;
}
.masthead-sub {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 12px; font-size: .73rem; color: var(--muted);
}
.masthead-sub span { display: flex; align-items: center; gap: 5px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* === CAT-NAV === */
.cat-nav {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg2); padding: 0 5%;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 18px; font-size: .78rem; font-weight: 600;
  color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.cat-nav a:hover { color: var(--text); }
.cat-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.cat-nav a.blue-cat { color: var(--blue); }
.cat-nav a.red-cat  { color: var(--red); }
.cat-nav .buscador-link {
  margin-left: auto;
  background: var(--gold); color: #000;
  padding: 7px 16px; border-radius: 6px;
  font-weight: 700; font-size: .75rem;
  white-space: nowrap; transition: opacity .2s;
}
.cat-nav .buscador-link:hover { opacity: .85; }

/* === CAT BACK LINK === */
.snt-back-link {
  display: flex; align-items: center;
  padding: 12px 16px 12px 0;
  font-size: .75rem; font-weight: 600;
  color: var(--muted); white-space: nowrap;
  border-right: 1px solid var(--border);
  margin-right: 12px;
  transition: color .2s;
}
.snt-back-link:hover { color: var(--text); }

/* === CAT DROPDOWN === */
.snt-cat-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.snt-cat-btn {
  display: flex; align-items: center; gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .75rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, background .2s;
  margin: 6px 0;
}
.snt-cat-btn:hover   { border-color: var(--gold); }
.snt-cat-btn.open    { border-color: var(--gold); }
.snt-cat-arrow {
  font-size: .6rem; opacity: .6;
  transition: transform .2s;
}
.snt-cat-btn.open .snt-cat-arrow { transform: rotate(180deg); }
.snt-cat-menu {
  display: none;
  position: fixed;   /* fixed escapa del overflow del cat-nav */
  min-width: 220px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 9999;
  overflow: hidden;
}
.snt-cat-menu.open { display: block; }
.snt-cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  font-size: .78rem; color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.snt-cat-item:last-child { border-bottom: none; }
.snt-cat-item:hover { background: var(--accent-glow); color: var(--text); }
.snt-cat-item.active { color: var(--gold); font-weight: 600; }
.snt-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* === FOOTER === */
footer {
  border-top: 3px solid var(--gold);
  background: var(--bg2); padding: 40px 5% 24px;
}
.ft-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1280px; margin: 0 auto 32px;
}
.ft-brand-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem; font-weight: 900; letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ft-brand-logo span { color: var(--text); }
.ft-brand-desc { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.ft-col h4 {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); margin-bottom: 14px;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft-col a { font-size: .82rem; color: var(--muted); transition: color .2s; }
.ft-col a:hover { color: var(--gold); }
.ft-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: .72rem; color: var(--muted);
}
@media (max-width: 900px) { .ft-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .ft-top { grid-template-columns: 1fr; } .masthead-logo { font-size: 2rem; } }

/* === HAMBURGER MENU (mobile) === */
.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s;
  line-height: 1;
}
.hamburger-btn:hover { border-color: var(--gold); color: var(--gold); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 10000;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 1px;
}
.mobile-menu-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.mobile-menu-close:hover { border-color: var(--red); color: var(--red); }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 20px 5%;
  gap: 0;
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu-links a:last-child { border-bottom: none; }
.mobile-menu-links a:hover { color: var(--gold); }
.mobile-menu-links a.mobile-gold { color: var(--gold); }

.mobile-menu-footer {
  margin-top: auto;
  padding: 20px 5%;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-theme-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s;
  text-align: center;
}
.mobile-theme-btn:hover { border-color: var(--gold); color: var(--gold); }

.mobile-menu-info {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 768px) {
  .topbar-right a,
  .topbar-divider,
  .theme-btn { display: none; }
  .hamburger-btn { display: flex; }
  .topbar-right { gap: 0; }
  .topbar-left { font-size: .65rem; }

  .masthead { padding: 20px 5% 14px; }
  .masthead-tagline { font-size: .65rem; letter-spacing: 1px; }

  .cat-nav { padding: 0 3%; gap: 0; }
  .cat-nav .buscador-link { padding: 5px 10px; font-size: .68rem; }
  .snt-back-link { font-size: .68rem; padding: 10px 12px 10px 0; }
}

