/* ==========================================================================
   Kraftig Intercontinental - Luxury & Modern Global Commerce Stylesheet
   ========================================================================== */

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette: Deep Obsidian, Champagne Gold, Emerald Health, & Ice Cyan */
  --bg-primary: #070a12;
  --bg-secondary: #0c121e;
  --bg-tertiary: #131b2c;
  --bg-glass: rgba(12, 18, 30, 0.75);
  --bg-glass-light: rgba(255, 255, 255, 0.03);
  
  --gold-primary: #e5c378;
  --gold-light: #f6e6b8;
  --gold-dark: #b89345;
  --gold-glow: rgba(229, 195, 120, 0.35);

  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);

  --cyan-primary: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 195, 120, 0.25);
  --border-hover: rgba(229, 195, 120, 0.6);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Kraftig Colombia Exclusive Palette (Subpage /colombia only) */
  --colombia-gold: #f6c845;
  --colombia-gold-light: #ffe57f;
  --colombia-blue: #2563eb;
  --colombia-blue-light: #3b82f6;
  --colombia-red: #e11d48;
  --colombia-red-deep: #be123c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(229, 195, 120, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 195, 120, 0.5);
}

/* Ambient Radial Background Glows */
.ambient-glow-gold {
  background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 70%);
}

.ambient-glow-cyan {
  background: radial-gradient(circle at center, var(--cyan-glow) 0%, transparent 70%);
}

.ambient-glow-emerald {
  background: radial-gradient(circle at center, var(--emerald-glow) 0%, transparent 70%);
}

/* Glassmorphism Luxury Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.5), 0 0 24px -6px var(--gold-glow);
  transform: translateY(-3px);
}

.glass-panel-gold {
  background: linear-gradient(135deg, rgba(229, 195, 120, 0.08) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  border-radius: 1.25rem;
}

/* Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 0%, #f6e6b8 40%, #e5c378 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Kraftig Colombia Exclusive Identity (Subpage /colombia only)
   ========================================================================== */

/* Tricolor Frame for Logo 'K' (Continuous Yellow -> Blue -> Red perimeter) */
.colombia-icon-border {
  background: conic-gradient(
    from 215deg,
    var(--colombia-gold-light) 0%,
    var(--colombia-gold) 32%,
    var(--colombia-blue-light) 56%,
    var(--colombia-blue) 68%,
    var(--colombia-red) 85%,
    var(--colombia-gold-light) 100%
  );
  box-shadow: 0 4px 18px rgba(246, 200, 69, 0.12), 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* Continuous Horizontal Tricolor Text Gradient across entire word width */
.colombia-tricolor,
.colombia-tricolor-text {
  background: linear-gradient(
    90deg,
    var(--colombia-gold-light) 0%,
    var(--colombia-gold) 28%,
    var(--colombia-blue-light) 52%,
    var(--colombia-blue) 68%,
    var(--colombia-red) 88%,
    var(--colombia-red-deep) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--colombia-gold); /* Fallback for browsers without text fill support */
  font-weight: 800;
  letter-spacing: 0.22em;
  display: inline-block;
}

/* Interactive 3D Globe Container */
#globe-3d-canvas-container,
#colombia-map-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

#globe-3d-canvas-container:active,
#colombia-map-container:active {
  cursor: grabbing;
}

#globe-3d-canvas-container canvas,
#colombia-map-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

/* Globe Interactive Tooltip */
.globe-hub-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  padding: 0.875rem 1.25rem;
  background: rgba(11, 16, 26, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 195, 120, 0.4);
  border-radius: 1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 195, 120, 0.2);
  color: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.95);
  white-space: nowrap;
}

.globe-hub-tooltip.active {
  opacity: 1;
  transform: translate(-50%, -130%) scale(1);
}

/* Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-float-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 5s ease-in-out 2.5s infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinSlow 30s linear infinite;
}

/* Button & Interactive Effects */
.btn-gold {
  background: linear-gradient(135deg, #f6e6b8 0%, #e5c378 50%, #b89345 100%);
  color: #070a12;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(229, 195, 120, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 195, 120, 0.5);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Language Switcher Button Styles */
.lang-toggle-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.lang-toggle-btn.active {
  background: linear-gradient(135deg, #f6e6b8 0%, #e5c378 100%);
  color: #070a12;
  box-shadow: 0 2px 10px rgba(229, 195, 120, 0.3);
}

.lang-toggle-btn:not(.active) {
  background: transparent;
  color: #94a3b8;
}

.lang-toggle-btn:not(.active):hover {
  color: #ffffff;
}

/* Badge Glow Styles */
.badge-status-active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.badge-status-upcoming {
  background: rgba(229, 195, 120, 0.12);
  border: 1px solid rgba(229, 195, 120, 0.35);
  color: #f6e6b8;
}

/* Reveal Transitions */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Legal Page Scroll Margins & Helpers */
.legal-section {
  scroll-margin-top: 7rem;
}

@media (min-width: 768px) {
  .legal-section {
    scroll-margin-top: 8.5rem;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
