/* ============================
     1. Variables y tipografía
     ============================ */
  :root {
    --bg: #f9f9fb;
    --fg: #121212;
    --card: #ffffff;
    --border: #e0e0e7;
    --accent: #0066ff;
    --header: #f0f4ff;
    font-family: "Inter", system-ui, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
  }

  /* ============================
     2. Estilos base
     ============================ */
  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    padding: 1rem;
  }
  a {
    color: var(--accent);
    text-decoration: none;
  }

  /* ============================
     3. Tipografía de encabezados
     ============================ */
  h1 {
    margin: 0.2em 0;
    text-align: center;
    color: var(--accent);
    font-size: 2rem;
  }
  h2 {
    margin: 2rem 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--accent);
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.15rem;
  }

  /* ============================
     4. Secciones
     ============================ */
  section {
    max-width: 900px;
    margin: auto;
    margin-bottom: 2rem;
    background: var(--card);
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  ul {
    margin-top: 0.3rem;
  }

  /* ============================
     5. Tablas responsivas
     ============================ */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.75rem 0;
  }
  .table-responsive table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.95rem;
  }
  .table-responsive th,
  .table-responsive td {
    border: 1px solid var(--border);
    padding: 0.6rem;
    vertical-align: top;
  }
  .table-responsive th {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-align: left;
  }
  .table-responsive tr:nth-child(even) {
    background: var(--bg);
  }

  /* ============================
     6. Pie de página
     ============================ */
  footer {
    max-width: 900px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: #666;
  }

  /* ============================
     7. Modo oscuro
     ============================ */
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0e0e10;
      --fg: #eaeaea;
      --card: #161618;
      --border: #2c2c2f;
      --header: #151d33;
      --accent: #4e8dff;
    }
  }
