/* Linux Permissions Project Styles */

/* Theme Variables */
:root {
  /* Colors */
  --primary-blue: #3b82f6;
  --primary-cyan: #06b6d4;
  --primary-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-orange: #f97316;
  --accent-primary: #f97316;
  --accent-secondary: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --surface: #334155;
  --surface-lighter: #475569;
  --border: #64748b;
  --glass-bg: rgba(51, 65, 85, 0.8);
  --glass-border: rgba(100, 116, 139, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-accent: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Light theme colors */
[data-theme="light"] {
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --surface: #e2e8f0;
  --surface-lighter: #cbd5e1;
  --border: #94a3b8;
  --glass-bg: rgba(248, 250, 252, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  /* Degradado naranja/amarillo suave de fondo */
  background: linear-gradient(135deg, 
    rgba(249, 115, 22, 0.05) 0%, 
    rgba(245, 158, 11, 0.03) 25%, 
    transparent 50%, 
    rgba(16, 185, 129, 0.04) 75%, 
    rgba(249, 115, 22, 0.06) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
}

/* Tema claro - degradado naranja más visible */
[data-theme="light"] body {
  background: linear-gradient(135deg, 
    rgba(249, 115, 22, 0.08) 0%, 
    rgba(245, 158, 11, 0.05) 25%, 
    rgba(255, 255, 255, 0.95) 50%, 
    rgba(16, 185, 129, 0.06) 75%, 
    rgba(249, 115, 22, 0.1) 100%
  );
  background-attachment: fixed;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-2xl);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* Light theme title fix */
[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.hero-cta.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.hero-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.hero-cta.secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.hero-cta.secondary:hover {
  background: var(--surface-lighter);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

.animate-delay-1 {
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.animate-delay-2 {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.animate-delay-3 {
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.animate-delay-4 {
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   SECTIONS
   ======================================== */

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

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
}

/* Overview Section */
.overview-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  background: linear-gradient(135deg, 
    var(--bg-secondary) 0%, 
    rgba(249, 115, 22, 0.02) 50%, 
    var(--bg-secondary) 100%
  );
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.overview-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1), var(--shadow-md);
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.overview-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.overview-card p {
  color: var(--text-secondary);
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  background: linear-gradient(45deg, 
    var(--bg-primary) 0%, 
    rgba(245, 158, 11, 0.03) 50%, 
    var(--bg-primary) 100%
  );
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1), var(--shadow-md);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.feature-icon {
  font-size: 2.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

/* Demo Section */
.demo-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  background: linear-gradient(135deg, 
    var(--bg-secondary) 0%, 
    rgba(16, 185, 129, 0.02) 30%, 
    rgba(249, 115, 22, 0.03) 70%, 
    var(--bg-secondary) 100%
  );
}

.demo-container {
  max-width: 900px;
  margin: 0 auto;
}

.demo-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.demo-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-btn:hover {
  background: var(--surface-lighter);
}

.demo-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.demo-terminal {
  background: #1a1a1a;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.terminal-header {
  background: #2d2d2d;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.terminal-controls {
  display: flex;
  gap: var(--space-xs);
}

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

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27ca3f; }

.terminal-title {
  color: #888;
  font-size: 0.9rem;
}

.terminal-content {
  padding: var(--space-lg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 300px;
  color: #e5e7eb;
}

/* Code Section */
.code-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  background: linear-gradient(225deg, 
    var(--bg-primary) 0%, 
    rgba(249, 115, 22, 0.04) 50%, 
    var(--bg-primary) 100%
  );
}

.code-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: var(--surface-lighter);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.code-content {
  background: #1a1a1a;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.code-header {
  background: #2d2d2d;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-title {
  color: #e5e7eb;
  font-weight: 600;
}

.copy-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: var(--accent-secondary);
}

.code-content pre {
  margin: 0;
  padding: var(--space-xl);
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-content code {
  color: #e5e7eb;
}

/* Usage Section */
.usage-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  background: linear-gradient(135deg, 
    var(--bg-secondary) 0%, 
    rgba(245, 158, 11, 0.03) 50%, 
    var(--bg-secondary) 100%
  );
}

.usage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 100%;
  margin: 0 auto;
}

.usage-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1), var(--shadow-md);
  width: 100%;
}

.usage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 25px 50px rgba(0, 0, 0, 0.15);
}

.usage-header {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
}

.usage-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.usage-steps {
  padding: 2rem;
  background: var(--surface);
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  background: var(--accent-primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.step-content {
  flex: 1;
  min-width: 0; /* Allow text to wrap properly */
}

.step-content h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.step-content pre {
  margin-top: 1rem;
  overflow-x: auto;
}

/* Ajustes específicos para tema claro */
[data-theme="light"] .usage-card {
  background: var(--bg-primary);
  border-color: var(--border);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15), var(--shadow-md);
}

[data-theme="light"] .usage-card:hover {
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25), 0 25px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .usage-steps {
  background: var(--bg-primary);
}

[data-theme="light"] .step-content h4 {
  color: #1e293b;
}

[data-theme="light"] .step-content p {
  color: #475569;
}

[data-theme="light"] .step-content pre {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

/* Security Section */
.security-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  background: linear-gradient(135deg, 
    var(--bg-primary) 0%, 
    rgba(249, 115, 22, 0.05) 50%, 
    var(--bg-primary) 100%
  );
}

.security-content {
  max-width: 900px;
  margin: 0 auto;
}

.security-warning {
  display: flex;
  gap: 2rem;
  background: linear-gradient(135deg, #fee2e2, #fef3c7);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  border-left: 6px solid #dc2626;
}

.warning-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.warning-content h3 {
  color: #dc2626;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.warning-content p {
  color: #7c2d12;
  line-height: 1.6;
  font-weight: 500;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.security-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1), var(--shadow-md);
}

.security-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.security-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.security-card ul {
  list-style: none;
  padding: 0;
}

.security-card li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.security-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Technical Section */
.technical-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  background: linear-gradient(45deg, 
    var(--bg-secondary) 0%, 
    rgba(16, 185, 129, 0.02) 30%, 
    rgba(249, 115, 22, 0.03) 70%, 
    var(--bg-secondary) 100%
  );
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.technical-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1), var(--shadow-md);
}

.technical-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.technical-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--accent-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.technical-card ul {
  list-style: none;
  padding: 0;
}

.technical-card li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.technical-card li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.8rem;
}

/* Navigation Section */
.navigation-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

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

.navigation-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1), var(--shadow-md);
}

.link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-primary);
}

.link-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.link-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.link-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Back Button */
.back-btn-container {
  position: fixed;
  top: 100px;
  left: 2rem;
  z-index: 100;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.back-btn:hover {
  background: var(--surface-lighter);
  transform: translateX(-2px);
}

/* ========================================
   CTA SECTION (Final)
   ======================================== */

.section-container {
  padding: 6rem 0;
  background: var(--bg-primary);
  background: linear-gradient(135deg, 
    var(--bg-primary) 0%, 
    rgba(249, 115, 22, 0.04) 50%, 
    var(--bg-primary) 100%
  );
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.cta-section {
  margin-top: var(--space-3xl);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.cta-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1), var(--shadow-md);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(249, 115, 22, 0.02) 0%, 
    transparent 50%, 
    rgba(245, 158, 11, 0.02) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-primary);
}

.cta-card:hover::before {
  opacity: 1;
}

.cta-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.cta-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.cta-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-width: 160px;
}

.cta-button.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
  background: var(--surface-lighter);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.cta-button.secondary:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.cta-button.tertiary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.cta-button.tertiary:hover {
  background: var(--accent-primary);
  color: white;
}

/* Light theme adjustments for CTA */
[data-theme="light"] .cta-card {
  background: var(--bg-primary);
  border-color: var(--border);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15), var(--shadow-md);
}

[data-theme="light"] .cta-card:hover {
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25), 0 25px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cta-card h3 {
  color: #1e293b;
}

[data-theme="light"] .cta-card p {
  color: #475569;
}

[data-theme="light"] .cta-button.secondary {
  background: var(--surface);
  color: var(--text-primary);
}

/* Responsive adjustments for CTA */
@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .cta-card {
    padding: 2rem;
  }
  
  .cta-icon {
    font-size: 2.5rem;
  }
  
  .section-header .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 4rem 0;
  }
  
  .content-wrapper {
    padding: 0 1rem;
  }
  
  .cta-card {
    padding: 1.5rem;
  }
  
  .cta-button {
    width: 100%;
    padding: var(--space-md);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Asegurar que usage-grid siempre sea una columna */
@media (min-width: 768px) {
  .usage-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
  }
  
  .usage-card {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .usage-grid {
    max-width: 800px;
  }
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }
  
  .usage-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 100%;
  }
  
  .technical-grid {
    grid-template-columns: 1fr;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .code-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .demo-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .back-btn-container {
    left: 1rem;
  }
  
  .security-warning {
    flex-direction: column;
    text-align: center;
  }
  
  .usage-grid {
    gap: 2rem;
    max-width: 100%;
    grid-template-columns: 1fr;
  }
  
  .usage-card {
    margin: 0;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .step-number {
    margin: 0 auto;
  }
  
  /* Responsive adjustments for CTA */
  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .cta-card {
    padding: 2rem;
  }
  
  .cta-icon {
    font-size: 2.5rem;
  }
  
  .section-header .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .usage-grid {
    gap: 1.5rem;
  }
  
  .usage-steps {
    padding: 1.5rem;
  }
  
  .step {
    margin-bottom: 1.5rem;
  }
  
  .step-content pre {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
  
  /* CTA responsive */
  .section-container {
    padding: 4rem 0;
  }
  
  .content-wrapper {
    padding: 0 1rem;
  }
  
  .cta-card {
    padding: 1.5rem;
  }
  
  .cta-button {
    width: 100%;
    padding: var(--space-md);
  }
}

@media (max-width: 600px) {
  .related-links {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    min-width: 120px;
  }
  
  .hero-stats {
    justify-content: space-around;
  }
  
  .terminal-content,
  .code-content pre {
    font-size: 0.8rem;
  }
  
  .usage-header h3 {
    font-size: 1.25rem;
  }
  
  .step-content h4 {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .hero-badge {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .usage-steps {
    padding: 1rem;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .step-content h4 {
    font-size: 0.95rem;
  }
  
  .step-content p {
    font-size: 0.9rem;
  }
}

/* Terminal scrollbar styling */
.terminal-content::-webkit-scrollbar {
  width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Code block improvements */
.code-content pre {
  position: relative;
}

.code-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
  opacity: 0.3;
}

/* Enhanced focus states */
.demo-btn:focus,
.tab-btn:focus,
.copy-btn:focus,
.cta-button:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}


/* Force vertical layout for usage cards at all screen sizes */
.usage-section .usage-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 3rem;
  max-width: 100%;
  margin: 0 auto;
}

.usage-section .usage-card {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

/* Ensure proper spacing for usage steps */
.usage-steps {
  padding: 2rem;
  background: var(--surface);
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-content {
  flex: 1;
  min-width: 0; /* Allow text to wrap properly */
}

.step-content pre {
  margin-top: 1rem;
  overflow-x: auto;
}

/* Better mobile experience for usage cards */
@media (max-width: 768px) {
  .usage-section .usage-grid {
    gap: 2rem;
  }
  
  .usage-steps {
    padding: 1.5rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .step-number {
    margin: 0 auto;
  }
}

/* Call to action final épico */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--surface));
  border: 2px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, 
    rgba(249, 115, 22, 0.1), 
    rgba(245, 158, 11, 0.1), 
    rgba(16, 185, 129, 0.08), 
    rgba(249, 115, 22, 0.1));
  animation: rotate-bg 10s linear infinite;
  opacity: 0.5;
}

@keyframes rotate-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.cta-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.cta-btn::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 ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, #ea580c, #d97706);
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn.secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.cta-btn.secondary:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  border-color: #ea580c;
}

.cta-btn.tertiary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.cta-btn.tertiary:hover {
  background: var(--surface-lighter);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* Responsive design */
@media (max-width: 768px) {
  .final-cta {
    padding: var(--space-xl) var(--space-lg);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .final-cta {
    padding: var(--space-xl) var(--space-md);
  }
}

/* Tema claro */
[data-theme="light"] .final-cta {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .cta-btn:hover {
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.3);
}

[data-theme="light"] .cta-btn.secondary:hover {
  background: rgba(249, 115, 22, 0.08);
}
footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #051b3f 100%);
  color: #f6f7f8;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(59, 130, 246, 0.3);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
