/* Estilos globales - Bonos de Carbono Colombia */

/* Animaciones personalizadas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes count-up {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

.animate-count-up {
  animation: count-up 0.3s ease-out forwards;
}

/* Efecto glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 118, 110, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

/* Cards con hover */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.15);
}

/* Gradientes */
.gradient-forest {
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #fbbf24 100%);
}

.gradient-euro {
  background: linear-gradient(135deg, #1D4ED8 0%, #3b82f6 100%);
}

/* Tabs */
.tab-indicator {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button {
  transition: all 0.2s ease;
}

.tab-button.active {
  color: #0F766E;
}

.tab-button:not(.active):hover {
  color: #14B8A6;
}

/* Inputs estilizados */
.input-styled {
  transition: all 0.2s ease;
  border: 2px solid #e5e7eb;
}

.input-styled:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  outline: none;
}

/* Range slider custom */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
}

/* Loading shimmer */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Timeline */
.timeline-line {
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #14B8A6, #e5e7eb);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #14B8A6;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #14B8A6;
}

.timeline-dot.completed {
  background: #0F766E;
  box-shadow: 0 0 0 2px #0F766E;
}

.timeline-dot.pending {
  background: #e5e7eb;
  box-shadow: 0 0 0 2px #e5e7eb;
}

/* Tooltips */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  background: #1f2937;
  color: white;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 50;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Scrollbar custom */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

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

/* Utility: stagger animation */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-forest {
  background: rgba(15, 118, 110, 0.1);
  color: #0F766E;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.badge-euro {
  background: rgba(29, 78, 216, 0.1);
  color: #1D4ED8;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

/* Colores adicionales para timeline */
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-500 { background-color: #3b82f6; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-300 { border-color: #93c5fd; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }

.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-500 { background-color: #10b981; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-300 { border-color: #6ee7b7; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }

/* Focus styles para inputs */
input:focus {
  outline: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Smooth scroll para timeline */
html {
  scroll-behavior: smooth;
}

/* Details/Summary styles */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details[open] > summary {
  margin-bottom: 0.5rem;
}

/* Colores de gold adicionales */
.bg-gold-50 { background-color: #fffbeb; }
.bg-gold-500 { background-color: #f59e0b; }
.border-gold-200 { border-color: #fde68a; }
.border-gold-300 { border-color: #fcd34d; }
.border-gold-500 { border-color: #f59e0b; }
.text-gold-500 { color: #f59e0b; }
.text-gold-600 { color: #d97706; }
.text-gold-700 { color: #b45309; }

/* Colores de forest adicionales */
.bg-forest-50 { background-color: #f0fdfa; }
.bg-forest-500 { background-color: #0f766e; }
.border-forest-300 { border-color: #5eead4; }
.border-forest-500 { border-color: #0f766e; }
.text-forest-600 { color: #0d9488; }
.text-forest-700 { color: #0f766e; }

/* Colores de gray para timeline */
.bg-gray-500 { background-color: #6b7280; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-500 { border-color: #6b7280; }

/* Ring focus states */
.focus\:ring-1:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-forest-500:focus { --tw-ring-color: #0f766e; }
.focus\:border-forest-500:focus { border-color: #0f766e; }
