/* Layout + artículos SEO — hantavirusmap.es */

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

:root {
  --primary-red: #FF1744;
  --primary-orange: #FF6E40;
  --dark-bg: #0a0e27;
  --darker-bg: #050810;
  --card-bg: #151b3d;
  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
}

html, body { width: 100%; height: 100%; overflow-x: hidden; }

body {
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.header {
  background: linear-gradient(180deg, rgba(255, 23, 68, 0.1) 0%, rgba(255, 110, 64, 0.05) 100%);
  border-bottom: 3px solid var(--primary-red);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 23, 68, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.header-content {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 10px;
  border: 1px solid rgba(255, 23, 68, 0.25);
  border-radius: 999px;
  background: rgba(21, 27, 61, 0.4);
}

.nav a:hover { color: var(--text-primary); border-color: rgba(255, 23, 68, 0.55); }

h1 {
  margin-top: 16px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -1px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 20px 40px;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 23, 68, 0.2);
  border-left: 3px solid var(--primary-red);
  border-radius: 10px;
  padding: 22px 24px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-top: 10px;
}

.article-main .card {
  max-width: 720px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 23, 68, 0.2);
}

.article-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 22px 0 10px;
  letter-spacing: -0.3px;
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-body p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.article-body p:first-child {
  margin-top: 0;
}

.article-body ul {
  margin: 12px 0 0 1.1rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.article-body li {
  margin-top: 6px;
}

.related {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 23, 68, 0.25);
}

.related h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related a {
  color: #ffd1d8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related a:hover {
  color: #ffffff;
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 12px 14px;
  background: rgba(5, 8, 16, 0.45);
  border-radius: 8px;
  border: 1px solid rgba(255, 23, 68, 0.15);
}

.disclaimer a {
  color: #ffd1d8;
}
