/* Kimoyo Systems · layout y componentes. Los colores salen de tokens.css. */

:root {
  color-scheme: light;
  /* Tonos intermedios del diseño que no están en tokens.css */
  --navy-800: #152B61;
  --navy-650: #1E3870;
  --navy-600: #2A4580;
  --cobalt-400: #5A80E6;
  --slate-500: #5B6B8F;
  --line-100: #E3ECFA;
  --ice-50: #F4F8FF;
  --ice-25: #F6F9FF;
  --amber-700: #B45F00;
  --header-h: 73px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--cobalt-600); }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--navy-900); } }

:focus-visible { outline: 2px solid var(--cobalt-600); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section-navy :focus-visible, .contact-side :focus-visible { outline-color: var(--amber-400); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 { font-family: var(--font-display); font-weight: 700; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--navy-900); color: var(--white);
  padding: 12px 16px; border-radius: var(--radius-md); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--white); }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-alt { background: var(--ice-50); border-block: 1px solid var(--line-100); }
.section-navy { background: var(--navy-900); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 56px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--cobalt-600);
}
.section-navy .eyebrow { color: var(--sky-400); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.section-head-main { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.section-head-side { flex: 0 1 420px; min-width: 0; color: var(--slate-600); }
.section-head-solo { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font: 600 16px var(--font-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
a, button, summary, input, select, textarea { touch-action: manipulation; }
.btn-sm { min-height: 44px; padding: 11px 20px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 15px 26px; gap: 10px; }
.btn-block { width: 100%; }
.btn-navy { background: var(--navy-900); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn-navy:hover { background: var(--navy-800); color: var(--white); } }
.btn-amber { background: var(--amber-400); color: var(--navy-900); }
@media (hover: hover) and (pointer: fine) { .btn-amber:hover { background: #FFBE47; color: var(--navy-900); } }
.btn-ghost-dark { background: var(--navy-900); color: var(--white); border-color: var(--navy-600); }
@media (hover: hover) and (pointer: fine) { .btn-ghost-dark:hover { color: var(--white); border-color: var(--sky-400); } }
.btn-outline { align-self: flex-start; margin-top: 6px; color: var(--navy-900); border-color: var(--line-200); background: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { border-color: var(--cobalt-600); color: var(--navy-900); } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-word { display: flex; align-items: baseline; font-family: var(--font-display); font-size: 20px; line-height: 1; letter-spacing: -0.02em; }
.bw-a { font-weight: 700; color: var(--navy-900); }
.bw-s { font-weight: 600; color: var(--amber-400); padding: 0 2px; }
.bw-b { font-weight: 500; color: var(--cobalt-600); }
.mark-bar { fill: var(--navy-900); }
.mark-arms { stroke: var(--cobalt-600); }
.mark-slash { stroke: var(--amber-400); }

.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; color: var(--navy-900); text-decoration: none; padding-block: 10px; }
.nav-links a.is-active { color: var(--cobalt-600); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--cobalt-600); } }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--amber-400); transform: scaleX(0); transform-origin: left;
}
.nav-links a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover::after { transform: scaleX(1); } }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-200); border-radius: var(--radius-md);
  color: var(--navy-900); cursor: pointer;
}
.burger { position: relative; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; grid-template-rows: 0fr; }
.mobile-menu.is-open, html:not(.js) .mobile-menu { grid-template-rows: 1fr; }
.mobile-menu-inner { overflow: hidden; min-height: 0; }
.mobile-menu-links { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 24px; border-top: 1px solid var(--line-100); font-size: 18px; font-weight: 500; }
.mobile-menu-links a:not(.btn) { color: var(--navy-900); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--ice-100); }
.mobile-menu-links .btn { margin-top: 16px; }

@media (max-width: 860px) {
  :root { --header-h: 77px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: grid; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900); color: var(--white);
  border-bottom: 1px solid var(--navy-800);
  /* El hero ocupa justo la pantalla visible debajo del header */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
}
.hero-grid {
  position: absolute; inset: -64px; z-index: -2;
  background-image: linear-gradient(var(--navy-800) 1px, transparent 1px), linear-gradient(90deg, var(--navy-800) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
}
.hero-glow {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 79, 216, 0.42), rgba(31, 79, 216, 0));
  transform: translate3d(50vw, 30%, 0);
  pointer-events: none;
}
.hero-inner {
  width: 100%; max-width: 1000px; margin-inline: auto;
  padding: clamp(20px, 5vh, 96px) clamp(20px, 5vw, 48px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 3.4vh, 32px);
}
/* Hero con nube: la primera pantalla es del texto; debajo, el escenario con la promesa y el símbolo K/.
   overflow: clip (y no hidden) recorta igual pero deja funcionar el position: sticky del escenario. */
.hero--nube { display: block; min-height: 0; border-bottom: 0; overflow: clip; }
.hero--nube .hero-inner {
  position: relative; z-index: 1;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  justify-content: center;
  padding-top: clamp(32px, 9vh, 104px);
  padding-bottom: clamp(104px, 16vh, 170px); /* franja libre por donde asoma la nube */
  gap: clamp(12px, 2.6vh, 28px);
}
.hero--nube .hero-title { font-size: clamp(32px, min(6.2vw, 9.2vh), 78px); }
.hero--nube .hero-lead { font-size: clamp(16px, min(1.9vw, 2.6vh), 20px); }
.hero--nube .hero-trust li { text-shadow: 0 1px 10px rgba(11, 31, 75, 0.9); }

.hero-gl { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Resplandores de fondo */
.hero-aura { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero-aura::before, .hero-aura::after { content: ""; position: absolute; border-radius: 50%; }
.hero-aura::before {
  left: 50%; top: 30%; width: min(1100px, 120vw); height: min(1100px, 120vw); margin: 0 0 0 calc(min(1100px, 120vw) / -2);
  background: radial-gradient(closest-side, rgba(31, 79, 216, 0.5), rgba(31, 79, 216, 0.14) 55%, rgba(31, 79, 216, 0));
}
.hero-aura::after {
  right: -10%; bottom: 4%; width: min(820px, 95vw); height: min(820px, 95vw);
  background: radial-gradient(closest-side, rgba(31, 79, 216, 0.38), rgba(31, 79, 216, 0));
}

/* Escenario: queda fijo un tramo mientras se baja, con la promesa a un lado y el símbolo al otro */
.hero-stage { position: relative; z-index: 1; height: calc((100svh - var(--header-h)) + 26svh); }
.stage-pin {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px);
}
.stage-text { display: flex; flex-direction: column; gap: clamp(16px, 2.4vh, 28px); }
.stage-phrase {
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: clamp(38px, min(6.4vw, 11vh), 100px); line-height: 1; letter-spacing: -0.045em;
}
.stage-phrase span[data-words] { display: block; }
.stage-phrase .first { color: var(--sky-400); margin-bottom: 0.14em; }
.stage-mark { align-self: stretch; display: flex; align-items: center; justify-content: center; }
.stage-mark svg { width: min(80%, 420px); height: auto; }
/* El SVG del símbolo es el respaldo: con la nube activa lo dibujan las partículas */
.con-nube .stage-mark svg { visibility: hidden; }
@media (max-width: 860px) {
  .stage-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; padding-top: clamp(28px, 6vh, 64px); gap: 8px; }
  .stage-phrase { font-size: clamp(36px, min(11.5vw, 7.4vh), 72px); }
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--navy-600); background: var(--navy-900); border-radius: 999px; padding: 8px 16px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--sky-400);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-400); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, min(7.2vw, 11.5vh), 92px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.hl { color: var(--sky-400); }
.hero-lead { max-width: 660px; font-size: clamp(16px, min(2vw, 3.2vh), 21px); color: var(--line-200); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 4px; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: clamp(0px, 1.2vh, 12px); font-size: 15px; color: var(--ice-100); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--sky-400); flex-shrink: 0; }

@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; align-self: stretch; }
  .hero-trust { display: grid; justify-content: center; justify-items: start; }
}

/* Servicios */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px;
  background: var(--line-100); border: 1px solid var(--line-100); border-radius: 12px; overflow: hidden;
}
.svc {
  position: relative; background: var(--white);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 12px;
}
.svc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--x, 50%) var(--y, 50%), rgba(111, 177, 255, 0.24), transparent 70%);
}
.svc > * { position: relative; }
@media (hover: hover) and (pointer: fine) { .svc:hover { background: var(--ice-25); } }
@media (hover: hover) and (pointer: fine) { .svc:hover::before { opacity: 1; } }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--ice-100); color: var(--cobalt-600);
  display: flex; align-items: center; justify-content: center;
}
@media (hover: hover) and (pointer: fine) { .svc:hover .svc-icon { background: var(--cobalt-600); color: var(--white); } }
.route { font-family: var(--font-mono); font-size: 13px; color: var(--slate-500); }
.svc h3 { margin-top: 8px; font-size: 22px; letter-spacing: -0.01em; }
.svc p { color: var(--slate-600); }

/* Trabajos */
.case { background: var(--white); border: 1px solid var(--line-100); border-radius: 16px; overflow: hidden; display: flex; flex-wrap: wrap; }
.case-visual {
  flex: 1 1 380px; min-width: 0; background: var(--ice-100);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px, 5vw, 56px) 24px; perspective: 1200px;
}
.phone {
  position: relative; width: 260px; height: 532px; flex-shrink: 0;
  border: 10px solid var(--navy-900); border-radius: 40px; background: var(--navy-900);
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(11, 31, 75, 0.55);
}
.phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; }
.phone-screen picture, .browser-screen picture { display: contents; }
.phone-screen img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; user-select: none; -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) {
  .phone-screen, .browser-screen { cursor: grab; }
  .phone-screen.is-dragging, .browser-screen.is-dragging { cursor: grabbing; }
}
.phone-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.case-body { flex: 1 1 460px; min-width: 0; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--cobalt-600); background: var(--ice-100); border-radius: var(--radius-sm); padding: 6px 10px; }
.case-body h3 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.case-lead { font-size: 18px; color: var(--slate-600); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; font-size: 16px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { flex-shrink: 0; color: var(--cobalt-600); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -24px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr; } }
.work { background: var(--white); border: 1px solid var(--line-100); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.work-shot { background: var(--ice-100); padding: 28px 28px 0; overflow: hidden; }
.browser { border-radius: 10px 10px 0 0; overflow: hidden; background: var(--navy-900); box-shadow: 0 24px 40px -28px rgba(11, 31, 75, 0.6); }
.browser-bar { height: 26px; padding: 0 12px; display: flex; align-items: center; gap: 6px; background: var(--navy-900); }
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-600); }
.browser-screen { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.browser-screen img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.work-body { flex: 1; padding: clamp(22px, 2.4vw, 28px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.work-body h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.work-body p { color: var(--slate-600); }
.work-link { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--navy-900); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .work-link:hover { color: var(--cobalt-600); } }
@media (min-width: 600px) and (max-width: 960px) {
  .work { flex-direction: row; }
  .work-shot { flex: 0 0 46%; padding: 24px 0 0 24px; display: flex; align-items: flex-end; }
  .browser { border-radius: 10px 0 0 0; }
}

/* Cómo trabajamos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-rail { display: flex; align-items: center; gap: 14px; }
.step-num {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step-last .step-num { background: var(--cobalt-600); }
.step-line { flex-grow: 1; height: 1px; background: var(--line-200); transform-origin: left; }
.step h3 { margin-top: 4px; font-size: 21px; }
.step p { color: var(--slate-600); }

/* Por qué Kimoyo / Preguntas: dos columnas */
.split { display: flex; flex-wrap: wrap; gap: 56px 80px; }
.split-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-side-narrow { flex-basis: 320px; }
.split-side p { color: var(--slate-600); }
.section-navy .split-side p { color: var(--line-200); }

.why-grid {
  flex: 2 1 560px; min-width: 0; align-self: flex-start;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--navy-650); border: 1px solid var(--navy-650); border-radius: 12px; overflow: hidden;
}
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why { background: var(--navy-900); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
@media (hover: hover) and (pointer: fine) { .why:hover { background: #0E2556; } }
.why-num { font-family: var(--font-mono); font-size: 13px; color: var(--sky-400); font-variant-numeric: tabular-nums; }
.why h3 { font-size: 21px; }
.why p { color: var(--line-200); }

.faq { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line-100); }
.faq-item { border-top: 1px solid var(--line-100); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 24px 0;
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--cobalt-600); } }
.faq-icon {
  position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line-200); color: var(--cobalt-600);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: currentColor;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open]:not(.is-closing) .faq-icon { transform: rotate(45deg); background: var(--ice-100); }
.faq-body { overflow: hidden; }
.faq-body p { padding-bottom: 24px; color: var(--slate-600); max-width: 640px; }

/* Contacto */
.contact-section { padding-inline: clamp(12px, 3vw, 32px); }
.contact {
  max-width: 1240px; margin-inline: auto;
  background: var(--cobalt-600); color: var(--white); border-radius: 20px;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px);
  display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start;
}
.contact-side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-side .eyebrow { color: var(--ice-100); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 8px; }
.contact-links a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.contact-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-md); border: 1px solid var(--cobalt-400); display: flex; align-items: center; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .contact-links a:hover .contact-ico { background: var(--white); color: var(--cobalt-600); border-color: var(--white); } }

.form {
  flex: 1 1 440px; min-width: 0;
  background: var(--white); color: var(--navy-900); border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 16px var(--font-sans); color: var(--navy-900); background: var(--white);
  border: 1px solid var(--line-200); border-radius: var(--radius-md);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-500); }
@media (hover: hover) and (pointer: fine) { .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sky-400); } }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cobalt-600); outline-offset: 1px; border-color: var(--cobalt-600); }
.field [aria-invalid="true"] { border-color: var(--danger-700); }
.field-error { font-size: 14px; font-weight: 500; color: var(--danger-700); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--white); }
.form.is-sending .spinner { display: block; }
.form.is-sending .arrow { display: none; }
.form.is-sending .btn { cursor: progress; opacity: 0.85; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status:empty { display: none; }
.form-note { font-size: 13px; color: var(--slate-500); text-align: center; }
.form-status.is-ok { color: var(--success-700); }
.form-status.is-error { color: var(--danger-700); }

/* Footer */
.footer { background: var(--white); color: var(--navy-900); }
.footer-grid { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 32px 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-tagline { font-size: 15px; color: var(--slate-600); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; font-size: 15px; }
.foot-title { margin-bottom: 6px; }
.foot-title { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--slate-500); }
.foot-col a { color: var(--slate-600); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--cobalt-600); } }
.footer-bottom {
  position: relative; padding-top: 24px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; color: var(--slate-500);
}
.footer-bottom::before { content: ""; position: absolute; top: 0; left: clamp(20px, 5vw, 48px); right: clamp(20px, 5vw, 48px); height: 1px; background: var(--line-100); }
.foot-slash { color: var(--amber-700); }
@media (max-width: 860px) { .foot-brand { grid-column: 1 / -1; } }

/* Celulares bajos: el hero se compacta para entrar entero en la pantalla */
@media (max-width: 560px) and (max-height: 720px) {
  .hero-lead { font-size: 15px; line-height: 1.5; }
  .hero-ctas .btn-lg { min-height: 48px; padding-block: 12px; }
  .hero-trust { display: flex; gap: 4px 16px; font-size: 13px; }
  .hero-trust svg { width: 15px; height: 15px; }
}
