/* ==========================================================================
   Operadora Occidente C.A. - Modern Portal Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #070a13;
  --bg-surface: #0e1526;
  --bg-card: rgba(15, 23, 42, 0.8);
  --bg-card-hover: rgba(26, 38, 66, 0.9);
  
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.35);

  --emerald-accent: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);

  --cyan-accent: #06b6d4;
  --purple-accent: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.3);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Raleway', sans-serif;
}

/* Base and Reset */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 35%);
  background-attachment: fixed;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-gold);
  box-shadow: 0 14px 40px -10px var(--gold-glow);
}

.glass-nav {
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

/* Glowing Badges */
.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

/* Animated Pulse Indicators */
.live-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
}

.live-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
  opacity: 0.7;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Firefly Particle effect */
.firefly-glow {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 12px 3px var(--gold-primary);
  animation: float-glow 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes float-glow {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.2; }
  50% { transform: translateY(-25px) translateX(15px); opacity: 0.85; }
}

/* Button Gradients */
.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070a13;
  font-weight: 700;
  box-shadow: 0 4px 20px -3px rgba(245, 158, 11, 0.5);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -2px rgba(245, 158, 11, 0.7);
  color: #000;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-light);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Code Playground & Tabs */
.code-container {
  background: #030712;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  background: #111827;
  border-bottom: 1px solid #1f2937;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-tabs button {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: #9ca3af;
}

.code-tabs button.active {
  background: #1f2937;
  color: var(--gold-light);
}

pre code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

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

::-webkit-scrollbar-track {
  background: #070a13;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Floating WhatsApp / Contact */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-4px);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-scroll-top {
  background: #1e293b;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

/* Legal Seal Card */
.legal-card {
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.legal-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-primary);
  opacity: 0.6;
}

.legal-card:hover::after {
  opacity: 1;
  box-shadow: 0 0 12px var(--gold-primary);
}
