@font-face {
  font-family: 'Plex Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/plex-mono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/plex-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/plex-sans-600.woff2') format('woff2');
}

:root {
  --paper: #F3F5F8;
  --paper-2: #E6EAF0;
  --paper-3: #FFFFFF;
  --ink: #12141C;
  --ink-soft: #565D70;
  --axis: #8A93A6;
  --axis-2: #B7BECC;
  --accent: #E0560C;
  --accent-2: #2F6FED;
  --line: #D3D9E3;
  --ok: #1E8E5A;
  --radius: 12px;
  --container: 1120px;
  --shadow: 0 1px 2px rgba(18,20,28,0.04), 0 8px 24px rgba(18,20,28,0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Plex Mono', monospace;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.4vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0; color: var(--ink-soft); }
.eyebrow {
  font-family: 'Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(224,86,12,0.28); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--axis); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-word {
  font-family: 'Plex Mono', monospace;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo-word .sub {
  display: block;
  font-family: 'Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1px;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }
.nav-links { display: flex; gap: 28px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 18px;
}
.hero h1 { margin-top: 16px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: 'Plex Mono', monospace;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
}
.hero-visual svg { width: 100%; height: 100%; }
.theme-icon {
  color: var(--accent-2);
  flex-shrink: 0;
}
.theme-icon svg { width: 14px; height: 14px; display: block; }
.theme-pill .theme-icon svg { width: 15px; height: 15px; }
.diff-visual .theme-icon svg { width: 13px; height: 13px; }

.theme-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 6px 12px;
  font-family: 'Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.theme-chip:nth-child(2) { animation-delay: -2s; }
.theme-chip:nth-child(3) { animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-chip { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; font-size: 16px; }

/* ---------- Metodología ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.method-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.method-num {
  font-family: 'Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 600;
}
.method-card h3 { margin-top: 14px; }
.method-card p { margin-top: 8px; font-size: 14px; }

/* ---------- Diferencial ---------- */
.diff-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.diff-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.theme-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.theme-request-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.theme-pill.highlight {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.theme-pill.highlight:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.theme-pill-caption {
  font-size: 13px;
  color: var(--ink-soft);
}

input[type="text"], input[type="email"], input[type="tel"] {
  font-family: 'Plex Sans', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  color: var(--ink);
}
input[type="text"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-2);
}
.form-note { font-size: 13px; margin-top: 10px; min-height: 1em; }
.form-note.ok { color: var(--ok); }
.form-note.error { color: var(--accent); }
.form-note.pending { color: var(--ink-soft); }

/* ---------- Modal: solicita tu temática ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,20,28,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { font-size: 20px; padding-right: 20px; }
.modal-sub { font-size: 14px; margin-top: 10px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}
.modal-close:hover { color: var(--ink); }
.modal form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.modal form label .opt { font-weight: 400; color: var(--ink-soft); }
.modal form input { width: 100%; }
.modal-submit { margin-top: 6px; width: 100%; }
.theme-pill {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-pill.custom {
  border-style: dashed;
  color: var(--ink-soft);
}
.diff-visual {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-tabs {
  display: flex;
  gap: 2px;
  padding: 10px 10px 0;
}
.code-tab {
  font-family: 'Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #8A93A6;
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
}
.code-tab.active { color: #F0F2F6; background: rgba(255,255,255,0.06); }
.code-pane {
  margin: 0;
  padding: 20px;
  font-family: 'Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #D3D9E3;
  overflow-x: auto;
  white-space: pre;
}
.code-pane .c-kw { color: var(--accent); }
.code-pane .c-fn { color: #5F8FFF; }
.code-pane .c-str { color: #7FD99A; }
.code-pane .c-num { color: #E0AA5A; }
.code-pane .c-id { color: #8A93A6; }
.code-footer {
  font-family: 'Plex Mono', monospace;
  font-size: 12px;
  color: var(--ok);
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Cursos ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.course-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.course-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.course-head { display: flex; align-items: center; gap: 10px; }
.course-logos { display: flex; align-items: center; gap: 6px; }
.course-logos img { width: 28px; height: 28px; }
.course-card h3 { margin-top: 14px; }
.course-card p.desc { margin-top: 8px; font-size: 14px; }
.levels { display: flex; gap: 8px; margin-top: 18px; }
.level-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
}
.level-pill.free {
  border-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
}
.free-tag {
  font-family: 'Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ok);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  border: 1px solid var(--ok);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.hero-badge b { color: var(--ok); font-family: 'Plex Mono', monospace; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 4px;
  padding: 3px 7px;
}
.phase-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: 'Plex Mono', monospace;
}

/* ---------- CTA final ---------- */
.cta-section {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  margin: 0 24px;
  max-width: calc(var(--container) - 48px);
  margin-inline: auto;
  padding: 64px 48px;
  text-align: center;
}
.cta-section .eyebrow { color: var(--accent); }
.cta-section h2 { color: #fff; margin-top: 16px; }
.cta-section p { color: #B9BFCF; margin-top: 14px; max-width: 52ch; margin-inline: auto; font-size: 16px; }
.cta-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-actions input[type="email"] {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
  min-width: 240px;
}
.cta-actions input[type="email"]::placeholder { color: #8A93A6; }
.cta-form .form-note { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-note {
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-note a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-inner { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .method-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-section { padding: 44px 24px; }
}
