/* ADN Positivo - Main Stylesheet */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #ff6b35;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.section-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}

.main-nav { display: flex; gap: 1.5rem; }

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* Main content */
.site-main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Article page */
.article-container {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-light);
}

.article-meta .category {
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-meta .date { font-style: italic; }

.article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--text-light);
}

.article-author strong { color: var(--text); }

.article-body h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--text);
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 0.5rem;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--text);
}

.article-body p { margin-bottom: 1.2rem; }

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li { margin-bottom: 0.5rem; }

/* Tags */
.article-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-tags a {
  background: var(--bg-light);
  color: var(--text-light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.article-tags a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Homepage grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 1.3rem 1.5rem; }

.card-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 3rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #ccc;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a { color: #aaa; }
.footer-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .article-container { padding: 1.5rem; }
  .article-title { font-size: 1.5rem; }
  .header-inner { flex-wrap: wrap; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }

  .hero { padding: 2rem 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .articles-grid { grid-template-columns: 1fr; }
}
