    /* ── ESTILOS ESPECÍFICOS DE ESTA TABLA ───────────────────── */

    /* Contenedor con scroll horizontal para la tabla */
    .tabla-wrapper {
      overflow-x: auto;
      border: 1px solid var(--color-borde);
      border-radius: var(--radio-lg);
      box-shadow: var(--sombra-card);
      margin-bottom: var(--espacio-xl);
      /* Barra de scroll visible y estilizada */
      scrollbar-width: thin;
      scrollbar-color: var(--color-borde) transparent;
    }

    .tabla-wrapper::-webkit-scrollbar {
      height: 6px;
    }
    .tabla-wrapper::-webkit-scrollbar-track {
      background: transparent;
    }
    .tabla-wrapper::-webkit-scrollbar-thumb {
      background-color: var(--color-borde);
      border-radius: 3px;
    }

    /* Tabla principal */
    .tabla-solubilidad {
      border-collapse: collapse;
      width: 100%;
      min-width: 760px; /* fuerza scroll en mobile */
      font-size: 0.82rem;
      background-color: var(--color-fondo);
    }

    /* Encabezado de columnas (aniones) */
    .tabla-solubilidad thead th {
      background-color: var(--color-header-bg);
      color: var(--color-header-texto);
      padding: 10px 8px;
      text-align: center;
      font-weight: 600;
      font-size: 0.8rem;
      white-space: nowrap;
      border-right: 1px solid rgba(255,255,255,0.08);
      position: sticky;
      top: 0;
      z-index: 2;
    }

    /* Primera columna del encabezado (esquina) */
    .tabla-solubilidad thead th:first-child {
      text-align: left;
      min-width: 140px;
      position: sticky;
      left: 0;
      z-index: 3; /* encima de todo */
      background-color: var(--color-header-bg);
    }

    /* Filas del cuerpo */
    .tabla-solubilidad tbody tr:nth-child(even) td {
      background-color: var(--color-fondo-card);
    }

    .tabla-solubilidad tbody tr:hover td {
      background-color: var(--color-acento-claro);
      transition: background-color 0.1s;
    }

    /* Columna sticky del catión (primera columna) */
    .tabla-solubilidad tbody td:first-child {
      position: sticky;
      left: 0;
      background-color: var(--color-fondo);
      font-weight: 600;
      padding: 9px 12px;
      border-right: 2px solid var(--color-borde);
      white-space: nowrap;
      z-index: 1;
    }

    /* Cuando la fila es par, la celda sticky también cambia */
    .tabla-solubilidad tbody tr:nth-child(even) td:first-child {
      background-color: var(--color-fondo-card);
    }

    .tabla-solubilidad tbody tr:hover td:first-child {
      background-color: var(--color-acento-claro);
    }

    /* Celdas de datos */
    .tabla-solubilidad tbody td {
      padding: 8px 6px;
      text-align: center;
      border-right: 1px solid var(--color-borde);
      border-bottom: 1px solid var(--color-borde);
      font-size: 0.8rem;
      font-weight: 600;
      min-width: 54px;
    }

    /* ── PASTILLAS DE SOLUBILIDAD ─────────────────────────── */
    .pastilla {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 22px;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    /* S — Soluble (verde) */
    .pastilla--s {
      background-color: #DCFCE7;
      color: #166534;
    }

    /* I — Insoluble (rojo) */
    .pastilla--i {
      background-color: #FEE2E2;
      color: #991B1B;
    }

    /* LP — Ligeramente soluble (amarillo/naranja) */
    .pastilla--lp {
      background-color: #FEF9C3;
      color: #854D0E;
    }

    /* D — Se descompone o no existe en solución (gris) */
    .pastilla--d {
      background-color: #F1F5F9;
      color: #64748B;
    }

    /* ── LEYENDA ──────────────────────────────────────────── */
    .leyenda {
      display: flex;
      gap: var(--espacio-lg);
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: var(--espacio-lg);
      padding: var(--espacio-md) var(--espacio-lg);
      background-color: var(--color-fondo-card);
      border: 1px solid var(--color-borde);
      border-radius: var(--radio-md);
    }

    .leyenda__item {
      display: flex;
      align-items: center;
      gap: var(--espacio-sm);
      font-size: 0.85rem;
      color: var(--color-texto-suave);
    }

    .leyenda__titulo {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--color-texto-suave);
      margin-right: var(--espacio-sm);
    }

    /* ── FILTRO DE ANIONES ────────────────────────────────── */
    .filtro-barra {
      display: flex;
      gap: var(--espacio-sm);
      flex-wrap: wrap;
      margin-bottom: var(--espacio-md);
      align-items: center;
    }

    .filtro-barra__etiqueta {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--color-texto-suave);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .filtro-btn {
      font-family: var(--fuente-principal);
      font-size: 0.8rem;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: 20px;
      border: 1.5px solid var(--color-borde);
      background-color: var(--color-fondo);
      color: var(--color-texto-suave);
      cursor: pointer;
      transition: border-color 0.15s, background-color 0.15s, color 0.15s;
    }

    .filtro-btn:hover {
      border-color: var(--color-acento);
      color: var(--color-acento);
    }

    .filtro-btn.activo {
      background-color: var(--color-acento);
      border-color: var(--color-acento);
      color: #fff;
    }

    /* ── BUSCADOR ─────────────────────────────────────────── */
    .buscador-wrapper {
      position: relative;
      max-width: 280px;
      margin-bottom: var(--espacio-md);
    }

    .buscador-wrapper svg {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 15px;
      height: 15px;
      stroke: var(--color-texto-suave);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      pointer-events: none;
    }

    .buscador-input {
      width: 100%;
      padding: 8px 12px 8px 32px;
      font-family: var(--fuente-principal);
      font-size: 0.875rem;
      border: 1.5px solid var(--color-borde);
      border-radius: var(--radio-md);
      background-color: var(--color-fondo);
      color: var(--color-texto);
      outline: none;
      transition: border-color 0.15s;
    }

    .buscador-input:focus {
      border-color: var(--color-acento);
    }

    /* Fila oculta por el filtro */
    .fila-oculta {
      display: none;
    }

    /* ── NOTA AL PIE ──────────────────────────────────────── */
    .nota-tabla {
      font-size: 0.82rem;
      color: var(--color-texto-suave);
      line-height: 1.6;
      background-color: var(--color-fondo-card);
      border: 1px solid var(--color-borde);
      border-radius: var(--radio-md);
      padding: var(--espacio-md) var(--espacio-lg);
      margin-bottom: var(--espacio-xl);
    }

    .nota-tabla strong {
      color: var(--color-texto);
    }

    /* Indicador de scroll en mobile */
    .scroll-hint {
      display: none;
      font-size: 0.78rem;
      color: var(--color-texto-suave);
      margin-bottom: var(--espacio-sm);
      align-items: center;
      gap: 6px;
    }

    @media (max-width: 768px) {
      .scroll-hint {
        display: flex;
      }
    }

.el-nombre { font-weight: 400; color: var(--color-texto-suave); }
