/* Hoja de estilos ligera y crítica para las landings estáticas (EN / ES) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  --bg-page: #151617;
  --bg-surface: #1c1e21;
  --bg-elevated: #23262a;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-subtle: #2e3338;
  --accent-primary: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-btn-bg: #2563eb;
  --accent-btn-text: #ffffff;
  --code-bg: #111315;
  --badge-bg: rgba(96, 165, 250, 0.12);
  --badge-border: rgba(96, 165, 250, 0.3);
}

html.light,
html[data-theme="light"] {
  --bg-page: #f5f4f0;
  --bg-surface: #ffffff;
  --bg-elevated: #eae8e1;
  --text-main: #18181b;
  --text-muted: #52525b;
  --border-subtle: #d4d4d8;
  --accent-primary: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-btn-bg: #1d4ed8;
  --accent-btn-text: #ffffff;
  --code-bg: #eeeae0;
  --badge-bg: rgba(29, 78, 216, 0.08);
  --badge-border: rgba(29, 78, 216, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-main);
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  border-radius: 6px;
  display: block;
}

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

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px 10px;
}

.lang-switcher a,
.lang-switcher span {
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
}

.lang-active {
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-primary:hover {
  color: var(--accent-btn-text);
  text-decoration: none;
  opacity: 0.94;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
}

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--accent-primary);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--accent-primary);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.section-block {
  margin-bottom: 52px;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

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

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 22px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: revert;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

