/* Geist (OFL), servida desde el propio sitio para no depender de Google Fonts */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Paleta Caribe (por defecto). Las demás se activan con ?tema= en la URL */
  --hero-bg: #0F4C4F;
  --hero-fg: #F3F6F2;
  --cta-bg: #F2B544;
  --cta-fg: #13211F;
  --brand: #0F5F62;
  --brand-fg: #F3F6F2;
  --fog: #ECEFEC;
  --paper: #F7F9F7;
  --ink: #13211F;
  --ink-soft: #4D5E5B;
  --mist: #C8D5D1;
  --mist-deep: #7FA7A1;
  --signal: #F2B544;

  --display: "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --display-weight: 650;
  --display-track: -0.04em;
  --code: "IBM Plex Mono", ui-monospace, monospace;

  /* Escala de cuarta justa sobre 18px */
  --t-sm: 0.875rem;
  --t-base: 1.125rem;
  --t-md: 1.5rem;
  --t-lg: 2rem;
  --t-xl: clamp(2rem, 3.6vw, 3.1rem);
  --t-2xl: clamp(2.4rem, 4.6vw, 4.4rem);

  --gutter: clamp(16px, 4vw, 56px);
  --focus: var(--brand);
}

:root[data-tema="buganvilla"] {
  --hero-bg: #6E1A43; --hero-fg: #FFF3F6; --cta-bg: #FFB845; --cta-fg: #2A0E1C;
  --brand: #8C2155; --brand-fg: #FFF3F6; --signal: #FFB845;
  --fog: #F3EEF0; --paper: #FBF8F9; --ink: #241019; --ink-soft: #6B5160; --mist: #E0CFD7; --mist-deep: #C27A9C;
}
:root[data-tema="grafito"] {
  --hero-bg: #E3E5E1; --hero-fg: #16181B; --cta-bg: #16181B; --cta-fg: #FFFFFF;
  --brand: #16181B; --brand-fg: #FFFFFF; --signal: #FF6B2C;
  --fog: #F4F4F1; --paper: #FFFFFF; --ink: #16181B; --ink-soft: #5B5F64; --mist: #D5D7D2; --mist-deep: #9CA19A;
}
:root[data-tema="cobalto"] {
  --hero-bg: #2B3BE6; --hero-fg: #FFFFFF; --cta-bg: #FFFFFF; --cta-fg: #2B3BE6;
  --brand: #2B3BE6; --brand-fg: #FFFFFF; --signal: #FFC93C;
  --fog: #ECEDF3; --paper: #F7F8FB; --ink: #15172E; --ink-soft: #4A4E6E; --mist: #C5CAE6; --mist-deep: #8F9AE8;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
section[id] { scroll-margin-top: 72px; }
[hidden] { display: none !important; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, canvas { display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[data-theme="hero"], [data-theme="ink"] { --focus: var(--signal); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display);
  font-size: var(--t-2xl);
  font-weight: var(--display-weight);
  line-height: 1.02;
  letter-spacing: var(--display-track);
  text-wrap: balance;
}
.display--md { font-size: var(--t-xl); line-height: 1.02; }
.display--stretch { }

.h2 {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.05;
  max-width: 20ch;
  text-wrap: balance;
}

.lede { font-size: 1.1875rem; line-height: 1.5; max-width: 46ch; margin-top: 1.25rem; }
.intro { max-width: 58ch; margin-top: 1rem; color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent; background: transparent;
  font: 600 1rem/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--light { background: var(--cta-bg); color: var(--cta-fg); }
.btn--light:hover { background: var(--hero-fg); color: var(--hero-bg); }
.btn--ghost { border-color: color-mix(in srgb, var(--hero-fg) 55%, transparent); color: var(--hero-fg); }
.btn--ghost:hover { border-color: var(--hero-fg); background: color-mix(in srgb, var(--hero-fg) 8%, transparent); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  color: var(--hero-fg);
  transition: background-color .3s, color .3s;
}
.nav[data-theme="fog"] { background: color-mix(in srgb, var(--fog) 94%, transparent); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav[data-theme="ink"] { background: color-mix(in srgb, var(--ink) 97%, transparent); color: #fff; }
.nav[data-theme="hero"].is-scrolled { background: color-mix(in srgb, var(--hero-bg) 92%, transparent); }
.nav__brand {
  font-family: var(--display); font-weight: 800;
  font-size: 1.375rem; text-decoration: none; letter-spacing: -0.01em;
}
.nav nav, .nav__brand + .nav__cta { margin-left: auto; }
.nav__links { display: flex; gap: 28px; font-weight: 500; font-size: .9375rem; }
.nav__links a { text-decoration: none; padding: 6px 0; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav__cta { background: var(--cta-bg); color: var(--cta-fg); }
.nav[data-theme="fog"] .nav__cta { background: var(--brand); color: var(--brand-fg); }
.nav__cta:hover { background: var(--signal); color: var(--ink); }

/* ---------- Escena ---------- */
.stage { position: relative; height: 340vh; background: var(--hero-bg); color: var(--hero-fg); }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#scene.is-dragging { cursor: grabbing; }

.steps {
  position: absolute; left: var(--gutter); top: 50%;
  transform: translateY(-46%);
  width: min(40vw, 600px);
  display: grid;
  pointer-events: none;
}
.step {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s .45s;
}
.step.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
  pointer-events: auto;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.labels { position: absolute; inset: 0; pointer-events: none; }
.labels span {
  position: absolute; left: 0; top: 0;
  font: 500 .875rem/1 var(--body);
  color: var(--hero-fg); white-space: nowrap;
  padding-left: 30px;
  will-change: transform, opacity;
}
.labels span::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 22px; border-top: 1px solid color-mix(in srgb, var(--hero-fg) 60%, transparent);
}

.progress {
  position: absolute; right: var(--gutter); bottom: 40px;
  display: flex; gap: 6px;
}
.progress li { width: 28px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--hero-fg) 30%, transparent); transition: background-color .3s; }
.progress li.is-on { background: var(--hero-fg); }

.hint {
  position: absolute; left: var(--gutter); bottom: 36px;
  font-size: var(--t-sm); color: color-mix(in srgb, var(--hero-fg) 75%, transparent);
  transition: opacity .4s;
}
.hint.is-hidden { opacity: 0; }
.no-webgl .hint, .no-webgl .labels { display: none; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }
.section--ink { background: var(--ink); color: #fff; }

/* Servicios */
.services {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.service { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 3px solid var(--ink); }
.service__name {
  font-family: var(--display); font-weight: 650;
  font-size: 1.375rem; line-height: 1.15;
}
.service p { color: var(--ink-soft); font-size: 1rem; }
.service__gets { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .9375rem; }
.service__gets li { display: flex; gap: 10px; align-items: center; }
.service__gets li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); flex: none; }

/* Hot reload */
.reload { display: grid; gap: clamp(32px, 4vw, 56px); }
.reload__copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; }
.reload__copy p { color: var(--ink-soft); max-width: 52ch; }

.editor {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-rows: 1fr auto;
  background: var(--ink); color: #E4E6F5;
  border-radius: 20px; overflow: hidden;
}
.editor__code { padding: 28px 28px 8px; overflow-x: auto; }
.editor pre { margin: 0; font: 400 .875rem/1.9 var(--code); }
.editor .k { color: #9DB0FF; }
.editor .s { color: #F6D58A; }
.editor__console {
  grid-column: 1; padding: 14px 28px 22px;
  font: 400 .8125rem/1.6 var(--code); color: #8F94B8;
}
.editor__console.is-fresh { color: var(--signal); }

.swatches { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.swatches label { cursor: pointer; }
.swatches input, .range input:not([type="range"]) { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches span {
  display: inline-block; width: 22px; height: 22px; border-radius: 6px;
  background: var(--c); font-size: 0; vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fff; }
.swatches input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 4px; }
.range { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.range input { width: 110px; accent-color: #9DB0FF; }
.range output { color: #F6D58A; min-width: 2ch; }
.inline-text {
  font: inherit; color: inherit; background: rgba(255,255,255,.08);
  border: 0; border-radius: 4px; padding: 0 4px; width: 15ch;
}

.preview {
  grid-row: 1 / span 2; grid-column: 2;
  background: color-mix(in srgb, var(--ink) 86%, #fff); padding: 24px 20px;
  display: grid; place-items: center;
}
.preview__screen {
  width: 100%; max-width: 220px; aspect-ratio: 9 / 18;
  background: var(--paper); color: var(--ink);
  border-radius: 28px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 0 0 6px #0E1024;
  transition: box-shadow .25s;
}
.preview__screen.is-reloaded { box-shadow: 0 0 0 6px #0E1024, 0 0 0 9px var(--signal); }
.preview__img {
  flex: 1 1 auto; border-radius: 18px; min-height: 90px;
  background:
    radial-gradient(circle at 70% 30%, var(--signal) 0 18%, transparent 19%),
    linear-gradient(160deg, var(--mist), var(--mist-deep));
}
.preview__title { font-family: var(--display); font-weight: 700; font-size: 1.375rem; margin-top: 6px; }
.preview__meta { font-size: .75rem; font-weight: 600; color: var(--brand); }
.preview__body { font-size: .75rem; line-height: 1.45; color: var(--ink-soft); }
.preview__btn {
  margin-top: 8px; min-height: 42px; border: 0;
  background: var(--btn-bg, var(--brand)); color: #fff;
  border-radius: var(--btn-r, 14px);
  font: 600 .8125rem/1 var(--body);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 10px;
}

/* Proceso */
.gantt { margin-top: clamp(48px, 7vw, 80px); }
.gantt__weeks, .gantt__track { display: grid; grid-template-columns: repeat(10, 1fr); }
.gantt__weeks {
  margin-left: calc(34% + 32px);
  font-size: var(--t-sm); color: var(--ink-soft); padding-bottom: 12px;
}
.gantt__weeks span { padding-left: 6px; border-left: 1px solid var(--mist); }
.gantt__row {
  display: grid; grid-template-columns: 34% 1fr; gap: 32px; align-items: center;
  padding: 22px 0;
}
.gantt__row + .gantt__row { border-top: 1px solid var(--mist); }
.gantt__text h3 { font-family: var(--display); font-weight: 650; font-size: 1.25rem; }
.gantt__text p { margin-top: 6px; font-size: 1rem; color: var(--ink-soft); max-width: 44ch; }
.gantt__track {
  height: 48px; border-radius: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--mist) calc(10% - 1px) 10%);
}
.gantt__bar {
  grid-column: var(--from) / var(--to);
  display: flex; align-items: center; padding: 0 14px;
  background: var(--mist); color: var(--ink);
  border-radius: 10px; font-size: var(--t-sm); font-weight: 600; white-space: nowrap; overflow: hidden;
}
.gantt__bar--main { background: var(--brand); color: var(--brand-fg); }
.gantt__bar--launch { background: var(--signal); }

/* Proyecto */
.work { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.work__kind { font-family: var(--display); font-weight: 500; font-size: var(--t-md); color: var(--mist); margin-top: 8px; }
.work__copy > p:not(.work__kind) { margin-top: 1.25rem; max-width: 52ch; color: #D3D6EC; }
.work__facts { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 2rem; }
.work__facts dt { font-size: var(--t-sm); color: #8F94B8; }
.work__facts dd { font-weight: 600; margin-top: 2px; }
.work__copy .work__more { font-size: 1rem; color: #8F94B8; }

.chat {
  justify-self: center;
  width: min(320px, 100%); aspect-ratio: 9 / 17;
  background: #ECE7DF; color: var(--ink);
  border-radius: 40px; border: 10px solid #05060F;
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 14px 14px; overflow: hidden;
  transform: rotate(-3deg);
}
.chat__head {
  display: flex; gap: 10px; align-items: center;
  margin: 0 -14px 6px; padding: 30px 16px 12px;
  background: #1F6F5C; color: #fff; font-size: .875rem; line-height: 1.2;
}
.chat__head small { display: block; opacity: .95; font-size: .75rem; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; background: #F2B8A0; flex: none; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: .8125rem; line-height: 1.35; }
.bubble--in { background: #fff; border-top-left-radius: 4px; }
.bubble--out { background: #D3F5C9; align-self: flex-end; border-top-right-radius: 4px; }
.bubble--file { font-weight: 600; padding: 12px; }
.chat__input { margin-top: auto; background: #fff; border-radius: 999px; padding: 10px 16px; font-size: .8125rem; color: #8B8E9E; }

/* Precios */
.plans { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; }
.plan + .plan { border-left: 1px solid var(--mist); }
.plan--main { background: var(--brand); color: var(--brand-fg); border-radius: 24px; border-left: 0; margin: -20px 0; padding: 56px 36px; }
.plan--main + .plan { border-left: 0; }
.plan__name { font-family: var(--display); font-weight: 650; font-size: 1.375rem; line-height: 1.15; }
.plan__for { color: var(--ink-soft); font-size: 1rem; }
.plan--main .plan__for { color: color-mix(in srgb, var(--brand-fg) 80%, var(--brand)); }
.plan__price { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; margin-top: 10px; }
.plan__price small { font-family: var(--body); font-size: 1rem; font-weight: 500; }
.plan__time { font-size: var(--t-sm); font-weight: 600; }
.plan__list { display: flex; flex-direction: column; gap: 8px; font-size: 1rem; margin-bottom: 12px; }
.plan__list li { padding-left: 20px; position: relative; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.plan--main .plan__list li::before { background: var(--signal); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Preguntas */
.faq { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(32px, 6vw, 96px); }
.faq__list details { border-top: 1px solid var(--mist); }
.faq__list details:last-child { border-bottom: 1px solid var(--mist); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-weight: 600; font-size: 1.1875rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .25s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }

/* Contacto */
.contact { background: var(--hero-bg); color: var(--hero-fg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__alt { margin-top: 2rem; }
.contact__alt a { font-weight: 600; text-underline-offset: 4px; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 500; font-size: .9375rem; }
.form input, .form textarea, .form select {
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: 12px;
  padding: 13px 14px; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: 3px solid var(--signal); outline-offset: 1px; }
.form [aria-invalid="true"] { border-color: var(--signal); }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; font-size: .9375rem; }

.footer { padding: 32px 0; font-size: var(--t-sm); color: var(--ink-soft); }
.footer__row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { text-underline-offset: 3px; }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__photo { margin: 0; position: sticky; top: 96px; }
.about__photo img { width: 100%; height: auto; border-radius: 28px; background: var(--mist); }
.about__photo figcaption { margin-top: 12px; font-size: var(--t-sm); color: var(--ink-soft); }
.about__bio { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 52ch; }
.about__edu { margin-top: 1rem; color: var(--ink-soft); max-width: 52ch; }
.timeline { margin-top: 2.5rem; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--mist); }
.timeline__years { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.0625rem; font-weight: 600; }
.timeline p { font-size: 1rem; color: var(--ink-soft); margin-top: 2px; }
.about__cv { margin-top: 2rem; font-weight: 500; }
.about__cv a { color: var(--brand); text-underline-offset: 4px; font-weight: 600; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .reload__copy { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }

  .steps {
    top: auto; bottom: 64px; transform: none;
    left: var(--gutter); right: var(--gutter); width: auto;
  }
  .display { font-size: clamp(2.2rem, 9.4vw, 3.4rem); }
  .display--md { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .lede { font-size: 1.0625rem; margin-top: .9rem; }
  .actions { margin-top: 1.25rem; }
  .hint { display: none; }
  .progress { bottom: 28px; }
  .labels span { font-size: .75rem; padding-left: 20px; }
  .labels span::before { width: 14px; }

  .work, .faq, .contact__grid, .about { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 360px; }
  .chat { width: min(280px, 100%); }

  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--mist); }
  .plan { padding: 32px 0; }
  .plan--main { margin: 0; padding: 40px 28px; }
  .plan--main + .plan { border-top: 0; }

  .gantt__weeks { margin-left: 0; }
  .gantt__row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 720px) {
  .editor { grid-template-columns: 1fr; }
  .preview { grid-row: auto; grid-column: 1; order: -1; padding: 24px; }
  .preview__screen { max-width: 190px; }
  .editor__code { padding: 22px 18px 6px; }
  .editor__console { padding: 12px 18px 20px; }
  .editor pre { font-size: .8125rem; }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .nav { padding-top: 10px; padding-bottom: 10px; }
  .nav__brand { white-space: nowrap; }
  .nav__cta { min-height: 38px; padding: 0 14px; font-size: .8125rem; white-space: nowrap; }
  .lede__more { display: none; }
  .steps { bottom: 52px; }
  .display { font-size: clamp(2rem, 9vw, 2.6rem); }
  .display--md { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .actions .btn { min-height: 48px; padding: 0 18px; font-size: .9375rem; }
  .gantt__weeks span:nth-child(even) { visibility: hidden; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .nav__brand { font-size: 1.05rem; }
}

@media (max-width: 380px) {
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Guía (artículo) ---------- */
.article { padding: 120px 0 80px; }
.article__body { max-width: 820px; }
.crumbs { font-size: var(--t-sm); color: var(--ink-soft); }
.crumbs a { text-underline-offset: 3px; }
.article__title { max-width: 20ch; margin-top: 16px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.article__byline { margin-top: 16px; font-size: var(--t-sm); color: var(--ink-soft); }
.article__body > p, .article__list { max-width: 66ch; margin-top: 1.1rem; }
.article__answer { font-size: 1.25rem; line-height: 1.5; padding: 20px 24px; background: var(--paper); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; }
.article__body > h2 {
  font-family: var(--display); font-weight: 650;
  font-size: var(--t-md); line-height: 1.2; margin-top: 3rem;
}
.article__list { display: flex; flex-direction: column; gap: 10px; padding-left: 1.2em; list-style: disc; }
.article__list--num { list-style: decimal; }
.table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.price-table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 620px; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--mist); }
.price-table thead th { font-size: var(--t-sm); color: var(--ink-soft); font-weight: 500; border-top: 0; }
.price-table tbody th { font-weight: 600; }
.price-table td:last-child { font-weight: 600; color: var(--brand); white-space: nowrap; }
.article__cta { margin-top: 4rem; padding: clamp(28px, 5vw, 48px); background: var(--hero-bg); color: var(--hero-fg); border-radius: 24px; --focus: var(--signal); }
.article__cta h2 { font-family: var(--display); font-weight: 700; font-size: var(--t-xl); line-height: 1.05; }
.article__cta p { margin-top: 1rem; max-width: 52ch; }

/* ---------- Proyectos ---------- */
#proyectos .work__more { margin-top: clamp(40px, 6vw, 72px); color: #8F94B8; font-size: 1rem; }
.case__name { font-family: var(--display); font-weight: 700; font-size: var(--t-xl); line-height: 1; }
.case__copy > p:not(.work__kind) { margin-top: 1rem; max-width: 52ch; color: #D3D6EC; }
.case__copy .case__stack { font-size: .9375rem; color: #8F94B8; }
.case--feature {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.shots { display: flex; justify-content: center; align-items: center; padding: 24px 0; }
.shots img {
  width: 34%; height: auto; border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  background: #263A66;
}
.shots img:nth-child(1) { transform: rotate(-6deg) translateY(18px); margin-right: -6%; }
.shots img:nth-child(2) { position: relative; z-index: 1; transform: scale(1.06); }
.shots img:nth-child(3) { transform: rotate(6deg) translateY(18px); margin-left: -6%; }

.cases { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px); }
.case:not(.case--feature) { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.case .chat { width: 180px; aspect-ratio: 9 / 16; border-width: 7px; border-radius: 28px; padding: 0 8px 10px; gap: 6px; transform: none; }
.case .chat__head { margin: 0 -8px 4px; padding: 18px 10px 8px; font-size: .6875rem; }
.case .chat__head small { font-size: .6875rem; }
.case .chat__avatar { width: 22px; height: 22px; }
.case .bubble { font-size: .625rem; padding: 6px 8px; border-radius: 10px; }

.viewfinder {
  position: relative; width: 180px; aspect-ratio: 9 / 16;
  border-radius: 28px; border: 7px solid #05060F; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,6,15,.1), rgba(5,6,15,.55)),
    linear-gradient(160deg, #3E5C76 0%, #6F8F7A 55%, #C9A66B 100%);
  font-size: .625rem; line-height: 1.5; color: #fff; font-variant-numeric: tabular-nums;
}
.viewfinder::before {
  content: ""; position: absolute; inset: 22% 16%;
  background:
    linear-gradient(#fff, #fff) left top / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) left top / 2px 16px no-repeat,
    linear-gradient(#fff, #fff) right top / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) right top / 2px 16px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 2px 16px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 2px 16px no-repeat;
  opacity: .85;
}
.viewfinder__rec { position: absolute; top: 14px; left: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.viewfinder__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; }
.viewfinder__meta { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 6px 8px; border-radius: 8px; background: rgba(5,6,15,.55); }

@media (max-width: 1080px) {
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .case--feature { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .case:not(.case--feature) { grid-template-columns: 1fr; }
  .case .chat, .viewfinder { width: 150px; }
  .shots img { border-radius: 12px; }
}
.case .work__kind { font-size: 1.1875rem; line-height: 1.3; }
.shots img { width: 38%; }
.case .chat { justify-self: start; }
@media (max-height: 760px) { .hint { display: none; } }

/* ---------- Scroll suave (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Menú móvil ---------- */
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-left: 4px;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  place-items: center;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s, background-color .3s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav__sheet {
  position: fixed; inset: 0; z-index: -1;
  padding: 96px var(--gutter) 40px;
  background: var(--hero-bg); color: var(--hero-fg);
  display: flex; flex-direction: column; gap: 32px;
  animation: sheet-in .35s ease both;
}
.nav__sheet[hidden] { display: none; }
.nav__sheet ul { display: grid; gap: 6px; }
.nav__sheet ul a {
  display: block; padding: 6px 0; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.05;
}
.nav__sheet .btn { align-self: flex-start; }
.nav.is-open { color: var(--hero-fg); background: transparent !important; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .nav__sheet { animation: none; } }

/* ---------- Cotizador ---------- */
.quote__head { max-width: 760px; }
.quote {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.quote__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 36px; font-size: var(--t-sm); }
.quote__progress li {
  padding-top: 10px; border-top: 3px solid color-mix(in srgb, var(--hero-fg) 25%, transparent);
  color: color-mix(in srgb, var(--hero-fg) 82%, transparent); transition: border-color .3s, color .3s;
}
.quote__progress li.is-on { border-color: var(--cta-bg); color: var(--hero-fg); font-weight: 600; }

.qstep { border: 0; margin: 0; padding: 0; min-width: 0; }
.qstep.is-active { animation: step-in .4s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
@media (prefers-reduced-motion: reduce) { .qstep.is-active { animation: none; } }
.qstep legend, .qstep__sub {
  font-family: var(--display); font-weight: 650;
  font-size: var(--t-md); line-height: 1.2; margin-bottom: 20px; padding: 0;
}
.qstep__sub { margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 2px solid color-mix(in srgb, var(--hero-fg) 35%, transparent);
  font-weight: 500; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--hero-fg); }
.chip input:checked + span { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-fg); }
.chip input[type="checkbox"]:checked + span::before { content: ""; width: 10px; height: 6px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.chip input:focus-visible + span { outline: 3px solid var(--hero-fg); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields__wide { grid-column: 1 / -1; }
.fields label { display: grid; gap: 8px; font-weight: 500; font-size: .9375rem; }
.fields .optional { font-weight: 400; opacity: .7; }
.fields input, .fields textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 13px 14px; width: 100%;
}
.fields textarea { resize: vertical; }
.fields input:focus-visible, .fields textarea:focus-visible { outline: 3px solid var(--cta-bg); outline-offset: 1px; }
.fields [aria-invalid="true"] { border-color: var(--cta-bg); }

.quote__status { min-height: 1.5em; margin-top: 18px; font-size: .9375rem; }
.quote__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Teléfono 3D que se arma con lo que eliges */
.quote__preview { position: sticky; top: 96px; display: grid; gap: 20px; }
.device3d {
  --explode: 1; --tx: 0; --ty: 0;
  position: relative; height: 500px; display: grid; place-items: center;
  perspective: 1400px;
}
.device3d__stack {
  position: relative; width: 220px; aspect-ratio: 9 / 19;
  transform-style: preserve-3d;
  transform:
    translateY(calc(var(--explode) * var(--lift, -70px)))
    rotateX(calc(var(--explode) * 50deg + var(--ty) * 1deg))
    rotateZ(calc(var(--explode) * -28deg))
    rotateY(calc(var(--tx) * 1deg));
  transition: transform .8s cubic-bezier(.2, .75, .2, 1);
}
.layer3d {
  position: absolute; inset: 0; border-radius: 30px;
  transform: translateZ(calc(var(--explode) * var(--z, 0) * var(--zs, 1) * 1px));
  transition: transform .7s cubic-bezier(.2, .75, .2, 1), opacity .4s;
  transform-style: preserve-3d;
}
.layer3d:not(.layer3d--base)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid color-mix(in srgb, var(--hero-fg) 55%, transparent);
  background: color-mix(in srgb, var(--hero-fg) 5%, transparent);
  opacity: var(--explode); transition: opacity .5s;
}
.layer3d:not(.is-on):not(.layer3d--base) { opacity: 0; transform: translateZ(calc(var(--explode) * var(--z, 0) * 1px + 140px)); pointer-events: none; }
.layer3d em {
  position: absolute; left: calc(100% + 14px); top: 18px; white-space: nowrap;
  font: 500 .8125rem/1 var(--body); font-style: normal; color: var(--hero-fg);
  opacity: var(--explode); transition: opacity .5s;
}
.layer3d em::before { content: ""; display: inline-block; vertical-align: middle; width: 14px; margin-right: 6px; border-top: 1px solid currentColor; opacity: .6; }
.layer3d--base {
  background: var(--paper); color: var(--ink); padding: 14px;
  box-shadow: 0 0 0 7px var(--ink), 0 40px 80px -30px rgba(0,0,0,.55);
}
.mock__status { display: flex; justify-content: space-between; font-size: .625rem; font-weight: 600; }
.mock__icons { width: 30px; height: 8px; border-radius: 3px; background: var(--ink); }
.mock__title { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1; }
.mock__hero {
  margin-top: 14px; height: 116px; border-radius: 18px;
  background: radial-gradient(circle at 78% 30%, var(--signal) 0 16%, transparent 17%), var(--brand);
}
.mock__rows { position: absolute; left: 14px; right: 14px; bottom: 26%; display: grid; gap: 8px; }
.mock__rows span { height: 32px; border-radius: 10px; background: #fff; box-shadow: inset 34px 0 0 -2px var(--mist); }
.device3d[data-tipo="tienda"] .mock__rows { grid-template-columns: 1fr 1fr; }
.device3d[data-tipo="tienda"] .mock__rows span { height: 54px; box-shadow: inset 0 30px 0 0 var(--mist); }
.device3d[data-tipo="comunidad"] .mock__hero { height: 150px; background: linear-gradient(160deg, var(--mist-deep), var(--brand)); }
.device3d[data-tipo="empresa"] .mock__hero { background: repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, #fff 18%, transparent) 18px 20px), var(--brand); }
.device3d[data-tipo="prototipo"] .layer3d--base { background: var(--paper) repeating-linear-gradient(0deg, transparent 0 15px, color-mix(in srgb, var(--mist) 60%, transparent) 15px 16px); }

.mock__user { position: absolute; top: 44px; right: 14px; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .6875rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mock__avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--mist-deep); }
.mock__toast { position: absolute; top: 8px; left: 10px; right: 10px; padding: 9px 12px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 500; }
.mock__map {
  position: absolute; top: 88px; left: 14px; right: 14px; height: 116px; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 46%, #fff 46% 50%, transparent 50%),
    linear-gradient(25deg, transparent 60%, #fff 60% 63%, transparent 63%),
    repeating-linear-gradient(0deg, transparent 0 22px, color-mix(in srgb, var(--mist-deep) 35%, transparent) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, color-mix(in srgb, var(--mist-deep) 35%, transparent) 22px 23px),
    var(--mist);
}
.mock__pin { position: absolute; left: 54%; top: 34%; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--signal); transform: rotate(-45deg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 35%, transparent); }
.mock__chat { position: absolute; top: 214px; left: 14px; right: 14px; display: grid; gap: 6px; font-size: .625rem; }
.mock__chat span { justify-self: start; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.mock__chat span + span { justify-self: end; border-radius: 12px 12px 4px 12px; background: var(--brand); color: var(--brand-fg); }
.mock__pay { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; }
.mock__chips { display: flex; gap: 6px; }
.mock__chips b { flex: 1; padding: 6px 0; text-align: center; border-radius: 8px; background: #fff; color: var(--ink); font-size: .5625rem; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.mock__paybtn { padding: 11px; border-radius: 12px; text-align: center; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; }

.device3d__web {
  position: absolute; left: -4%; bottom: 4%; width: 210px; aspect-ratio: 16 / 10;
  border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 5px var(--mist), 0 30px 60px -24px rgba(0,0,0,.5);
  transform: translateZ(-80px) rotate(-6deg) scale(.9); opacity: 0;
  transition: opacity .5s, transform .7s cubic-bezier(.2, .75, .2, 1);
}
.device3d__web.is-on { opacity: 1; transform: translateZ(-40px) rotate(-6deg); }
.mock__bar { position: absolute; inset: 0 0 auto 0; height: 14px; border-radius: 12px 12px 0 0; background: var(--mist); }
.mock__side { position: absolute; left: 0; top: 14px; bottom: 0; width: 26%; border-radius: 0 0 0 12px; background: var(--ink); }
.mock__chart {
  position: absolute; left: 32%; right: 8%; top: 30%; bottom: 14%;
  background: linear-gradient(to top, var(--brand) 0 40%, transparent 40%) 0 100% / 14% 100% no-repeat,
              linear-gradient(to top, var(--brand) 0 70%, transparent 70%) 25% 100% / 14% 100% no-repeat,
              linear-gradient(to top, var(--signal) 0 55%, transparent 55%) 50% 100% / 14% 100% no-repeat,
              linear-gradient(to top, var(--brand) 0 90%, transparent 90%) 75% 100% / 14% 100% no-repeat,
              linear-gradient(to top, var(--brand) 0 62%, transparent 62%) 100% 100% / 14% 100% no-repeat;
}
.device3d__web em { position: absolute; left: 0; top: calc(100% + 12px); font: 500 .8125rem/1 var(--body); font-style: normal; color: var(--hero-fg); }

.quote__estimate { padding: 22px 24px; border-radius: 20px; background: color-mix(in srgb, var(--hero-fg) 8%, transparent); }
.quote__range { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; }
.quote__weeks { margin-top: 6px; font-weight: 600; }
.quote__weeks:empty { display: none; }
.quote__note { margin-top: 10px; font-size: var(--t-sm); opacity: .75; }
.contact .contact__alt { margin-top: clamp(40px, 6vw, 64px); }

@media (prefers-reduced-motion: reduce) {
  .device3d__stack, .layer3d, .device3d__web { transition: none; }
}

/* ---------- Escaparate 3D de PanicTalk ---------- */
.shots { position: relative; }
.shots__canvas { position: absolute; left: -6%; top: -14%; width: 112%; height: 128%; display: none; touch-action: pan-y; cursor: grab; }
.shots--3d .shots__canvas { display: block; }
.shots--3d img { visibility: hidden; }
.shots__canvas.is-dragging { cursor: grabbing; }

/* ---------- Responsivo: menú y cotizador ---------- */
@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .quote { grid-template-columns: 1fr; }
  .quote__preview { position: static; order: -1; }
  .device3d__stack { --lift: 0px; }
  .device3d { height: 400px; }
  .device3d__stack { width: 180px; }
  .mock__hero, .mock__map { height: 92px; }
  .mock__map { top: 80px; }
  .mock__chat { top: 182px; }
  .device3d__web { width: 180px; left: 0; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .quote__progress { font-size: .75rem; }
  .chip span { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
  .layer3d em { font-size: .6875rem; left: calc(100% + 8px); }
  .device3d { height: 380px; margin-top: 40px; }
  .device3d__stack { --zs: .62; }
  .device3d__stack { width: 160px; }
  .layer3d--base { padding: 10px; }
  .mock__title { font-size: 1.125rem; margin-top: 12px; }
  .mock__hero, .mock__map { height: 78px; }
  .mock__map { top: 66px; left: 10px; right: 10px; }
  .mock__chat { top: 156px; left: 10px; right: 10px; }
  .mock__user { top: 34px; right: 10px; }
  .mock__rows { left: 10px; right: 10px; gap: 6px; }
  .mock__rows span { height: 24px; }
  .device3d__web { width: 150px; }
  .quote__nav .btn { flex: 1 1 auto; }
}
.nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
main > section { overflow-x: clip; }
@media (max-width: 560px) {
  .nav { gap: 8px; }
  .nav__brand { font-size: 1rem; }
  .nav__cta { padding: 0 12px; }
  .nav__toggle { margin-left: 0; width: 40px; }
}
@media (max-width: 380px) { .nav__brand { font-size: .875rem; } .nav__cta { font-size: .75rem; padding: 0 10px; } }

/* ---------- Tipografía: vistas previas con ?letra= ---------- */
:root[data-letra="bricolage"] { --display: "Bricolage Grotesque", system-ui, sans-serif; --display-weight: 750; --display-track: -0.035em; }
:root[data-letra="jakarta"] { --display: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif; --display-weight: 750; --display-track: -0.035em; }

/* Subtítulos y nombres: misma familia, jerarquía por peso */
.service__name, .plan__name, .gantt__text h3, .qstep legend, .qstep__sub, .article__body > h2 { font-weight: 600; letter-spacing: -0.015em; }
.case__name, .plan__price, .quote__range, .article__cta h2, .preview__title, .mock__title { letter-spacing: -0.03em; }
.work__kind { font-family: var(--body); font-weight: 500; font-size: 1.125rem; letter-spacing: 0; }
.case .work__kind { font-size: 1.0625rem; }
.nav__brand { font-weight: 700; letter-spacing: -0.03em; font-size: 1.25rem; }
.timeline__years { font-family: var(--body); font-weight: 600; font-size: 1rem; }
.case__name { font-size: clamp(1.9rem, 3vw, 2.6rem); }

/* Prueba social en el hero */
.proof { display: flex; align-items: center; gap: 14px; margin-top: 28px; max-width: 46ch; font-size: .9375rem; line-height: 1.45; }
.proof__face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; box-shadow: 0 0 0 3px var(--cta-bg); }
.proof strong { display: block; font-weight: 600; }
.proof p { color: color-mix(in srgb, var(--hero-fg) 85%, transparent); }
@media (max-width: 560px) { .proof { margin-top: 18px; font-size: .875rem; } .proof__face { width: 44px; height: 44px; } }
@media (max-width: 560px) {
  .stage .display { font-size: clamp(1.85rem, 8.2vw, 2.3rem); }
  .stage .lede { font-size: 1rem; }
  .stage .actions { flex-wrap: nowrap; gap: 8px; }
  .stage .actions .btn { flex: 1 1 auto; padding: 0 12px; font-size: .875rem; min-height: 46px; }
  .stage .proof { display: none; }
  .labels { display: none; }
}

/* ---------- Proyectos con cifras ---------- */
.work__lead { margin-top: 1rem; max-width: 52ch; color: #D3D6EC; color: color-mix(in srgb, #fff 80%, var(--ink)); font-size: 1.125rem; }
.case--feature + .case--feature { margin-top: clamp(72px, 10vw, 140px); }
.case--flip .case__copy { order: 2; }
.case__name { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.case__icon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 1.5rem; }
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dd { font-weight: 650; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--signal); }
.stats dt { font-size: var(--t-sm); color: #8F94B8; color: color-mix(in srgb, #fff 55%, var(--ink)); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.75rem; }
.stores a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid color-mix(in srgb, #fff 35%, transparent);
  color: #fff; text-decoration: none; font-weight: 500; font-size: .9375rem;
  transition: border-color .2s, background-color .2s;
}
.stores a:hover { border-color: #fff; background: color-mix(in srgb, #fff 8%, transparent); }

.radio-shot { position: relative; justify-self: center; width: min(300px, 80%); padding-bottom: 40px; }
.radio-shot__screen { width: 100%; height: auto; border-radius: 34px; border: 8px solid #05060F; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.radio-shot__lock {
  position: absolute; left: -22%; bottom: 0; width: 82%; height: auto;
  border-radius: 20px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-4deg);
}
@media (max-width: 900px) {
  .case--flip .case__copy { order: 0; }
  .radio-shot { width: min(260px, 70%); margin-top: 8px; }
  .radio-shot__lock { left: -14%; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
  .stats dd { font-size: 1.25rem; }
  .stats dt { font-size: .75rem; }
  .case__icon { width: 44px; height: 44px; border-radius: 11px; }
}
.stats dd { white-space: nowrap; }

/* ---------- Perfil profesional ---------- */
.btn--brand { background: var(--brand); color: var(--brand-fg); }
.btn--brand:hover { background: var(--ink); color: #fff; }
.profile-hero { padding-top: clamp(110px, 14vw, 160px); }
.profile-hero__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.profile-hero__photo { width: 100%; height: auto; border-radius: 28px; background: var(--mist); }
.profile-hero__role { margin-top: 10px; font-size: 1.25rem; font-weight: 500; color: var(--brand); }
.profile-hero__open { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--paper); font-weight: 500; font-size: .9375rem; }
.profile-hero__open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2EA36B; box-shadow: 0 0 0 4px color-mix(in srgb, #2EA36B 25%, transparent); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-weight: 500; }
.profile-links a { color: var(--brand); text-underline-offset: 4px; }
.wins { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.wins li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 3px solid var(--ink); }
.wins h3 { font-weight: 600; font-size: 1.125rem; }
.wins__number { font-weight: 650; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--brand); }
.wins p:not(.wins__number) { color: var(--ink-soft); font-size: 1rem; }
.wins a { margin-top: auto; color: var(--brand); font-weight: 600; text-underline-offset: 4px; }
.profile-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); }
.profile-cols .timeline { margin-top: 1.75rem; }
.skills { margin-top: 1.75rem; display: grid; gap: 18px; }
.skills div { padding-top: 14px; border-top: 1px solid var(--mist); }
.skills dt { font-weight: 600; }
.skills dd { margin-top: 4px; color: var(--ink-soft); font-size: 1rem; }
.profile-subtitle { margin-top: 3rem; font-size: var(--t-md); }
.edu { margin-top: 1rem; display: grid; gap: 10px; font-size: 1rem; }
.edu strong { display: block; font-weight: 600; }
.edu li { color: var(--ink-soft); }
.edu li strong { color: var(--ink); }
@media (max-width: 900px) {
  .profile-hero__grid, .profile-cols { grid-template-columns: 1fr; }
  .profile-hero__photo { max-width: 280px; }
  .wins { grid-template-columns: 1fr; }
}

/* Enlace a perfil para reclutadores */
.about__recruiter { margin-top: 1rem; font-size: 1rem; color: var(--ink-soft); }
.about__recruiter a { color: var(--brand); font-weight: 600; text-underline-offset: 4px; }

/* Selector de idioma */
.nav__lang {
  display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 8px;
  border-radius: 999px; border: 1.5px solid color-mix(in srgb, currentColor 40%, transparent);
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
}
.nav__lang:hover { border-color: currentColor; }
.nav nav + .nav__lang { margin-left: -8px; }
.nav__brand + .nav__lang { margin-left: auto; }
.nav__brand + .nav__lang + .nav__cta { margin-left: 0; }
@media (max-width: 380px) { .nav__lang { min-width: 34px; padding: 0 6px; } }

/* ---------- Proyecto web en marco de navegador ---------- */
.case--web { margin-top: clamp(72px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #0B0D12; box-shadow: 0 40px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1C1F27; }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #3A3F4B; }
.browser__bar em { margin-left: 12px; flex: 1; max-width: 260px; padding: 4px 12px; border-radius: 6px; background: #12141A; color: #8F94B8; font: 400 .75rem/1.2 var(--body); font-style: normal; }
.browser img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .case--web { grid-template-columns: 1fr; }
}

@media (max-width: 900px) { .stage { height: 300vh; } }
.case.case--web { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .case.case--web { grid-template-columns: 1fr; } }

/* Conecta2: landing + detalle del producto */
.case.case--web-right { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); }
.browser-stack { position: relative; margin: 0 0 clamp(40px, 6vw, 80px); }
.browser-stack__detail {
  position: absolute; right: -3%; bottom: clamp(-80px, -6vw, -40px); width: 64%; height: auto;
  border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1);
}
.cases:has(> :only-child) { grid-template-columns: minmax(0, 720px); }
@media (max-width: 900px) {
  .case.case--web-right { grid-template-columns: 1fr; }
  .case.case--web-right .case__copy { order: -1; }
  .browser-stack__detail { right: -2%; width: 78%; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; background: var(--hero-bg); color: var(--hero-fg); }
.notfound__code { font-weight: 700; font-size: clamp(5rem, 18vw, 11rem); line-height: .9; letter-spacing: -0.06em; color: var(--cta-bg); }
.notfound h1 { margin-top: 12px; }
.notfound__en { margin-top: 2.5rem; font-size: .9375rem; opacity: .85; }
.notfound__en a { text-underline-offset: 3px; }

/* ---------- Proceso en 4 pasos ---------- */
.steps4 { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: paso; }
.steps4 li { counter-increment: paso; padding-top: 20px; border-top: 3px solid var(--ink); }
.steps4 li:nth-child(3) { border-color: var(--brand); }
.steps4 li:last-child { border-color: var(--signal); }
.steps4 li::before { content: counter(paso); display: block; font-weight: 650; font-size: 2rem; letter-spacing: -0.03em; line-height: 1; color: var(--brand); margin-bottom: 14px; }
.steps4 h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.015em; }
.steps4 p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 1080px) { .steps4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps4 { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 420px) { .nav__cta-more { display: none; } }

/* Páginas legales migradas */
.legal h2 { margin-top: 2.25rem; font-weight: 600; font-size: 1.375rem; letter-spacing: -0.015em; }
.legal h3 { margin-top: 1.5rem; font-weight: 600; font-size: 1.125rem; }
.legal p, .legal ul, .legal ol { margin-top: .9rem; max-width: 70ch; }
.legal ul, .legal ol { padding-left: 1.3em; list-style: disc; display: grid; gap: 6px; }
.legal ol { list-style: decimal; }
.legal a { color: var(--brand); text-underline-offset: 3px; }

/* ---------- Invitaciones web: tres celulares ---------- */
.case.case--invites { margin-top: clamp(72px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.case__note { font-size: .875rem !important; color: #8F94B8 !important; }
.phones { display: flex; justify-content: center; align-items: center; padding: 24px 0; }
.phones img {
  width: 30%; height: auto; border-radius: 26px; border: 6px solid #05060F;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.65); background: #1a1d2a;
}
.phones img:nth-child(1) { transform: rotate(-5deg) translateY(16px); margin-right: -4%; }
.phones img:nth-child(2) { position: relative; z-index: 1; transform: scale(1.06); }
.phones img:nth-child(3) { transform: rotate(5deg) translateY(16px); margin-left: -4%; }
@media (max-width: 900px) {
  .case.case--invites { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .phones img { border-width: 4px; border-radius: 16px; }
}

/* ---------- Landings de servicio ---------- */
.article__phones { margin-top: 2rem; }
.article__phones .phones { background: var(--hero-bg); border-radius: 24px; padding: clamp(28px, 5vw, 48px) 12px; }
.article__caption { margin-top: 10px; font-size: var(--t-sm); color: var(--ink-soft); }
.article__body > .actions { margin-top: 1.75rem; }
.article__shot { margin: 2rem 0 0; }
.article__shot .browser { box-shadow: 0 24px 60px -24px rgba(0,0,0,.45); }
.article__shot-img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.45); }
.article__body .faq__list { margin-top: 1rem; }
.article__body .faq__list summary { font-size: 1.0625rem; }
.service__more { margin-top: 6px; font-weight: 600; font-size: .9375rem; color: var(--brand); text-underline-offset: 4px; }
.case__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
