@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

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

:root {
  --bg:          #0d0f14;
  --bg2:         #13161e;
  --bg3:         #1a1d27;
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.13);
  --accent:      #7c6af7;
  --accent2:     #a78bfa;
  --accent-glow: rgba(124,106,247,0.16);
  --text:        #e8e6f0;
  --text2:       #9896a8;
  --text3:       #5f5d70;
  --mono:        'DM Mono', monospace;
  --serif:       'DM Serif Display', serif;
  --sans:        'Figtree', sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── FONDO ── */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(124,106,247,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,106,247,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-glow {
  position: fixed; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(124,106,247,0.07) 0%, transparent 68%);
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 0 1.5rem; height: 52px;
  background: rgba(13,15,20,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-symbol { font-family: var(--serif); font-size: 24px; color: var(--accent2); line-height: 1; }
.logo-text   { font-family: var(--serif); font-size: 18px; color: var(--text); }
header nav a {
  font-size: 13px; color: var(--text3); text-decoration: none;
  padding: 5px 10px; border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}
header nav a:hover  { color: var(--text2); background: var(--bg3); }
header nav a.active { color: var(--accent2); }

/* ── LAYOUT ── */
.layout { display: flex; margin-top: 52px; position: relative; z-index: 10; }

/* ── SIDEBAR ── */
.sidebar {
  width: 240px; 
  /* Cambia min-height por height */
  height: calc(100vh - 52px); 
  background: var(--bg2); 
  border-right: 1px solid var(--border);
  /* Aumenta un poco el padding inferior para que el último enlace no quede pegado */
  padding: 20px 0 40px 0; 
  position: fixed; 
  top: 52px; 
  overflow-y: auto;
}
.sidebar-label {
  font-size: 10px; font-weight: 600; color: var(--text3);
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 14px 16px 6px;
}
.sidebar a {
  display: block; padding: 8px 16px;
  color: var(--text2); text-decoration: none; font-size: 13px;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}
.sidebar a:hover  { color: var(--text); background: var(--bg3); }
.sidebar a.active {
  color: var(--accent2); background: var(--accent-glow);
  border-left-color: var(--accent); font-weight: 500;
}
.sidebar hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

/* ── CONTENIDO ── */
.content {
  margin-left: 240px; padding: 40px 52px;
  width: calc(100% - 240px);
  min-height: calc(100vh - 52px);
}
.content h1 {
  font-family: var(--serif); font-size: 36px; font-style: italic;
  color: var(--text); margin-bottom: 12px; line-height: 1.2;
}
.content h2 {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 32px 0 10px; letter-spacing: -0.01em;
}
.content p { font-size: 14px; line-height: 1.8; margin-bottom: 16px; color: var(--text2);text-align: justify; }
.content strong { color: var(--text); }
.content em { color: var(--accent2); font-style: italic; }

/* ── CAJA EJEMPLO ── */
.example-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 20px 0;
}
.example-box .label {
  font-size: 10px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.example-box pre {
  font-family: var(--mono); font-size: 13px; color: var(--accent2);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 14px; border-radius: var(--radius-sm);
  overflow-x: auto; line-height: 1.7; white-space: pre-wrap;
}

/* ── CAJA NOTA ── */
.note-box-intro { margin-bottom: 2rem; }
.note-label {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}
.note-box {
  background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.18);
  border-left: 3px solid #fbbf24;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px; margin: 20px 0;
  font-size: 13px; color: var(--text2); line-height: 1.7;
}

/* ── HR DE SECCIÓN ── */
hr.section-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── GENERADOR ── */
.gen-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin: 40px 0;
}
.gen-box h2 {
  font-family: var(--serif); font-size: 20px; font-style: italic;
  color: var(--text); margin-bottom: 6px;
}
.gen-box > p { font-size: 13px; color: var(--text3); margin-bottom: 0; }
.gen-controls { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.gen-controls select {
  flex: 1; min-width: 150px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-family: var(--sans); font-size: 13px; color: var(--text2); cursor: pointer;
}
.gen-controls select:focus    { outline: none; border-color: var(--accent); }
.gen-controls select:disabled { opacity: 0.7; cursor: not-allowed; }
.gen-controls button {
  background: var(--accent); border: none; border-radius: var(--radius-sm);
  padding: 9px 22px; font-family: var(--sans); font-size: 13px;
  font-weight: 600; color: white; cursor: pointer;
  box-shadow: 0 0 20px rgba(124,106,247,0.25);
  transition: opacity 0.18s;
}
.gen-controls button:hover    { opacity: 0.88; }
.gen-controls button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── EJERCICIO ── */
.ex-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 1.25rem; }
.ex-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.badge-topic { background: var(--accent-glow); color: var(--accent2); border: 1px solid rgba(124,106,247,0.28); }
.badge-diff  { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.new-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 14px;
  font-family: var(--sans); font-size: 12px; color: var(--text3);
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.new-btn:hover { border-color: var(--border-md); color: var(--text2); }
.ex-question {
  font-family: var(--serif); font-size: 20px; line-height: 1.55;
  color: var(--text); margin-bottom: 1.4rem; font-style: italic;
}
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ── SOLUCIÓN ── */
.sol-toggle {
  display: flex; align-items: center; gap: 8px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 18px; font-family: var(--sans); font-size: 13px;
  color: var(--text2); cursor: pointer; transition: all 0.18s;
}
.sol-toggle:hover { border-color: var(--accent); color: var(--accent2); }
.sol-toggle.open  { border-color: var(--accent); color: var(--accent2); background: var(--accent-glow); }
.sol-arrow { transition: transform 0.2s; display: inline-block; }
.sol-toggle.open .sol-arrow { transform: rotate(180deg); }

.solution-box { margin-top: 1.25rem; display: none; flex-direction: column; animation: fadeIn 0.25s ease; }
.solution-box.open { display: flex; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 26px; height: 26px; min-width: 26px; background: var(--accent); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500; margin-top: 2px;
}
.step-body { flex: 1; }
.step-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-text  { font-size: 13px; color: var(--text2); line-height: 1.65; }
.step-formula {
  display: block; margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--accent2);
  background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 14px; white-space: pre-wrap; word-break: break-word;
}
.answer-box {
  margin-top: 1.25rem; background: var(--accent-glow);
  border: 1px solid rgba(124,106,247,0.28); border-radius: var(--radius-sm);
  padding: 12px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.answer-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; color: var(--accent); text-transform: uppercase; white-space: nowrap; }
.answer-value { font-family: var(--mono); font-size: 15px; color: var(--accent2); font-weight: 500; }

/* ── WIDGET GENERADOR — pie ── */
.gen-widget-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: right;
}
.gen-widget-link {
  font-size: 13px;
  color: var(--accent2);
  text-decoration: none;
  font-weight: 500;
}

/* ── BOTONES NAV ── */
.nav-btns {
  display: flex; justify-content: space-between;
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.btn {
  display: inline-block; padding: 10px 22px;
  background: var(--accent); color: white; text-decoration: none;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  transition: opacity 0.18s;
}
.btn:hover { opacity: 0.85; }
.btn.outline {
  background: transparent; color: var(--accent2);
  border: 1px solid var(--accent);
}
.btn.outline:hover { background: var(--accent-glow); }

/* ── ACERCA DE ── */
.main-about {
  position: relative; z-index: 10;
  max-width: 720px; margin: 0 auto;
  padding: 80px 1.5rem 5rem;
}
.hero-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent2); background: var(--accent-glow);
  border: 1px solid rgba(124,106,247,0.28);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--serif); font-size: 44px; font-style: italic;
  color: var(--text); line-height: 1.2; margin-bottom: 16px;
}
.hero-sub { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 48px; max-width: 560px; }
.story { display: flex; flex-direction: column; gap: 40px; }
.story-block { display: flex; gap: 24px; align-items: flex-start; }
.story-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--accent-glow); border: 1px solid rgba(124,106,247,0.28);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; color: var(--accent2); margin-top: 2px;
}
.story-body h3 { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.story-body p  { font-size: 14px; color: var(--text2); line-height: 1.85; }
.story-body p { margin-bottom: 16px; }
.story-body p + p { margin-top: 10px; }
.story-divider { display: flex; align-items: center; gap: 12px; }
.story-divider::before, .story-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.story-divider span { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.value-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.value-card .v-icon { font-size: 20px; margin-bottom: 8px; }
.value-card h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.value-card p  { font-size: 12px; color: var(--text3); line-height: 1.6; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.team-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.team-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-glow); border: 2px solid rgba(124,106,247,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; color: var(--accent2);
  margin: 0 auto 10px;
}
.team-card h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.team-card p  { font-size: 11px; color: var(--text3); }
.cta-box { background: var(--accent-glow); border: 1px solid rgba(124,106,247,0.28); border-radius: var(--radius); padding: 32px; text-align: center; margin-top: 8px; }
.cta-box h3 { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--text); margin-bottom: 10px; }
.cta-box p  { font-size: 14px; color: var(--text2); margin-bottom: 20px; line-height: 1.7; }
.cta-btn {
  display: inline-block; background: var(--accent); color: white;
  padding: 11px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; text-decoration: none;
  box-shadow: 0 0 24px rgba(124,106,247,0.3); transition: opacity 0.18s;
}
.cta-btn:hover { opacity: 0.88; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 10; text-align: center;
  padding: 1.5rem; font-size: 11px; color: var(--text3);
  border-top: 1px solid var(--border); letter-spacing: 0.05em;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 24px 16px; width: 100%; }
  .hero-title { font-size: 32px; }
  .story-block { flex-direction: column; gap: 12px; }
}
@media (max-width: 580px) {
  .nav-btns { flex-direction: column; gap: 10px; }
}

/* ── MODO CLARO ── */
body.light-mode {
  --bg:          #ffffff;
  --bg2:         #f4f4f8;
  --bg3:         #eaeaf0;
  --border:      rgba(0,0,0,0.08);
  --border-md:   rgba(0,0,0,0.15);
  --text:        #1a1a2e;
  --text2:       #4a4a6a;
  --text3:       #8888aa;
  --accent-glow: rgba(124,106,247,0.08);
}
body.light-mode .bg-grid {
  background-image:
    linear-gradient(rgba(124,106,247,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,106,247,0.05) 1px, transparent 1px);
}
body.light-mode header {
  background: rgba(255,255,255,0.9);
}
body.light-mode .bg-glow { opacity: 0.4; }

#theme-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 3px 5px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  transition: background 0.2s, border-color 0.2s;
  margin-left: auto;
}

#theme-btn .material-symbols-rounded {
  font-size: 18px;
}

#theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

body.light-mode #theme-btn {
  color: #111111;
  border-color: rgba(0, 0, 0, 0.3);
}

body.light-mode #theme-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.6);
}

/* ── GENERADOR STANDALONE ── */
.config-panel {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.config-title {
  font-size: 10.5px; font-weight: 600; color: var(--text3);
  letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 9px;
}
.config-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.topic-btn {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-family: var(--sans); font-size: 13px; color: var(--text2);
  cursor: pointer; text-align: left; transition: all 0.18s;
  display: flex; align-items: center; gap: 8px;
}
.topic-btn:hover { border-color: var(--border-md); color: var(--text); background: rgba(124,106,247,0.05); }
.topic-btn.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent2); font-weight: 500; }
.topic-icon { font-family: var(--mono); font-size: 11px; color: var(--accent); min-width: 24px; text-align: center; }

.diff-group { display: flex; gap: 6px; flex-wrap: wrap; }
.diff-btn {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 16px; font-family: var(--sans); font-size: 13px; color: var(--text2); cursor: pointer; transition: all 0.18s;
}
.diff-btn:hover { border-color: var(--border-md); color: var(--text); }
.diff-btn.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent2); font-weight: 500; }

.gen-btn {
  background: var(--accent); border: none; border-radius: var(--radius-sm);
  padding: 12px 28px; font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: white; cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: opacity 0.18s, transform 0.1s;
  box-shadow: 0 0 28px rgba(124,106,247,0.28);
}
.gen-btn:hover { opacity: 0.88; }
.gen-btn:active { transform: scale(0.98); }

.exercise-section {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; min-height: 200px;
}
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 160px; color: var(--text3); }
.empty-icon { font-family: var(--serif); font-size: 60px; color: var(--border-md); line-height: 1; }
.empty-state p { font-size: 14px; }

@media (max-width: 580px) {
  .config-row { grid-template-columns: 1fr; }
}

/* ── CARDS ── */
.cards-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }
.info-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.info-card-icon { font-size: 22px; margin-bottom: 10px; }
.info-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.info-card p  { font-size: 13px; color: var(--text3); line-height: 1.6; margin: 0; }

/* ── TABLA ── */
.math-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.math-table caption { font-size: 11px; font-weight: 600; color: var(--text3); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 8px; text-align: left; }
.math-table th { background: var(--bg3); color: var(--text2); font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-md); }
.math-table td { padding: 9px 14px; font-family: var(--mono); color: var(--accent2); border-bottom: 1px solid var(--border); }
.math-table tr:last-child td { border-bottom: none; }

/* ── ACCORDION ── */
.accordion { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.accordion-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: transparent; border: none;
  color: var(--text2); font-family: var(--sans); font-size: 13px;
  cursor: pointer; text-align: left; transition: background 0.15s, color 0.15s;
}
.accordion-btn:hover { background: var(--bg3); color: var(--text); }
.accordion-btn.open  { color: var(--accent2); }
.accordion-arrow { transition: transform 0.2s; font-size: 11px; }
.accordion-btn.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 16px 16px; }
.accordion-body.open { display: block; }
.accordion-body p { font-size: 13px; color: var(--text3); margin-top: 10px; margin-bottom: 0; }

/* ── HERRAMIENTAS INTERACTIVAS ── */
.tool-controls { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.input-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.input-group label { font-size: 13px; color: var(--text2); white-space: nowrap; }
.input-group input[type="text"] {
  flex: 1; min-width: 200px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-family: var(--mono); font-size: 13px; color: var(--accent2);
}
.input-group input[type="text"]:focus { outline: none; border-color: var(--accent); }
.btn-tool {
  background: var(--accent); border: none; border-radius: var(--radius-sm);
  padding: 9px 22px; font-family: var(--sans); font-size: 13px;
  font-weight: 600; color: white; cursor: pointer;
  box-shadow: 0 0 20px rgba(124,106,247,0.25); transition: opacity 0.18s;
}
.btn-tool:hover { opacity: 0.88; }
.legend { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text3); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-blue   { background: #7c6af7; }
.dot-orange { background: #f97316; }
.slider-group { display: flex; align-items: center; gap: 10px; }
.slider-group label { font-size: 13px; color: var(--text2); white-space: nowrap; }
.slider-group input[type="range"] { flex: 1; accent-color: var(--accent); }
.stat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; }
.chip-label { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-bottom: 4px; }
.chip-val   { font-family: var(--mono); font-size: 13px; color: var(--accent2); }
canvas { display: block; width: 100%; margin-top: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg3); }
.error-msg { font-size: 12px; color: #f87171; margin-top: 8px; }

/* ── CALCULADORA ── */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.calc-input-area { display: flex; flex-direction: column; gap: 8px; }
.calc-input-area label { font-size: 13px; color: var(--text2); }
.calc-input-area input {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-family: var(--mono); font-size: 13px; color: var(--accent2);
}
.calc-input-area input:focus { outline: none; border-color: var(--accent); }
.calc-results { display: flex; flex-direction: column; gap: 10px; }
.calc-result-item { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.calc-result-label { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-bottom: 6px; }
.calc-result-val   { font-family: var(--mono); font-size: 14px; color: var(--accent2); }
.supported-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 12px; color: var(--text3); margin-top: 12px; }

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
}
