/* TIPOGRAFÍAS LOCALES OFICIALES (Sin salto de fuente / FOUT) */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../assets/fonts/oswald.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: block;
  src: url('../assets/fonts/inter.woff2') format('woff2');
}

/* ESTILOS PERSONALIZADOS PARA MANTRAX */

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #06090E;
}
::-webkit-scrollbar-thumb {
  background: #1F2E4D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FBBF24;
}

/* Efectos de Glassmorphism */
.glass-panel {
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(31, 46, 77, 0.8);
}

/* Animaciones Toasts */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
}

.toast-in {
  animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-out {
  animation: slideOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Paleta de colores Swatches */
.color-swatch {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.color-swatch:hover {
  transform: scale(1.15);
}
.color-swatch.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 15px rgba(251, 191, 36, 0.6);
}

/* ThreeJS Canvas */
#threejs-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}
