/* =========================================================
   Documentate PY - Estilos corporativos
   Paleta extraída del logo: Bordó/Granate (#6b0f24) + Dorado (#c9a227)
   ========================================================= */

:root {
  --garnet: #6b0f24;
  --garnet-dark: #4a0a19;
  --gold: #c9a227;
  --gold-light: #e9d8a3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--garnet); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--garnet-dark); }

/* Loader inicial */
.dpy-loader {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
}
.dpy-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--gold-light);
  border-top-color: var(--garnet);
  animation: dpy-spin 0.8s linear infinite;
}
@keyframes dpy-spin { to { transform: rotate(360deg); } }

/* Fade-in de páginas */
.dpy-page-enter { animation: dpy-fade-in 0.35s ease-out; }
@keyframes dpy-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botón dorado con brillo sutil */
.btn-gold {
  background: linear-gradient(135deg, #d1ac52, #c9a227 60%, #a9821f);
  color: #3d0815;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(201,162,39,0.35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201,162,39,0.45); }
.btn-gold:active { transform: translateY(0); }

.btn-garnet {
  background: linear-gradient(135deg, #8c1f37, #6b0f24 60%, #4a0a19);
  color: white;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(107,15,36,0.35);
}
.btn-garnet:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(107,15,36,0.45); }

/* Zona de drag and drop */
.dropzone {
  border: 2px dashed #d8c691;
  background: #fbf7ec;
  transition: all 0.2s ease;
}
.dropzone.dragover {
  border-color: var(--garnet);
  background: #f6e0e5;
}

/* Línea de tiempo de tracking */
.timeline-item { position: relative; padding-left: 2.5rem; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: 0.6rem; top: 1.75rem; bottom: -0.25rem;
  width: 2px; background: #e5c98f;
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute; left: 0; top: 0;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: white;
  background: #c9a227;
  box-shadow: 0 0 0 4px #fbf7ec;
}
.timeline-dot.active { background: var(--garnet); }
.timeline-dot.done { background: #16a34a; }
.timeline-dot.pending { background: #d1d5db; }

/* Badges de estado */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-recibido { background: #dbeafe; color: #1e40af; }
.badge-presupuestado { background: #fef3c7; color: #92400e; }
.badge-aprobado { background: #d1fae5; color: #065f46; }
.badge-en_proceso { background: #fed7aa; color: #9a3412; }
.badge-finalizado { background: #dcfce7; color: #14532d; }
.badge-entregado { background: #e0e7ff; color: #3730a3; }
.badge-rechazado { background: #fee2e2; color: #991b1b; }

/* Toast notificaciones */
#toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; max-width: 24rem; }
.toast {
  padding: 0.9rem 1.1rem; border-radius: 0.6rem; color: white; font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: toast-in 0.25s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-info { background: var(--garnet); }

/* Card hover */
.service-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(107,15,36,0.15); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal-box { background: white; border-radius: 1rem; max-width: 32rem; width: 100%; max-height: 90vh; overflow-y: auto; animation: modal-pop 0.2s ease-out; }
@keyframes modal-pop { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.font-display { font-family: 'Playfair Display', serif; }

/* Sello dorado decorativo en headers */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
