:root {
  --bg-primary: #07090e;
  --bg-secondary: #0f141f;
  --bg-tertiary: #172033;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-blur: blur(24px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #07090e 65%);
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
}

/* Hero Section */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #c7d2fe;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 70%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SIMULADOR INTERACTIVO MACBOOK & NOTCH
   ========================================================================== */
.simulator-section {
  padding: 40px 0 80px;
}

.simulator-header {
  text-align: center;
  margin-bottom: 24px;
}

.simulator-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* Chassis de MacBook */
.macbook-chassis {
  background: linear-gradient(180deg, #1e2430 0%, #11151f 100%);
  border-radius: 24px 24px 12px 12px;
  padding: 16px 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.1);
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

/* Pantalla */
.macbook-screen {
  background: radial-gradient(ellipse at 50% 30%, #1e1b4b 0%, #090d16 100%);
  border-radius: 12px;
  overflow: visible;
  position: relative;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Barra de Menús Simulada */
.sim-menubar {
  height: 34px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #f1f5f9;
  position: relative;
  user-select: none;
}

.sim-menubar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.apple-logo {
  font-size: 14px;
}

/* Corte del Notch físico */
.sim-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 34px;
  background: #000000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.sim-notch-lens {
  width: 8px;
  height: 8px;
  background: #0f172a;
  border-radius: 50%;
  border: 1px solid #1e293b;
}

/* Lado derecho de la barra de menús */
.sim-menubar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 10;
}

.sim-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sim-item.danger-clash {
  background: rgba(244, 63, 94, 0.3);
  color: #fda4af;
  border: 1px dashed var(--accent-rose);
  animation: pulseClash 2s infinite;
}

@keyframes pulseClash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sim-bary-toggle {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-weight: 700;
}

.sim-bary-toggle:hover {
  background: rgba(56, 189, 248, 0.3);
}

/* Floating Shelf bajo el Notch */
.sim-notch-shelf {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.2);
  z-index: 30;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
}

.sim-notch-shelf.shelf-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-12px);
}

.shelf-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.shelf-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
}

.shelf-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Centro de la pantalla simulada */
.sim-screen-body {
  padding: 60px 24px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.sim-state-banner {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.banner-safe {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.banner-chaos {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

/* Panel de Control del Simulador */
.simulator-controls {
  margin-top: 24px;
  background: rgba(15, 20, 31, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.controls-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.mode-btn.active {
  background: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.controls-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Secciones Informativas / Features */
.features-section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

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

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

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* Comparativa Bartender Crisis */
.comparison-section {
  padding: 80px 0;
  background: rgba(10, 14, 23, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comp-table th,
.comp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
  background: rgba(15, 23, 42, 0.8);
  font-weight: 700;
  color: var(--text-main);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table td:nth-child(2) {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.03);
}

.comp-table td:nth-child(3) {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.05);
  font-weight: 600;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0 60px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s;
}

.pricing-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.price-amount {
  font-size: 44px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -1px;
}

.price-period {
  font-size: 14px;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li strong {
  color: var(--text-main);
}

/* Download Box */
.download-section {
  padding: 60px 0 100px;
}

.download-box {
  background: linear-gradient(180deg, #131b2e 0%, #0a0f1d 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.checksum-card {
  margin-top: 24px;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Accessibility Step by Step Guide */
.accessibility-section {
  padding: 60px 0 100px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .sim-notch {
    width: 120px;
  }
  .pricing-card.popular {
    transform: none;
  }
}
