/* ArqPlano Guías — Design System v1 */
:root {
  --bg: #020617;
  --surface: #1e293b;
  --surface-2: #0f172a;
  --surface-3: #1e293b;
  --border: #1e293b;
  --border-light: #1e293b;
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #3b82f6;
  --accent-dark: #1d4ed8;
  --accent-glow: rgba(59,130,246,0.15);
  --green: #10b981;
  --green-bg: rgba(16,185,129,0.1);
  --orange: #f59e0b;
  --orange-bg: rgba(245,158,11,0.1);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.1);
  --purple: #8b5cf6;
  --purple-bg: rgba(139,92,246,0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;
  --max-content: 740px;
  --max-wide: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo svg { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 6px 16px;
}
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* ─── Language toggle ────────────────────────────────────── */
.lang-toggle { display: flex; align-items: center; gap: 2px; background: var(--surface); border-radius: var(--radius-xs); padding: 2px; }
.lang-btn { border: none; cursor: pointer; background: transparent; color: var(--text-muted); font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; transition: all .15s; }
.lang-btn.active { background: var(--accent); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--text); }

/* ─── Article Hero ────────────────────────────────────────── */
.article-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--surface-2);
}
.article-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.article-hero-bg-placeholder {
  position: absolute; inset: 0;
  opacity: 0.6;
}
.article-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(15,23,42,0.6) 50%, transparent 100%);
}
.article-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.3);
}
.tag.green { background: var(--green-bg); color: var(--green); border-color: rgba(16,185,129,0.3); }
.tag.orange { background: var(--orange-bg); color: var(--orange); border-color: rgba(245,158,11,0.3); }
.tag.purple { background: var(--purple-bg); color: var(--purple); border-color: rgba(139,92,246,0.3); }
.reading-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 16px;
}
.article-hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.6;
}

/* ─── Article Body ────────────────────────────────────────── */
.article-layout {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
.article-body { max-width: var(--max-content); }

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-2);
  margin: 28px 0 10px;
}
.article-body p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  color: var(--text-2);
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

/* ─── Article Image ───────────────────────────────────────── */
.article-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
  border: 1px solid var(--border);
}
.article-img-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.caption {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ─── Callout Boxes ───────────────────────────────────────── */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 28px 0;
  border-left: 4px solid;
}
.callout.tip {
  background: var(--green-bg);
  border-color: var(--green);
}
.callout.warning {
  background: var(--orange-bg);
  border-color: var(--orange);
}
.callout.info {
  background: var(--accent-glow);
  border-color: var(--accent);
}
.callout.pro {
  background: var(--purple-bg);
  border-color: var(--purple);
}
.callout-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.callout.tip .callout-label { color: var(--green); }
.callout.warning .callout-label { color: var(--orange); }
.callout.info .callout-label { color: var(--accent); }
.callout.pro .callout-label { color: var(--purple); }
.callout p { margin: 0; font-size: 0.9rem; color: var(--text-2); }

/* ─── Stats Row ───────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Comparison Table ────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.875rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th {
  padding: 14px 16px;
  text-align: left;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 13px 16px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); font-weight: 700; }
.neutral { color: var(--orange); font-weight: 700; }

/* ─── Step List ───────────────────────────────────────────── */
.step-list { list-style: none; padding: 0; margin: 28px 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  align-items: flex-start;
}
.step-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h4 { color: var(--text); font-size: 0.95rem; margin-bottom: 4px; }
.step-content p { color: var(--text-muted); font-size: 0.875rem; margin: 0; line-height: 1.6; }

/* ─── Sidebar ─────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-toc h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sidebar-toc a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color .15s;
}
.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a:hover { color: var(--accent); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.sidebar-cta h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sidebar-cta p { font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-bottom: 16px; line-height: 1.5; }
.sidebar-cta a {
  display: block;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity .15s;
}
.sidebar-cta a:hover { opacity: 0.9; }

/* ─── Related Articles ────────────────────────────────────── */
.related-section {
  border-top: 1px solid var(--border);
  padding: 64px 24px;
  background: var(--surface-2);
}
.related-inner { max-width: var(--max-wide); margin: 0 auto; }
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-3);
  position: relative;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .card-image img { transform: scale(1.04); }
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 2.5rem;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-tag { margin-bottom: 10px; }
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}
.card-excerpt { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.card-meta { font-size: 0.75rem; color: var(--text-faint); display: flex; gap: 10px; }

/* ─── Landing Page ────────────────────────────────────────── */
.landing-hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 20px;
}
.landing-hero h1 span { color: var(--accent); }
.landing-hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--surface-3); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.content-section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 80px 24px;
}
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 64px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.featured-article:hover { border-color: var(--accent); box-shadow: var(--shadow); }
@media (max-width: 700px) {
  .featured-article { grid-template-columns: 1fr; }
}
.featured-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-3);
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  min-height: 280px;
}
.featured-content {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-content .tag { margin-bottom: 14px; }
.featured-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.featured-content p { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.featured-content .read-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── App Promo ───────────────────────────────────────────── */
.app-promo {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a2d54 50%, #0f172a 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.app-promo::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(59,130,246,0.1) 0%, transparent 70%);
}
.app-promo > * { position: relative; }
.app-promo h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.app-promo p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.app-features-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.app-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.875rem;
}
.app-feature-item .icon { font-size: 1.1rem; }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin-top: 10px; max-width: 280px; }
.footer-links h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-wide);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-muted); }

/* ─── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--border); }

/* ─── Utilities ───────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.mt-0 { margin-top: 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ─── AdSense Slots ───────────────────────────────────────── */
.ad-slot {
  text-align: center;
  margin: 40px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.75rem;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .article-hero-content { padding: 48px 20px 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .article-layout { padding: 32px 20px 60px; }
  .content-section { padding: 56px 20px; }
  .app-promo { padding: 48px 24px; }
  .header-inner { padding: 0 16px; }
  .article-hero h1 { font-size: 1.75rem; }
}
