/* ============================================================
   ACEII · Cafetería
   Estilos globales
   Paleta unificada azul — POS moderno
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --fondo: #f4f6fa;
  --superficie: #ffffff;
  --superficie-2: #eef3fb;

  --texto: #182235;
  --texto-suave: #667085;
  --texto-claro: #98a2b3;

  /* ===== PALETA UNIFICADA AZUL ===== */
  --azul: #1E64F0;
  --azul-claro: #3B82F6;
  --azul-suave: #EFF6FF;
  --azul-borde: #DBEAFE;

  /* Acentos funcionales (solo cuando comunican) */
  --verde: #10B981;
  --exito: #10B981;
  --alerta: #DC2626;
  --aviso: #D97706;

  /* Neutros */
  --gris: #64748B;
  --gris-suave: #F1F5F9;

  --radio: 18px;
  --radio-sm: 12px;
  --padding: 16px;

  --sombra:
    0 1px 3px rgba(50, 72, 110, 0.04),
    0 6px 20px rgba(50, 72, 110, 0.06);

  --sombra-fuerte:
    0 8px 30px rgba(50, 72, 110, 0.12);

  --fuente:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}


/* ============================================================
   TEMA OSCURO
   ============================================================ */

html.tema-oscuro {
  --fondo: #0F1621;
  --superficie: #192231;
  --superficie-2: #222d40;

  --texto: #edf2f7;
  --texto-suave: #aab5c5;
  --texto-claro: #748197;

  --azul: #60A5FA;
  --azul-claro: #93C5FD;
  --azul-suave: #1E3A8A;
  --azul-borde: #1E3A8A;

  --verde: #34D399;
  --exito: #34D399;
  --alerta: #F87171;
  --aviso: #FBBF24;

  --gris: #94A3B8;
  --gris-suave: #1E293B;

  --sombra:
    0 3px 12px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.18);

  --sombra-fuerte:
    0 10px 35px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  html.tema-auto {
    --fondo: #0F1621;
    --superficie: #192231;
    --superficie-2: #222d40;

    --texto: #edf2f7;
    --texto-suave: #aab5c5;
    --texto-claro: #748197;

    --azul: #60A5FA;
    --azul-claro: #93C5FD;
    --azul-suave: #1E3A8A;
    --azul-borde: #1E3A8A;

    --verde: #34D399;
    --exito: #34D399;
    --alerta: #F87171;
    --aviso: #FBBF24;

    --gris: #94A3B8;
    --gris-suave: #1E293B;

    --sombra:
      0 3px 12px rgba(0, 0, 0, 0.25),
      0 10px 30px rgba(0, 0, 0, 0.18);

    --sombra-fuerte:
      0 10px 35px rgba(0, 0, 0, 0.35);
  }
}


/* ============================================================
   RESET
   ============================================================ */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  margin: 0;
  padding: 0;
  background: var(--fondo);
  color: var(--texto);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  animation: fadeInBody 0.25s ease-out;
  transition: background 0.25s ease, color 0.25s ease;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ============================================================
   HEADER
   ============================================================ */

.app-header {
  position: relative;
  overflow: hidden;
  color: #ffffff;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.18),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #1E40AF 0%,
      #2563EB 55%,
      #3B82F6 100%
    );

  padding: 22px 20px 62px;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.app-header::before {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.app-header::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -31px;
  height: 64px;
  background: var(--fondo);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: background 0.25s ease;
}

html.tema-oscuro .app-header {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.08),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #1E3A8A,
      #2563EB
    );
}

@media (prefers-color-scheme: dark) {
  html.tema-auto .app-header {
    background:
      radial-gradient(
        circle at 90% 10%,
        rgba(255, 255, 255, 0.08),
        transparent 32%
      ),
      linear-gradient(
        135deg,
        #1E3A8A,
        #2563EB
      );
  }
}

.app-header-contenido {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-header-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.app-header-texto { flex: 1; min-width: 0; }

.app-header-titulo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.05;
}

.app-header-sub {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}


/* ============================================================
   BOTÓN DE TEMA
   ============================================================ */

.btn-tema {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 43px;
  height: 43px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  font-size: 19px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-tema:active { transform: scale(0.91); }
.btn-tema:hover { background: rgba(255, 255, 255, 0.28); }


/* ============================================================
   BARRA DE ESTADO
   ============================================================ */

#estado {
  max-width: 480px;
  margin: 8px auto 0;
  padding: 11px 15px;
  border-radius: 13px;
  background: var(--superficie);
  color: var(--texto-suave);
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(50, 72, 110, 0.05);
  word-break: break-word;
  transition: background 0.2s, color 0.2s;
}

#estado.estado-vacio { display: none; }
#estado.ok, .estado-ok { background: var(--exito) !important; color: #fff !important; }
#estado.error, .estado-error { background: var(--alerta) !important; color: #fff !important; }
#estado.aviso, .estado-aviso { background: var(--aviso) !important; color: #fff !important; }


/* ============================================================
   CAJAS GENERALES
   ============================================================ */

.caja {
  max-width: 480px;
  margin: 12px auto;
  padding: 17px;
  background: var(--superficie);
  border-radius: var(--radio);
  color: var(--texto);
  box-shadow: var(--sombra);
  animation: aparecerCaja 0.3s ease-out;
  transition: background 0.2s ease, color 0.2s ease;
}

@keyframes aparecerCaja {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   PANEL DEL MENÚ
   ============================================================ */

.panel-menu {
  width: 100%;
  max-width: 480px;
  margin: 13px auto 24px;
  padding: 0 13px;
  background: transparent;
  animation: aparecerCaja 0.4s ease-out;
}

.grid-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}


/* ============================================================
   TARJETAS — Blancas y limpias (Sin círculos ni líneas)
   ============================================================ */

.card {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 15px 14px 14px;

  /* Fondo blanco sólido y limpio */
  background: var(--superficie);
  background-image: none !important;

  color: var(--texto);
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid rgba(92, 112, 150, 0.08);

  box-shadow:
    0 2px 5px rgba(50, 72, 110, 0.035),
    0 7px 18px rgba(50, 72, 110, 0.055);

  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* ===== EL DESTRUCTOR DE CÍRCULOS (Aplastado total) ===== */
.card::before, 
.card::after,
.panel-menu .card::before,
.panel-menu .card::after,
.grid-operacion-resto .card::before,
.grid-operacion-resto .card::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  clip-path: polygon(0 0, 0 0, 0 0) !important;
}

/* Hover suave */
.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 14px rgba(37, 99, 235, 0.08),
    0 14px 28px rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.15);
}
.card:active { transform: scale(0.975); }


/* Tema oscuro */
html.tema-oscuro .card {
  background: var(--superficie) !important;
  border-color: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 2px 7px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.18);
}
@media (prefers-color-scheme: dark) {
  html.tema-auto .card {
    background: var(--superficie) !important;
    border-color: rgba(255, 255, 255, 0.055);
    box-shadow:
      0 2px 7px rgba(0, 0, 0, 0.25),
      0 8px 20px rgba(0, 0, 0, 0.18);
  }
}


/* ============================================================
   ANIMACIÓN DE TARJETAS
   ============================================================ */

.grid-menu .card {
  animation: entradaCard 0.4s ease-out backwards;
}
.grid-menu .card:nth-child(1)  { animation-delay: 0.02s; }
.grid-menu .card:nth-child(2)  { animation-delay: 0.05s; }
.grid-menu .card:nth-child(3)  { animation-delay: 0.08s; }
.grid-menu .card:nth-child(4)  { animation-delay: 0.11s; }
.grid-menu .card:nth-child(5)  { animation-delay: 0.14s; }
.grid-menu .card:nth-child(6)  { animation-delay: 0.17s; }
.grid-menu .card:nth-child(7)  { animation-delay: 0.20s; }
.grid-menu .card:nth-child(8)  { animation-delay: 0.23s; }
.grid-menu .card:nth-child(9)  { animation-delay: 0.26s; }
.grid-menu .card:nth-child(10) { animation-delay: 0.29s; }

@keyframes entradaCard {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   TARJETAS DESTACADAS (Caja y Ventas)
   ============================================================ */

.card.destacada {
  background:
    radial-gradient(
      circle at 20% 0%,
      #ffffff 0%,
      var(--azul-suave) 100%
    );

  border-color: var(--azul-borde);

  box-shadow:
    0 3px 8px rgba(37, 99, 235, 0.08),
    0 10px 23px rgba(37, 99, 235, 0.10);
}

html.tema-oscuro .card.destacada {
  background:
    radial-gradient(
      circle at 20% 0%,
      #1e2a3f 0%,
      #1a2540 100%
    );
  border-color: rgba(96, 165, 250, 0.20);
}

@media (prefers-color-scheme: dark) {
  html.tema-auto .card.destacada {
    background:
      radial-gradient(
        circle at 20% 0%,
        #1e2a3f 0%,
        #1a2540 100%
      );
    border-color: rgba(96, 165, 250, 0.20);
  }
}


/* ============================================================
   ICONOS — Todos azules, en círculo
   ============================================================ */

.card-icono {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover .card-icono { transform: translateY(-1px); }
.card:active .card-icono { transform: scale(1.05); }

.card-icono svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  stroke: none;
}


/* ===== TODOS los iconos en azul corporativo ===== */

.card-icono.azul,
.card-icono.cyan,
.card-icono.morado,
.card-icono.coral,
.card-icono.verde,
.card-icono.amarillo,
.card-icono.gris,
.card-icono.violeta,
.card-icono.turquesa,
.card-icono.rosa {
  background: linear-gradient(145deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.32);
}


/* ===== Excepción: Cerrar sesión en rojo suave ===== */

.card.cerrar-sesion .card-icono,
.cerrar-sesion-box .cerrar-sesion-icono {
  background: linear-gradient(145deg, #F87171 0%, #DC2626 100%);
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.32);
}


/* ============================================================
   TÍTULO DE TARJETA
   ============================================================ */

.card-titulo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  color: var(--texto);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.1px;
}

.card:hover .card-titulo::after {
  color: var(--azul);
  transform: translateX(2px);
}


/* ============================================================
   CERRAR SESIÓN
   ============================================================ */

.cerrar-sesion-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 6px;
  padding: 11px 18px;
  max-width: 220px;
  color: var(--texto-suave);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  border-radius: 12px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.cerrar-sesion-box:hover {
  background: rgba(220, 38, 38, 0.10);
  color: var(--alerta);
}
.cerrar-sesion-box:active { transform: scale(0.97); }

.cerrar-sesion-icono {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}


/* ============================================================
   BOTONES GENERALES
   ============================================================ */

button {
  font-family: var(--fuente);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--superficie-2);
  color: var(--texto);
  cursor: pointer;
  margin: 4px 4px 4px 0;
  transition:
    transform 0.1s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

button:active:not(:disabled) { transform: scale(0.97); }

button.main {
  background: linear-gradient(135deg, var(--azul), var(--azul-claro));
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

button.main:active:not(:disabled) { background: var(--azul-claro); }

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* ============================================================
   INPUTS
   ============================================================ */

input[type=text],
input[type=password],
input[type=number],
input[type=range],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 6px 0;
  font-family: var(--fuente);
  font-size: 15px;
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  border: 1.5px solid var(--azul-borde);
  box-sizing: border-box;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

html.tema-oscuro input[type=text],
html.tema-oscuro input[type=password],
html.tema-oscuro input[type=number],
html.tema-oscuro input[type=range],
html.tema-oscuro select,
html.tema-oscuro textarea {
  background: var(--superficie-2);
  color: var(--texto);
  border-color: #303b50;
}

@media (prefers-color-scheme: dark) {
  html.tema-auto input[type=text],
  html.tema-auto input[type=password],
  html.tema-auto input[type=number],
  html.tema-auto input[type=range],
  html.tema-auto select,
  html.tema-auto textarea {
    background: var(--superficie-2);
    color: var(--texto);
    border-color: #303b50;
  }
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--azul);
  background: var(--superficie);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

html.tema-oscuro input:focus,
html.tema-oscuro select:focus,
html.tema-oscuro textarea:focus {
  background: var(--superficie-2);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}


/* ============================================================
   FILAS / TOGGLES
   ============================================================ */

.fila { display: flex; gap: 8px; margin: 6px 0; }
.fila > * { flex: 1; }

.tog {
  flex: 1;
  margin: 0;
  background: var(--superficie-2);
  color: var(--texto-suave);
  border: 2px solid transparent;
  font-weight: 600;
}

.tog.on {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul-claro);
}


/* ============================================================
   HEADERS INTERNOS
   ============================================================ */

.pantalla-header {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pantalla-header a {
  color: var(--azul);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.pantalla-header .usuario {
  color: var(--azul);
  font-weight: 600;
  font-size: 13px;
}

a {
  color: var(--azul);
  text-decoration: none;
  transition: color 0.15s ease;
}


/* ============================================================
   OPCIONES
   ============================================================ */

a.op {
  display: block;
  padding: 14px;
  margin: 8px 0;
  border-radius: 12px;
  background: var(--azul);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

a.op.off {
  background: var(--superficie-2);
  color: var(--texto-claro);
}


/* ============================================================
   LÍNEAS
   ============================================================ */

.linea {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e8edf5;
  font-size: 14px;
  transition: border-color 0.2s;
}

html.tema-oscuro .linea { border-bottom-color: #303b50; }
@media (prefers-color-scheme: dark) {
  html.tema-auto .linea { border-bottom-color: #303b50; }
}


/* ============================================================
   TOAST
   ============================================================ */


/* ===== TOAST ELEGANTE ===== */
#toastGlobal {
  position: fixed;
  bottom: 24px; /* Por defecto, pegado abajo (para Caja y Ventas) */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1F2937;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

#toastGlobal.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Colores según el tipo */
#toastGlobal.ok { background: #059669; }
#toastGlobal.error { background: #DC2626; }
#toastGlobal.aviso { background: #D97706; }

/* SOLO en pantallas que tengan la barra de navegación inferior, lo subimos */
body:has(.bottom-nav-bar-container) #toastGlobal {
  bottom: calc(var(--bottom-nav-height, 84px) + 20px);
}


/* ============================================================
   ANIMACIONES
   ============================================================ */

.resultado,
.prod-item,
.cat-item,
.turno,
.mov,
.item-carrito {
  animation: aparecerItem 0.25s ease-out backwards;
}

@keyframes aparecerItem {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   SPINNER
   ============================================================ */

.spinner-global {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: girarGlobal 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes girarGlobal {
  to { transform: rotate(360deg); }
}


/* ============================================================
   ESCRITORIO
   ============================================================ */

@media (min-width: 700px) {

  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0;
    background:
      radial-gradient(
        circle at 15% 10%,
        #dbeafe 0,
        transparent 32%
      ),
      linear-gradient(135deg, #f2f5fa, #e9eef7);
  }

  html.tema-oscuro body {
    background:
      radial-gradient(
        circle at 15% 10%,
        #1e3a8a,
        transparent 32%
      ),
      linear-gradient(135deg, #101621, #192231);
  }

  @media (prefers-color-scheme: dark) {
    html.tema-auto body {
      background:
        radial-gradient(
          circle at 15% 10%,
          #1e3a8a,
          transparent 32%
        ),
        linear-gradient(135deg, #101621, #192231);
    }
  }

  .app-header {
    width: 100%;
    max-width: 640px;
    padding: 24px 28px 68px;
    border-radius: 26px;
  }
  .app-header::after { display: none; }
  .app-header-contenido { max-width: 100%; }
  .app-header-logo { width: 60px; height: 60px; }
  .app-header-titulo { font-size: 37px; }
  .app-header-sub { font-size: 14px; }

  .btn-tema {
    top: 23px;
    right: 25px;
    width: 46px;
    height: 46px;
  }

  #estado,
  .panel-menu,
  .caja {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  #estado { margin-top: 12px; }
  .panel-menu { padding: 0; margin-top: 17px; }
  .grid-menu { gap: 14px; }

  .card {
    min-height: 140px;
    padding: 18px 17px 16px;
    border-radius: 19px;
  }
  .card.destacada { min-height: 150px; }
  .card-icono { width: 52px; height: 52px; }
  .card-icono svg { width: 26px; height: 26px; }
  .card-titulo { font-size: 15px; }
  .caja { padding: 24px; border-radius: 20px; }
}


/* ============================================================
   REDUCIR ANIMACIONES
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

  /* =====================================================
     EL DESTRUCTOR DEL CÍRCULO GRIS (Esquina superior)
     ===================================================== */
  .panel-menu .card::before, 
  .panel-menu .card::after,
  .grid-operacion-resto .card::before,
  .grid-operacion-resto .card::after,
  .card-ventas-ancha::before,
  .card-ventas-ancha::after {
    content: "" !important;
    display: none !important; 
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    clip-path: polygon(0 0, 0 0, 0 0) !important;
  }

  /* Aseguramos que las tarjetas tengan fondo blanco sólido */
  .panel-menu .card {
    background: var(--superficie) !important;
    background-image: none !important;
  }

  /* ===== TOAST: SPINNER E ICONOS ===== */
#toastGlobal.toast-global {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    background-color 0.2s ease;
}

#toastGlobal .toast-ico {
  display: inline-flex;
  flex-shrink: 0;
}

#toastGlobal .toast-spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: toastGiro 0.7s linear infinite;
}

@keyframes toastGiro {
  to { transform: rotate(360deg); }
}

/* El "Cargando..." en píldora oscura tipo cristal */
#toastGlobal.toast-global.cargando {
  background: rgba(17, 24, 39, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ===== PULIDO DE LOGO Y TÍTULO ===== */
.app-header-logo {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 16px rgba(0, 0, 0, 0.20);
}
.app-header-titulo {
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}