:root {
  --bg: #ffffff;
  --fg: #000000;
  --accent: #0066FF;
  --accent-gradient: linear-gradient(135deg, #0066FF 0%, #4285F4 100%);
  --premium-gold: #FFD700;
  --premium-silver: #C0C0C0;
  --premium-black: #1a1a1a;
  --muted: #8E8E93;
  --light-gray: #F5F5F7;
  --ultra-light-gray: #FAFAFA;
  --container-padding: max(2rem, 5vw);
  --section-spacing: clamp(6rem, 12vw, 12rem);
  --glassmorphism: rgba(255, 255, 255, 0.25);
  --glassmorphism-border: rgba(255, 255, 255, 0.18);
  --shadow-premium: 0 8px 32px rgba(0, 102, 255, 0.1);
  --shadow-luxury: 0 20px 60px rgba(0, 0, 0, 0.1);
  --blur: blur(16px);
}

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

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

::-webkit-scrollbar-track {
  background: #ffffff;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #000000 #ffffff;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px 0px rgba(0, 102, 255, 0.3); }
  50% { box-shadow: 0 0 30px 8px rgba(0, 102, 255, 0.5); }
}

.animate-on-scroll {
  /* EMERGENCY FIX: Hacer visible todo inmediatamente */
  opacity: 1 !important;
  transform: translateY(0) !important;
  /* Backup: mostrar contenido después de 3s si JS no funciona */
  /* animation: fallbackVisible 0.1s ease-out 3s forwards; */
}

@keyframes fallbackVisible {
  to {
    opacity: 1;
    transform: translateY(0) !important;
  }
}

.animate-fade-in-up.is-visible { 
  opacity: 1; 
  transform: translateY(0) !important; 
  /* Anular el fallback si la animación se activa correctamente */
  animation: none;
}

.animate-fade-in.is-visible { 
  opacity: 1; 
}

.animate-scale-in.is-visible { 
  opacity: 1; 
  transform: scale(1) !important; 
}

/* Efectos visuales mejorados */
.neural-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.1;
}

.premium-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.premium-particle {
  will-change: transform;
}

.synapse {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

.synapse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 50%;
  animation: synapseConnection 3s infinite;
}

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

@keyframes synapseConnection {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(20); opacity: 0; }
}

@keyframes premiumFloat {
  0% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-10px) translateX(5px); }
  50% { transform: translateY(-20px) translateX(0px); }
  75% { transform: translateY(-10px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "kern" 1;
  overflow-x: hidden;
  position: relative;
}

/* Clean Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/*  Navigation Header */
.nav-header {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 2rem;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 1200px;
  margin: 20px auto;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

.nav-header.scrolled {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 4px;
}

.nav-link:hover {
  color: var(--fg);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-icon {
  width: 24px;
  height: 24px;
  color: #000000;
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-icon:hover {
  opacity: 1;
  transform: scale(1.1);
  color: var(--accent);
}

.outer-container {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  background: transparent;
  position: relative;
}

.inner-container {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/*  Hero Section */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  background: transparent;
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  position: relative;
  z-index: 1;
}

/*  Badge */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 12px 24px;
  margin-bottom: 2rem;
  font-size: 14px;
  font-weight: 600;
  color: #6366f1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-badge i {
  color: #fbbf24;
}

/* Logo Container */
.logo-container {
  margin-bottom: 2rem;
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

/* Main Title */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  line-height: 0.9;
}

/* Subtitle */
.subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #64748b;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

/* CTA Container */
.cta-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* CTA Buttons */
.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: #1a1a1a;
  color: white;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: #2a2a2a;
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.cta-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
}

.cta-primary::before, .cta-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-primary:hover::before, .cta-secondary:hover::before {
  left: 100%;
}

.cta-secondary:hover::before {
  background: rgba(255, 255, 255, 0.4);
}

/*  Sections */
section {
  padding: 6rem 0;
  position: relative;
  background: transparent;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  position: relative;
}

.section-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: #64748b;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  line-height: 1.6;
  font-weight: 400;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/*  Feature Cards */
.feature {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.feature h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.feature p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.feature-link:hover {
  transform: translateX(4px);
  color: #4338ca;
}

.feature-link i {
  transition: transform 0.3s ease;
}

.feature-link:hover i {
  transform: translateX(3px);
}

.cta {
  display: inline-flex;
  align-items: center;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  padding: 1.2rem 2.5rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

footer {
  padding: 4rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.email-form {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  max-width: 500px;
}

.email-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }
.toast.loading { background: #6B7280; }

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav-header {
    padding: 0.75rem 0;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-logo span {
    font-size: 1.1rem;
  }
  
  .nav-icons {
    gap: 0.75rem;
  }
  
  .nav-icon {
    width: 20px;
    height: 20px;
  }
  
  .logo-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .logo {
    width: clamp(180px, 45vw, 280px) !important;
  }
  
  .email-form {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }
  
  .email-input {
    width: 100%;
  }
  
  .cta {
    width: 100%;
    justify-content: center;
  }

  /* Demo responsive */
  #demo .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .demo-console {
    order: -1;
  }

  #demo-output {
    min-height: 250px !important;
    max-height: 300px !important;
    font-size: 0.8rem !important;
  }

  /* Secciones responsive */
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .section-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
}

/* Mejoras adicionales */
html {
  scroll-behavior: smooth;
}

.hero-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.hero {
  position: relative;
  z-index: 1;
}

/* Efectos hover mejorados */
.feature {
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.cta {
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Estilos para la experiencia de instalación */
.installation-experience {
  max-width: 800px;
  margin: 0 auto;
}

.terminal-container {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.terminal-header {
  background: #2d2d2d;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #404040;
}

.terminal-controls {
  display: flex;
  gap: 8px;
  margin-right: 20px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control-dot.red { background: #ff5f57; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #28ca42; }

.terminal-header h4 {
  color: #888;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.terminal-body {
  padding: 20px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: #E6EDF3;
  min-height: 200px;
}

.terminal-line {
  margin-bottom: 8px;
}

.prompt {
  color: #10B981;
  margin-right: 8px;
}

.command {
  color: #E6EDF3;
}

/* Theme Selector Styles */
.theme-selector-preview {
  max-width: 1000px;
  margin: 0 auto;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.theme-card {
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.theme-preview {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

/* Basic Theme Preview */
.basic-preview {
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.basic-preview .preview-header {
  height: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
}

.basic-preview .preview-content {
  padding: 15px;
}

.basic-preview .preview-line {
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  margin-bottom: 8px;
}

.basic-preview .preview-line.short {
  width: 60%;
}

.basic-preview .preview-button {
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  margin-top: 15px;
}

/* YouTube Theme Preview */
.youtube-preview {
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.youtube-preview .preview-header.red {
  height: 20px;
  background: #ff0000;
}

.youtube-preview .preview-content {
  padding: 10px;
}

.youtube-preview .preview-video {
  width: 100%;
  height: 50px;
  background: #000;
  border-radius: 4px;
  margin-bottom: 8px;
  position: relative;
}

.youtube-preview .preview-video::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
}

/* Dashboard Theme Preview */
.dashboard-preview {
  background: #f8f9fa;
  display: flex;
}

.dashboard-preview .preview-sidebar {
  width: 30%;
  background: #2d3748;
  border-radius: 4px 0 0 4px;
}

.dashboard-preview .preview-main {
  flex: 1;
  padding: 10px;
}

.dashboard-preview .preview-chart {
  height: 40px;
  background: linear-gradient(45deg, #0066FF, #00CCFF);
  border-radius: 4px;
  margin-bottom: 8px;
}

.dashboard-preview .preview-stats {
  display: flex;
  gap: 4px;
}

.dashboard-preview .preview-stats::after {
  content: '';
  width: 20px;
  height: 20px;
  background: #10B981;
  border-radius: 2px;
}

/* Chat Theme Preview */
.chat-preview {
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.chat-preview .preview-header.blue {
  height: 20px;
  background: #0066FF;
}

.chat-preview .preview-messages {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message-bubble {
  height: 16px;
  border-radius: 12px;
  max-width: 70%;
}

.message-bubble.left {
  background: #e5e5e5;
  align-self: flex-start;
}

.message-bubble.right {
  background: #0066FF;
  align-self: flex-end;
}

.theme-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.theme-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA Commands Styles */
.cta-commands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.command-box {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  position: relative;
}

.command-box code {
  color: #E6EDF3;
  font-size: 1rem;
  background: none;
  padding: 0;
}

.copy-btn {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  margin-left: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  color: #E6EDF3;
  transform: scale(1.1);
}

.command-separator {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 300;
}

/* Responsive para themes */
@media (max-width: 768px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .theme-card {
    padding: 1rem;
  }
  
  .theme-preview {
    height: 80px;
  }
  
  .cta-commands {
    flex-direction: column;
    gap: 1rem;
  }
  
  .command-box {
    width: 100%;
    justify-content: center;
  }
  
  .command-separator {
    transform: rotate(90deg);
  }
}

/* Mejoras responsive completas para mobile */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --section-spacing: clamp(3rem, 8vw, 6rem);
  }

  /* Navigation mobile */
  .nav-header {
    padding: 0.5rem 0;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo img {
    width: 28px;
    height: 28px;
  }

  .nav-logo span {
    font-size: 1rem;
  }

  .nav-icons {
    gap: 0.5rem;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  /* Hero section mobile */
  header {
    padding: calc(var(--section-spacing) + 60px) 0 var(--section-spacing);
    min-height: 90vh;
  }

  .logo {
    width: clamp(150px, 45vw, 220px) !important;
  }

  .subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    max-width: 100%;
    text-align: center;
  }

  /* Sections mobile */
  .section-title {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
    margin-bottom: 2rem;
  }

  .section-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin: -1rem auto 3rem;
    max-width: 100%;
  }

  /* Grid mobile */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .feature {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .feature h3 {
    font-size: 1.25rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  /* PersonnnKit section mobile */
  .installation-experience {
    margin: 2rem 0 !important;
  }

  .terminal-container {
    border-radius: 8px;
    margin: 0 -0.5rem;
  }

  .terminal-header {
    padding: 8px 12px;
  }

  .terminal-header h4 {
    font-size: 0.75rem;
  }

  .control-dot {
    width: 10px;
    height: 10px;
  }

  .terminal-controls {
    gap: 6px;
    margin-right: 12px;
  }

  .terminal-body {
    padding: 12px;
    font-size: 0.8rem;
    min-height: 150px;
  }

  /* Theme selector mobile */
  .theme-selector-preview {
    margin: 2rem 0 !important;
  }

  .themes-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .theme-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .theme-preview {
    height: 100px;
    margin-bottom: 0.75rem;
  }

  .theme-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .theme-card p {
    font-size: 0.85rem;
  }

  /* CTA Commands mobile */
  .final-cta {
    margin-top: 3rem !important;
  }

  .final-cta h3 {
    font-size: clamp(1.75rem, 8vw, 2rem) !important;
    margin-bottom: 0.75rem;
  }

  .final-cta p {
    font-size: clamp(1rem, 4vw, 1.1rem) !important;
    margin-bottom: 1.5rem;
  }

  .cta-commands {
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
  }

  .command-box {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: space-between;
    font-size: 0.8rem;
  }

  .command-box code {
    font-size: 0.8rem;
    word-break: break-all;
  }

  .copy-btn {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .command-separator {
    transform: none;
    font-size: 1rem;
  }

  /* Demo section mobile */
  #demo .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .demo-console {
    order: -1;
  }

  #demo-output {
    min-height: 200px !important;
    max-height: 250px !important;
    font-size: 0.75rem !important;
    padding: 12px !important;
  }

  #demo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  #demo p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  #demo h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  #demo ul li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  #demo .cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Email form mobile */
  .email-form {
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
  }

  .email-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .cta {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Footer mobile */
  footer {
    padding: 3rem 0;
  }

  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    text-align: center !important;
  }

  footer h4 {
    font-size: 1rem;
  }

  footer p {
    font-size: 0.8rem;
  }

  /* Toast mobile */
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
    text-align: center;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .terminal-container {
    margin: 0 -1rem;
  }

  .command-box {
    padding: 0.5rem 0.75rem;
  }

  .command-box code {
    font-size: 0.75rem;
  }

  .theme-preview {
    height: 80px;
  }

  .section-title {
    font-size: clamp(1.25rem, 10vw, 2rem);
  }

  .final-cta h3 {
    font-size: clamp(1.5rem, 10vw, 1.75rem) !important;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  header {
    min-height: 100vh;
    padding: calc(var(--section-spacing) + 80px) 0 var(--section-spacing);
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .logo-container {
    margin-bottom: 2rem;
  }

  .subtitle {
    margin-bottom: 2rem;
  }
}

/* Fixes específicos para PersonnnKit mobile */
@media (max-width: 768px) {
  /* Terminal fixes */
  .installation-experience {
    margin: 2rem 0 !important;
  }

  .terminal-container {
    margin: 0 -1rem;
    border-radius: 8px;
  }

  .terminal-header {
    padding: 8px 16px;
    flex-wrap: nowrap;
  }

  .terminal-header h4 {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .terminal-controls {
    gap: 6px;
    margin-right: 16px;
    flex-shrink: 0;
  }

  .control-dot {
    width: 10px;
    height: 10px;
  }

  .terminal-body {
    padding: 16px;
    font-size: 0.8rem;
    min-height: 180px;
  }

  /* Theme selector fixes */
  .theme-selector-preview h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem;
  }

  .themes-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .theme-card {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
  }

  .theme-preview {
    height: 120px;
    margin-bottom: 1rem;
  }

  .theme-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .theme-card p {
    font-size: 0.9rem;
    color: var(--muted);
  }

  /* CTA Commands fixes */
  .final-cta {
    margin-top: 4rem !important;
    padding: 0 1rem;
  }

  .final-cta h3 {
    font-size: 1.75rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .final-cta p {
    font-size: 1rem !important;
    margin-bottom: 2rem;
  }

  .cta-commands {
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
  }

  .command-box {
    width: 100%;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    font-size: 0.85rem;
  }

  .command-box code {
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
    margin-right: 0.5rem;
  }

  .copy-btn {
    margin-left: 0.5rem;
    font-size: 1rem;
    flex-shrink: 0;
    padding: 0.25rem;
  }

  .command-separator {
    transform: none;
    font-size: 1rem;
    margin: 0.5rem 0;
  }

  /* PersonnnKit grid fixes */
  #personnnkit .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    margin: 3rem 0;
  }

  #personnnkit .feature {
    padding: 2rem;
    border-radius: 16px;
  }

  #personnnkit .feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  #personnnkit .feature p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Final CTA buttons */
  .final-cta .cta {
    width: 100%;
    margin: 0.5rem 0;
    padding: 1rem 2rem;
    font-size: 1rem;
    justify-content: center;
  }

  .final-cta .cta:first-of-type {
    margin-right: 0;
  }
}

/* Extra mobile fixes para pantallas muy pequeñas */
@media (max-width: 480px) {
  .terminal-container {
    margin: 0 -0.5rem;
  }

  .terminal-header {
    padding: 6px 12px;
  }

  .terminal-header h4 {
    font-size: 0.7rem;
  }

  .terminal-body {
    padding: 12px;
    font-size: 0.75rem;
    min-height: 150px;
  }

  .theme-card {
    padding: 1rem;
  }

  .theme-preview {
    height: 100px;
  }

  .command-box {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .command-box code {
    font-size: 0.8rem;
  }

  .final-cta h3 {
    font-size: 1.5rem !important;
  }

  .final-cta p {
    font-size: 0.9rem !important;
  }

}

/* ===== FOOTER STYLES ===== */
.epic-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 8rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.footer-section ul li a:hover {
  color: var(--fg) !important;
}

.footer-bottom .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-container {
    padding: 3rem 1.5rem 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }

  .footer-bottom > div > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .footer-bottom > div > div:last-child {
    flex-wrap: wrap !important;
  }
}

/* Social icons hover effects */
.footer-section a[href="#"]:hover {
  color: #6366f1 !important;
  transform: translateY(-2px);
}

/* ===== END FOOTER STYLES ===== */
