/* Estilos Complementarios para Calculador Cajas de Regalo (Gift Box Atelier) */

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

:root {
  --primary: #047857;
  --primary-dark: #065f46;
  --primary-light: #059669;
  --primary-container: #ecfdf5;
  --on-primary: #ffffff;
  --on-primary-container: #064e3b;
  --surface: #f8faf9;
  --surface-container: #e8f1ec;
  --surface-container-low: #f0fdf4;
  --surface-container-high: #dcfce7;
  --on-surface: #0f231c;
  --on-surface-variant: #435d53;
  --secondary: #0d9488;
  --secondary-container: #0369a1;
  --tertiary: #047857;
  --outline: #6d867c;
  --outline-variant: #ccdcd4;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  -webkit-tap-highlight-color: transparent;
}

/* Animaciones suaves */
.transition-all-200 {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-in-out forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sliders personalizados */
input[type="range"] {
  accent-color: var(--primary-container);
}

/* Toast notifications */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(87, 83, 78, 0.15), 0 8px 10px -6px rgba(87, 83, 78, 0.1);
  animation: slideInRight 0.3s ease-out;
  transition: opacity 0.3s, transform 0.3s;
}

.toast-success {
  background-color: #047857;
  color: #ffffff;
  border-left: 5px solid #a7f3d0;
}

.toast-error {
  background-color: #ba1a1a;
  color: #ffffff;
  border-left: 5px solid #ffdad6;
}

.toast-info {
  background-color: #0f231c;
  color: #ffffff;
  border-left: 5px solid #059669;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Reglas de impresión para cotización */
@media print {
  header, nav, #toast-container, .no-print, #bottom-summary-bar {
    display: none !important;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100% !important;
  }

  .tab-content {
    display: none !important;
  }

  #tab-cotizacion-costo-final {
    display: block !important;
  }

  .print-only {
    display: block !important;
  }

  .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }
}

.print-only {
  display: none;
}

/* Ocultar scrollbar manteniendo scroll funcional */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Opera */
}
