/* ============================================
   Cris.V — Landing / embudo Fiverr
   Mobile-first · Flexbox + Grid
   ============================================ */

:root {
  --bg: #0d1117;
  --bg-elevated: #111827;
  --surface: #161b22;
  --surface-2: #1c2330;
  --text: #e6edf3;
  --muted: #8b949e;
  --border: rgba(148, 163, 184, 0.14);
  --accent: #818cf8;
  --accent-strong: #6366f1;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --glow: rgba(99, 102, 241, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

p {
  margin: 0;
}

/* ---------- Layout ---------- */
.container {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.65rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #818cf8, #6366f1);
  color: #0b1020;
  box-shadow: 0 8px 24px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px var(--glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(129, 140, 248, 0.5);
  background: var(--accent-soft);
}

.btn-lg {
  padding: 0.9rem 1.4rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-nav {
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--border);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 61;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  z-index: 60;
}

.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  z-index: 60;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2rem 1.25rem 2.5rem;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, visibility 0.22s ease;
}

.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.nav-list a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
}

/* ---------- Language switcher ---------- */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: rgba(129, 140, 248, 0.45);
}

.lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.lang-chevron {
  color: var(--muted);
  transition: transform 0.18s ease;
}

.lang-switch.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 70;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2937;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.lang-option:hover,
.lang-option.is-active {
  background: #f3f4f6;
}

/* ---------- Hero ---------- */
.hero {
  padding: 2.5rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 50%;
  width: min(720px, 100%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.hero-copy h1 {
  font-size: clamp(1.7rem, 7vw, 3.15rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}

.hero-lead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-actions .btn {
  width: 100%;
}

.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-pills li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
}

.hero-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.win-dot--red {
  background: #ff5f56;
}

.win-dot--amber {
  background: #ffbd2e;
}

.win-dot--green {
  background: #27c93f;
}

.code-filename {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.code-body {
  margin: 0;
  padding: 1.15rem 1.1rem 1.35rem;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 2.4vw, 0.85rem);
  line-height: 1.65;
  overflow-x: auto;
}

.tok-tag {
  color: #7dd3fc;
}

.tok-attr {
  color: #c4b5fd;
}

.tok-str {
  color: #86efac;
}

.tok-plain {
  color: var(--text);
}

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  box-shadow: var(--shadow);
}

.float-badge .icon {
  width: 16px;
  height: 16px;
}

.float-badge--figma {
  bottom: -0.4rem;
  left: 0.5rem;
}

.float-badge--html {
  top: 12%;
  right: 0.5rem;
  font-family: var(--mono);
  color: var(--accent);
}

/* ---------- Gig card ---------- */
.gig-card {
  display: grid;
  gap: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.gig-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.gig-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.gig-intro {
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.gig-sub {
  font-size: 0.95rem;
  margin: 1.15rem 0 0.55rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 3px var(--accent);
}

.gig-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 0.85rem;
}

.gig-card-aside {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aside-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.65rem;
}

.aside-label:first-child {
  margin-top: 0;
}

.aside-value {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tag-list li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #c7d2fe;
}

.gig-card-aside .btn {
  margin-top: 1rem;
}

.aside-hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Proceso ---------- */
.process-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
}

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-top: 0;
}

.cta-band-inner {
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.4rem 1.25rem;
}

.cta-band h2 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 1.35rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.35rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.copyright {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-links a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:not(.btn):hover {
  color: var(--accent);
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================
   Tablet
   ============================================ */
@media (min-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 2rem));
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-visual {
    min-height: 280px;
    padding-bottom: 0.5rem;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .float-badge--html {
    right: 8%;
  }
}

@media (min-width: 900px) {
  .gig-card {
    grid-template-columns: 1.6fr 0.9fr;
    padding: 2rem;
    align-items: stretch;
  }
}

/* ============================================
   Desktop: nav horizontal
   ============================================ */
@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .header-tools {
    order: 2;
    margin-left: 0.85rem;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .lang-btn {
    height: 42px;
    padding: 0 0.7rem;
    font-size: 0.82rem;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    order: 1;
    position: static;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    width: auto;
    max-width: none;
    padding: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1.75rem;
    margin-left: auto;
  }

  .nav-list {
    flex-direction: row;
    gap: 1.35rem;
  }

  .nav-list a {
    font-size: 0.92rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: center;
    gap: 3rem;
  }

  .section {
    padding: 5.5rem 0;
  }
}
