/* =============================================
   EXPERTOS AI BUILDER — Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --color-crema: #F5F0E8;
  --color-crema-dark: #EDE7D9;
  --color-negro: #0D0D0D;
  --color-negro-soft: #141414;
  --color-negro-card: #1A1A1A;
  --color-terracota: #C1440E;
  --color-terracota-light: #D4521A;
  --color-terracota-dark: #9E3609;
  --color-rojo: #8B1A0A;
  --color-texto-oscuro: #1C1C1C;
  --color-texto-claro: #F0EAE0;
  --color-texto-muted: #6B6560;
  --color-texto-muted-dark: #8A8480;
  --color-borde: rgba(0,0,0,0.1);
  --color-borde-dark: rgba(255,255,255,0.08);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 10rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-soft: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-medium: 0 8px 40px rgba(0,0,0,0.14);
  --shadow-strong: 0 16px 64px rgba(0,0,0,0.22);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --content-width: 780px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background: var(--color-crema); color: var(--color-texto-oscuro); line-height: 1.6; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---- Typography Scale ---- */
.t-display {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.t-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
}
.t-h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
}
.t-lead {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
}
.t-body { font-size: 1rem; line-height: 1.75; }
.t-small { font-size: 0.85rem; letter-spacing: 0.02em; }
.t-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

em.highlight {
  font-style: italic;
  color: var(--color-terracota);
  font-family: var(--font-serif);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
.container--narrow {
  max-width: var(--content-width);
}
.section {
  padding: var(--spacing-xl) 0;
}
.section--sm {
  padding: var(--spacing-lg) 0;
}
.section--xl {
  padding: var(--spacing-xxl) 0;
}

/* ---- Color Schemes ---- */
.bg-crema {
  background: var(--color-crema);
  color: var(--color-texto-oscuro);
}
.bg-negro {
  background: var(--color-negro);
  color: var(--color-texto-claro);
}
.bg-negro-soft {
  background: var(--color-negro-soft);
  color: var(--color-texto-claro);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-borde);
}
.nav.dark {
  background: transparent;
}
.nav.dark.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-borde-dark);
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-negro);
}
.nav.dark .nav__logo { color: var(--color-crema); }
.nav__logo span { color: var(--color-terracota); font-style: italic; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-texto-muted);
  transition: color var(--transition);
}
.nav.dark .nav__links a { color: var(--color-texto-muted-dark); }
.nav__links a:hover { color: var(--color-terracota); }
.nav__cta {
  background: var(--color-terracota) !important;
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--color-terracota-dark) !important; }

/* ---- Hero ---- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 var(--spacing-xl);
  background: var(--color-crema);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(193,68,14,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(193,68,14,0.1);
  color: var(--color-terracota);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: var(--spacing-md);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-terracota);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero__title { margin-bottom: var(--spacing-md); max-width: 780px; }
.hero__subtitle {
  max-width: 560px;
  color: var(--color-texto-muted);
  margin-bottom: var(--spacing-lg);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}
.hero__stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.hero__stat-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-terracota);
}
.hero__stat-label { font-size: 0.8rem; color: var(--color-texto-muted); line-height: 1.3; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-terracota);
  color: white;
  box-shadow: 0 4px 16px rgba(193,68,14,0.3);
}
.btn--primary:hover {
  background: var(--color-terracota-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(193,68,14,0.4);
}
.btn--outline {
  border: 1.5px solid var(--color-negro);
  color: var(--color-negro);
}
.btn--outline:hover {
  background: var(--color-negro);
  color: var(--color-crema);
}
.btn--outline-light {
  background: white;
  border: 1.5px solid white;
  color: var(--color-terracota);
  font-weight: 700;
}
.btn--outline-light:hover {
  background: transparent;
  border-color: white;
  color: white;
}
.btn--ghost {
  color: var(--color-terracota);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { gap: 0.75rem; }
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
}

/* ---- Cards Grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

/* ---- Guide Card ---- */
.guide-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}
.guide-card__preview {
  aspect-ratio: 16/9;
  background: var(--color-negro);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-card__preview-inner {
  width: 85%;
  padding: 1.5rem;
  background: var(--color-negro-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-borde-dark);
}
.guide-card__preview-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 0.5rem;
}
.guide-card__preview-line:first-child { width: 70%; background: rgba(255,255,255,0.15); }
.guide-card__preview-line:nth-child(2) { width: 50%; }
.guide-card__preview-line:last-child { width: 85%; }
.guide-card__preview-accent {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--color-terracota);
}
.guide-card__badge-wrap {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  gap: 0.25rem;
}
.badge--terracota {
  background: rgba(193,68,14,0.85);
  color: white;
  backdrop-filter: blur(8px);
}
.badge--dark {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}
.guide-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.guide-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.guide-card__category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-terracota);
}
.guide-card__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-texto-muted);
}
.guide-card__time {
  font-size: 0.72rem;
  color: var(--color-texto-muted);
}
.guide-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--color-negro);
}
.guide-card__desc {
  font-size: 0.875rem;
  color: var(--color-texto-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.guide-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-borde);
}

/* ---- Section Headers ---- */
.section-header {
  margin-bottom: var(--spacing-lg);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracota);
  margin-bottom: 0.75rem;
}
.section-header h2 { max-width: 600px; }
.section-header p {
  margin-top: 1rem;
  color: var(--color-texto-muted);
  max-width: 500px;
}

/* ---- Guide Page Specific ---- */
.guide-hero {
  padding: 8rem 0 var(--spacing-xl);
  background: var(--color-crema);
}
.guide-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.guide-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-texto-muted);
  transition: color var(--transition);
}
.guide-hero__back:hover { color: var(--color-terracota); }
.guide-hero__date {
  font-size: 0.8rem;
  color: var(--color-texto-muted);
}
.guide-hero__title {
  max-width: 820px;
  margin-bottom: 1.5rem;
}
.guide-hero__intro {
  max-width: 640px;
  color: var(--color-texto-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}
.guide-hero__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---- Guide Sections ---- */
.guide-section {
  padding: var(--spacing-xl) 0;
}
.guide-section--dark {
  background: var(--color-negro);
  color: var(--color-texto-claro);
}
.guide-section--dark .t-h2,
.guide-section--dark .t-h3 { color: var(--color-texto-claro); }
.guide-section--dark p { color: rgba(240,234,224,0.75); }
.guide-section--dark .section-label { color: var(--color-terracota-light); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-terracota);
  color: white;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.step-header .step-number { margin-bottom: 0; }

.guide-image-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  position: relative;
}
.guide-image-placeholder--light {
  background: var(--color-crema-dark);
  border: 1px solid var(--color-borde);
}
.guide-image-placeholder--dark {
  background: var(--color-negro-card);
  border: 1px solid var(--color-borde-dark);
}
.guide-image-placeholder__inner {
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}
.guide-image-placeholder__icon {
  width: 48px; height: 48px;
  opacity: 0.3;
}
.guide-image-placeholder__label {
  font-size: 0.8rem;
  opacity: 0.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Code Blocks ---- */
/* ── CODE BLOCK ─────────────────────────────── */
.code-block {
  background: #0D0D0D;
  border-radius: 8px;
  position: relative;
  margin: 1.5rem 0;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.code-block__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.code-block__dots { display: flex; gap: 0.375rem; }
.code-block__dot  { width: 10px; height: 10px; border-radius: 50%; }
.code-block__dot:nth-child(1) { background: #FF5F57; }
.code-block__dot:nth-child(2) { background: #FEBC2E; }
.code-block__dot:nth-child(3) { background: #28C840; }
.code-block__lang {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
/* Copy button — absolute over the code area */
.code-block__copy {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #C1440E;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.15s ease, background 0.15s ease;
  line-height: 1;
}
.code-block__copy:hover  { opacity: 0.82; }
.code-block__copy.copied { background: #2A7A3B; }

.code-block__body {
  padding: 24px;
  padding-right: 100px;
  overflow-x: auto;
}
.code-block__body pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #E8E8E8;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* ── SYNTAX COLORS (applied by JS highlighter) ── */
.syn-comment  { color: #666666; font-style: italic; }
.syn-prompt   { color: #C1440E; font-weight: 700; }   /* $ terminal */
.syn-keyword  { color: #C1440E; }
.syn-string   { color: #7CB87C; }
.syn-number   { color: #E8A87C; }
.syn-var      { color: #F0E8D8; font-weight: 500; }
.syn-tag      {                                         /* [VAR] brackets */
  background: rgba(193,68,14,0.18);
  color: #C1440E;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  font-style: normal;
}

/* ── INLINE CODE (prose) ──────────────────────── */
:not(.code-block__body) > code,
p > code, li > code, td > code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.83em;
  background: rgba(13,13,13,0.06);
  color: inherit;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
}
/* Dark-bg sections: invert inline code */
.guide-section--dark p > code,
.guide-section--dark li > code {
  background: rgba(255,255,255,0.08);
  color: #E8E8E8;
  border-color: rgba(255,255,255,0.12);
}

/* ── STANDALONE PRE (outside .code-block) ─────── */
:not(.code-block__body) > pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.7;
  background: #0D0D0D;
  color: #E8E8E8;
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.07);
  margin: 1.5rem 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── PROMPT BLOCK ────────────────────────────── */
.prompt-block {
  background: #0D0D0D;
  border: 1px solid rgba(193,68,14,0.35);
  border-left: 3px solid #C1440E;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}
.prompt-block__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(193,68,14,0.07);
  border-bottom: 1px solid rgba(193,68,14,0.15);
}
.prompt-block__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C1440E;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.prompt-block__label::before { content: '✦'; font-size: 0.6rem; }
/* Prompt copy button — absolute, same style as code copy */
.prompt-block__copy {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #C1440E;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.15s ease, background 0.15s ease;
  line-height: 1;
}
.prompt-block__copy:hover  { opacity: 0.82; }
.prompt-block__copy.copied { background: #2A7A3B; }
.prompt-block__body {
  padding: 20px 24px;
  padding-right: 110px;
}
.prompt-block__body p {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #E8E8E8;
  white-space: pre-wrap;
  margin: 0;
}
/* Important instructions inside prompts */
.prompt-block__body strong { color: #C1440E; font-weight: 700; }
.prompt-block__vars {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.625rem 1.25rem;
  background: rgba(193,68,14,0.04);
  border-top: 1px solid rgba(193,68,14,0.12);
}
.prompt-block__var {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(193,68,14,0.18);
  color: #C1440E;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Info Boxes ---- */
.info-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.info-box--tip {
  background: rgba(193,68,14,0.08);
  border-left: 3px solid var(--color-terracota);
}
.info-box--tip .info-box__title {
  color: var(--color-terracota);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.info-box--dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---- Checklist ---- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.checklist__icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: rgba(193,68,14,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.checklist__icon::after {
  content: '✓';
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-terracota);
}
.checklist__text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--color-terracota) 0%, var(--color-rojo) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; }
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.cta-section .btn--outline-light { margin: 0 auto; }

/* ---- Footer ---- */
.footer {
  padding: var(--spacing-lg) 0;
  background: var(--color-negro);
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}
.footer__logo span { color: var(--color-terracota); font-style: italic; }
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  font-size: 0.8rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-crema); }
.footer__copy { font-size: 0.78rem; }

/* ---- Table of Contents (Guide) ---- */
.guide-toc {
  position: sticky;
  top: 6rem;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-borde);
  box-shadow: var(--shadow-soft);
}
.guide-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-texto-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-borde);
}
.guide-toc__list { display: flex; flex-direction: column; gap: 0.5rem; }
.guide-toc__item a {
  font-size: 0.85rem;
  color: var(--color-texto-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
}
.guide-toc__item a:hover { color: var(--color-terracota); }
.guide-toc__item a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.guide-toc__item--active a {
  color: var(--color-terracota);
  font-weight: 600;
}

/* ---- Two Column Layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse { direction: ltr; }
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--color-borde);
  margin: var(--spacing-md) 0;
}
.divider--dark { background: var(--color-borde-dark); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.35); }

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ---- Responsive Helpers ---- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .nav__links { display: none; }
  .section { padding: var(--spacing-lg) 0; }
  .section--xl { padding: var(--spacing-xl) 0; }
  .hero { min-height: 70vh; padding-top: 6rem; }
  .container { padding: 0 1.25rem; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ================================================================
   FILTERS BAR — tab-btn / chip system
   ================================================================ */

.filters-bar {
  margin-top: 32px;
  margin-bottom: 0;
}

.quick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tab-btn {
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid #E0D8C8;
  background: #F5F0E8;
  color: #6B6B6B;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
  line-height: 1;
}
.tab-btn:hover {
  border-color: #C1440E;
  color: #C1440E;
}
.tab-btn.active {
  background: #C1440E;
  color: #fff;
  border-color: #C1440E;
}

.advanced-toggle-btn {
  display: inline-block;
  margin-top: 16px;
  background: none;
  border: none;
  color: #C1440E;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.advanced-toggle-btn:hover { opacity: .75; }

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-label {
  font-size: 12px;
  color: #6B6B6B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
  white-space: nowrap;
}

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #E0D8C8;
  background: #F5F0E8;
  color: #6B6B6B;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  line-height: 1;
}
.chip:hover  { border-color: #C1440E; color: #C1440E; }
.chip.active { background: #C1440E; color: #fff; border-color: #C1440E; }

.sort-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #E0D8C8;
  background: #F5F0E8;
  color: #6B6B6B;
  font-size: 13px;
  cursor: pointer;
}

.clear-filters-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #C1440E;
  background: transparent;
  color: #C1440E;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
}
.clear-filters-btn:hover { background: #C1440E; color: #fff; }

@media (max-width: 768px) {
  .quick-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .quick-tabs::-webkit-scrollbar { display: none; }
}

/* ============================================
   FIX GLOBAL — TEXTO EN SECCIONES OSCURAS
   ============================================ */

/* Todo elemento dentro de sección oscura */
section[style*="background: #0D0D0D"] *,
section[style*="background:#0D0D0D"] *,
section[style*="background: black"] *,
.section-dark *,
.bg-dark *,
.dark-section *,
.guide-section--dark * {
  color: #E8E8E8 !important;
}

/* Títulos en secciones oscuras — más brillantes */
section[style*="background: #0D0D0D"] h1,
section[style*="background: #0D0D0D"] h2,
section[style*="background: #0D0D0D"] h3,
section[style*="background: #0D0D0D"] h4,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.guide-section--dark h1, .guide-section--dark h2,
.guide-section--dark h3, .guide-section--dark h4 {
  color: #FFFFFF !important;
}

/* Palabras en cursiva terracota — mantener en oscuro */
section[style*="background: #0D0D0D"] em,
section[style*="background: #0D0D0D"] .highlight,
.section-dark em, .section-dark .highlight,
.guide-section--dark em, .guide-section--dark .highlight {
  color: #C1440E !important;
}

/* Metadata y texto secundario en oscuro */
section[style*="background: #0D0D0D"] .meta,
section[style*="background: #0D0D0D"] .badge-meta,
section[style*="background: #0D0D0D"] small,
.section-dark .meta, .section-dark small,
.guide-section--dark .meta, .guide-section--dark small {
  color: #888888 !important;
}

/* Tabla de comparación en sección oscura */
.comparison-table,
.comparison-table * { color: #E8E8E8 !important; }
.comparison-table th { color: #FFFFFF !important; background: #1a1a1a !important; }
.comparison-table td:first-child { color: #888888 !important; }

/* Tabla .cmp-table — también cubierta */
.cmp-table * { color: #E8E8E8 !important; }
.cmp-table th:first-child { color: #888888 !important; }
.cmp-table th:nth-child(2) { color: #7CB87C !important; }
.cmp-table th:nth-child(3) { color: #C1440E !important; }
.cmp-table td:first-child { color: #888888 !important; }
.cmp-ok  { color: #7CB87C !important; }
.cmp-warn{ color: #E8A87C !important; }
.cmp-no  { color: #E87C7C !important; }

/* Bloques de código — siempre texto claro */
pre, code,
.code-block-body pre,
.code-block-body code {
  color: #E8E8E8 !important;
}
.code-block-body { background: #111 !important; }
pre .cm, code .cm, .cm  { color: rgba(255,255,255,.3) !important; }
pre .cmd, code .cmd, .cmd{ color: #C1440E !important; }
pre .kw, code .kw, .kw  { color: #C1440E !important; }
pre .str, code .str, .str{ color: #4ADE80 !important; }

/* FAQ acordeón */
.faq-q__text  { color: #0D0D0D !important; }
.faq-a__inner { color: #4a4a4a !important; }
.faq-a__inner strong { color: #0D0D0D !important; }
.faq-a__inner em     { color: #C1440E !important; }

/* Métricas */
.metric-number, .metric-val { color: #C1440E !important; }
.metric-label,  .metric-sub { color: #888888 !important; }

/* Cards de escenarios — fondo blanco en sección oscura */
.guide-section--dark .scenario-card,
.section-dark .scenario-card {
  background: white !important;
}

/* Textos de la card — colores oscuros (sobre fondo blanco) */
.guide-section--dark .scenario-card .scenario-reason,
.section-dark .scenario-card .scenario-reason { color: #444 !important; }

.guide-section--dark .scenario-card .scenario-title,
.section-dark .scenario-card .scenario-title { color: #0D0D0D !important; }

.guide-section--dark .scenario-card .scenario-num,
.section-dark .scenario-card .scenario-num { color: #C1440E !important; }

.guide-section--dark .scenario-card .winner-badge,
.section-dark .scenario-card .winner-badge { color: white !important; }

.guide-section--dark .scenario-card .pro-tip,
.section-dark .scenario-card .pro-tip {
  background: #F0EAE0 !important;
  color: #666 !important;
}
.guide-section--dark .scenario-card .pro-tip strong,
.section-dark .scenario-card .pro-tip strong { color: #4a3a30 !important; }

/* ── BLOQUES DE CÓDIGO DENTRO DE SCENARIO-CARD ── */
/* El div negro que contiene el prompt */
.guide-section--dark .scenario-card div[style*="background:#0D0D0D"],
.section-dark .scenario-card div[style*="background:#0D0D0D"] {
  background: #0D0D0D !important;
}

/* El <pre> dentro del bloque de código */
.guide-section--dark .scenario-card div[style*="background:#0D0D0D"] pre,
.section-dark .scenario-card div[style*="background:#0D0D0D"] pre {
  color: #E8E8E8 !important;
  background: transparent !important;
}

/* Todos los <span> dentro del bloque de código */
/* Usan inline style="color:..." que normalmente gana,
   pero el reset con !important los anulaba. Ahora los
   restauramos con la máxima especificidad posible.     */
.guide-section--dark .scenario-card div[style*="background:#0D0D0D"] pre span,
.section-dark .scenario-card div[style*="background:#0D0D0D"] pre span {
  color: #E8E8E8 !important; /* fallback visible */
}

/* Span con colores de sintaxis — respetar inline styles
   usando selectores de atributo de mayor especificidad  */
.scenario-card pre span[style*="color:#666"]   { color: #666666 !important; }
.scenario-card pre span[style*="color:#C1440E"]{ color: #C1440E !important; }
.scenario-card pre span[style*="color:#7CB87C"]{ color: #7CB87C !important; }
.scenario-card pre span[style*="color:#E8A87C"]{ color: #E8A87C !important; }
.scenario-card pre span[style*="color:#E8E8E8"]{ color: #E8E8E8 !important; }

/* Botón COPIAR dentro del bloque */
.scenario-card div[style*="background:#0D0D0D"] button {
  color: white !important;
  background: #C1440E !important;
}

/* Herramienta cards en sección oscura */
.guide-section--dark .tool-card--cursor .tool-card__name,
.section-dark .tool-card--cursor .tool-card__name { color: #0D0D0D !important; }
.guide-section--dark .tool-card--cursor .tool-card__desc,
.section-dark .tool-card--cursor .tool-card__desc { color: #555 !important; }
.guide-section--dark .tool-card--cursor .tool-card__meta-val,
.section-dark .tool-card--cursor .tool-card__meta-val { color: #555 !important; }
.guide-section--dark .tool-card--claude .tool-card__name,
.section-dark .tool-card--claude .tool-card__name { color: white !important; }
.guide-section--dark .tool-card--claude .tool-card__desc,
.section-dark .tool-card--claude .tool-card__desc { color: rgba(255,255,255,.55) !important; }

/* Diagrama SVG — textos */
.flow-diagram text, .flow-diagram tspan { fill: #E8E8E8 !important; }

/* Botones — no heredar color de sección oscura */
.guide-section--dark .gc-btn,
.guide-section--dark button,
.section-dark .gc-btn,
.section-dark button {
  color: inherit !important;
}
.guide-section--dark a.nav__cta,
.section-dark a.nav__cta {
  color: white !important;
}

/* Winner badges — siempre blanco */
.winner-badge { color: white !important; }
.winner-badge--cursor { background: #7CB87C !important; }
.winner-badge--claude { background: #C1440E !important; }
.winner-badge--tie    { background: #6B9BB5 !important; }

/* Code copy button */
.code-copy-btn { color: #C1440E !important; }
.code-copy-btn:hover { color: white !important; }

/* Level badges — preservar sus colores propios */
.lv-p { color: #15803D !important; }
.lv-i { color: #1D4ED8 !important; }
.lv-a { color: #C1440E !important; }

/* Nav siempre visible */
.nav__links a { color: var(--color-texto, #0D0D0D) !important; }
.nav__cta { color: white !important; }
.nav__logo { color: var(--color-negro, #0D0D0D) !important; }

/* ============================================
   FIN FIX GLOBAL
   ============================================ */

/* ============================================
   FIX BLOQUES DE CÓDIGO — TEXTO SIEMPRE VISIBLE
   ============================================ */

pre {
  background: #0D0D0D !important;
  color: #E8E8E8 !important;
  padding: 24px !important;
  border-radius: 8px !important;
  overflow-x: auto !important;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  white-space: pre-wrap !important;
  margin: 0 !important;
}

pre * {
  color: inherit !important;
}

code {
  color: #E8E8E8 !important;
  background: transparent !important;
}

.code-block,
.code-block-body {
  background: #111 !important;
  color: #E8E8E8 !important;
}

.code-block *,
.code-block-body * {
  color: #E8E8E8 !important;
}

/* Clases de sintaxis — orden importa */
.code-comment, .cm { color: #666666 !important; font-style: italic !important; }
.code-command, .cmd { color: #C1440E !important; }
.code-string,  .str { color: #7CB87C !important; }
.code-keyword, .kw  { color: #C1440E !important; }

/* ============================================
   FIN FIX BLOQUES DE CÓDIGO
   ============================================ */

/* ── CORRECCIONES PUNTUALES ── */

/* 1. Pro-tip dentro de scenario-card: texto visible */
.scenario-card .pro-tip { background: #F0EAE0 !important; color: #4a3a30 !important; }
.scenario-card .pro-tip * { color: #4a3a30 !important; }
.scenario-card .pro-tip strong { color: #C1440E !important; font-style: normal !important; }

/* 2. Setup — Parte A (Cursor) mismo estilo que Parte B (Claude Code) */
.setup-part-badge--cursor {
  background: rgba(193,68,14,.1) !important;
  color: #C1440E !important;
  border: 1px solid rgba(193,68,14,.25) !important;
}

/* 3. <strong> dentro de scenario-reason — siempre terracota, visible en blanco */
.guide-section--dark .scenario-card .scenario-reason strong,
.section-dark .scenario-card .scenario-reason strong {
  color: #C1440E !important;
}

/* ── CASE-CARDS (guia-12) EN SECCIÓN OSCURA ── */
/* La card tiene fondo blanco — resetear texto a oscuro */
.guide-section--dark .case-card,
.section-dark .case-card {
  background: white !important;
}

/* Título de la card */
.guide-section--dark .case-card .case-title,
.section-dark .case-card .case-title { color: #0D0D0D !important; }

/* Número grande terracota */
.guide-section--dark .case-card .case-num,
.section-dark .case-card .case-num { color: #C1440E !important; }

/* Badge de tiempo ahorrado */
.guide-section--dark .case-card .case-time,
.section-dark .case-card .case-time { color: #15803D !important; background: rgba(34,197,94,.1) !important; }

/* Descripción del problema */
.guide-section--dark .case-card .case-desc,
.section-dark .case-card .case-desc { color: #555 !important; }

/* Header border */
.guide-section--dark .case-card .case-card__header,
.section-dark .case-card .case-card__header { border-bottom-color: #E8E0D0 !important; }

/* Bloque de código dentro de la case-card — fondo negro, texto claro */
.guide-section--dark .case-card div[style*="background:#0D0D0D"],
.section-dark .case-card div[style*="background:#0D0D0D"] { background: #0D0D0D !important; }

.guide-section--dark .case-card div[style*="background:#0D0D0D"] pre,
.section-dark .case-card div[style*="background:#0D0D0D"] pre { color: #E8E8E8 !important; background: transparent !important; }

.guide-section--dark .case-card div[style*="background:#0D0D0D"] pre span,
.section-dark .case-card div[style*="background:#0D0D0D"] pre span { color: #E8E8E8 !important; }

/* Colores de sintaxis dentro de case-card */
.case-card pre span[style*="color:#666"]    { color: #666666 !important; }
.case-card pre span[style*="color:#C1440E"] { color: #C1440E !important; }
.case-card pre span[style*="color:#7CB87C"] { color: #7CB87C !important; }
.case-card pre span[style*="color:#E8A87C"] { color: #E8A87C !important; }
.case-card pre span[style*="color:#E8E8E8"] { color: #E8E8E8 !important; }

/* Botón COPIAR dentro de case-card */
.case-card div[style*="background:#0D0D0D"] button { color: white !important; background: #C1440E !important; }

/* Caja de resultado esperado (verde oscuro) */
.guide-section--dark .case-card .case-result,
.section-dark .case-card .case-result { color: #A8C8A8 !important; background: #0f1f0f !important; }

.guide-section--dark .case-card .case-result strong,
.section-dark .case-card .case-result strong { color: #7CB87C !important; }

/* =============================================
   GUIDE COVER — Card preview component
   ============================================= */
.guide-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-crema, #F5F0E8);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  overflow: hidden;
}
.guide-cover.dark {
  background: #111;
}

/* Mac-style top bar */
.cover-mac-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.07);
  flex-shrink: 0;
}
.guide-cover.dark .cover-mac-bar {
  background: rgba(255,255,255,0.06);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green  { background: #28C840; }

/* Body */
.cover-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 18px 14px;
  gap: 7px;
  overflow: hidden;
}

/* Level badge */
.cover-level-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--color-terracota, #C1440E);
  text-transform: uppercase;
}
.guide-cover.dark .cover-level-badge {
  color: #C1440E;
}

/* Title */
.cover-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(15px, 2.6vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  color: #1C1C1C;
  margin: 0;
}
.guide-cover.dark .cover-title {
  color: #F5F0E8;
}
.cover-title em {
  font-style: italic;
  color: var(--color-terracota, #C1440E);
}

/* Accent line */
.cover-line {
  height: 2px;
  width: 32px;
  background: var(--color-terracota, #C1440E);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Tags */
.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cover-tags span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(28,28,28,0.45);
  background: rgba(28,28,28,0.08);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.guide-cover.dark .cover-tags span {
  color: rgba(245,240,232,0.38);
  background: rgba(245,240,232,0.09);
}

/* =============================================
   NIVEL SYSTEM — 3-Level Color Overrides
   ============================================= */

/* NIVEL 0 — Fundamentos */
.cover-level-0 {
  background: #F5F0E8 !important;
}
.cover-level-0 .cover-mac-bar {
  background: #E8E0D0 !important;
}
.cover-level-0 .cover-title {
  color: #0D0D0D !important;
}
.cover-level-0 .cover-title em {
  color: #C1440E !important;
  font-style: italic;
}
.cover-level-0 .cover-line {
  background: #C1440E !important;
}
.cover-level-0 .cover-tags span {
  background: rgba(0,0,0,0.06) !important;
  color: #888 !important;
}

/* NIVEL 1 — Stack Agentic */
.cover-level-1 {
  background: #0D0D0D !important;
}
.cover-level-1 .cover-mac-bar {
  background: #1a1a1a !important;
}
.cover-level-1 .cover-title {
  color: #F5F0E8 !important;
}
.cover-level-1 .cover-title em {
  color: #FF6B00 !important;
  font-style: italic;
}
.cover-level-1 .cover-line {
  background: #FF6B00 !important;
}
.cover-level-1 .cover-tags span {
  background: rgba(255,107,0,0.08) !important;
  color: #888 !important;
}

/* NIVEL 2 — Monetización */
.cover-level-2 {
  background: #050505 !important;
}
.cover-level-2 .cover-mac-bar {
  background: #0D0D0D !important;
}
.cover-level-2 .cover-title {
  color: #F5F0E8 !important;
}
.cover-level-2 .cover-title em {
  color: #D4A017 !important;
  font-style: italic;
}
.cover-level-2 .cover-line {
  background: #D4A017 !important;
}
.cover-level-2 .cover-tags span {
  background: rgba(212,160,23,0.08) !important;
  color: #888 !important;
}

/* ── Cover Badge (absolute, above mac bar) ── */
.cover-badge {
  position: absolute;
  top: 44px;
  left: 12px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}
.badge-level-0 {
  background: #7CB87C;
  color: #fff;
}
.badge-level-1 {
  background: #FF6B00;
  color: #fff;
}
.badge-level-2 {
  background: #D4A017;
  color: #fff;
}

/* ── Journey Visual ── */
.journey-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  padding: 48px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.journey-wrap::-webkit-scrollbar { display: none; }
.journey-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 24px;
  border-radius: var(--radius-md, 8px);
  border: 1.5px solid transparent;
  cursor: default;
  transition: transform .2s, box-shadow .2s;
  min-width: 160px;
  text-align: center;
  background: white;
}
.journey-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.journey-card.active { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.journey-card--0 { border-color: #C1440E; }
.journey-card--1 { border-color: #FF6B00; }
.journey-card--2 { border-color: #D4A017; }
.journey-card--skool { border-color: rgba(0,0,0,0.12); background: #f5f5f5; cursor: default; }
.journey-card.active.journey-card--0 { background: rgba(193,68,14,0.04); }
.journey-card.active.journey-card--1 { background: rgba(255,107,0,0.04); }
.journey-card.active.journey-card--2 { background: rgba(212,160,23,0.04); }
.journey-icon { font-size: 1.4rem; line-height: 1; }
.journey-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1C1C1C;
}
.journey-sub {
  font-size: 10px;
  color: #888;
}
.journey-arrow {
  flex-shrink: 0;
  font-size: 24px;
  color: #C1440E;
  padding: 0 4px;
  user-select: none;
}
.journey-arrow svg { display: block; }

/* ── Level Tabs ── */
.level-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.level-tab {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--radius-md, 8px);
  border: 1.5px solid #E0D8C8;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-align: left;
}
.level-tab:hover { border-color: rgba(0,0,0,0.2); }
.level-tab.active-0 { border-bottom: 3px solid #C1440E; background: rgba(193,68,14,0.03); }
.level-tab.active-1 { border-bottom: 3px solid #FF6B00; background: rgba(255,107,0,0.03); }
.level-tab.active-2 { border-bottom: 3px solid #D4A017; background: rgba(212,160,23,0.03); }
.level-tab__icon { font-size: 1.2rem; }
.level-tab__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1C1C1C;
}
.level-tab__desc { font-size: 11px; color: #888; }
.level-tab__count {
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
  color: rgba(28,28,28,0.4);
}

/* ── Level Separators ── */
.gc-nlevel-sep {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 0 12px;
  position: relative;
}
.gc-nlevel-sep:first-child { padding-top: 8px; }
.gc-nlevel-sep__line {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 7px;
}
.gc-nlevel-sep__body { flex: 1; }
.gc-nlevel-sep__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1C1C1C;
}
.gc-nlevel-sep__sub {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.gc-nlevel-sep__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .level-tabs { gap: 8px; }
  .level-tab { min-width: 120px; padding: 10px 12px; }
  .journey-card { min-width: 120px; padding: 14px 16px; }
  .journey-wrap { gap: 16px; padding: 32px 0; }
}

/* ── Journey Community card (dashed, non-interactive) ── */
.journey-card--community {
  border: 1.5px dashed rgba(0,0,0,0.18) !important;
  background: #fafafa !important;
  cursor: default !important;
  opacity: 0.75;
}
.journey-card--community:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ── NLevel Tab Strip (replaces complex filter bar) ── */
.nlevel-tabs-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 4px 0;
}
.nlevel-tab {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid #E0D8C8;
  background: #fff;
  color: #888;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}
.nlevel-tab:hover {
  color: #1C1C1C;
  border-color: rgba(0,0,0,0.2);
}
/* All tab */
.nlevel-tab--all.active {
  background: #F5F0E8;
  color: #1C1C1C;
  border-color: rgba(0,0,0,0.15);
}
/* Nivel 0 */
.nlevel-tab--0.active {
  color: #C1440E;
  border-color: #E0D8C8;
  border-bottom: 3px solid #C1440E;
  background: rgba(193,68,14,0.04);
}
/* Nivel 1 */
.nlevel-tab--1.active {
  color: #FF6B00;
  border-color: #E0D8C8;
  border-bottom: 3px solid #FF6B00;
  background: rgba(255,107,0,0.04);
}
/* Nivel 2 */
.nlevel-tab--2.active {
  color: #D4A017;
  border-color: #E0D8C8;
  border-bottom: 3px solid #D4A017;
  background: rgba(212,160,23,0.04);
}
@media (max-width: 640px) {
  .nlevel-tabs-strip { gap: 6px; }
  .nlevel-tab { padding: 8px 14px; font-size: 13px; }
}

/* ── CTA Skool button ── */
.btn--cta-skool {
  display: inline-block;
  padding: 16px 40px;
  background: #fff;
  color: #C1440E;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn--cta-skool:hover {
  background: #C1440E;
  color: #fff;
}

/* ══════════════════════════════════════════
   CAMBIO 2: Coming-soon cards — grayscale
   ══════════════════════════════════════════ */
.guide-card.coming-soon {
  filter: grayscale(100%);
  opacity: 0.55;
  cursor: default;
}
.guide-card.coming-soon:hover {
  filter: grayscale(75%);
  opacity: 0.70;
  transform: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
}

/* ── Coming-soon cover ── */
.coming-soon-cover .cover-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
}

/* Level-specific cover backgrounds for coming-soon */
.cover-level-0.coming-soon-cover { background: #EDE8E0 !important; }
.cover-level-0.coming-soon-cover .cover-mac-bar { background: #E0DAD0 !important; }
.cover-level-1.coming-soon-cover { background: #0D0D0D !important; }
.cover-level-1.coming-soon-cover .cover-mac-bar { background: rgba(255,255,255,0.06) !important; }
.cover-level-2.coming-soon-cover { background: #050505 !important; }
.cover-level-2.coming-soon-cover .cover-mac-bar { background: rgba(255,255,255,0.04) !important; }

.coming-soon-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  margin: 0;
  padding: 0;
}
.cover-level-0 .coming-soon-label { color: #AAAAAA; }
.cover-level-1 .coming-soon-label { color: #444444; }
.cover-level-2 .coming-soon-label { color: #333333; }

/* ── Coming-soon CTA button (in card footer) ── */
.coming-soon-cta {
  background: transparent;
  border: 1px solid #E0D8C8;
  color: #888888;
  cursor: pointer;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 200ms ease;
  width: 100%;
  text-align: center;
}
.coming-soon-cta:hover {
  border-color: #C1440E;
  color: #C1440E;
}

/* ══════════════════════════════════════════
   Guide number badge (N0 · 01)
   ══════════════════════════════════════════ */
.guide-number {
  font-size: 10px;
  color: #BBBBBB;
  font-weight: 500;
  letter-spacing: 1px;
  float: right;
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   CAMBIO 1 & 3: Level sections with separators
   ══════════════════════════════════════════ */
.level-separator {
  width: 100%;
  margin-top: 64px;
  margin-bottom: 32px;
}
.level-separator--first {
  margin-top: 0;
}
.level-sep-line {
  border-top: 1px solid;
  margin-bottom: 16px;
  opacity: 0.3;
}
.level-sep-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.level-sep-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.level-sep-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.level-sep-subtitle {
  font-size: 14px;
  color: #888888;
  font-weight: 400;
}
.level-sep-count {
  font-size: 12px;
  font-weight: 500;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}
@media (max-width: 1024px) {
  .level-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .level-grid { grid-template-columns: 1fr; }
  .level-separator { margin-top: 48px; margin-bottom: 24px; }
  .level-sep-count { width: 100%; }
}

/* ══════════════════════════════════════════════════
   ONBOARDING MODAL
   ══════════════════════════════════════════════════ */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;          /* JS sets to flex on first visit */
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.onboarding-modal {
  background: #F5F0E8;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  scrollbar-width: none;
}
.onboarding-modal::-webkit-scrollbar { display: none; }

/* Header */
.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.onboarding-logo {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 20px;
  color: #0D0D0D;
}
.onboarding-logo em {
  color: #C1440E;
  font-style: italic;
}
.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  width: 80px;
  height: 3px;
  background: #E0D8C8;
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #C1440E;
  border-radius: 2px;
  transition: width 300ms ease;
  width: 33%;
}
.progress-text {
  font-size: 12px;
  color: #888888;
  white-space: nowrap;
}

/* Steps */
.onboarding-step { display: none; }
.onboarding-step.active {
  display: block;
  animation: fadeInUp 300ms ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 28px;
  font-weight: 400;
  color: #0D0D0D;
  line-height: 1.3;
  margin-bottom: 8px;
}
.step-title em {
  color: #C1440E;
  font-style: italic;
}
.step-subtitle {
  font-size: 15px;
  color: #888888;
  margin-bottom: 32px;
}

/* Options */
.onboarding-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.onboarding-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: white;
  border: 2px solid #E0D8C8;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  width: 100%;
}
.onboarding-option:hover {
  border-color: #C1440E;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(193,68,14,0.1);
}
.onboarding-option.selected {
  border-color: #C1440E;
  background: #FFF8F5;
}
.option-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.option-text strong {
  font-size: 16px;
  font-weight: 700;
  color: #0D0D0D;
}
.option-text span {
  font-size: 13px;
  color: #888888;
  line-height: 1.4;
}

/* Footer */
.onboarding-footer {
  margin-top: 24px;
  text-align: center;
}
.skip-btn {
  background: none;
  border: none;
  color: #AAAAAA;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
  transition: color 150ms ease;
}
.skip-btn:hover { color: #888888; }

/* Resultado */
.result-container { text-align: center; }
.result-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.result-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 32px;
  font-weight: 400;
  color: #0D0D0D;
  line-height: 1.3;
  margin-bottom: 12px;
}
.result-title em { font-style: italic; }
.result-subtitle {
  font-size: 16px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 32px;
}
.result-first-guide {
  background: #0D0D0D;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}
.result-guide-label {
  font-size: 10px;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.result-guide-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 18px;
  color: white;
  font-style: italic;
  margin: 0 0 4px;
}
.result-guide-meta {
  font-size: 12px;
  color: #666666;
  margin: 0;
  text-transform: capitalize;
}
.result-cta-btn {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 200ms ease, transform 200ms ease;
  margin-bottom: 4px;
}
.result-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.result-secondary {
  margin-top: 8px;
  font-size: 13px;
  color: #AAAAAA;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  width: 100%;
  padding: 8px;
  transition: color 150ms ease;
}
.result-secondary:hover { color: #888888; }

/* ── Route banner (persists between visits) ── */
.route-banner {
  background: #F5F0E8;
  border: 1px solid #E0D8C8;
  border-left: 4px solid #C1440E;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  display: none;
}
.route-banner-content {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.route-banner-text { flex: 1; }
.route-banner-label {
  font-size: 10px;
  color: #C1440E;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.route-banner-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  color: #0D0D0D;
  margin: 0 0 4px;
}
.route-banner-subtitle {
  font-size: 14px;
  color: #666666;
  margin: 0;
}
.route-reset-btn {
  margin-left: auto;
  background: none;
  border: 1px solid #E0D8C8;
  color: #888888;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.route-reset-btn:hover {
  border-color: #C1440E;
  color: #C1440E;
}

/* Mobile */
@media (max-width: 640px) {
  .onboarding-modal { padding: 24px; border-radius: 12px; }
  .step-title { font-size: 22px; }
  .onboarding-option { padding: 16px 18px; }
  .option-icon { font-size: 22px; }
  .option-text strong { font-size: 14px; }
  .result-title { font-size: 26px; }
  .route-banner { padding: 20px 20px; }
  .route-banner-title { font-size: 18px; }
  .route-reset-btn { margin-left: 0; margin-top: 12px; }
}


/* =============================================
   KIT FORMS — Hero, Mid, Popup
   ============================================= */

/* ── Hero form ── */
.hero-form-group {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-top: 32px;
}

.hero-email-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #E0D8C8;
  border-radius: 4px;
  font-size: 15px;
  background: white;
  color: #0D0D0D;
  outline: none;
  transition: border-color 200ms ease;
}

.hero-email-input:focus {
  border-color: #C1440E;
}

.hero-email-input::placeholder {
  color: #AAAAAA;
}

.hero-submit-btn {
  padding: 14px 24px;
  background: #C1440E;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease;
  position: relative;
  overflow: hidden;
}

.hero-submit-btn:hover {
  background: #A33A0C;
}

.hero-form-note {
  font-size: 12px;
  color: #AAAAAA;
  margin-top: 8px;
}

/* ── Mid form (friction banner + lead magnet) ── */
.mid-form-group {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 24px auto 0;
}

.mid-email-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #333333;
  border-radius: 4px;
  font-size: 15px;
  background: #1a1a1a;
  color: white;
  outline: none;
  transition: border-color 200ms ease;
}

.mid-email-input:focus {
  border-color: #C1440E;
}

.mid-email-input::placeholder {
  color: #666666;
}

.mid-submit-btn {
  padding: 14px 24px;
  background: #C1440E;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease;
  position: relative;
  overflow: hidden;
}

.mid-submit-btn:hover {
  background: #A33A0C;
}

/* ── Popup form ── */
.popup-kit-form {
  width: 100%;
}

.popup-email-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #E0D8C8;
  border-radius: 4px;
  font-size: 15px;
  background: white;
  color: #0D0D0D;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 200ms ease;
  box-sizing: border-box;
}

.popup-email-input:focus {
  border-color: #C1440E;
}

.popup-email-input::placeholder {
  color: #AAAAAA;
}

.popup-submit-btn {
  width: 100%;
  padding: 14px;
  background: #0D0D0D;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.popup-submit-btn:hover {
  background: #C1440E;
}

.popup-form-note {
  font-size: 12px;
  color: #AAAAAA;
  text-align: center;
  margin-top: 12px;
}

/* ── Kit spinner (shared) ── */
.formkit-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: 4px;
}

.formkit-submit[data-active] .formkit-spinner {
  display: flex;
}

.formkit-submit[data-active] span {
  opacity: 0;
}

.formkit-spinner > div {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: kit-bounce 1.4s infinite ease-in-out both;
}

.formkit-spinner > div:nth-child(1) { animation-delay: -0.32s; }
.formkit-spinner > div:nth-child(2) { animation-delay: -0.16s; }

@keyframes kit-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40%           { transform: scale(1); }
}

/* ── Kit error messages (shared) ── */
.formkit-alert-error {
  background: #fde8e2;
  border: 1px solid #f2643b;
  color: #ea4110;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  list-style: none;
  margin-top: 8px;
}

.formkit-alert:empty {
  display: none !important;
}

.formkit-alert-error:empty {
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-form-group {
    flex-direction: column;
  }
  .hero-submit-btn {
    width: 100%;
  }
  .mid-form-group {
    flex-direction: column;
  }
  .mid-submit-btn {
    width: 100%;
  }
}

/* ── Kit alert: ocultar por defecto, mostrar solo con contenido ── */
ul.formkit-alert {
  display: none !important;
}

ul.formkit-alert.formkit-alert-error {
  display: none !important;
}

/* Solo mostrar cuando tiene contenido real */
ul.formkit-alert li {
  display: block;
}

ul.formkit-alert:not(:empty) {
  display: block !important;
  background: #fde8e2;
  border: 1px solid #f2643b;
  color: #ea4110;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  list-style: none;
  margin-top: 8px;
}
