/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-input: #0f3460;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --accent: #00d4ff;
  --accent-hover: #00b8e6;
  --danger: #e74c3c;
  --success: #2ecc71;
  --warning: #f39c12;
  --border: #2a2a3e;
  --shadow: rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== LIGHT MODE ===== */
body.light {
  --bg-primary: #f4f4f8;
  --bg-secondary: #ffffff;
  --bg-card: #eeeef4;
  --bg-input: #e0e0ea;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #7a7a8a;
  --accent: #0099cc;
  --accent-hover: #007aa3;
  --border: #d0d0de;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.header-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.header-author a { color: var(--accent); text-decoration: none; }
.header-author a:hover { text-decoration: underline; }

/* Theme toggle */
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0.6;
}

.theme-toggle:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ===== NAVIGATION ===== */
.tool-nav {
  display: flex;
  gap: 0;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tool-nav::-webkit-scrollbar { height: 4px; }
.tool-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  position: relative;
}

.nav-item:hover {
  color: var(--text-secondary);
  background: rgba(0, 212, 255, 0.03);
}

.nav-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

.nav-icon { font-size: 1.3rem; line-height: 1; }
.nav-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3px; }

/* ===== TOOL SECTIONS ===== */
.tool-section { display: none; }
.tool-section.active { display: block; }

.tool-intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tool-intro h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.tool-intro p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== LAYOUTS ===== */
.layout-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem;
}

.layout-centered > * { width: 100%; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.card-wide { margin-bottom: 1rem; }

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ===== INPUTS ===== */
.form-group { margin-bottom: 0.8rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

select {
  padding: 0.55rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* Slider */
.slider-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-input);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-secondary);
}

input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-secondary);
}

.slider-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 40px;
  text-align: right;
}

/* Buttons */
.btn-delete {
  width: 28px; height: 28px;
  border: none; background: transparent; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--transition);
}

.btn-delete:hover { background: rgba(231, 76, 60, 0.2); color: var(--danger); }

.btn-add {
  width: 100%; padding: 0.6rem;
  border: 2px dashed var(--border); background: transparent;
  color: var(--text-secondary); font-size: 0.85rem;
  cursor: pointer; border-radius: var(--radius);
  transition: all var(--transition);
  margin-top: 0.6rem;
}

.btn-add:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 212, 255, 0.05); }

/* ===== TOOL 0: RELOJ DE LA VIDA ===== */
.reloj-personas { display: flex; flex-direction: column; gap: 0.6rem; }

.reloj-persona-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem; background: var(--bg-card); border-radius: var(--radius);
}

.reloj-persona-item input[type="text"] { flex: 1; min-width: 0; padding: 0.4rem 0.6rem; font-size: 0.85rem; }
.reloj-persona-item input[type="number"] { width: 70px; flex-shrink: 0; padding: 0.4rem 0.6rem; font-size: 0.85rem; text-align: right; }
.reloj-persona-item select { flex-shrink: 0; padding: 0.35rem 0.4rem; font-size: 0.75rem; }
.reloj-persona-item .reloj-unit { color: var(--text-muted); font-size: 0.7rem; flex-shrink: 0; }

.reloj-result-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem; margin-bottom: 1rem; width: 100%;
}

.reloj-person-name {
  font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.8rem;
  text-align: center;
}

.reloj-bar-container { margin-bottom: 0.5rem; }

.reloj-bar {
  width: 100%; height: 32px; background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden; display: flex;
}

.reloj-bar-spent {
  height: 100%; background: var(--text-muted); opacity: 0.4;
  transition: width 0.5s ease;
}

.reloj-bar-left {
  height: 100%; background: var(--accent);
  transition: width 0.5s ease;
}

.reloj-bar-labels {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: var(--text-muted); margin-top: 0.3rem;
}

.reloj-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
  margin-top: 0.8rem;
}

.reloj-stat {
  text-align: center; padding: 0.6rem;
  background: var(--bg-card); border-radius: var(--radius);
}

.reloj-stat-val { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.reloj-stat-val.spent { color: var(--text-muted); }
.reloj-stat-val.left { color: var(--accent); }
.reloj-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; margin-top: 0.2rem; }

.reloj-message {
  margin-top: 0.8rem; text-align: center;
  font-size: 0.95rem; line-height: 1.5; color: var(--text-secondary);
  padding: 0.8rem; background: var(--bg-card); border-radius: var(--radius);
}

.reloj-message strong { color: var(--danger); }
.reloj-message .reloj-highlight { color: var(--accent); font-weight: 700; }

/* ===== TOOL 1: CONTADOR DE EXPERIENCIAS ===== */
.cont-experiences { display: flex; flex-direction: column; gap: 0.6rem; }

.cont-exp-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem; background: var(--bg-card); border-radius: var(--radius);
}

.cont-exp-item input[type="text"] { flex: 1; min-width: 0; padding: 0.4rem 0.6rem; font-size: 0.85rem; }
.cont-exp-item input[type="number"] { width: 70px; flex-shrink: 0; padding: 0.4rem 0.6rem; font-size: 0.85rem; text-align: right; }
.cont-exp-item .cont-unit { color: var(--text-muted); font-size: 0.7rem; flex-shrink: 0; }
.cont-exp-item .cont-emoji { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }

.cont-result-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem; margin-bottom: 1rem; width: 100%;
}

.cont-exp-title {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 0.5rem; text-align: center;
}

.cont-grid-container { margin-bottom: 0.8rem; }

.cont-dot-grid {
  display: flex; flex-wrap: wrap; gap: 3px; justify-content: center;
  padding: 0.5rem;
}

.cont-dot {
  width: 10px; height: 10px; border-radius: 2px;
  transition: all 0.2s ease;
}

.cont-dot.spent { background: var(--text-muted); opacity: 0.3; }
.cont-dot.remaining { background: var(--accent); }

.cont-summary-row {
  display: flex; justify-content: center; gap: 2rem;
  margin-top: 0.5rem; font-size: 0.8rem;
}

.cont-summary-item { display: flex; align-items: center; gap: 0.3rem; }
.cont-summary-color { width: 10px; height: 10px; border-radius: 2px; }
.cont-summary-color.spent { background: var(--text-muted); opacity: 0.3; }
.cont-summary-color.remaining { background: var(--accent); }
.cont-summary-text { color: var(--text-secondary); }
.cont-summary-num { font-weight: 700; color: var(--text-primary); }

.cont-impact {
  text-align: center; font-size: 1.05rem; line-height: 1.5;
  color: var(--text-secondary); padding: 0.8rem;
  background: var(--bg-card); border-radius: var(--radius);
  margin-top: 0.5rem;
}

.cont-impact strong { color: var(--accent); }
.cont-impact .cont-danger { color: var(--danger); font-weight: 700; }

/* ===== TOOL 2: IMPUESTO DE LAS REDES ===== */
.redes-totals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.redes-total-box {
  text-align: center; padding: 0.8rem;
  background: var(--bg-card); border-radius: var(--radius);
}

.redes-total-val { font-size: 1.3rem; font-weight: 700; color: var(--danger); }
.redes-total-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-top: 0.2rem; }

.redes-skills {
  margin-bottom: 1.5rem;
}

.redes-skills-title {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.8rem;
}

.redes-skill-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem; background: var(--bg-card); border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.redes-skill-icon { font-size: 1.5rem; flex-shrink: 0; }

.redes-skill-info { flex: 1; }
.redes-skill-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.redes-skill-hours { font-size: 0.75rem; color: var(--text-muted); }

.redes-skill-bar-bg {
  width: 100%; height: 6px; background: var(--bg-input);
  border-radius: 3px; overflow: hidden; margin-top: 0.3rem;
}

.redes-skill-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--danger), var(--warning));
  transition: width 0.5s ease;
}

.redes-skill-count {
  font-size: 1.1rem; font-weight: 700; color: var(--success);
  min-width: 40px; text-align: right;
}

.redes-verdict {
  text-align: center; padding: 1rem; font-size: 1rem; line-height: 1.6;
  background: var(--bg-card); border-radius: var(--radius);
}

.redes-verdict strong { color: var(--danger); }
.redes-verdict .redes-highlight { color: var(--success); font-weight: 700; }

/* ===== TOOL 3: VIDA ÚTIL REAL ===== */
.ener-battery-container {
  margin-bottom: 1.5rem; text-align: center;
}

.ener-battery {
  width: 100%; max-width: 400px; height: 60px;
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; display: flex; margin: 0 auto;
  border: 2px solid var(--border); position: relative;
}

.ener-battery-tip {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 24px; background: var(--border); border-radius: 0 3px 3px 0;
}

.ener-battery-seg {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; overflow: hidden; white-space: nowrap;
  transition: width 0.5s ease;
}

.ener-battery-spent { background: var(--text-muted); opacity: 0.3; color: transparent; }
.ener-battery-remaining { color: #fff; }

.ener-battery-labels {
  display: flex; justify-content: space-between;
  max-width: 400px; margin: 0.3rem auto 0;
  font-size: 0.7rem; color: var(--text-muted);
}

.ener-battery-pct {
  font-size: 2.5rem; font-weight: 700; margin-top: 0.8rem; line-height: 1;
}

.ener-battery-pct-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.2rem; }

.ener-phases { margin-bottom: 1.5rem; }

.ener-phase-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem; background: var(--bg-card); border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.ener-phase-icon { font-size: 1.5rem; flex-shrink: 0; }

.ener-phase-info { flex: 1; }
.ener-phase-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.ener-phase-range { font-size: 0.7rem; color: var(--text-muted); }

.ener-phase-bar-bg {
  width: 100%; height: 8px; background: var(--bg-input);
  border-radius: 4px; overflow: hidden; margin-top: 0.3rem;
}

.ener-phase-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.5s ease;
}

.ener-phase-pct {
  font-size: 1.1rem; font-weight: 700; min-width: 55px; text-align: right;
}

.ener-verdict {
  text-align: center; padding: 1rem; font-size: 1rem; line-height: 1.6;
  background: var(--bg-card); border-radius: var(--radius);
}

.ener-verdict strong { color: var(--warning); }
.ener-verdict .ener-highlight { color: var(--accent); font-weight: 700; }

/* ===== TOOL 4: PRODUCTIVIDAD REAL ===== */
.prod-distractions { display: flex; flex-direction: column; gap: 0.8rem; }

.prod-distraction-item {
  padding: 0.6rem; background: var(--bg-card); border-radius: var(--radius);
}

.prod-dist-header {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem;
}

.prod-dist-icon { font-size: 1.1rem; }
.prod-dist-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

.prod-chart-container {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
}

.prod-chart-container canvas { display: block; }

.prod-legend { margin-bottom: 1.5rem; }

.prod-legend-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem;
}

.prod-legend-item:last-child { border-bottom: none; }
.prod-legend-color { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.prod-legend-label { flex: 1; color: var(--text-secondary); }
.prod-legend-time { font-weight: 600; color: var(--text-primary); min-width: 70px; text-align: right; }
.prod-legend-pct { font-weight: 600; color: var(--accent); min-width: 40px; text-align: right; }

.prod-verdict {
  text-align: center; padding: 1rem; font-size: 1rem; line-height: 1.6;
  background: var(--bg-card); border-radius: var(--radius);
}

/* ===== TOOL 5: RELOJ DE ARENA DEL SUEÑO ===== */
.sueno-tasks { display: flex; flex-direction: column; gap: 0.6rem; }

.sueno-task-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem; background: var(--bg-card); border-radius: var(--radius);
}

.sueno-task-icon { font-size: 1.1rem; flex-shrink: 0; }
.sueno-task-name { font-size: 0.8rem; color: var(--text-primary); font-weight: 600; min-width: 140px; flex-shrink: 0; }

.sueno-chart-container {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
}

.sueno-chart-container canvas { display: block; }

.sueno-lifetime { margin-bottom: 1.5rem; }

.sueno-lifetime-title {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.8rem;
  text-align: center;
}

.sueno-lifetime-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}

.sueno-lifetime-box {
  text-align: center; padding: 0.8rem;
  background: var(--bg-card); border-radius: var(--radius);
}

.sueno-lifetime-val { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.sueno-lifetime-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-top: 0.3rem; }

.sueno-verdict {
  text-align: center; padding: 1rem; font-size: 1rem; line-height: 1.6;
  background: var(--bg-card); border-radius: var(--radius);
}

/* ===== TOOL 6: INTERÉS COMPUESTO TEMPORAL ===== */
.hab-list { display: flex; flex-direction: column; gap: 0.6rem; }

.hab-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem; background: var(--bg-card); border-radius: var(--radius);
}

.hab-emoji { font-size: 1.2rem; flex-shrink: 0; }
.hab-item select { flex: 1; min-width: 0; padding: 0.4rem 0.5rem; font-size: 0.85rem; }
.hab-item input[type="number"] { width: 65px; flex-shrink: 0; padding: 0.4rem 0.5rem; font-size: 0.85rem; text-align: right; }
.hab-unit { color: var(--text-muted); font-size: 0.7rem; flex-shrink: 0; }

.hab-milestones {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.hab-milestone {
  text-align: center; padding: 0.7rem 0.3rem;
  background: var(--bg-card); border-radius: var(--radius);
}

.hab-milestone-years { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }
.hab-milestone-val { font-size: 1.2rem; font-weight: 700; color: var(--success); line-height: 1.2; margin: 0.2rem 0; }
.hab-milestone-unit { font-size: 0.6rem; color: var(--text-muted); }

.hab-chart-container {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 0.5rem; margin-bottom: 1rem;
}

.hab-chart-container canvas { width: 100%; height: auto; display: block; }

.hab-equivs { margin-bottom: 1rem; }

.hab-equivs-title {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem;
}

.hab-equiv-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem;
}

.hab-equiv-row:last-child { border-bottom: none; }
.hab-equiv-name { color: var(--text-secondary); flex: 1; }
.hab-equiv-val { font-weight: 700; color: var(--warning); min-width: 60px; text-align: right; }
.hab-equiv-val.achieved { color: var(--success); }

.hab-impact {
  text-align: center; padding: 1rem; font-size: 1rem; line-height: 1.6;
  background: var(--bg-card); border-radius: var(--radius);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center; padding: 2rem 1rem;
  color: var(--text-muted); font-size: 0.8rem;
  border-top: 1px solid var(--border); margin-top: 2rem;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-more { margin-top: 0.5rem; font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header h1 { font-size: 1.4rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header { padding: 1rem 0.8rem 0.8rem; }
  .header h1 { font-size: 1.2rem; }

  .layout-centered { padding: 0.8rem; gap: 1rem; }
  .card { padding: 1rem; }

  .nav-item { padding: 0.6rem 0.8rem; }
  .nav-label { font-size: 0.6rem; }
  .nav-icon { font-size: 1.1rem; }

  .reloj-persona-item { flex-wrap: wrap; }
  .reloj-stats { grid-template-columns: 1fr; }

  .cont-exp-item { flex-wrap: wrap; }
  .cont-dot { width: 8px; height: 8px; }

  .redes-totals { grid-template-columns: 1fr; }
  .redes-skill-item { flex-wrap: wrap; }

  .ener-battery { height: 45px; }
  .ener-battery-pct { font-size: 2rem; }
  .ener-phase-item { flex-wrap: wrap; }

  .sueno-task-item { flex-wrap: wrap; }
  .sueno-task-name { min-width: 100%; }
  .sueno-lifetime-grid { grid-template-columns: 1fr; }

  .hab-item { flex-wrap: wrap; }
  .hab-milestones { grid-template-columns: repeat(2, 1fr); }
}
