:root {
  --bg-dark: #0b0f19;
  --bg-card: #1f2637;
  --bg-border: #2d3748;
  --text-main: #ffffff;
  --text-muted: #a0aec0;
  --primary: #00a389; /* Tu verde esmeralda */
  --primary-hover: #008f77;
  --font-inter: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-inter);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-border);
  z-index: 100;
}

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

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links .btn-primary-nav {
  background-color: var(--primary);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 6px;
}

.nav-links .btn-primary-nav:hover {
  background-color: var(--primary-hover);
}

/* Hero Section */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
}

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

.badge {
  background-color: rgba(0, 163, 137, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 163, 137, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn-primary, .btn-primary-card {
  background-color: var(--primary);
  color: var(--text-main);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.hero-actions .btn-primary:hover, .btn-primary-card:hover {
  background-color: var(--primary-hover);
}

.btn-secondary, .btn-secondary-card {
  background-color: #1a202c;
  border: 1px solid var(--bg-border);
  color: var(--text-main);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-secondary:hover, .btn-secondary-card:hover {
  background-color: #2d3748;
}

/* App Preview Layout */
.app-preview {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.preview-mac-actions {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
}

.preview-mac-actions span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bg-border);
}

.preview-placeholder {
  background-color: #111622;
  border-radius: 8px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Features */
.features, .pricing, .cta {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  padding: 32px;
  border-radius: 8px;
}

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Pricing */
.pricing-container {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 40px;
  flex: 1;
  min-width: 300px;
  position: relative;
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 163, 137, 0.15);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.price-card .price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

.price-card .price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  margin-bottom: 40px;
}

.price-card ul li {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.price-card .btn-primary-card, .price-card .btn-secondary-card {
  display: block;
  text-align: center;
}

/* CTA Form */
.cta {
  text-align: center;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(31, 38, 55, 0.5) 100%);
  border: 1px solid var(--bg-border);
  padding: 60px 40px;
  border-radius: 16px;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.cta-form {
  display: flex;
  gap: 12px;
}

.cta-form input {
  flex: 1;
  background-color: #111622;
  border: 1px solid var(--bg-border);
  padding: 14px 16px;
  border-radius: 6px;
  color: white;
  font-family: var(--font-inter);
  font-size: 14px;
}

.cta-form input:focus {
  outline: 1px solid var(--primary);
}

.btn-submit {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-inter);
  font-size: 14px;
  transition: background 0.2s;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--bg-border);
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .cta-form { flex-direction: column; }
  .nav-links { display: none; }
}

/* SECCIÓN DOCUMENTACIÓN */
.docs-section {
  padding: 80px 20px;
  background-color: #1a202c; /* Mismo fondo integrado */
  color: #cbd5e0;
}

.docs-wrapper {
  display: flex;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  background-color: #2d3748; /* Caja unificada contenedora */
  border: 1px solid #4a5568;
  border-radius: 8px;
  min-height: 400px;
  overflow: hidden;
}

/* Barra lateral de la doc */
.docs-sidebar {
  width: 240px;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid #4a5568;
}

.docs-tab-btn {
  background: transparent;
  border: none;
  color: #a0aec0;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.docs-tab-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.docs-tab-btn.active {
  color: #ffffff;
  background-color: #1a202c; /* Resalta usando el color de fondo general */
  font-weight: 600;
}

/* Panel de contenido derecho */
.docs-content {
  flex: 1;
  padding: 30px 40px;
  background-color: transparent;
}

.docs-panel {
  display: none; /* Oculto por defecto */
}

.docs-panel.active {
  display: block; /* Solo se muestra el activo */
}

.docs-panel h3 {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
}

.docs-panel p {
  font-size: 14px;
  line-height: 1.6;
  color: #a0aec0;
  margin-bottom: 16px;
}

/* Bloques de código simulados */
.docs-panel pre {
  background-color: #1a202c;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #4a5568;
  overflow-x: auto;
  margin: 0;
}

.docs-panel code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #edf2f7;
}

/* Tabla de atajos */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.docs-table th, .docs-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #4a5568;
  font-size: 14px;
}

.docs-table th {
  color: #ffffff;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.1);
}

.docs-table td kbd {
  background-color: #1a202c;
  border: 1px solid #4a5568;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: lightskyblue;
  font-family: inherit;
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
  .docs-wrapper {
    flex-direction: column;
  }
  .docs-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #4a5568;
  }
}