/* CotizaDOS - Estilos Industriales y de Impresión PDF */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --color-primary: #f59e0b;
  --color-primary-dark: #d97706;
  --color-primary-light: #fbbf24;
  --color-bg-dark: #090d16;
  --color-surface-dark: #0f172a;
  --color-card-dark: #1e293b;
  --color-border: #334155;
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-ai: #0ea5e9;
  --color-success: #10b981;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Efectos visuales de micrófono activo y ondas de audio */
@keyframes voice-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(245, 158, 11, 0);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    transform: scale(1);
  }
}

.voice-recording-active {
  animation: voice-pulse 1.6s infinite ease-in-out;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
}

@keyframes wave-bounce {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

.wave-bar {
  display: inline-block;
  width: 4px;
  background-color: #f59e0b;
  border-radius: 2px;
  animation: wave-bounce 1s infinite ease-in-out;
}
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }

/* Grid industrial de fondo */
.industrial-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.gradient-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Animaciones de entrada suave */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===================================================
   REGLAS ESPECÍFICAS PARA IMPRESIÓN Y GENERACIÓN DE PDF
   =================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt;
  }

  /* Ocultar elementos no imprimibles */
  .no-print,
  nav,
  header,
  aside,
  footer,
  .btn-print-hide,
  #toast-container,
  #dialog-backdrop,
  #sheet-backdrop {
    display: none !important;
  }

  /* Estilos específicos de la hoja técnica de presupuesto */
  .printable-quote-sheet {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    border: none !important;
  }

  .printable-quote-sheet table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .printable-quote-sheet th,
  .printable-quote-sheet td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 10px !important;
    font-size: 10pt;
    color: #1e293b !important;
  }

  .printable-quote-sheet th {
    background-color: #f1f5f9 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 9pt;
  }

  .page-break {
    page-break-after: always;
  }
}
