/* ============================================
   ECOSISTEMA DE IA 2026 — ESTILOS
   Fondo blanco, tipografía Syne + DM Sans
   ============================================ */

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

:root {
  --sidebar-w: 260px;
  --hero-h: 280px;
  --navy: #0f172a;
  --ink: #1e293b;
  --mid: #475569;
  --soft: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --blue: #0ea5e9;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --pink: #ec4899;
  --hero-from: #0f172a;
  --hero-to: #1e293b;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.6; overflow: hidden; }

/* ── GLOBAL PROGRESS ── */
#global-prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--line); z-index: 1000; }
#global-prog-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width .4s ease; }

/* ── MENU TOGGLE (mobile) ── */
#menu-toggle { display: none; position: fixed; top: 16px; left: 16px; z-index: 200; background: var(--navy); color: #fff; border: none; width: 40px; height: 40px; border-radius: 8px; font-size: 18px; cursor: pointer; }
#overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }

/* ── SIDEBAR ── */
#sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.sidebar-course-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); }
.sidebar-title-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; color: #fff; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; transition: background .15s; color: rgba(255,255,255,.7); font-size: 13px; border-left: 3px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(99,102,241,.25); color: #fff; border-left-color: var(--accent); }
.nav-item .nav-icon { font-size: 16px; flex-shrink: 0; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.prog-row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.prog-track { height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--pink)); border-radius: 2px; transition: width .4s; }

/* ── CONTENT WRAP ── */
#content-wrap { margin-left: var(--sidebar-w); height: 100vh; overflow-y: auto; scroll-behavior: smooth; }

/* ── PAGE ── */
.page { display: none; min-height: 100vh; flex-direction: column; }
.page.active { display: flex; }

/* ── HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: 40px 40px 32px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(99,102,241,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.hero-eyebrow span { color: var(--accent); }
.hero-badge { font-size: 40px; margin-bottom: 10px; }
.page-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; line-height: 1.15; margin-bottom: 12px; }
.page-subtitle { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.6; max-width: 560px; margin-bottom: 16px; }
.page-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 500; }

/* ── PAGE BODY ── */
.page-body { flex: 1; background: var(--bg); overflow-y: auto; }
.page-body-inner { max-width: 960px; margin: 0 auto; padding: 32px 32px 24px; }

/* ── PAGE FOOTER ── */
.page-foot { background: var(--bg); border-top: 1px solid var(--line); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.foot-btn { padding: 8px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--mid); font-size: 13px; cursor: pointer; transition: all .15s; font-family: inherit; }
.foot-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.foot-btn:disabled { opacity: .35; cursor: default; }
.foot-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.foot-btn.primary:hover { background: #4f46e5; }
.foot-pos { font-size: 12px; color: var(--soft); }

/* ── STAT GRID ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.stat-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--accent); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--soft); margin-top: 4px; }

/* ── SECTION TITLE ── */
.sec-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--dot-color, var(--accent)); flex-shrink: 0; }
.sec-sub { font-size: 13px; color: var(--soft); margin-top: -12px; margin-bottom: 16px; }

/* ── CARDS GRID ── */
.cards-grid { display: grid; gap: 16px; margin-bottom: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 20px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card::before { content: ''; display: block; height: 3px; background: var(--card-top, linear-gradient(90deg, var(--accent), var(--accent2))); margin: -20px -20px 16px; }
.card-icon { font-size: 24px; margin-bottom: 10px; }
.card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--mid); line-height: 1.55; }

/* ── CALLOUT ── */
.callout { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.callout-title { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.info-box { background: #eff6ff; border: 1px solid #bfdbfe; }
.info-box .callout-title { color: #1d4ed8; }
.info-box p, .info-box li { color: #1e40af; font-size: 13px; }
.success-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.success-box .callout-title { color: #15803d; }
.success-box p, .success-box li { color: #166534; font-size: 13px; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--line); margin: 24px 0; }

/* ── TABS ── */
.tab-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab-btn { padding: 9px 16px; border: none; background: none; cursor: pointer; font-size: 13px; font-family: inherit; color: var(--soft); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: color .15s; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FAQ ── */
.faq-wrap { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; gap: 12px; transition: background .15s; }
.faq-q:hover { background: var(--bg2); }
.faq-q-text { font-weight: 500; font-size: .9rem; color: var(--navy); }
.faq-chevron { color: var(--soft); font-size: 12px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-content { padding: 0 16px 16px; font-size: 13px; color: var(--mid); line-height: 1.65; border-top: 1px solid var(--line); margin-top: 0; padding-top: 14px; }

/* ── INFO GRID ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.info-panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info-panel-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 10px; }
.info-panel ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.info-panel ul li::before { content: '▸ '; color: var(--accent); }
.info-panel p, .info-panel li { font-size: 13px; color: var(--mid); }

/* ── ANALOGY BOX ── */
.analogy-box { background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #c7d2fe; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; }
.analogy-icon { font-size: 24px; flex-shrink: 0; }
.analogy-box strong { color: var(--accent); }
.analogy-box { font-size: 13.5px; color: var(--ink); line-height: 1.6; }

/* ── HIGHLIGHT BOX ── */
.highlight-box { background: #fefce8; border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; font-size: 13px; color: #92400e; }
.highlight-box strong { color: #78350f; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.timeline-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--line); }
.timeline-content { flex: 1; }
.timeline-title { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.timeline-content p { font-size: 13px; color: var(--mid); }

/* ── COMPARE TABLE ── */
.compare-table { overflow-x: auto; margin-bottom: 20px; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.compare-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--mid); }
.compare-table tr:hover td { background: var(--bg2); }

/* ── TEMPERATURE SLIDER ── */
.temp-slider-demo { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.temp-label { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 12px; }
.temp-slider-demo input[type=range] { width: 100%; accent-color: var(--accent); margin-bottom: 10px; }
.temp-desc { font-size: 13px; color: var(--mid); }

/* ── GLOSSARY ── */
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.glossary-item { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: all .2s; }
.glossary-item:hover { border-color: var(--accent); background: #eff6ff; }
.glossary-term { font-weight: 700; font-size: .85rem; color: var(--accent); margin-bottom: 6px; }
.glossary-def { font-size: 12.5px; color: var(--mid); line-height: 1.5; }
.glossary-analogy { font-size: 11.5px; color: var(--soft); margin-top: 6px; font-style: italic; }

/* ── LOOP DIAGRAM ── */
.loop-diagram { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.loop-step { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 120px; }
.loop-num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.loop-text { font-size: 12px; color: var(--ink); }
.loop-text strong { display: block; margin-bottom: 2px; }
.loop-arrow { color: var(--soft); font-size: 20px; flex-shrink: 0; }

/* ── INGREDIENTS GRID ── */
.ingredients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.ingredient-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.ingredient-icon { font-size: 28px; margin-bottom: 8px; }
.ingredient-name { font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
.ingredient-card p { font-size: 12px; color: var(--mid); }

/* ── LEVELS GRID ── */
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.level-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.level-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.level-1 .level-badge { background: #d1fae5; color: #065f46; }
.level-2 .level-badge { background: #dbeafe; color: #1e40af; }
.level-3 .level-badge { background: #ede9fe; color: #5b21b6; }
.level-title { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 8px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-tag { background: var(--bg3); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 11px; color: var(--mid); }

/* ── CODE SNIPPET ── */
.code-snippet { background: #0f172a; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.code-snippet pre { font-family: 'Courier New', monospace; font-size: 12px; color: #94a3b8; line-height: 1.6; white-space: pre; }

/* ── EXAMPLE CARDS ── */
.example-cards { display: flex; flex-direction: column; gap: 16px; }
.example-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.example-icon { font-size: 28px; margin-bottom: 8px; }
.example-title { font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: 6px; }
.example-desc { font-size: 13px; color: var(--mid); margin-bottom: 12px; }
.example-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.example-steps span { font-size: 12px; color: var(--accent); font-weight: 500; }
.example-tools { font-size: 11px; color: var(--soft); }

/* ── MCP CATEGORIES ── */
.mcp-categories { display: flex; flex-direction: column; gap: 16px; }
.mcp-cat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mcp-cat-header { background: var(--bg2); padding: 12px 16px; font-weight: 600; font-size: .9rem; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.mcp-tools-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.mcp-tool { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 12px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.mcp-tool-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ── SKILLS GRID ── */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.skill-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; border-left: 4px solid var(--green); }
.skill-name { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 4px; }
.skill-trigger { font-size: 11px; color: var(--soft); margin-bottom: 8px; }
.skill-desc { font-size: 12.5px; color: var(--mid); line-height: 1.5; }

/* ── MODELS MAP ── */
.models-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.model-bubble { background: var(--bg2); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-align: center; transition: all .2s; cursor: pointer; }
.model-bubble:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.model-flag { font-size: 20px; margin-bottom: 6px; }
.model-name { font-weight: 700; font-size: .8rem; color: var(--navy); }
.model-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; margin-top: 6px; display: inline-block; }
.badge-open { background: #d1fae5; color: #065f46; }
.badge-closed { background: #fce7f3; color: #9d174d; }

/* ── MODEL SELECTOR ── */
.model-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.model-btn { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); font-size: 12px; cursor: pointer; transition: all .15s; font-family: inherit; }
.model-btn:hover, .model-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.model-detail { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-height: 200px; }
.model-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.model-detail-icon { font-size: 40px; }
.model-detail-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--navy); }
.model-detail-by { font-size: 12px; color: var(--soft); }
.model-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.model-detail-section { }
.model-detail-section h4 { font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 8px; }
.model-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.model-tag { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.tag-pro { background: #d1fae5; color: #065f46; }
.tag-con { background: #fee2e2; color: #991b1b; }
.tag-use { background: #dbeafe; color: #1e40af; }
.tag-new { background: #fef3c7; color: #92400e; }
.model-price { display: inline-block; margin-top: 10px; padding: 4px 12px; background: var(--navy); color: #fff; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* ── NEWS GRID ── */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.news-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-left: 4px solid var(--accent); }
.news-card .news-tag { font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; color: var(--accent); margin-bottom: 6px; }
.news-card h4 { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.news-card p { font-size: 12.5px; color: var(--mid); line-height: 1.5; }

/* ── USE CASE GRID ── */
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.use-case-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.use-case-icon { font-size: 24px; margin-bottom: 8px; }
.use-case-task { font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 8px; }
.use-case-winner { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.winner-label { font-size: 10px; color: var(--soft); width: 40px; }
.winner-name { font-size: 12px; font-weight: 600; color: var(--accent); }

/* ── PROFILE CARDS ── */
.profile-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.profile-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.profile-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.profile-icon { font-size: 28px; }
.profile-name { font-weight: 700; font-size: .95rem; color: var(--navy); }
.profile-recs { display: flex; flex-direction: column; gap: 6px; }
.profile-rec { display: flex; align-items: flex-start; gap: 8px; }
.rec-model { font-weight: 600; font-size: .8rem; color: var(--accent); width: 80px; flex-shrink: 0; }
.rec-why { font-size: 12px; color: var(--mid); }

/* ── INDUSTRY SELECTOR ── */
.industry-selector { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 32px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.industry-btn { padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); font-size: 12px; cursor: pointer; transition: all .15s; font-family: inherit; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.industry-btn:hover { border-color: var(--accent); color: var(--accent); }
.industry-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.industry-content { flex: 1; overflow-y: auto; }
.industry-panel { display: none; max-width: 960px; margin: 0 auto; padding: 28px 32px; }
.industry-panel.active { display: block; }
.industry-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.industry-subtitle { font-size: 13px; color: var(--soft); margin-bottom: 24px; }
.task-sections { display: flex; flex-direction: column; gap: 20px; }
.task-section { }
.task-section-title { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tools-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tool-item { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; transition: all .2s; }
.tool-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tool-item-header { display: flex; align-items: center; gap: 8px; }
.tool-item-icon { font-size: 20px; }
.tool-item-name { font-weight: 700; font-size: .85rem; color: var(--navy); }
.tool-item-desc { font-size: 11.5px; color: var(--mid); line-height: 1.4; }
.tool-item-link { font-size: 11px; color: var(--accent); text-decoration: none; font-weight: 600; }
.tool-item-link:hover { text-decoration: underline; }
.tool-item-tag { font-size: 10px; padding: 2px 8px; border-radius: 20px; background: #eff6ff; color: #1d4ed8; display: inline-block; }
.tag-free { background: #d1fae5; color: #065f46; }
.tag-paid { background: #fef3c7; color: #92400e; }
.tag-freemium { background: #eff6ff; color: #1d4ed8; }

/* ── BAR CHART ── */
.bar-chart { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { width: 120px; font-size: 12px; color: var(--ink); text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 28px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 10px; font-size: 11px; font-weight: 600; color: #fff; transition: width 1s ease; }
.bar-val { width: 60px; font-size: 12px; color: var(--mid); }

/* ── TRENDS GRID ── */
.trends-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trend-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.trend-icon { font-size: 32px; margin-bottom: 10px; }
.trend-title { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 8px; }
.trend-desc { font-size: 12.5px; color: var(--mid); line-height: 1.55; }

/* ── COMING SOON ── */
.coming-soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.coming-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.coming-icon { font-size: 28px; margin-bottom: 8px; }
.coming-title { font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
.coming-card p { font-size: 12.5px; color: var(--mid); line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  #menu-toggle { display: flex; align-items: center; justify-content: center; }
  #sidebar { transform: translateX(-260px); width: 260px; transition: transform .3s; }
  #sidebar.open { transform: translateX(0); }
  #overlay.open { display: block; }
  #content-wrap { margin-left: 0; }
  .page-hero { padding: 48px 20px 28px; }
  .page-body-inner { padding: 20px 16px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .ingredients-grid { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: 1fr; }
  .models-map { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .tools-list { grid-template-columns: repeat(2, 1fr); }
  .trends-grid { grid-template-columns: repeat(2, 1fr); }
  .coming-soon-grid { grid-template-columns: repeat(2, 1fr); }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-cards { grid-template-columns: 1fr; }
  .model-detail-grid { grid-template-columns: 1fr; }
  .loop-diagram { flex-direction: column; }
  .loop-arrow { transform: rotate(90deg); }
  .page-foot { padding: 12px 16px; }
}
@media (max-width: 540px) {
  .cards-3 { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .tools-list { grid-template-columns: 1fr; }
  .trends-grid { grid-template-columns: 1fr; }
  .coming-soon-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .models-map { grid-template-columns: repeat(2, 1fr); }
}
