/* Halcyon Systems — dirección editorial cálida
   Paleta del manual de marca v1. Fraunces (display, con cursiva) + Nunito Sans (texto).
   Grilla de 12 columnas desde 900px. Primero celular. */

/* ---------- Fuentes (autoalojadas) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-sans-latin-800-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ground: #FAF8F5;
  --surface: #FFFFFF;
  --ink: #262626;
  --muted: #6B6B6B;
  --brick: #B5462A;
  --brick-dark: #9E3C23;
  --on-brick: #FFFFFF;
  --brick-soft: #F3E1DA;
  --stone: #D9D4CC;
  --hairline: #E6E1D9;
  --ok: #3F7D5A;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  --gutter: 20px;
  --col-gap: 16px;
  --section: 72px;
  --maxw: 1280px;
  --header-h: 64px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 24px;

  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Textura de papel: ruido SVG, opacidad efectiva cerca del 3 % */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .12 0 0 0 0 .1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
@media (min-width: 600px) { :root { --gutter: 32px; --col-gap: 24px; } }
@media (min-width: 900px) { :root { --section: 128px; --header-h: 76px; --col-gap: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--ground);
  background-image: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, dd, h1, h2, h3, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 800; }
/* Lo que tiene el atributo hidden queda oculto aunque su clase le dé display (pasos del formulario, portal, botón fijo) */
[hidden] { display: none !important; }

h1, h2, h3 { text-wrap: balance; font-weight: 400; }
/* Fraunces: en tamaños grandes se fija el tamaño óptico en 48 para que las barras finas
   (la "e", la "a") no desaparezcan en pantallas comunes */
.hero__title, .h2, .contact__title, .quote p, .pains__closing { font-variation-settings: "opsz" 48; }
p { text-wrap: pretty; }

/* Cursiva ladrillo: una palabra clave por título */
h1 em, h2 em, .pains__closing em {
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  color: var(--brick);
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 3.4vw + 14px, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h2--sm { font-size: clamp(30px, 1.6vw + 18px, 40px); }

.h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 1.2vw + 18px, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.small { font-size: 13px; line-height: 19px; color: var(--muted); }

/* Etiqueta de sección: "02 — Qué hacemos" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--plain { color: var(--muted); }
.eyebrow--on-brick { color: var(--on-brick); }
.eyebrow--on-ink { color: var(--ground); }

/* ---------- Utilidades ---------- */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Grilla editorial de 12 columnas (en celular, una columna) */
.g12 { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
@media (min-width: 900px) {
  .g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- Enlaces con subrayado animado ---------- */
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  background-image:
    linear-gradient(var(--brick), var(--brick)),
    linear-gradient(currentColor, currentColor);
  background-size: 0% 2px, 100% 1px;
  background-position: 0 calc(50% + 0.75em), 0 calc(50% + 0.75em);
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 100% 2px, 100% 1px; }
.link--strong { font-weight: 700; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn--primary { background: var(--brick); color: var(--on-brick); border-color: var(--brick); }
.btn--primary:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--ground); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn--header { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--header:hover { background: var(--ink); color: var(--ground); }
.btn--header.is-accent { background: var(--brick); color: var(--on-brick); border-color: var(--brick); }
.btn--header.is-accent:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--ink);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.header__logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.header__logo img { width: auto; height: 20px; }
@media (min-width: 400px) { .header__logo img { height: 22px; } }
@media (min-width: 900px) { .header__logo img { height: 24px; } }
.header__actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-toggle .icon { width: 22px; height: 22px; }

.nav { display: none; }
.nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ground);
  border-bottom: 1px solid var(--ink);
}
.nav.is-open .nav__list { padding: 8px var(--gutter) 24px; }
.nav.is-open li + li { border-top: 1px solid var(--hairline); }
.nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
}
@media (min-width: 900px) {
  .nav, .nav.is-open { display: block; position: static; border: 0; background: none; }
  .nav__list, .nav.is-open .nav__list { display: flex; gap: clamp(16px, 1.6vw, 28px); padding: 0; }
  .nav.is-open li + li { border: 0; }
  .nav a {
    min-height: 44px;
    font-family: var(--sans);
    font-size: 15px;
    background-image: linear-gradient(var(--brick), var(--brick));
    background-size: 0% 2px;
    background-position: 0 calc(50% + 0.85em);
    background-repeat: no-repeat;
    transition: background-size .35s var(--ease);
  }
  .nav a:hover { background-size: 100% 2px; }
  .menu-toggle { display: none !important; }
  .header__bar { gap: 32px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section) 0; }
.section__head { margin-bottom: 40px; }
@media (min-width: 900px) { .section__head { margin-bottom: 72px; } }

/* ---------- Portada ---------- */
.hero { padding-block: 32px 24px; overflow-x: clip; }
.hero__grid { display: grid; gap: 48px; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw + 10px, 88px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 420;
}
.hero__lead { margin-top: 24px; font-size: 18px; line-height: 1.55; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 28px; }
.hero__note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  max-width: 24em;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.hero__art { width: 100%; max-width: 560px; }
@media (max-width: 599px) {
  .hero__actions .btn { width: 100%; }
}
@media (min-width: 900px) {
  .hero { padding-block: 48px 48px; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
  .hero__text { grid-column: 1 / span 7; grid-row: 1; position: relative; z-index: 2; }
  .hero__art { grid-column: 7 / -1; grid-row: 1; max-width: none; margin-right: calc(-1 * var(--gutter) / 2); margin-top: 24px; position: relative; z-index: 1; }
  .hero__lead { font-size: 19px; margin-top: 32px; }
  .hero__actions { margin-top: 36px; }
}

/* ---------- Ilustraciones de línea (un solo estilo para todo el sitio) ----------
   Trazo grafito de 1.5px que no cambia con la escala, puntas redondeadas,
   sin rellenos salvo UN detalle ladrillo por ilustración. */
.ill { display: block; width: 100%; height: auto; overflow: visible; }
.ill * {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ill .paper { fill: var(--ground); }
.ill .accent, .ill .accent * { stroke: var(--brick); }
.ill .accent-fill { fill: var(--brick); stroke: var(--brick); }
.ill .dash { stroke-dasharray: 4 5; }

/* ---------- 01 ¿Te suena? ---------- */
.pains__head { align-self: start; }
.pains__list { border-top: 1px solid var(--ink); }
.pains__list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding-block: 22px;
  border-bottom: 1px solid var(--hairline);
}
.pains__num {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pains__list p {
  font-family: var(--serif);
  font-size: clamp(22px, 1.4vw + 16px, 34px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.pains__closing {
  margin-top: 40px;
  padding-left: 52px;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(26px, 1.8vw + 18px, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.pains__closing::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 36px;
  height: 2px;
  background: var(--brick);
}
@media (min-width: 900px) {
  .pains__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); }
  .pains__body { grid-column: 5 / -1; }
  .pains__list li { grid-template-columns: 56px minmax(0, 1fr); padding-block: 30px; }
  .pains__num { padding-top: 14px; }
  .pains__closing { margin-top: 56px; padding-left: 72px; }
  .pains__closing::before { width: 52px; }
}

 /* ---------- Qué hacemos: tipos de sistema ---------- */
.kinds { display: grid; border-top: 1px solid var(--ink); }
.kind {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: start;
  padding-block: 32px;
}
.kind + .kind { border-top: 1px solid var(--hairline); }
.kind__ill { width: 100%; max-width: 240px; margin-bottom: 8px; }
.kind__name { font-size: clamp(26px, 1vw + 20px, 34px); }
.kind p:not(.kind__for) { max-width: 32em; }
.kind__for {
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 40em;
}
.kind__for span { color: var(--brick); }
@media (min-width: 768px) {
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kind { padding: 40px 32px 40px 0; }
  .kind:nth-child(even) { padding: 40px 0 40px 32px; border-left: 1px solid var(--hairline); }
  .kind + .kind { border-top: 0; }
  .kind:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
}
@media (min-width: 900px) {
  .kind { padding: 56px 48px 56px 0; }
  .kind:nth-child(even) { padding: 56px 0 56px 48px; }
  .kind__ill { max-width: 280px; }
}

/* ---------- Chatbot: banda ladrillo suave ---------- */
.chatbot {
  margin-top: var(--section);
  padding-block: 64px;
  background: var(--brick-soft);
}
.chatbot__grid { align-items: center; row-gap: 48px; }
.chatbot__text { display: grid; gap: 20px; justify-items: start; }
.chatbot__text .eyebrow { margin-bottom: 0; }
.chatbot__lead { font-size: 18px; line-height: 1.6; max-width: 32em; }
.chatbot__points { width: 100%; max-width: 32em; border-top: 1px solid var(--ink); }
.chatbot__points li {
  padding-block: 14px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin-inline: auto;
  padding: 20px 20px 28px;
  background: var(--ground);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  transform: rotate(1.5deg);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chat__avatar { width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 50%; }
.msg {
  position: relative;
  max-width: 82%;
  padding: 10px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  background: var(--surface);
}
.msg--in { align-self: flex-start; border-bottom-left-radius: 4px; }
/* La burbuja del asistente lleva el detalle ladrillo */
.msg--out { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--ground); padding-left: 30px; }
.msg--out::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brick);
}
@media (min-width: 900px) {
  .chatbot { padding-block: 112px; }
  .chatbot__text { grid-column: 1 / span 6; }
  .chatbot__art { grid-column: 8 / -1; }
  .chat { padding: 28px 28px 36px; }
}

/* Tablet: filas de dos columnas para que no quede una pila de bloques */
@media (min-width: 600px) and (max-width: 899px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
  .step { padding-left: 0; padding-bottom: 0; }
  .step::before, .step::after { display: none; }
  .step__num { font-size: 120px; border-bottom: 1px solid var(--brick); padding-bottom: 12px; margin-bottom: 8px; }
  .step p { font-size: 16px; }
  .pledges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pledge + .pledge { border-top: 0; border-left: 1px solid var(--hairline); padding-left: 20px; }
}

/* ---------- 03 Mantenimiento: banda ladrillo ---------- */
.band {
  margin-top: var(--section);
  padding-block: 64px;
  background: var(--brick);
  color: var(--on-brick);
}
.band__title { color: var(--on-brick); font-size: clamp(40px, 4.6vw + 14px, 76px); }
.band__title em { color: var(--on-brick); }
.band__text { font-size: 19px; line-height: 1.55; max-width: 30em; }
@media (min-width: 900px) {
  .band { padding-block: 112px; }
  .band__grid { align-items: end; }
  .band__head { grid-column: 1 / span 8; }
  .band__text {
    grid-column: 9 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--on-brick);
    font-size: 20px;
  }
}
@media (max-width: 899px) {
  .band__text { padding-top: 20px; border-top: 1px solid var(--on-brick); }
}

/* ---------- 04 Cómo trabajamos ---------- */
.steps { display: grid; gap: 0; position: relative; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  padding-bottom: 40px;
  padding-left: 28px;
}
/* Línea que conecta los pasos (vertical en celular) */
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: -18px;
  width: 1px;
  background: var(--brick);
}
.step:last-child::before { bottom: auto; height: 76px; }
.step::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brick);
}
.step__num {
  font-family: var(--serif);
  font-size: 128px;
  line-height: .86;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brick);
  font-variant-numeric: lining-nums;
}
.step p { font-size: 18px; line-height: 1.5; max-width: 22em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .step { padding: 0; gap: 24px; }
  /* Línea horizontal a la altura de los numerales */
  .step::before {
    left: 0;
    right: calc(-1 * var(--col-gap));
    top: 84px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .step:last-child::before { right: 0; height: 1px; }
  .step::after { left: auto; right: auto; top: 80px; left: 0; display: none; }
  .step__num {
    font-size: 176px;
    justify-self: start;
    position: relative;
    z-index: 1;
    padding-right: 20px;
    background: linear-gradient(var(--ground), var(--ground)) 0 50% / 100% 24px no-repeat;
  }
  .step p { font-size: 19px; }
}

/* ---------- Clientes: grilla de logos ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--hairline);
}
.logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 24px 16px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.logos img {
  width: auto;
  height: auto;
  max-height: 48px;
  max-width: min(100%, 170px);
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .3s ease, opacity .3s ease;
}
.logos li:hover img,
.logos li:focus-within img { filter: none; opacity: 1; }
/* Si falta el archivo, se muestra el nombre del cliente */
.logos__name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.logos__names { font-family: var(--serif); font-size: 20px; }
@media (min-width: 600px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logos li { min-height: 140px; } }
/* El último logo ocupa la fila entera cuando queda solo */
@media (max-width: 599px) { .logos li:last-child:nth-child(2n + 1) { grid-column: 1 / -1; } }
@media (min-width: 600px) and (max-width: 1099px) {
  .logos li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .logos li:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
/* En escritorio, todos en una fila (main.js pasa la cantidad en --n, hasta 8) */
@media (min-width: 1100px) { .logos { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); } }

/* ---------- Quiénes somos ---------- */
.team__intro { align-items: start; }
.team__text { font-size: 19px; line-height: 1.6; max-width: 30em; }
.quote {
  position: relative;
  padding-top: 52px;
  border-top: 1px solid var(--ink);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: -4px;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: var(--brick);
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: clamp(28px, 2.6vw + 16px, 50px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.pledges {
  display: grid;
  margin-top: 56px;
  border-top: 1px solid var(--ink);
}
.pledge { display: grid; gap: 6px; align-content: start; padding-block: 24px; }
.pledge + .pledge { border-top: 1px solid var(--hairline); }
.pledge__title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pledge p { color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (min-width: 900px) {
  .team__text { grid-column: 1 / span 5; padding-top: 8px; }
  .quote { grid-column: 6 / -1; }
  .pledges { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: 88px; }
  .pledge { padding-block: 28px 0; }
  .pledge + .pledge { border-top: 0; border-left: 1px solid var(--hairline); padding-left: var(--col-gap); }
  .pledge__title { font-size: 28px; }
}

/* ---------- 07 Ya sos cliente: discreto ---------- */
.clients__box {
  padding-block: 32px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.clients__head .eyebrow { margin-bottom: 12px; }
.clients__body { display: grid; gap: 4px; max-width: 40em; }
.clients__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-block: 20px 12px; }
[data-portal][hidden] { display: none; }
@media (min-width: 900px) {
  .clients__box { padding-block: 48px; }
  .clients__head { grid-column: 1 / span 4; }
  .clients__body { grid-column: 6 / -1; }
}

/* ---------- 08 Contacto: banda grafito ---------- */
.contact {
  margin-top: var(--section);
  padding-block: 72px;
  background: var(--ink);
  color: var(--ground);
}
.contact__title {
  font-family: var(--serif);
  font-size: clamp(44px, 6.2vw + 12px, 96px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ground);
}
/* Sobre grafito el ladrillo no llega a 3:1: la cursiva va en ladrillo suave (11.96:1) */
.contact__title em { color: var(--brick-soft); }
.contact__body { display: grid; gap: 28px; justify-items: start; align-content: end; }
.contact__body > p { font-size: 19px; line-height: 1.55; max-width: 26em; }
.contact__list { display: grid; gap: 0; width: 100%; border-top: 1px solid rgba(250, 248, 245, .35); }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid rgba(250, 248, 245, .35);
}
.contact .link { background-image: linear-gradient(var(--brick-soft), var(--brick-soft)), linear-gradient(currentColor, currentColor); }
.contact :focus-visible { outline-color: var(--ground); }
@media (max-width: 599px) { .contact .btn { width: 100%; } }
@media (min-width: 900px) {
  .contact { padding-block: 128px; }
  .contact__head { grid-column: 1 / span 8; }
  .contact__body { grid-column: 9 / -1; }
  .contact__grid { align-items: end; }
}

/* ---------- Pie: colofón ---------- */
.footer { padding-block: 40px 32px; }
.colophon {
  padding-top: 24px;
  border-top: 3px double var(--ink);
  align-items: start;
}
.colophon__brand img { width: auto; height: 22px; }
.colophon__cols { display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.colophon__name { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.colophon__links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.colophon__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
@media (min-width: 600px) {
  .colophon__cols { grid-template-columns: auto auto 1fr; column-gap: 32px; align-items: center; }
  .colophon__links { justify-content: flex-end; }
}
@media (min-width: 900px) {
  .colophon__brand { grid-column: 1 / span 3; align-self: center; }
  .colophon__cols { grid-column: 4 / -1; }
}

/* ---------- Conversión: confianza en portada ---------- */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  max-width: 36em;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brick); flex: none; }

/* Franja de logos justo debajo de la portada */
.proof { padding-block: 40px 0; }
.proof__inner { display: grid; gap: 16px; }
.proof__label {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.logos--strip li { min-height: 96px; }
@media (min-width: 900px) {
  .proof__inner { grid-template-columns: 220px minmax(0, 1fr); align-items: center; column-gap: 32px; }
}

/* Llamados a la acción entre secciones */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 40px; }
.cta-row p, .cta-row__note { font-size: 15px; line-height: 1.45; color: var(--muted); }
.pains .cta-row { margin-top: 32px; }
@media (min-width: 900px) { .pains .cta-row { padding-left: 72px; } }
@media (max-width: 599px) { .cta-row .btn { width: 100%; } }
.kind__cta { gap: 6px; margin-top: 2px; }

/* ---------- Preguntas frecuentes ---------- */
.faq__grid { align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(20px, 0.8vw + 16px, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 26px;
  line-height: 1;
  color: var(--brick);
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 24px; max-width: 40em; }
@media (min-width: 900px) {
  .faq__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); }
  .faq__list { grid-column: 5 / -1; }
}

/* ---------- Pedí tu presupuesto ---------- */
.contact__grid { row-gap: 48px; }
.contact__intro { display: grid; gap: 28px; align-content: start; justify-items: start; }
.contact__intro > p { font-size: 19px; line-height: 1.55; max-width: 26em; }
.next__title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick-soft);
  margin-bottom: -16px;
}
.next { width: 100%; border-top: 1px solid rgba(250, 248, 245, .35); counter-reset: next; }
.next li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid rgba(250, 248, 245, .35);
  font-size: 16px;
  line-height: 1.45;
  counter-increment: next;
}
.next li::before { content: counter(next); font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--brick-soft); }
@media (min-width: 900px) {
  .contact__grid { align-items: start; }
  .contact__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); }
  .quote-form { grid-column: 7 / -1; }
  .contact__title { font-size: clamp(44px, 3.6vw + 12px, 72px); }
}

/* Tarjeta del formulario (clara, sobre la banda grafito) */
.quote-form {
  position: relative;
  background: var(--ground);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 24px 20px 28px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .6);
}
@media (min-width: 600px) { .quote-form { padding: 36px 36px 40px; } }
.quote-form :focus-visible { outline-color: var(--ink); }
.quote-form .link { background-image: linear-gradient(var(--brick), var(--brick)), linear-gradient(currentColor, currentColor); }

/* Sin JavaScript se ven los dos pasos juntos y se envía directo: sin botones de paso ni barra */
.quote-form:not(.is-enhanced) .form__progress,
.quote-form:not(.is-enhanced) [data-next],
.quote-form:not(.is-enhanced) [data-prev] { display: none; }
.quote-form:not(.is-enhanced) .form__step + .form__step { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--hairline); }

/* Progreso */
.form__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.form__bar { flex: 1; height: 3px; background: var(--hairline); border-radius: 3px; overflow: hidden; }
.form__bar span { display: block; height: 100%; width: 50%; background: var(--brick); transition: width .45s var(--ease); }

/* Borrador recuperado */
.form__draft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 20px;
  padding: 6px 6px 6px 14px;
  background: var(--brick-soft);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.4;
}

/* Pasos */
.form__step { display: grid; gap: 22px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form__step legend {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 1vw + 20px, 32px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.form__hint { font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: -14px; }

/* Opciones en forma de chip, con tilde al elegir */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease, color .2s ease, padding .2s ease;
}
.chip span::before {
  content: "";
  width: 0;
  height: 10px;
  margin-right: -8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0;
  transition: width .2s ease, margin .2s ease, opacity .2s ease;
}
.chip span:hover { background: var(--brick-soft); }
.chip input:checked + span { background: var(--ink); color: var(--ground); }
.chip input:checked + span::before { width: 5px; margin-right: 0; opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: 2px; }
.chips[aria-invalid="true"] .chip span { border-color: var(--brick); }
/* Selector de una opción (WhatsApp / Mail / Llamada): botones pegados */
.chips--seg { gap: 0; }
.chips--seg .chip span { border-radius: 0; margin-left: -1px; }
.chips--seg .chip:first-child span { border-radius: 999px 0 0 999px; margin-left: 0; }
.chips--seg .chip:last-child span { border-radius: 0 999px 999px 0; }
.chips--seg .chip span::before { display: none; }

/* Campos */
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field__label { font-size: 14px; line-height: 1.4; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--muted);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--brick); box-shadow: inset 3px 0 0 var(--brick); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--brick-dark);
}
.field__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--brick-dark); color: var(--on-brick); font-size: 11px; line-height: 1; }
.field__error:empty { display: none; }
#err-necesidad { margin-top: -10px; }

/* Navegación entre pasos */
.form__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.form__nav--end { justify-content: flex-end; }
.form__text-btn {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form__text-btn:hover { text-decoration-thickness: 2px; }
.form__legal { font-size: 12px; line-height: 1.5; color: var(--muted); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Error de envío */
.form__error {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--brick);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.5;
}
.form__error .link { min-height: 0; }

/* Enviando: el botón muestra un indicador y queda deshabilitado */
.form__submit { gap: 10px; min-width: 172px; }
.form__submit:disabled { cursor: progress; opacity: .85; }
.form__submit.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: var(--on-brick);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmación */
.form__done { display: grid; gap: 14px; justify-items: start; padding-block: 8px; }
.form__done:focus { outline: none; }
.form__done h3 { font-family: var(--serif); font-size: clamp(28px, 1.4vw + 20px, 38px); line-height: 1.1; letter-spacing: -0.015em; }
.form__done p { max-width: 28em; }
.form__done .check { width: 56px; height: 56px; }
@media (max-width: 599px) { .form__nav .btn { flex: 1; width: auto; } }

@media (prefers-reduced-motion: no-preference) {
  .form__step:not([hidden]), .form__done:not([hidden]) { animation: rise .45s var(--ease) both; }
}

/* Página de respuesta del formulario cuando se envía sin JavaScript */
.form-reply { display: grid; gap: 24px; justify-items: start; max-width: 640px; padding-bottom: var(--section); }

/* Botón fijo en celular: aparece al pasar la portada y se oculta en el formulario */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  transform: translateY(160%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 14px 30px -12px rgba(38, 38, 38, .55); }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { .footer { padding-bottom: 100px; } }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes piece-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  .hero__text > * { animation: rise .8s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .2s; }
  .hero__text > :nth-child(4) { animation-delay: .28s; }
  .hero__text > :nth-child(5) { animation-delay: .34s; }
  .ill--hero .piece { animation: piece-in .9s var(--ease) both; transform-box: fill-box; }
  .ill--hero > g:nth-child(1) .piece { animation-delay: .2s; }
  .ill--hero > g:nth-child(2) .piece { animation-delay: .32s; }
  .ill--hero > g:nth-child(3) .piece { animation-delay: .44s; }
  .ill--hero > g:nth-child(4) .piece { animation-delay: .58s; }
  .ill--hero > g:nth-child(5) .piece { animation-delay: .7s; }

  /* Aparición al hacer scroll: main.js marca solo lo que está fuera de pantalla */
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .header, .menu-toggle, .skip { display: none; }
  body { background: #fff; }
}

