/* Cochabamba Online - Premium Landing Page Stylesheet */

/* --- CSS VARIABLES (Branding Design Tokens) --- */
:root {
  --color-bg: #0F172A;          /* Deep Slate Blue */
  --color-surface: rgba(30, 41, 59, 0.7); /* Translucent Slate Surface */
  --color-surface-solid: #1E293B;  /* Solid Slate Surface */
  --color-primary: #06B6D4;      /* Vibrant Cyan */
  --color-primary-glow: rgba(6, 182, 212, 0.4);
  --color-primary-dark: #0891B2;
  --color-text: #F8FAFC;         /* Crisp Light Slate */
  --color-text-secondary: #94A3B8; /* Muted Slate */
  --color-danger: #EF4444;       /* Neon Red Live Badge */
  --color-success: #10B981;      /* Emerald Green for downloads */
  
  --font-family: 'Outfit', sans-serif;
  --transition-speed: 0.3s;
}

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  position: relative;
  line-height: 1.6;
}

/* --- BACKGROUND GLOWING ORBS --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: var(--color-primary);
  top: 5%;
  right: -5%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: #3B82F6; /* Indigo-blue secondary glow */
  top: 40%;
  left: -10%;
  animation-delay: 2s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

/* --- CONTAINER HELPER --- */
.container-width {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #0F172A;
  box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
  background-color: #22D3EE;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid #334155;
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-download {
  background-color: var(--color-success);
  color: white;
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.3);
}

.btn-download:hover {
  background-color: #34D399;
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(16, 185, 129, 0.5);
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all var(--transition-speed);
}

.navbar.scrolled {
  height: 70px;
  background-color: rgba(15, 23, 42, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.8px;
}

.logo-icon {
  margin-right: 8px;
  font-size: 24px;
}

.logo-highlight {
  color: var(--color-primary);
  text-shadow: 0 0 20px var(--color-primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.nav-item {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition-speed);
  position: relative;
  padding: 6px 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--color-text);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-speed);
  box-shadow: 0 0 10px var(--color-primary);
}

.nav-item.active::after, .nav-item:hover::after {
  width: 100%;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-primary);
  color: #0F172A;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px var(--color-primary-glow);
  transition: all var(--transition-speed);
}

.btn-nav:hover {
  background-color: #22D3EE;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
}

/* Menu Toggle Button for Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 4px;
  transition: all var(--transition-speed);
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.live-badge-container {
  display: inline-flex;
  align-items: center;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 25px;
  backdrop-filter: blur(5px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-danger);
  margin-right: 8px;
  box-shadow: 0 0 10px var(--color-danger);
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.live-badge-text {
  color: var(--color-danger);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero-title {
  font-size: 48px;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 15px;
}

.platform-item {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.platform-divider {
  color: rgba(255, 255, 255, 0.1);
}

.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 530px;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) 
          drop-shadow(0 0 50px rgba(6, 182, 212, 0.15));
  animation: floatImage 6s infinite ease-in-out;
}

@keyframes floatImage {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 36px;
  color: var(--color-text);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- FEATURES SECTION --- */
.features {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--color-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 35px;
  border-radius: 20px;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15),
              0 0 30px rgba(6, 182, 212, 0.05);
}

.feature-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
}

.feat-icon {
  font-size: 26px;
}

.feature-card-title {
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.feature-card-text {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* --- INSTALLATION GUIDE SECTION --- */
.installation {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.install-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  background-color: var(--color-surface-solid);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.tab-btn.active, .tab-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #0F172A;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.install-content-container {
  max-width: 800px;
  margin: 0 auto;
}

.install-pane {
  display: none;
}

.install-pane.active {
  display: block;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  background-color: var(--color-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 16px;
  align-items: center;
  gap: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.step-info {
  flex: 1;
}

.step-title {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.step-text {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* --- DOWNLOAD SECTION --- */
.download {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.download-card {
  width: 100%;
  max-width: 850px;
  background-color: var(--color-surface-solid);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto;
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
              0 0 60px rgba(6, 182, 212, 0.05);
}

/* Neon Glow Behind Download Card */
.download-card::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--color-primary);
  opacity: 0.15;
  filter: blur(100px);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.download-badge {
  display: inline-block;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-success);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.download-title {
  font-size: 32px;
  color: var(--color-text);
  margin-bottom: 15px;
}

.download-text {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 35px;
}

.download-actions {
  margin-bottom: 35px;
}

/* Downloader Code Box styling */
.downloader-code-box {
  background-color: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  max-width: 450px;
  margin: 0 auto 35px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.downloader-code-label {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.downloader-code-value {
  color: var(--color-primary);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 5px;
  background-color: rgba(6, 182, 212, 0.05);
  display: inline-block;
  padding: 4px 20px;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  text-shadow: 0 0 20px var(--color-primary-glow);
  font-family: monospace;
}

.downloader-code-help {
  color: var(--color-text-secondary);
  font-size: 11px;
  margin-top: 12px;
}

.security-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.sec-item {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

/* --- FOOTER --- */
.footer {
  background-color: #080E1A;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding: 50px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  color: var(--color-text-secondary);
  font-size: 13px;
  margin-top: 8px;
}

.footer-copy {
  color: var(--color-text-secondary);
  font-size: 12px;
  text-align: right;
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Responsive para Tablets / PCs pequeñas (hasta 992px) */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
    gap: 40px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-platforms {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 440px;
  }
  
  .hero-title {
    font-size: 38px;
  }
}

/* Responsive para Celulares y Tablets Pequeñas (hasta 768px) */
@media (max-width: 768px) {
  /* Navbar Móvil */
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding-top: 50px;
    transition: left var(--transition-speed) ease;
    gap: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-item {
    font-size: 18px;
  }
  
  .btn-nav {
    padding: 12px 30px;
    font-size: 16px;
  }

  /* Hamburger animado en menu abierto */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* General Grid Layouts */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .features {
    padding: 60px 16px;
  }
  
  .installation {
    padding: 60px 16px;
  }
  
  .download {
    padding: 60px 16px;
  }
  
  .download-card {
    padding: 35px 20px;
  }
  
  .download-title {
    font-size: 26px;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-copy {
    text-align: center;
  }
}

/* Responsive para Celulares Pequeños (hasta 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    margin-left: 0 !important;
  }
  
  .install-tabs {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .tab-btn {
    width: 100%;
  }
  
  .downloader-code-value {
    font-size: 30px;
    letter-spacing: 3px;
  }
}
