/* ═══════════════════════════════════════════════════
   SO · Unidad 2 — Gestión de almacenamiento
   main.css — Estilos base, nav, layout, componentes
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg: #f5f4f0;
  --surface: #fff;
  --surface2: #eeecea;
  --border: #d8d5cf;
  --text: #1a1917;
  --text2: #6b6760;
  --text3: #9b9890;
  --accent: #2a52e8;
  --accent-bg: #eef1fd;
  --green: #1a7a4a;
  --green-bg: #e8f5ee;
  --amber: #a05a00;
  --amber-bg: #fdf3e3;
  --red: #b83030;
  --red-bg: #fdeaea;
  --r: 10px;
  --rl: 16px;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: 52px; /* footer height */
}

/* ── FOOTER ── */
#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

.footer-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  letter-spacing: .02em;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: #0a66c2;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.footer-linkedin:hover {
  background: #e8f0fb;
  border-color: #0a66c2;
}
.footer-linkedin svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0;
}

.nav-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .02em;
  margin-right: 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-brand .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  height: 100%;
  flex: 1;
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  cursor: pointer;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Botón login en nav */
.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-login-btn:hover { border-color: var(--accent); color: var(--accent); }

.nav-login-btn.logged-in {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green);
}

.nav-toggle { display: none; }

/* ── LAYOUT ── */
main { max-width: 1400px; margin: 0 auto; padding: 2.5rem 2rem; }

.page { display: none; }
.page.active { display: block; }

.page-header { margin-bottom: 2.5rem; }
.page-header .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.page-header h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.page-header p { color: var(--text2); margin-top: .5rem; max-width: 600px; }

/* ── CARDS & GRIDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.5rem;
}
.card + .card { margin-top: 1rem; }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ── PILLS ── */
.pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 20px; gap: 4px; }
.pill-blue  { background: var(--accent-bg); color: var(--accent); }
.pill-green { background: var(--green-bg);  color: var(--green); }
.pill-amber { background: var(--amber-bg);  color: var(--amber); }
.pill-red   { background: var(--red-bg);    color: var(--red); }
.pill-gray  { background: var(--surface2);  color: var(--text2); }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text3);
  text-transform: uppercase;
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--border);
}
td { padding: .7rem .8rem; border-bottom: 1px solid var(--surface2); color: var(--text); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: .75rem;
  margin-top: 2rem;
}

/* ── DISK COLORS ── */
.cell-boot       { background: #4a72f8; color: #fff; }
.cell-primary    { background: #5b8dd9; color: #fff; }
.cell-extended   { background: #2d6a4f; color: #fff; }
.cell-logical    { background: #52b788; color: #fff; }
.cell-data       { background: #1a7a4a; color: #fff; }
.cell-efi        { background: #4a72f8; color: #fff; }
.cell-msr        { background: #7a4ab8; color: #fff; }
.cell-gpt-backup { background: #d4720a; color: #fff; }
.cell-unassigned {
  background: var(--surface2);
  color: var(--text3);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 4px,
    rgba(0,0,0,.04) 4px, rgba(0,0,0,.04) 8px
  );
}

/* ── DISK BAR (particiones page) ── */
.disk-visual {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.disk-hdr {
  background: var(--surface2);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.disk-bar { display: flex; height: 88px; width: 100%; }
.seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  border-right: 2px solid #fff;
  cursor: pointer;
  transition: filter .15s;
  overflow: hidden;
  min-width: 0;
  flex-shrink: 1;
  flex-grow: 0;
}
.seg:last-child { border-right: none; }
.seg:hover { filter: brightness(.92); }
.seg .seg-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg .seg-size { font-family: var(--mono); font-size: 10px; opacity: .8; white-space: nowrap; }
.seg .seg-type { font-size: 9px; opacity: .7; margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.seg.narrow { padding: 0; align-items: center; justify-content: center; flex-shrink: 0; }
.seg.narrow .seg-num { font-family: var(--mono); font-size: 15px; font-weight: 600; color: #fff; line-height: 1; }
.seg.narrow .seg-name,
.seg.narrow .seg-size,
.seg.narrow .seg-type { display: none; }

/* ── DETAIL BOX ── */
.detail-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  min-height: 80px;
  font-size: 13px;
}
.detail-box strong { display: block; font-size: 14px; margin-bottom: 4px; }
.detail-box .meta { color: var(--text3); font-family: var(--mono); font-size: 11px; margin-bottom: 6px; }

/* ── LEGEND ── */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* ── SCHEME TABS ── */
.scheme-tabs { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.tab-btn {
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text2);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.scheme-panel { display: none; }
.scheme-panel.active { display: block; }

/* ── TIPO CARDS ── */
.tipo-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.tipo-card { border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; background: var(--surface); }
.tipo-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tipo-card ul { list-style: none; font-size: 13px; color: var(--text2); display: flex; flex-direction: column; gap: 4px; }
.tipo-card ul li::before { content: "·  "; color: var(--text3); }

/* ── COMPARE ROW ── */
.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── FS PAGE ── */
.fs-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.fs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.fs-card:hover, .fs-card.selected { transform: translateY(-2px); }
.fs-card.selected { border-width: 2px; }
.fs-card .fs-name { font-family: var(--mono); font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.fs-card .fs-year { font-size: 11px; color: var(--text3); margin-bottom: 8px; }

.fat32-c { border-color: #5b8dd9; }
.fat32-c .fs-name { color: #2a52e8; }
.fat32-c.selected { border-color: #2a52e8; }
.ntfs-c { border-color: #1a7a4a; }
.ntfs-c .fs-name { color: #1a7a4a; }
.ntfs-c.selected { border-color: #1a7a4a; }
.exfat-c { border-color: #a05a00; }
.exfat-c .fs-name { color: #a05a00; }
.exfat-c.selected { border-color: #a05a00; }
.fat-c { border-color: #b83030; }
.fat-c .fs-name { color: #b83030; }
.fat-c.selected { border-color: #b83030; }

.compare-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; margin-bottom: 2rem; }
.compare-table table { margin: 0; }
.compare-table th { background: var(--surface2); padding: 10px 14px; }
.compare-table th.fs-th { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.compare-table td { padding: 10px 14px; font-size: 13px; }
.compare-table tr:hover td { background: var(--bg); }

.sem-wrap { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.sem { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.sem-green { background: var(--green-bg); color: var(--green); }
.sem-amber { background: var(--amber-bg); color: var(--amber); }
.sem-red   { background: var(--red-bg);   color: var(--red); }

.fs-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.5rem; margin-bottom: 2rem; }
.fs-detail h3 { font-size: 18px; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.fs-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fs-stat { background: var(--bg); border-radius: var(--r); padding: .75rem 1rem; }
.fs-stat .label { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.fs-stat .value { font-size: 20px; font-weight: 600; margin-top: 2px; }
.use-list { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text2); margin-top: 1rem; }
.use-list .ok::before { content: "✓  "; color: var(--green); }
.use-list .no::before { content: "✗  "; color: var(--red); }

/* ── USUARIOS PAGE ── */
.user-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.user-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.user-card-header { padding: 1.25rem 1.25rem .75rem; display: flex; align-items: flex-start; gap: 12px; }
.user-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 16px; font-weight: 500; flex-shrink: 0; }
.user-card-header h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.user-card-header p { font-size: 12px; color: var(--text2); }
.user-disk { margin: 0 1.25rem 1.25rem; }
.user-disk .disk-label { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-bottom: 4px; }
.disk-mini { display: flex; height: 20px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.disk-mini .s { flex-shrink: 0; flex-grow: 0; border-right: 1px solid rgba(255,255,255,.25); }
.disk-mini .s:last-child { border-right: none; }
.user-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 1.25rem 1.25rem; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); width: 100%; max-width: 1100px; position: relative; }
.modal-header { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 14px; }
.modal-header h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.modal-header p { font-size: 13px; color: var(--text2); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--surface2); border: none; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 14px; color: var(--text2); display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 1.5rem; }

.disk-full { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; }
.disk-full-header { background: var(--surface2); padding: 6px 12px; font-family: var(--mono); font-size: 11px; color: var(--text3); border-bottom: 1px solid var(--border); }
.disk-full-bar { display: flex; height: 72px; width: 100%; }
.df-seg { display: flex; flex-direction: column; justify-content: center; padding: 0 8px; font-size: 10px; font-weight: 600; border-right: 2px solid #fff; overflow: hidden; flex-shrink: 1; flex-grow: 0; min-width: 0; }
.df-seg:last-child { border-right: none; }
.df-seg .sn { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-seg .sz { font-family: var(--mono); font-size: 9px; opacity: .8; white-space: nowrap; }
.df-seg .st { font-size: 8px; opacity: .7; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.df-seg.narrow { align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.df-seg.narrow .sn, .df-seg.narrow .sz, .df-seg.narrow .st { display: none; }
.df-seg.narrow .seg-num { font-family: var(--mono); font-size: 15px; font-weight: 600; color: #fff; }

.disk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; border-top: 1px solid var(--border); background: var(--bg); }
.disk-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text2); }
.disk-legend-num { font-family: var(--mono); font-size: 10px; font-weight: 600; width: 16px; height: 16px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }

.resp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.resp-item { background: var(--bg); border-radius: var(--r); padding: .75rem 1rem; font-size: 13px; }
.resp-item strong { display: block; font-size: 12px; color: var(--text3); font-family: var(--mono); margin-bottom: 3px; }

/* ── GUÍA DE CLASE ── */
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.meta-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; text-align: center; }
.meta-card .value { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--accent); }
.meta-card .label { font-size: 11px; color: var(--text3); margin-top: 2px; }

.act-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; margin-bottom: 1rem; }
.act-header { padding: 1rem 1.25rem; display: flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; }
.act-header:hover { background: var(--bg); }
.act-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; font-weight: 500; flex-shrink: 0; }
.act-meta { flex: 1; }
.act-meta h3 { font-size: 15px; font-weight: 600; }
.act-meta p { font-size: 12px; color: var(--text2); margin-top: 1px; }
.act-time { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text3); flex-shrink: 0; }
.act-chevron { color: var(--text3); transition: transform .2s; font-size: 12px; }
.act-block.open .act-chevron { transform: rotate(90deg); }
.act-body { display: none; border-top: 1px solid var(--border); padding: 1.25rem; }
.act-block.open .act-body { display: block; }

.step-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.step-item { display: flex; gap: 10px; font-size: 13px; color: var(--text2); }
.step-bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
.step-item strong { color: var(--text); }

.pregunta-box { background: var(--accent-bg); border: 1px solid #c5d0f8; border-radius: var(--r); padding: .75rem 1rem; font-size: 13px; margin-top: 1rem; }
.pregunta-box .label { font-size: 10px; font-family: var(--mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.pregunta-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.pregunta-list li::before { content: "? "; color: var(--accent); font-weight: 600; }
.resource-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--text2); margin: 4px 4px 0 0; }

.progress-bar { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; margin-top: .4rem; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); }

/* ── HOME ── */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.hero-content { flex: 1; }
.hero-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-bottom: .75rem; }
.hero h2 { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-bottom: .75rem; }
.hero h2 span { color: var(--accent); }
.hero p { color: var(--text2); max-width: 480px; font-size: 15px; }
.hero-visual { flex-shrink: 0; width: 200px; }

.nav-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .15s, transform .15s;
  cursor: pointer;
}
.nav-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.nav-card .icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.nav-card h3 { font-size: 15px; font-weight: 600; }
.nav-card p { font-size: 13px; color: var(--text2); }
.nav-card .arrow { font-size: 18px; color: var(--text3); margin-top: auto; transition: color .15s; }
.nav-card:hover .arrow { color: var(--accent); }

.mini-disk { display: flex; flex-direction: column; gap: 4px; }
.mini-row { display: flex; height: 18px; border-radius: 4px; overflow: hidden; gap: 2px; }
.mini-seg { height: 100%; border-radius: 3px; }

/* ── GUÍA DE ARMADO ── */
.ga-disk-bar {
  display: flex;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  margin: .5rem 0;
}
.ga-seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6px;
  border-right: 2px solid rgba(255,255,255,.5);
  overflow: hidden;
  min-width: 0;
  flex-shrink: 1;
  flex-grow: 0;
}
.ga-seg:last-child { border-right: none; }
.ga-seg .sn { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.ga-seg .sz { font-family: var(--mono); font-size: 8px; opacity: .8; white-space: nowrap; color: #fff; }
.ga-seg.narrow {
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ga-ext {
  display: flex;
  flex-direction: column;
  padding: 3px 3px 2px;
  gap: 1px;
  border-right: 2px solid rgba(255,255,255,.5);
  overflow: hidden;
  flex-shrink: 1;
  flex-grow: 0;
  min-width: 0;
}
.ga-ext:last-child { border-right: none; }
.ga-ext-label { font-size: 7px; color: rgba(255,255,255,.65); letter-spacing: .04em; text-transform: uppercase; line-height: 1; flex-shrink: 0; }
.ga-ext-logical {
  flex: 1;
  border-radius: 2px;
  border: 1px solid rgba(43,138,62,.5);
  display: flex;
  align-items: center;
  padding: 0 5px;
  gap: 4px;
  overflow: hidden;
}
.ga-ext-logical .sn { font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-ext-logical .sz { font-family: var(--mono); font-size: 8px; opacity: .7; white-space: nowrap; flex-shrink: 0; }

.ga-card-header {
  margin: -1.5rem -1.5rem 1.25rem;
  padding: .875rem 1.25rem;
  border-radius: calc(var(--rl) - 1px) calc(var(--rl) - 1px) 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ga-title { font-size: 15px; font-weight: 600; }
.ga-sub { font-size: 11px; font-family: var(--mono); opacity: .75; }

.ga-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: .75rem 0; }
.ga-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text2); }
.ga-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

.ga-note { border-radius: var(--r); padding: .75rem 1rem; font-size: 12px; line-height: 1.55; margin: .75rem 0; }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface2);
}
.spec-row:last-child { border-bottom: none; }
.spec-key { font-family: var(--mono); font-size: 11px; color: var(--text3); flex-shrink: 0; }
.spec-val { font-size: 12px; color: var(--text); text-align: right; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links a { padding: 0 .6rem; font-size: 12px; }
  .nav-brand { margin-right: 1rem; }
}

@media (max-width: 700px) {
  /* Nav hamburger */
  nav { padding: 0 1rem; position: relative; flex-wrap: wrap; height: auto; min-height: 56px; }
  .nav-brand { height: 56px; flex-shrink: 0; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    height: 56px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    color: var(--text2);
    font-size: 20px;
    line-height: 1;
  }
  .nav-login-btn { display: none; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: .5rem 0;
    gap: 0;
    height: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { height: 44px; padding: 0 1rem; font-size: 14px; border-bottom: none; border-left: 3px solid transparent; white-space: normal; }
  .nav-links a.active { border-left-color: var(--accent); background: var(--accent-bg); }

  /* Login btn dentro del menú mobile — eliminado */

  /* Layout */
  main { padding: 1.25rem .875rem; }

  /* Hero */
  .hero { flex-direction: column; padding: 1.25rem; gap: .75rem; }
  .hero h2 { font-size: 24px; }
  .hero-visual { display: none; }
  .page-header h1 { font-size: 22px; }

  /* Grids */
  .grid-2, .grid-3, .tipo-cards, .compare-row { grid-template-columns: 1fr; }
  .fs-hero { grid-template-columns: 1fr 1fr; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .nav-cards { grid-template-columns: 1fr; }

  /* Disk bar */
  .disk-bar { height: 60px; }
  .seg .seg-name { font-size: 10px; }
  .seg .seg-size, .seg .seg-type { display: none; }
  .seg.narrow .seg-num { font-size: 12px; }
  .disk-visual { overflow-x: auto; }
  .disk-bar { min-width: 340px; }

  /* Modal */
  .modal-overlay { padding: .375rem; align-items: flex-start; }
  .modal { border-radius: var(--r); max-height: calc(100vh - .75rem); overflow-y: auto; }
  .modal-header { padding: .875rem 1rem .625rem; gap: 10px; flex-wrap: wrap; }
  .modal-header h2 { font-size: 17px; }
  .modal-body { padding: .875rem; }
  .disk-full-bar { height: 52px; min-width: 300px; }
  .disk-full { overflow-x: auto; }
  .df-seg .sn { font-size: 9px; }
  .df-seg .sz, .df-seg .st { display: none; }
  .resp-list { gap: 8px; }
  .resp-item { padding: .625rem .875rem; font-size: 13px; }

  /* Tablas */
  .compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table table { min-width: 480px; }
  .card table, .card + .card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Scheme tabs */
  .scheme-tabs { flex-wrap: wrap; gap: 6px; }
  .tab-btn { font-size: 11px; padding: 5px 12px; }

  /* Cards */
  .card { padding: .875rem; }
  .card-title { font-size: 13px; }
  .tipo-card { padding: 1rem; }
  .fs-card { padding: 1rem; }
  .fs-card .fs-name { font-size: 15px; }
  .fs-detail-grid { grid-template-columns: 1fr 1fr; }

  /* Guía */
  .act-header { padding: .875rem 1rem; gap: 10px; }
  .act-num { width: 30px; height: 30px; font-size: 12px; }
  .act-meta h3 { font-size: 14px; }
  .act-time { font-size: 12px; }
  .act-body { padding: 1rem; }
  .section-label { margin-top: 1.25rem; }
}

@media (max-width: 420px) {
  .fs-hero { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .fs-detail-grid { grid-template-columns: 1fr; }
  .disk-legend { gap: 4px 8px; }
  .disk-legend-item { font-size: 10px; }
  #site-footer { padding: 0 1rem; }
  .footer-name { font-size: 11px; }
}
