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

:root {
  --bg:      #0a0a0a;
  --surface: #111111;
  --card:    #161616;
  --border:  #2a2a2a;
  --orange:  #ff6600;
  --orange2: #ff9944;
  --white:   #f0f0f0;
  --muted:   #666;
  --text:    #aaa;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--white); min-height: 100vh; }

/* ── TOPBAR ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.back-btn {
  text-decoration: none; color: var(--muted); font-size: 0.82rem;
  transition: color 0.2s; letter-spacing: 0.04em;
}
.back-btn:hover { color: var(--orange); }
.topbar-tag { font-family: 'Oswald', sans-serif; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--orange); }

/* ── HERO ── */
.moto-hero {
  position: relative; overflow: hidden;
  padding: 80px 48px 60px;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0800 60%, #0d0d0d 100%);
  border-bottom: 1px solid var(--border);
}

.fire-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,102,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 800px; }

.project-num {
  font-family: 'Oswald', sans-serif; font-size: 6rem; font-weight: 700;
  color: rgba(255,102,0,0.08); line-height: 1;
  position: absolute; right: 0; top: -20px; pointer-events: none;
  user-select: none;
}

.moto-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}

.moto-title {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px; letter-spacing: 0.03em;
}
.moto-title span { color: var(--orange); }

.moto-subtitle {
  font-size: 0.95rem; color: var(--text); line-height: 1.7;
  max-width: 560px; margin-bottom: 32px;
}

/* ── LANG TABS ── */
.lang-tabs { display: flex; gap: 10px; }
.lang-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--muted); padding: 7px 18px; border-radius: 20px;
  font-size: 0.78rem; cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.lang-btn.active { background: rgba(255,102,0,0.15); border-color: var(--orange); color: var(--orange); }

/* ── LANG CONTENT ── */
.lang-content { transition: opacity 0.2s; }
.lang-content.hidden { display: none; }

/* ── MAIN ── */
main { max-width: 860px; margin: 0 auto; padding: 60px 48px; }

.section { margin-bottom: 56px; }

.section-label {
  font-family: 'Oswald', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.body-text { font-size: 0.92rem; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.body-text strong { color: var(--orange2); }

/* ── COMPARE ── */
.compare-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.compare-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
}
.compare-card.efi { border-color: rgba(255,102,0,0.3); }
.compare-icon { font-size: 1.8rem; margin-bottom: 10px; }
.compare-title {
  font-family: 'Oswald', sans-serif; font-size: 0.85rem; letter-spacing: 0.12em;
  color: var(--orange); margin-bottom: 14px; text-transform: uppercase;
}
.compare-card ul { list-style: none; }
.compare-card ul li {
  font-size: 0.82rem; color: var(--text); padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-left: 12px; position: relative;
}
.compare-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--orange); font-size: 0.7rem; }
.compare-card ul li:last-child { border-bottom: none; }
.compare-vs {
  font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700;
  color: var(--border); letter-spacing: 0.1em;
}

/* ── FÓRMULAS ── */
.formula-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formula-card {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 10px; padding: 16px;
}
.formula-card.wide { grid-column: 1 / -1; }
.formula-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.formula {
  font-family: 'Courier New', monospace; font-size: 0.82rem;
  color: var(--orange2); line-height: 1.7;
}

/* ── CONCLUSIONES ── */
.conclusion-list { display: flex; flex-direction: column; gap: 2px; }
.conclusion-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; border-bottom: 1px solid var(--border);
  transition: background 0.2s; border-radius: 8px;
}
.conclusion-item:hover { background: rgba(255,102,0,0.04); }
.c-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.c-text { font-size: 0.88rem; color: var(--text); line-height: 1.6; }

/* ── STACK ── */
.stack-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-pill {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 16px;
  font-size: 0.8rem; color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.stack-pill:hover { border-color: var(--orange); color: var(--orange); }

/* ── ARCHIVOS ── */
.files-row { display: flex; flex-direction: column; gap: 10px; }
.file-btn {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  text-decoration: none; color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.file-btn:hover { border-color: var(--orange); background: rgba(255,102,0,0.05); }
.file-icon { font-size: 1.8rem; }
.file-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.file-meta { font-size: 0.72rem; color: var(--muted); }

/* ── FOOTER ── */
.moto-footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 48px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}
.moto-footer-bar a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.moto-footer-bar a:hover { color: var(--orange); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .topbar, main, .moto-footer-bar { padding-left: 20px; padding-right: 20px; }
  .moto-hero { padding: 50px 20px 40px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-vs { text-align: center; }
  .formula-grid { grid-template-columns: 1fr; }
  .formula-card.wide { grid-column: 1; }
}
.file-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.file-tab {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); padding: 8px 18px; border-radius: 8px;
  font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.file-tab.active { border-color: var(--orange); color: var(--orange); background: rgba(255,102,0,0.08); }

.file-viewer iframe {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.file-viewer.hidden { display: none; }