/* 10N Works · estilos
   Paleta y tipografía según el sistema de identidad v1.0
   Regla de marca: el cian (#22D3EE) vive solo en el punto del logo del encabezado. */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-var.woff2") format("woff2-variations"),
       url("assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --soft: #F4F4F2;
  --ink: #0A0A0A;
  --ink-2: #5A5F68;
  --muted: #8A8F98;
  --line: #E6E7E9;
  --line-2: #F0F1F2;
  --line-3: #D4D6DA;
  --cyan: #22D3EE;
  --d-line: #1E2024;
  --d-line-2: #33363B;
  --d-text: #D4D6DA;
  --err: #F5A3A3;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1600px;
  --gutter: clamp(20px, 5vw, 96px);
  --header-h: 64px;

  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: #FFFFFF; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact :focus-visible,
.footer :focus-visible,
.plan-dark :focus-visible { outline-color: #FFFFFF; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.muted { color: var(--muted); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ico { width: 16px; height: 16px; flex: none; }
.ico-sm { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #FFFFFF;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .ico { transition: transform 200ms var(--ease-out); }

.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; justify-content: space-between; }

.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-ghost { border-color: var(--line-3); color: var(--ink); }
.btn-invert { background: #FFFFFF; color: var(--ink); }
.btn-ghost-dark { border-color: var(--d-line-2); color: #FFFFFF; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #2A2C30; }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-invert:hover { background: var(--line); }
  .btn-ghost-dark:hover { border-color: #FFFFFF; }
  .btn:hover .ico { transform: translateX(3px); }
}

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: block; padding: 6px 0; margin-right: auto; }
.logo-h { height: 24px; width: auto; aspect-ratio: 380 / 100; color: var(--ink); --dot: var(--cyan); }

.nav { display: flex; gap: 28px; }

.lang { display: inline-flex; border: 1px solid var(--line-3); }
.lang a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.lang a + a { border-left: 1px solid var(--line-3); }
.lang a { color: var(--muted); }
.lang a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.lang a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .lang a:not([aria-current="page"]):hover { color: var(--ink); background: var(--soft); }
}
.nav a { font-size: 15px; color: var(--ink-2); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 8vw, 104px) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  margin: 20px 0 24px;
  font-size: clamp(42px, 5.6vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.lede { max-width: 34em; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Demo: alguien le pregunta a un asistente de IA */
.demo { margin: 0; }
.demo-card { background: var(--surface); border: 1px solid var(--line); }
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
  text-transform: uppercase;
}
.demo-bar .mono { font-size: 11px; letter-spacing: 0.06em; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 8px; height: 8px; border: 1.5px solid var(--line-3); border-radius: 50%; }

.demo-body {
  padding: 24px;
  min-height: 304px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.demo-q {
  align-self: flex-end;
  max-width: 88%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--soft);
  font-size: 17px;
  line-height: 1.45;
  transition: opacity 200ms var(--ease-out);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--ink);
  opacity: 0;
}
[data-state="typing"] .caret { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.demo-a { display: grid; }
.demo-a > * { grid-area: 1 / 1; }

.demo-thinking { display: flex; gap: 6px; padding: 6px 0; opacity: 0; transition: opacity 150ms ease; }
.demo-thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.25; }
[data-state="thinking"] .demo-thinking { opacity: 1; }
[data-state="thinking"] .demo-thinking i { animation: pulse 900ms ease-in-out infinite; }
[data-state="thinking"] .demo-thinking i:nth-child(2) { animation-delay: 150ms; }
[data-state="thinking"] .demo-thinking i:nth-child(3) { animation-delay: 300ms; }
@keyframes pulse { 50% { opacity: 1; } }

.demo-answer {
  font-size: 17px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), filter 200ms var(--ease-out);
}
.demo-answer strong { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.demo-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.demo-source .pin { width: 9px; height: auto; color: var(--ink); }

[data-state="answer"] .demo-answer,
.no-demo .demo-answer {
  opacity: 1;
  transform: none;
  filter: none;
  transition-duration: 480ms;
}
[data-state="answer"] .demo-source,
.no-demo .demo-source {
  opacity: 1;
  transform: none;
  transition-duration: 480ms;
  transition-delay: 160ms;
}
[data-state="out"] .demo-q { opacity: 0; }

.demo-cap { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* Franja: lo que siempre va incluido */
.baseline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  margin-top: clamp(56px, 8vw, 96px);
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.baseline ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.baseline li { position: relative; font-size: 15px; color: var(--ink-2); }
.baseline li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  vertical-align: 1px;
}

/* ---------- Secciones ---------- */

.section { padding: clamp(80px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.hero + .section { border-top: 0; }

.sec-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: clamp(40px, 5vw, 56px); }
.sec-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.sec-head h2,
.contact h2 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.sec-head p { font-size: 18px; color: var(--ink-2); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.service { border-top: 1px solid var(--ink); padding-top: 20px; }
.service h3 { margin: 18px 0 10px; font-size: 24px; letter-spacing: -0.012em; }
.service p { font-size: 16.5px; color: var(--ink-2); }


/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .plan:not(.plan-dark):hover { border-color: var(--line-3); }
}
.plan-head h3 { margin-top: 14px; font-size: 24px; letter-spacing: -0.012em; }
.plan-sub { margin-top: 2px; font-size: 15px; color: var(--ink-2); }

.price {
  margin-top: 28px;
  font-size: clamp(42px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.price .cur { font-size: 0.5em; vertical-align: 0.62em; margin-right: 3px; letter-spacing: 0; color: var(--ink-2); }
.price .dash { font-weight: 300; color: var(--muted); }
.price .from {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-time { margin-top: 10px; color: var(--muted); }

.checks { margin: 24px 0 20px; border-top: 1px solid var(--line-2); }
.checks li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line-2);
  font-size: 15.5px;
  line-height: 1.45;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 17px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.plan-note { padding: 12px 14px; background: var(--soft); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.plan-ideal { margin: auto 0 20px; padding-top: 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.plan-ideal .mono { display: block; margin-bottom: 4px; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }

.plan-dark { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.plan-dark .plan-sub,
.plan-dark .plan-ideal,
.plan-dark .price .cur { color: var(--d-text); }
.plan-dark .checks,
.plan-dark .checks li { border-color: var(--d-line-2); }

.between {
  max-width: 48em;
  margin-top: 32px;
  padding-left: 18px;
  border-left: 2px solid var(--ink);
  font-size: 16px;
  color: var(--ink-2);
}
.between strong { font-weight: 500; color: var(--ink); }

.extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 48px;
  margin-top: clamp(64px, 8vw, 96px);
}
.extras-head h3 { font-size: 24px; letter-spacing: -0.012em; }
.extras-head p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }
.extras-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.extras-list div { padding: 18px 0; border-top: 1px solid var(--line); }
.extras-list dt { font-weight: 500; font-size: 17px; }
.extras-list dd { margin: 4px 0 0; font-size: 15.5px; color: var(--ink-2); }

/* Proyectos */
.project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) 190px;
  gap: 24px 48px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--ink);
}
.project + .project { margin-top: 16px; }
.project-meta h3 { margin-top: 12px; font-size: clamp(28px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.022em; }
.project-sub { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.project-body { max-width: 52em; }
.project-body > p:first-child { font-size: 17px; }
.project-tags { margin-top: 18px; color: var(--muted); line-height: 1.6; }

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  counter-reset: none;
}
.flow li {
  position: relative;
  padding: 14px 16px 16px;
  font-size: 14.5px;
  line-height: 1.4;
}
.flow li + li { border-left: 1px solid var(--line); }
.flow li .mono { display: block; margin-bottom: 8px; }
.flow li + li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--surface);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}
.flow li:last-child { font-weight: 500; }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.features li { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.features li:nth-child(-n+2) { border-top: 0; }
.features li:nth-child(even) { border-left: 1px solid var(--line); }
.features .mono { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.features p { font-size: 15px; line-height: 1.45; }
.features .feature-private {
  grid-column: 1 / -1;
  border-left: 0;
  background: var(--ink);
  color: #FFFFFF;
  border-top-color: var(--ink);
}
.features .feature-private .mono { color: var(--muted); }
.features .feature-private p { color: var(--d-text); max-width: 46em; }

.project-link {
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line-3);
  white-space: nowrap;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.project-link .mono { font-size: 13px; }
.project-link .ico { transition: transform 200ms var(--ease-out); }
.project-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .project-link:hover { border-color: var(--ink); }
  .project-link:hover .ico { transform: translate(2px, -2px); }
}

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps h3 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform 300ms var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; font-size: 16.5px; color: var(--ink-2); }

/* Con JS: main.js anima la altura; aquí van el texto y el ícono */
.js .faq details summary .ico { transform: none; }
.js .faq details.is-open summary .ico { transform: rotate(45deg); }
.js .faq-a p {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
}
.js .faq details.is-open .faq-a p {
  opacity: 1;
  transform: none;
  transition-delay: 60ms;
}
@media (hover: hover) and (pointer: fine) {
  .faq summary { transition: color 150ms ease; }
  .faq summary:hover { color: var(--ink-2); }
}

/* ---------- Contacto ---------- */

.contact { padding: clamp(80px, 10vw, 128px) 0; background: var(--ink); color: #FFFFFF; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { margin: 12px 0 18px; }
.contact-copy > p { max-width: 28em; font-size: 18px; color: var(--d-text); }

.direct { margin-top: 40px; border-bottom: 1px solid var(--d-line-2); }
.direct a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--d-line-2);
  font-size: 17px;
  overflow-wrap: anywhere;
}
.direct .ico { width: 20px; height: 20px; color: var(--muted); transition: color 150ms ease; }
.direct a > span { display: grid; gap: 2px; }
.direct .mono { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
@media (hover: hover) and (pointer: fine) {
  .direct a:hover .ico { color: #FFFFFF; }
}

.form { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--d-line-2); }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--d-text);
}
.opt { margin-left: 6px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }

.field input[type="text"],
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background: transparent;
  border: 1px solid var(--d-line-2);
  border-radius: 0;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 150ms ease;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder,
.field textarea::placeholder { color: #6B7079; }
.field input[type="text"]:focus-visible,
.field textarea:focus-visible { border-color: #FFFFFF; outline: none; }
.field input[aria-invalid="true"],
.field input[aria-invalid="true"]:focus-visible { border-color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--d-line-2);
  font-size: 15px;
  font-weight: 400;
  color: var(--d-text);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.chip:active span { transform: scale(0.97); }
.chip input:checked + span { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid #FFFFFF; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover input:not(:checked) + span { border-color: var(--muted); color: #FFFFFF; }
}
.chips[data-invalid] .chip span { border-color: var(--err); }

.err { margin-top: 8px; font-size: 13.5px; color: var(--err); }

.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-actions .btn { flex: 1 1 200px; }
.form-status { min-height: 1.6em; margin-top: 14px; color: var(--muted); }

/* ---------- Pie ---------- */

.footer {
  background: var(--ink);
  color: var(--muted);
  border-top: 1px solid var(--d-line);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.logo-foot { height: 20px; color: #FFFFFF; --dot: #FFFFFF; }
.foot-coords { margin-right: auto; }
.foot-tag { font-size: 14px; color: var(--d-text); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { font-size: 14px; color: var(--d-text); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .foot-nav a:hover { color: #FFFFFF; }
}

/* ---------- Aparición al hacer scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Pantallas anchas ---------- */

@media (min-width: 1500px) {
  .demo-q, .demo-answer { font-size: 19px; }
  .demo-body { padding: 28px; min-height: 320px; }
  .sec-head p { font-size: 19px; }
  .service p, .project-body > p:first-child { font-size: 18px; }
  .service h3, .plan-head h3, .extras-head h3 { font-size: 26px; }
  .checks li, .extras-list dd, .steps p { font-size: 16.5px; }
  .features p, .flow li { font-size: 15.5px; }
  .faq summary { font-size: 19px; }
  .faq-a p { font-size: 17.5px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .project { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .project-link { grid-column: 2; justify-self: start; }
  .project { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { gap: 12px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { max-width: 560px; }
  .services { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .extras { grid-template-columns: minmax(0, 1fr); }
  .project { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project-link { grid-column: auto; justify-self: start; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .sec-head { position: static; margin-bottom: 8px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero h1 { letter-spacing: -0.03em; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .demo-body { padding: 18px; min-height: 340px; }
  .demo-q, .demo-answer { font-size: 16px; }
  .baseline ul { flex-direction: column; gap: 6px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 18px 0 20px; border-top-color: var(--line); }
  .steps li:first-child { border-top-color: var(--ink); }
  .steps li h3 { margin: 0 0 4px; grid-column: 2; }
  .steps li p { grid-column: 2; }
  .steps li .mono { grid-row: 1 / span 2; padding-top: 4px; }
  .extras-list { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; }
  .flow li .mono { margin: 0; }
  .flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .flow li + li::before { left: 20px; top: -5px; transform: rotate(135deg); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .features li:nth-child(even) { border-left: 0; }
  .features li:nth-child(2) { border-top: 1px solid var(--line); }
  .faq summary { font-size: 17px; padding: 20px 0; }
  .faq-a p { padding-right: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .btn:active, .chip:active span, .project-link:active { transform: none; }
  .demo-answer, .demo-source { transform: none !important; filter: none !important; }
  [data-state="typing"] .caret { animation: none; }
  .js .faq-a p { transform: none; }
}
