/* Estilos específicos y refinamiento visual */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.animate-scale-up {
  animation: scaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Scrollbar minimalista */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ocultar barra de scroll en móviles pero permitir deslizamiento libre */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Estilos de los pasos del proceso */
.step-item.active .step-icon {
  background-color: #001b44;
  color: #ffc700;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.3);
  animation: pulseIcon 1.5s infinite;
}

.step-item.active .step-text {
  color: #001b44;
  font-weight: 600;
}

.dark .step-item.active .step-text {
  color: #ffc700;
}

.step-item.completed .step-icon {
  background-color: #dcfce7;
  color: #16a34a;
}

.step-item.completed .step-text {
  color: #166534;
}

@keyframes pulseIcon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Resaltado de marcas de tiempo y hablantes */
.timestamp-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #001b44;
  background-color: rgba(0, 27, 68, 0.08);
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  margin-right: 0.35rem;
  user-select: all;
}

.dark .timestamp-tag {
  color: #ffc700;
  background-color: rgba(0, 27, 68, 0.45);
}

.speaker-tag {
  font-weight: 700;
  color: #0f172a;
}

.dark .speaker-tag {
  color: #f1f5f9;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Búsqueda dentro del texto - Resaltado amarillo vivo */
mark.highlight {
  background-color: #fde047; /* Amarillo intenso visible */
  color: #713f12;
  font-weight: 600;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.dark mark.highlight {
  background-color: #eab308;
  color: #1a1500;
}

/* Tarjetas de Tipo de Audio en Modo Oscuro */
.dark .audio-type-btn:not([class*="border-blue-800"]):not([class*="border-amber-400"]):not([class*="border-[#ffc700]"]) {
  background-color: #1e293b !important; /* slate-800 */
  border-color: #334155 !important;     /* slate-700 */
  color: #f1f5f9 !important;            /* slate-100 */
}

.dark .audio-type-btn:not([class*="border-blue-800"]):not([class*="border-amber-400"]):not([class*="border-[#ffc700]"]) p.font-semibold {
  color: #ffffff !important;
}

.dark .audio-type-btn:not([class*="border-blue-800"]):not([class*="border-amber-400"]):not([class*="border-[#ffc700]"]) p.text-\[11px\] {
  color: #cbd5e1 !important;            /* slate-300 */
}

.dark .audio-type-btn[class*="border-blue-800"],
.dark .audio-type-btn[class*="border-amber-400"],
.dark .audio-type-btn[class*="border-[#ffc700]"] {
  border-color: #ffc700 !important;     /* Oro xeneize */
  background-color: rgba(0, 27, 68, 0.45) !important; /* Azul xeneize con transparencia */
}

/* Trama sutil de cuadrícula y puntos para la identidad académica */
.bg-grid-subtle {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(0, 27, 68, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 27, 68, 0.04) 1px, transparent 1px);
}

.dark .bg-grid-subtle {
  background-image: 
    linear-gradient(to right, rgba(255, 199, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 199, 0, 0.035) 1px, transparent 1px);
}

