/* ════════════════════════════════════════════════════════════
   SANGHELIOS · base.css
   Reset, variables de diseño, navegación y sistema de pestañas.
   Todo lo compartido entre vistas vive aquí.
   ════════════════════════════════════════════════════════════ */

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

:root {
  --red: #BF1212;
  --red-hover: #991010;
  --red-soft: #FEE2E2;
  --gray-light: #B4B4B4;
  --white: #FFFFFF;
  --graphite: #1F2937;
  --black: #000000;
  --bg: #F4F5F7;
  --bg-section: #F8F9FA;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --green: #16A34A;
  --green-soft: #DCFCE7;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --blue: #1D4ED8;
  --nav-h: 60px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--white);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Animaciones compartidas ── */
@keyframes pulse-g {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  70%  { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@keyframes pulse-r {
  0%   { box-shadow: 0 0 0 0 rgba(191,18,18,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(191,18,18,0); }
  100% { box-shadow: 0 0 0 0 rgba(191,18,18,0); }
}
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin: 0 2px; animation: pulse-g 1.6s infinite;
}

/* ── NAV + PESTAÑAS ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }
.nav-wordmark {
  font-size: 18px; font-weight: 800; letter-spacing: -0.7px;
  color: var(--text-primary); display: inline-flex; align-items: center;
}
.nav-wordmark .lw-red { color: var(--red); }
.nav-drop { height: 16px; width: auto; margin: 0 0.5px; transform: translateY(-1px); }

/* Logo wordmark grande (hero y about) */
.logo-word {
  display: flex; align-items: center;
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  color: var(--text-primary);
  margin-bottom: 22px; user-select: none;
}
.logo-word .lw-red { color: var(--red); }
.lw-drop { height: 0.92em; width: auto; margin: 0 0.02em; transform: translateY(-3%); }

.tabs {
  display: flex; gap: 4px;
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px;
}
.tab-btn {
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary); background: transparent; border: none;
  border-radius: 7px; padding: 7px 18px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .18s; text-decoration: none;
}
.tab-btn:hover { text-decoration: none; }
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { background: var(--red); color: white; box-shadow: 0 2px 8px rgba(191,18,18,0.3); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px; white-space: nowrap;
}
.nav-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse-g 2s infinite; }

/* ── VISTAS (pestañas) ── */
.view { display: none; }
.view.active { display: block; }

/* ── Responsive base ── */
@media (max-width: 880px) {
  nav { padding: 0 14px; }
  .nav-status { display: none; }
  .tab-btn { padding: 7px 12px; font-size: 11.5px; }
}
