/* ═══════════════════════════════════════════
   SEO Pages — Shared Design System
   Matches landing page (index.html) design
   Agentes Virtuales · 2026
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --purple: #8b5cf6;
  --accent: #10b981;
  --orange: #f59e0b;
  --bg: #f8f9fc;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 18px; color: var(--text);
}
.logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 16px; color: var(--text-light); text-decoration: none;
  font-size: 14px; font-weight: 500; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: rgba(99,102,241,0.08); }
.nav-links a.cta-nav { background: linear-gradient(135deg, var(--primary), var(--purple)); color: white; }
.nav-links a.cta-nav:hover { opacity: 0.9; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text); }

/* ARTICLE HERO */
.article-hero {
  padding: 140px 24px 80px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  text-align: center;
}
.article-hero .hero-container { max-width: 900px; margin: 0 auto; }
.article-hero .breadcrumb {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  font-size: 14px; color: var(--text-light); margin-bottom: 24px;
}
.article-hero .breadcrumb a { color: var(--primary); text-decoration: none; }
.article-hero .breadcrumb a:hover { text-decoration: underline; }
.article-hero h1 {
  font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; line-height: 1.2; margin-bottom: 20px;
}
.article-hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.article-hero .subtitle {
  font-size: 19px; color: var(--text-light); max-width: 700px; margin: 0 auto 32px;
}

/* ARTICLE BODY */
.article-body {
  padding: 60px 24px 100px;
  background: var(--bg-white);
}
.article-container {
  max-width: 800px; margin: 0 auto;
}
.article-container h2 {
  font-size: 28px; font-weight: 700; margin: 48px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.article-container h2:first-child { margin-top: 0; }
.article-container h3 {
  font-size: 22px; font-weight: 600; margin: 32px 0 12px; color: var(--primary-dark);
}
.article-container p {
  font-size: 17px; margin-bottom: 20px; color: #334155; line-height: 1.8;
}
.article-container ul, .article-container ol {
  margin: 0 0 24px 24px; font-size: 17px; color: #334155;
}
.article-container li { margin-bottom: 10px; line-height: 1.7; }
.article-container blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(99,102,241,0.05);
  padding: 20px 24px; margin: 24px 0; border-radius: 0 12px 12px 0;
  font-size: 17px; color: #475569; font-style: italic;
}
.article-container strong { color: var(--text); }

/* INFO CARDS */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin: 32px 0;
}
.info-card {
  background: var(--bg); border-radius: 16px; padding: 28px;
  border: 1px solid var(--border); transition: all 0.3s;
}
.info-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.info-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  color: var(--primary);
}
.info-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.info-card p { font-size: 15px; color: var(--text-light); margin-bottom: 0; line-height: 1.6; }
.info-card.green .icon {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.06));
  color: var(--accent);
}
.info-card.orange .icon {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.06));
  color: var(--orange);
}
.info-card.purple .icon {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(139,92,246,0.06));
  color: var(--purple);
}

/* COMPARISON TABLE */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 32px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.comparison-table th { background: linear-gradient(135deg, var(--primary), var(--purple)); color: white; padding: 16px 20px; font-size: 15px; font-weight: 600; text-align: left; }
.comparison-table td { padding: 14px 20px; font-size: 15px; border-bottom: 1px solid var(--border); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: rgba(99,102,241,0.03); }
.comparison-table .check { color: var(--accent); font-weight: 700; }
.comparison-table .cross { color: #ef4444; }

/* HIGHLIGHT BOX */
.highlight-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: white; border-radius: 20px; padding: 40px; margin: 40px 0; text-align: center;
}
.highlight-box h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: white; }
.highlight-box p { font-size: 17px; opacity: 0.92; margin-bottom: 24px; color: white; }
.highlight-box .btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; color: var(--primary); padding: 14px 28px;
  border-radius: 12px; font-size: 16px; font-weight: 600;
  text-decoration: none; transition: all 0.25s;
}
.highlight-box .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* STEPS */
.steps-list { counter-reset: step; margin: 32px 0 32px 0; list-style: none; padding: 0; }
.steps-list li {
  counter-increment: step; display: flex; gap: 16px; margin-bottom: 20px;
  padding: 20px; background: var(--bg); border-radius: 12px; align-items: flex-start;
}
.steps-list li::before {
  content: counter(step); flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--purple)); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.steps-list li strong { color: var(--text); display: block; margin-bottom: 4px; }

/* CTA SECTION */
.article-cta {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--text) 0%, #334155 100%);
  color: white; text-align: center;
}
.article-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.article-cta p { font-size: 18px; opacity: 0.85; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.article-cta .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.25s; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--purple)); color: white; box-shadow: 0 4px 20px rgba(99,102,241,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99,102,241,0.45); }
.btn-secondary { background: white; color: var(--text); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* RELATED ARTICLES */
.related-section { padding: 80px 24px; background: var(--bg); }
.related-section h2 { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 40px; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto;
}
.related-card {
  background: white; border-radius: 16px; padding: 28px;
  border: 1px solid var(--border); transition: all 0.3s; text-decoration: none; color: inherit;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); border-color: var(--primary); }
.related-card .tag { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.related-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.related-card p { font-size: 14px; color: var(--text-light); }

/* FOOTER */
.footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px; text-align: center;
}
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 13px; opacity: 0.6; }

/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed; top: 65px; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 99;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block; padding: 12px 16px; color: var(--text);
  text-decoration: none; font-size: 15px; font-weight: 500;
  border-radius: 8px; margin-bottom: 4px;
}
.mobile-menu a:hover { background: rgba(99,102,241,0.08); color: var(--primary); }

/* TOC (Table of Contents) */
.toc {
  background: var(--bg); border-radius: 16px; padding: 24px 28px;
  margin: 0 0 40px; border: 1px solid var(--border);
}
.toc h4 { font-size: 15px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--primary); text-decoration: none; font-size: 15px; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* SCHEMA BADGE */
.schema-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(99,102,241,0.1));
  color: var(--accent); padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
  border: 1px solid rgba(16,185,129,0.2);
}

/* ═══════════════════════════════════════════
   BRIEF POSICIONAMIENTO COMPONENTS
   Esencia: ASC/AAE, Agent Core, Costo vs. humano
═══════════════════════════════════════════ */

/* NO ES UN CHATBOT — disclaimer de posicionamiento */
.not-chatbot-notice {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(135deg, rgba(15,23,42,0.04), rgba(99,102,241,0.06));
  border: 1.5px solid rgba(99,102,241,0.2); border-radius: 14px;
  padding: 20px 24px; margin: 32px 0;
}
.not-chatbot-notice .icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.not-chatbot-notice strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.not-chatbot-notice span { font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* AGENT CORE BADGE */
.agent-core-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0f172a; color: #fbbf24;
  padding: 8px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; margin: 24px 0 8px;
  border: 1px solid rgba(251,191,36,0.2);
}
.agent-core-badge i { color: #fbbf24; }
.agent-core-block {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px; padding: 32px 36px; margin: 40px 0; color: #e2e8f0;
}
.agent-core-block h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.agent-core-block p { font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 20px; }
.agent-core-models { display: flex; flex-wrap: wrap; gap: 10px; }
.acm-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #e2e8f0;
}
.acm-pill.claude { border-color: rgba(168,85,247,0.4); color: #c084fc; }
.acm-pill.openai { border-color: rgba(34,197,94,0.4); color: #4ade80; }
.acm-pill.gemini { border-color: rgba(96,165,250,0.4); color: #60a5fa; }
.acm-pill.grok { border-color: rgba(248,113,113,0.4); color: #f87171; }
.agent-core-block .made-mx {
  margin-top: 20px; padding: 10px 16px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px; font-size: 13px; color: #fbbf24; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ASC/AAE AGENT RECOMMENDATION BANNER */
.agent-rec-banner {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 24px 28px; margin: 32px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.agent-rec-banner.asc-only { grid-template-columns: 1fr; }
.agent-rec-item {
  background: #fff; border-radius: 12px; padding: 20px;
  border: 1.5px solid var(--border); transition: all 0.2s;
}
.agent-rec-item.asc { border-top: 3px solid var(--accent); }
.agent-rec-item.aae { border-top: 3px solid var(--purple); }
.agent-rec-item.recommended { box-shadow: 0 4px 20px rgba(16,185,129,0.12); }
.agent-rec-item.recommended.aae { box-shadow: 0 4px 20px rgba(139,92,246,0.12); }
.agent-rec-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 6px;
}
.agent-rec-label.asc { color: var(--accent); }
.agent-rec-label.aae { color: var(--purple); }
.agent-rec-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.agent-rec-item p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }
.agent-rec-price { font-size: 22px; font-weight: 900; }
.agent-rec-price.asc { color: var(--accent); }
.agent-rec-price.aae { color: var(--purple); }
.agent-rec-price small { font-size: 13px; font-weight: 400; color: var(--text-light); }
.agent-rec-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; margin-top: 8px;
}
.agent-rec-badge.asc { background: rgba(16,185,129,0.1); color: var(--accent); }
.agent-rec-badge.aae { background: rgba(139,92,246,0.1); color: var(--purple); }

/* COST VS HUMAN — Comparativa rápida por nicho */
.cost-vs-human {
  background: var(--bg); border-radius: 16px; padding: 28px; margin: 32px 0;
  border: 1.5px solid var(--border);
}
.cost-vs-human h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.cvh-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border); gap: 16px;
}
.cvh-row:last-child { border-bottom: none; }
.cvh-role { font-size: 14px; font-weight: 500; color: var(--text); }
.cvh-role small { display: block; font-size: 12px; color: var(--text-light); font-weight: 400; }
.cvh-cost { font-size: 15px; font-weight: 700; text-align: right; flex-shrink: 0; }
.cvh-cost.human { color: #ef4444; }
.cvh-cost.agent { color: var(--accent); }
.cvh-cost.agent-aae { color: var(--purple); }
.cvh-cost small { display: block; font-size: 11px; font-weight: 400; color: var(--text-light); }
.cvh-winner-row {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(99,102,241,0.04));
  border-radius: 10px; padding: 12px 16px; margin-top: 4px;
}

/* COMBO CTA BLOCK — "La opción obvia" */
.combo-cta-block {
  background: linear-gradient(135deg, #1e1b4b 0%, #2d1b69 60%, #1e293b 100%);
  border-radius: 20px; padding: 36px; margin: 40px 0; color: #fff; text-align: center;
}
.combo-cta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 6px; padding: 4px 14px; font-size: 12px; font-weight: 700;
  color: #fbbf24; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
}
.combo-cta-block h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.combo-cta-block p { font-size: 15px; color: #94a3b8; margin-bottom: 20px; line-height: 1.6; }
.combo-cta-price {
  font-size: 42px; font-weight: 900; color: #fff; line-height: 1;
  margin-bottom: 4px;
}
.combo-cta-price span { font-size: 18px; color: #fbbf24; margin-right: 4px; }
.combo-cta-price small { font-size: 14px; color: #64748b; font-weight: 400; }
.combo-cta-save { font-size: 13px; color: #fbbf24; margin-bottom: 20px; }
.btn-combo-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f59e0b; color: #0f172a; padding: 14px 28px;
  border-radius: 12px; font-size: 15px; font-weight: 800;
  text-decoration: none; transition: all 0.2s; margin-bottom: 10px;
}
.btn-combo-cta:hover { background: #d97706; transform: translateY(-2px); }
.btn-asc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 14px 28px;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.btn-asc-cta:hover { background: #059669; transform: translateY(-2px); }
.btn-aae-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: #fff; padding: 14px 28px;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.btn-aae-cta:hover { background: #7c3aed; transform: translateY(-2px); }
.cta-disclaimer { font-size: 12px; color: #475569; margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .agent-rec-banner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .info-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-hero h1 { font-size: 28px; }
}
@media (max-width: 600px) {
  .article-hero { padding: 120px 16px 60px; }
  .article-body { padding: 40px 16px 60px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}
