.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9997;
  }

  /* Contenedor base */
  .drawer {
    position: fixed;
    z-index: 9998;
    background: #fff;
    color: #111;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    transform: translateX(100%);
    /* por defecto right */
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
  }

  /* Variantes de posición */
  .drawer--right {
    right: 0;
    top: 0;
  }

  .drawer--left {
    left: 0;
    top: 0;
    transform: translateX(-100%);
  }

  .drawer--top {
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    max-height: 90vh;
    transform: translateY(-100%);
  }

  .drawer--bottom {
    bottom: 0;
    left: 0;
    width: 100vw;
    height: auto;
    max-height: 90vh;
    transform: translateY(100%);
  }

  /* Estados abiertos */
  .drawer.is-open.drawer--right {
    transform: translateX(0);
  }

  .drawer.is-open.drawer--left {
    transform: translateX(0);
  }

  .drawer.is-open.drawer--top {
    transform: translateY(0);
  }

  .drawer.is-open.drawer--bottom {
    transform: translateY(0);
  }

  .drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Estructura interna */
  .drawer__header,
  .drawer__footer {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
  }

  .drawer__footer {
    border-top: 1px solid #eee;
    border-bottom: 0;
    margin-top: auto;
  }

  .drawer__title {
    margin: 0;
    font-weight: 700;
  }

  .drawer__body {
    padding: 14px 16px;
    overflow: auto;
    max-height: 100%;
  }

  /* Botones ejemplo */
  .btn-primary {
    background: #111;
    color: #fff;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
  }

  /* === FAB (botón flotante) === */
  .drawer-fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #111;
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    cursor: pointer;
    z-index: 10000;
    /* sobre overlay cuando está cerrado */
    transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  }

  .drawer-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
  }

  .drawer-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* === Tema oscuro para el drawer === */
  .drawer--dark {
    background: #0f1115;
    color: #e8e8ea;
    box-shadow: -8px 0 28px rgba(0, 0, 0, .35);
  }

  .drawer--dark .drawer__header,
  .drawer--dark .drawer__footer {
    background: #12151b;
    border-color: rgba(255, 255, 255, .08);
  }

  .drawer--dark .drawer__title {
    color: #fff;
  }

  .drawer--dark .drawer__body {
    color: #dcdde2;
  }

  /* Botón cerrar en dark */
  .drawer--dark .drawer__close {
    color: #c9cbd1;
  }

  .drawer--dark .drawer__close:hover {
    color: #fff;
  }

  /* Botón primario (puedes mantener tu .fill-btn) */
  .drawer--dark .btn-primary,
  .drawer--dark .fill-btn {
    background: #1e222b;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
  }

  .drawer--dark .btn-primary:hover,
  .drawer--dark .fill-btn:hover {
    background: #2a2f3a;
  }

  /* Overlay un poco más oscuro */
  .drawer-overlay {
    background: rgba(0, 0, 0, .55);
  }