/* ==========================================================================
   i-POS · Sitio web
   Layout: banda azul marino de la marca con un ticket de venta como objeto
   central; debajo, secciones claras con rótulos tipo etiqueta de ticket,
   sobre una retícula de hasta 1200 px.
   ========================================================================== */

:root {
  /* Marca (del ícono de la app: azul i-POS sobre azul marino) */
  --navy: #0B2A66;
  --navy-2: #12367F;
  --navy-deep: #071A40;
  --on-navy: #FFFFFF;
  --on-navy-2: #C3D2EF;
  --on-navy-line: rgba(195, 210, 239, 0.24);
  --amber: #FFB703;
  --amber-hover: #FFC93D;
  --on-amber: #071A40;
  --blue: #1E6FD9;
  --link: #1559B7;
  --btn: #1559B7;
  --btn-hover: #0F4A9C;
  --on-btn: #FFFFFF;
  --focus: #1E6FD9;

  /* Neutros con un leve sesgo azul */
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --surface-2: #E9EFF8;
  --line: #D7DFEB;
  --line-strong: #B4C1D6;
  --text: #0E1A2E;
  --text-2: #42516A;
  --text-3: #5F6E86;

  /* Estados */
  --good: #13734A;
  --good-soft: #E1F3E9;
  --warn: #7A5200;
  --warn-soft: #FFF2CC;

  /* Papel térmico: objeto físico, igual en ambos temas */
  --paper: #FFFDF5;
  --paper-ink: #1B1F29;
  --paper-ink-2: #5A5F6B;
  --paper-rule: #BDB8AA;
  --stamp: #1B5FC8;

  /* Pantallas de las apps: objeto físico, igual en ambos temas */
  --device: #0A0F1A;
  --app-bg: #F2F5FA;
  --app-surface: #FFFFFF;
  --app-text: #101828;
  --app-text-2: #556175;
  --app-line: #E3E8F0;
  --app-blue: #1565C0;
  --app-blue-soft: #E3EEFB;
  --app-on-color: #FFFFFF;
  --app-good: #1B7F4B;
  --app-warn-bg: #FFF3CD;
  --app-warn-text: #6B4A00;
  --tenant: #0E6E66;
  --tenant-2: #0A5751;
  --tenant-soft: #DDF2EE;
  --tenant-gold: #F2B636;
  --chat-bg: #EEF1F5;
  --chat-in: #FFFFFF;
  --chat-out: #DDF6E4;

  /* Gráfica (validada para claro y oscuro) */
  --chart-bar: #1E6FD9;

  /* Tipografía */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Red Hat Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "Red Hat Mono", ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --fs-hero: clamp(2.25rem, 1.4rem + 3.3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.78rem;

  /* Medidas */
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 5vw + 40px, 120px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(14, 26, 46, 0.06), 0 10px 30px rgba(14, 26, 46, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0A2253;
    --navy-2: #103070;
    --navy-deep: #050F26;
    --on-navy-2: #B9CBEC;
    --on-navy-line: rgba(185, 203, 236, 0.2);
    --amber: #FFC233;
    --amber-hover: #FFD166;
    --blue: #4690F5;
    --link: #82BBFF;
    --btn: #5AA6FF;
    --btn-hover: #82BBFF;
    --on-btn: #061634;
    --focus: #82BBFF;
    --bg: #0A111E;
    --surface: #111B2E;
    --surface-2: #17243A;
    --line: #22324D;
    --line-strong: #33486C;
    --text: #E8EEF8;
    --text-2: #AAB8CD;
    --text-3: #8C9BB3;
    --good: #5FD39A;
    --good-soft: #0F2E21;
    --warn: #F2C35B;
    --warn-soft: #2F2408;
    --paper: #F5F2E8;
    --device: #000000;
    --chart-bar: #4690F5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --navy: #0A2253;
  --navy-2: #103070;
  --navy-deep: #050F26;
  --on-navy-2: #B9CBEC;
  --on-navy-line: rgba(185, 203, 236, 0.2);
  --amber: #FFC233;
  --amber-hover: #FFD166;
  --blue: #4690F5;
  --link: #82BBFF;
  --btn: #5AA6FF;
  --btn-hover: #82BBFF;
  --on-btn: #061634;
  --focus: #82BBFF;
  --bg: #0A111E;
  --surface: #111B2E;
  --surface-2: #17243A;
  --line: #22324D;
  --line-strong: #33486C;
  --text: #E8EEF8;
  --text-2: #AAB8CD;
  --text-3: #8C9BB3;
  --good: #5FD39A;
  --good-soft: #0F2E21;
  --warn: #F2C35B;
  --warn-soft: #2F2408;
  --paper: #F5F2E8;
  --device: #000000;
  --chart-bar: #4690F5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-lg {
  width: 30px;
  height: 30px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-amber {
  background: var(--amber);
  color: var(--on-amber);
}

.btn-amber:hover {
  background: var(--amber-hover);
}

.btn-blue {
  background: var(--btn);
  color: var(--on-btn);
}

.btn-blue:hover {
  background: var(--btn-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--on-navy-line);
}

.btn-ghost:hover {
  border-color: var(--on-navy-2);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Zonas azul marino ---------- */

.on-navy {
  --focus: var(--amber);
  background: var(--navy);
  color: var(--on-navy);
}

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid var(--on-navy-line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--on-navy);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav a:not(.btn) {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--on-navy-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-navy);
}

.menu-btn {
  display: none;
}

@media (max-width: 1080px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--on-navy-line);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--on-navy);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--navy);
    border-bottom: 1px solid var(--on-navy-line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  }

  .nav.is-open {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav a:not(.btn) {
    padding: 13px 4px;
    border-bottom: 1px solid var(--on-navy-line);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .nav .btn {
    margin-top: 16px;
  }
}

/* ---------- Secciones ---------- */

.section {
  padding-block: var(--section-y);
}

.section.alt {
  background: var(--surface);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.label {
  justify-self: start;
  padding: 3px 9px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.on-navy .label {
  background: var(--amber);
  color: var(--on-amber);
}

.section h2 {
  font-size: var(--fs-h2);
  font-weight: 750;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 62ch;
  color: var(--text-2);
  font-size: var(--fs-lead);
}

.on-navy .lead {
  color: var(--on-navy-2);
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
  background:
    radial-gradient(640px 460px at 78% 42%, var(--navy-2), transparent 70%),
    var(--navy);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.eyebrow {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 18px;
  font-size: var(--fs-hero);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin-top: 22px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  list-style: none;
}

.hero-facts li {
  padding: 5px 12px;
  border: 1px solid var(--on-navy-line);
  border-radius: 999px;
  color: var(--on-navy-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Ticket ---------- */

.ticket-stage {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
}

.ticket-tilt {
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.35)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transform: rotate(-1.5deg);
}

.ticket {
  --zz: 14px;
  padding: 26px 22px calc(20px + var(--zz));
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-transform: uppercase;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
  animation: ticket-print 1.5s steps(26, end) 0.2s both;
}

@keyframes ticket-print {
  from {
    clip-path: inset(0 0 100% 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.t-brand {
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.t-center {
  text-align: center;
}

.t-muted {
  color: var(--paper-ink-2);
}

.t-rule {
  margin: 10px 0;
  border: 0;
  border-top: 1px dashed var(--paper-rule);
}

.t-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.t-row > span:first-child {
  min-width: 0;
}

.t-row > span:last-child {
  flex: none;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.t-head {
  color: var(--paper-ink-2);
  font-size: 0.92em;
}

.t-qty {
  font-weight: 600;
}

.t-total {
  margin-block: 4px;
  font-size: 1.22em;
  font-weight: 700;
}

.t-link {
  display: grid;
  grid-template-columns: 5.6em minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}

.t-tag {
  padding: 0 5px;
  background: var(--paper-ink);
  color: var(--paper);
  font-weight: 600;
  text-align: center;
}

.ticket mark {
  padding: 0 3px;
  background: var(--amber);
  color: var(--paper-ink);
  font-weight: 700;
}

.t-barcode {
  display: block;
  width: 100%;
  height: 46px;
  margin: 16px 0 4px;
  fill: var(--paper-ink);
}

.t-totals {
  position: relative;
}

.t-nw {
  white-space: nowrap;
}

.stamp {
  position: absolute;
  left: 58%;
  top: 50%;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 88px;
  height: 88px;
  border: 3px solid var(--stamp);
  border-radius: 50%;
  outline: 1.5px solid var(--stamp);
  outline-offset: -9px;
  color: var(--stamp);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transform: translate(-50%, -50%) rotate(-14deg);
  animation: stamp-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.85s both;
  pointer-events: none;
}

.stamp .ico {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  stroke-width: 2.6;
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-14deg) scale(1.6);
  }

  to {
    opacity: 0.85;
    transform: translate(-50%, -50%) rotate(-14deg) scale(1);
  }
}

.ticket-caption {
  max-width: 36ch;
  margin: 26px auto 0;
  color: var(--on-navy-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Cómo funciona ---------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
}

.flow::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  right: 18px;
  border-top: 2px dashed var(--line-strong);
}

.flow-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
}

.flow-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--on-btn);
  font-family: var(--font-mono);
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--bg);
}

.flow-step h3 {
  margin-top: 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}

.flow-step p {
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }

  .flow::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .flow-step {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    padding-bottom: 28px;
  }

  .flow-step::before {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 4px;
    left: 17px;
    border-left: 2px dashed var(--line-strong);
  }

  .flow-step:last-child::before {
    display: none;
  }

  .flow-num {
    grid-row: 1 / span 2;
  }

  .flow-step h3 {
    margin-top: 6px;
  }
}

/* ---------- Plataforma ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
}

.tag {
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product h3 {
  font-size: 1.375rem;
  font-weight: 750;
  font-stretch: 105%;
  line-height: 1.2;
}

.product p {
  flex: 1;
  color: var(--text-2);
  font-size: var(--fs-small);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.more::after {
  content: "→";
  transition: transform 0.15s ease;
}

.more:hover::after {
  transform: translateX(3px);
}

@media (max-width: 960px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .products {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Módulos del ERP ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 44px;
}

.module {
  padding-block: 28px 32px;
  border-top: 1px solid var(--line-strong);
}

.module h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
}

.module h3 .ico {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.checks {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 3px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.checks strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 960px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .modules {
    grid-template-columns: minmax(0, 1fr);
  }
}

.integrations {
  display: grid;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.integrations h3 {
  font-size: 1rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Bloques con maqueta ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "head visual"
    "body visual";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 8px;
}

.feature.reverse {
  grid-template-areas:
    "visual head"
    "visual body";
}

.feature-head {
  grid-area: head;
}

.feature-head.section-head {
  margin-bottom: 24px;
}

.feature-visual {
  grid-area: visual;
  align-self: center;
  min-width: 0;
}

.feature-body {
  grid-area: body;
  min-width: 0;
}

@media (max-width: 960px) {
  .feature,
  .feature.reverse {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "visual"
      "body";
    grid-template-rows: auto;
    row-gap: 36px;
  }

  .feature-head.section-head {
    margin-bottom: 0;
  }
}

.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}


.role h3 {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role .checks {
  margin-top: 10px;
}

@media (max-width: 520px) {
  .roles {
    grid-template-columns: minmax(0, 1fr);
  }
}

figure {
  margin: 0;
}

.figcaption {
  margin-top: 16px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Teléfono ---------- */

.phone {
  width: min(100%, 318px);
  margin-inline: auto;
  padding: 11px;
  border-radius: 44px;
  background: var(--device);
  box-shadow: var(--shadow), 0 34px 60px rgba(14, 26, 46, 0.2);
}

.screen {
  display: flex;
  flex-direction: column;
  min-height: 600px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  padding: 11px 24px 7px;
  font-size: 11.5px;
  font-weight: 700;
}

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 14px;
  background: var(--app-blue);
  color: var(--app-on-color);
}

.statusbar.on-app-blue {
  background: var(--app-blue);
  color: var(--app-on-color);
}

.statusbar.on-tenant {
  background: var(--tenant);
  color: var(--app-on-color);
}

.appbar-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.appbar-sub {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.app-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.app-banner {
  margin: 12px 12px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--app-warn-bg);
  color: var(--app-warn-text);
  font-size: 12px;
  font-weight: 600;
}

.app-progress {
  display: grid;
  gap: 6px;
  margin: 12px 12px 4px;
  font-size: 12px;
  color: var(--app-text-2);
}

.app-progress b {
  color: var(--app-text);
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--app-blue-soft);
  overflow: hidden;
}

.meter span {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: 999px;
  background: var(--app-blue);
}

.stops {
  display: grid;
  gap: 8px;
  margin: 8px 12px 12px;
  list-style: none;
}

.stop {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-surface);
}

.stop b {
  display: block;
  font-size: 13px;
}

.stop small {
  display: block;
  color: var(--app-text-2);
  font-size: 11.5px;
}

.stop-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--app-blue-soft);
  color: var(--app-blue);
  font-size: 12px;
  font-weight: 700;
}

.stop.done .stop-n {
  background: var(--app-good);
  color: var(--app-on-color);
}

.stop.next {
  border-color: var(--app-blue);
  box-shadow: 0 0 0 1px var(--app-blue);
}

.stop-ok {
  color: var(--app-good);
  font-size: 11px;
  font-weight: 700;
}

.app-btn {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--app-blue);
  color: var(--app-on-color);
  font-size: 11.5px;
  font-weight: 700;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  padding: 10px 6px 14px;
  border-top: 1px solid var(--app-line);
  background: var(--app-surface);
  color: var(--app-text-2);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.tabbar .on {
  color: var(--app-blue);
}

.tenant .tabbar .on {
  color: var(--tenant);
}

/* App de lealtad con la marca del cliente */

.loy-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 64px;
  background: var(--tenant);
  color: var(--app-on-color);
}

.loy-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tenant-gold);
  color: var(--tenant-2);
  font-size: 12px;
  font-weight: 800;
}

.loy-head b {
  display: block;
  font-size: 15px;
}

.loy-head small {
  display: block;
  font-size: 11.5px;
  opacity: 0.85;
}

.loy-card {
  display: grid;
  gap: 4px;
  margin: -50px 12px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--app-surface);
  box-shadow: 0 8px 20px rgba(10, 87, 81, 0.18);
}

.loy-card small {
  color: var(--app-text-2);
  font-size: 11.5px;
}

.loy-points {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.loy-level {
  justify-self: start;
  margin-top: 2px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tenant-soft);
  color: var(--tenant-2);
  font-size: 11px;
  font-weight: 700;
}

.loy-last {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--app-line);
  color: var(--app-text-2);
  font-size: 11.5px;
}

.loy-last b {
  color: var(--app-good);
}

.loy-title {
  margin: 14px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-text-2);
}

.loy-plans {
  display: grid;
  gap: 8px;
  margin: 0 12px 12px;
  list-style: none;
}

.loy-plan {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-surface);
}

.loy-plan b {
  font-size: 13px;
}

.loy-plan small {
  color: var(--app-text-2);
  font-size: 11.5px;
}

.loy-meter {
  height: 6px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--tenant-soft);
  overflow: hidden;
}

.loy-meter span {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: 999px;
  background: var(--tenant);
}

.phone-stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}

.phone-stack .phone {
  flex: none;
  margin: 0;
}

.qr-card {
  flex: none;
  margin-bottom: 72px;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 150px;
  padding: 12px 12px 10px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: 0 18px 36px rgba(14, 26, 46, 0.22);
  font-size: 11.5px;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-3deg);
}

.qr-card b {
  font-size: 12px;
}

.qr-card small {
  color: var(--app-text-2);
}

.qr {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--app-text);
  background: var(--app-surface);
}

@media (max-width: 560px) {
  .phone-stack {
    flex-direction: column;
    align-items: center;
  }

  .qr-card {
    width: min(100%, 220px);
    margin: 0;
    transform: none;
  }
}

/* ---------- Centro de operaciones (i-POS 2.0) ---------- */

.ops {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.ops-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.ops-list h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}

.ops-list p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: var(--fs-small);
}

.pipeline {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pipeline-title {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.stages li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.stages li:not(:last-child)::after {
  content: "→";
  color: var(--text-3);
  font-weight: 400;
}

.stage {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
}

.stage.ok {
  background: var(--good-soft);
  color: var(--good);
}

.stage.no {
  background: var(--warn-soft);
  color: var(--warn);
}

.gafete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 16px;
  max-width: 380px;
  margin-inline: auto;
  padding: 20px;
  border-top: 10px solid var(--btn);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: var(--shadow);
}

.gafete .qr {
  fill: var(--paper-ink);
  background: var(--paper);
}

.gafete-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-ink-2);
}

.gafete-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.15;
}

.gafete-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper-ink-2);
}

@media (max-width: 960px) {
  .ops {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .ops-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gafete {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
}

/* ---------- Mensajería ---------- */

.chat {
  overflow: hidden;
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: var(--shadow), 0 30px 60px rgba(14, 26, 46, 0.14);
  font-size: 13.5px;
  line-height: 1.45;
}

.chat-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--app-line);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--app-blue-soft);
  color: var(--app-blue);
  font-weight: 800;
}

.chat-head b {
  display: block;
  font-size: 14.5px;
}

.chat-head small {
  display: block;
  color: var(--app-text-2);
  font-size: 12px;
}

.chat-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.chat-chips li {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--app-bg);
  color: var(--app-text-2);
  font-size: 11.5px;
  font-weight: 600;
}

.chat-chips .wa {
  background: var(--chat-out);
  color: var(--app-good);
}

.chat-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--chat-bg);
}

.msg {
  max-width: 84%;
  padding: 9px 12px 7px;
  border-radius: 14px;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.08);
}

.msg.in {
  justify-self: start;
  border-top-left-radius: 4px;
  background: var(--chat-in);
}

.msg.out {
  justify-self: end;
  border-top-right-radius: 4px;
  background: var(--chat-out);
}

.msg-ai {
  display: block;
  margin-bottom: 2px;
  color: var(--app-good);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.msg-time {
  display: block;
  margin-top: 2px;
  color: var(--app-text-2);
  font-size: 10.5px;
  text-align: right;
}

.chat-note {
  justify-self: center;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--app-warn-bg);
  color: var(--app-warn-text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.chat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--app-line);
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  color: var(--app-text-2);
  font-size: 12.5px;
}

.chat-btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--app-blue);
  color: var(--app-on-color);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Capturas del sistema ---------- */

.shots {
  display: grid;
  gap: clamp(44px, 5vw, 72px);
  list-style: none;
}

.shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
}

.shot-text {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 6px;
}

.shot-text h3 {
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.shot-text p {
  color: var(--text-2);
  font-size: var(--fs-small);
}

.shot-img {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shot-img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 24px 48px rgba(14, 26, 46, 0.16);
}

.shot-img img {
  width: 100%;
}

.shots-extra {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 860px) {
  .shot {
    grid-template-columns: minmax(0, 1fr);
  }

  .shots-extra {
    grid-template-columns: minmax(0, 1fr);
  }
}

.shot-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
  max-width: 760px;
}

.shot-phone {
  display: block;
  overflow: hidden;
  border: 6px solid var(--device);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.shot-phone:hover {
  transform: translateY(-2px);
}

.shot-phone img {
  width: 100%;
}

.shots-heading {
  margin: clamp(56px, 6vw, 88px) 0 clamp(28px, 3vw, 40px);
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 750;
  font-stretch: 105%;
}

.shots-single {
  margin-top: clamp(48px, 5vw, 72px);
}

/* ---------- BIPOS ---------- */

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow), 0 30px 60px rgba(14, 26, 46, 0.12);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bi-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.bi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.bi-filters li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.kpi {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.kpi-label {
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.kpi-value {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}

.kpi-delta {
  color: var(--good);
  font-size: 0.76rem;
  font-weight: 700;
}

.chart {
  display: grid;
  gap: 10px;
}

.chart-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.chart-title small {
  color: var(--text-3);
  font-weight: 500;
}

.bars {
  width: 100%;
  border-collapse: collapse;
}

.bars th {
  width: 78px;
  padding: 6px 10px 6px 0;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.bars td {
  padding: 6px 0;
  border-left: 1px solid var(--line-strong);
}

.bar-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar {
  flex: none;
  width: calc((100% - 66px) * var(--p, 0));
  height: 16px;
  border-radius: 0 4px 4px 0;
  background: var(--chart-bar);
}

.bar-val {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bars tr {
  cursor: default;
}

.bars tr:hover .bar,
.bars tr:focus .bar {
  filter: brightness(1.12);
}

.bars tr:focus {
  outline: none;
}

.bars tr:focus-visible th {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.chart-note {
  color: var(--text-3);
  font-size: 0.76rem;
}

.tooltip {
  position: fixed;
  z-index: 60;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  line-height: 1.4;
  pointer-events: none;
}

@media (max-width: 520px) {
  .kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .bi-body {
    padding: 14px;
  }
}

/* ---------- Para quién ---------- */

.industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  list-style: none;
}

.industry {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 22px;
  border-top: 3px solid var(--text);
}

.industry .ico {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.industry h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
}

.industry p {
  color: var(--text-2);
  font-size: var(--fs-small);
}

@media (max-width: 960px) {
  .industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media (max-width: 560px) {
  .industries {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Preguntas ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.qa {
  padding-block: 24px;
  border-top: 1px solid var(--line-strong);
}

.qa h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.qa p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: var(--fs-small);
}

@media (max-width: 760px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Contacto ---------- */

.contact {
  background:
    radial-gradient(700px 420px at 15% 20%, var(--navy-2), transparent 70%),
    var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(36px, 5vw, 72px);
}

.contact-copy h2 {
  margin-top: 16px;
}

.contact-copy .lead {
  margin-top: 18px;
}

.contact-direct {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  list-style: none;
  color: var(--on-navy-2);
}

.contact-direct a:not(.btn) {
  color: var(--on-navy);
  font-weight: 600;
}

.contact-points {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--on-navy-line);
  list-style: none;
  color: var(--on-navy-2);
  font-size: var(--fs-small);
}

.contact-points li {
  position: relative;
  padding-left: 24px;
}

.contact-points li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
  transform: rotate(-45deg);
}

.form {
  --focus: var(--link);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  padding: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.opt {
  color: var(--text-3);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option span {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.option input:checked + span {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--on-btn);
}

.option input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--btn);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.ok {
  color: var(--good);
}

.form-status.error {
  color: var(--warn);
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Pie ---------- */

.site-footer {
  padding-block: 56px 28px;
  background: var(--navy-deep);
  color: var(--on-navy-2);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-grid p {
  max-width: 34ch;
  margin-top: 14px;
}

.footer-h {
  margin-bottom: 12px;
  color: var(--on-navy);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.site-footer a {
  color: var(--on-navy-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-navy);
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--on-navy-line);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Páginas interiores ---------- */

.page {
  padding-block: clamp(40px, 6vw, 80px) var(--section-y);
}

.page-narrow {
  max-width: 760px;
}

.page h1 {
  font-size: var(--fs-h2);
  font-weight: 750;
  font-stretch: 108%;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.page-date {
  margin-top: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.legal h2 {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--text-2);
}

.legal p {
  margin-top: 12px;
}

.legal ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-left: 1.2rem;
}

.legal strong {
  color: var(--text);
}

.fill {
  padding: 0 4px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 600;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
