/* ==========================================================================
   Yunko · landing pública (https://yunko.app/)
   CSS estático, mobile-first, sin dependencias.

   Dirección visual "pasillo de herramientas":
   azul marino profundo + amarillo de seguridad del logo sobre niebla fría.
   Títulos en Figtree, texto e interfaz en Archivo (la letra de la app).
   ========================================================================== */

/* ---------- 0. Fuentes propias ----------
   Variables (un archivo cubre todos los pesos), copiadas de @fontsource-variable/figtree y
   @fontsource-variable/archivo. Licencia SIL Open Font License 1.1: assets/fonts/OFL-*.txt.
   El subconjunto latino se precarga en index.html; latin-ext solo baja si la página usa esos caracteres. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca */
  --amarillo: #ffb800;          /* el de la "k": fondo de botón con texto tinta, nunca texto sobre claro */
  --amarillo-hover: #f2ad00;
  --amarillo-claro: #ffefc6;
  --azul: #12294a;              /* azul marino profundo: 14,6:1 con blanco y 8,4:1 con el amarillo */
  --azul-hondo: #0a1b33;        /* pie de página */
  --azul-claro: #d9e4f2;
  --azul-tenue: #e9eef6;

  /* Neutros */
  --niebla: #f3f5f8;            /* fondo de página */
  --niebla-2: #e8edf3;          /* bandas y bloques internos */
  --blanco: #ffffff;
  --tinta: #14181d;             /* la del logo */
  --tinta-2: #4b5560;           /* texto secundario: ≥ 5,3:1 en todos los fondos claros */
  --linea: #d7dee8;
  --linea-suave: #e8edf3;

  /* Sobre azul */
  --o-texto: #ffffff;
  --o-texto-2: #b8c7dc;         /* 8,5:1 sobre #12294a */
  --o-linea: rgba(255, 255, 255, .16);
  --o-capa: rgba(255, 255, 255, .07);

  /* Estados (siempre con ícono y texto) */
  --ok: #027a48;     --ok-bg: #e3f4ea;   --ok-borde: #12b76a;
  --warn: #b54708;   --warn-bg: #fff0de; --warn-borde: #f79009;
  --bad: #b42318;    --bad-bg: #fde8e6;  --bad-borde: #f04438;
  --info: #175cd3;   --info-bg: #e6effc; --info-borde: #2e90fa;

  /* Contacto: el verde oscuro de "ok" deja el glifo blanco en 5,4:1, y el botón en 5:1 sobre claro y 3,2:1 sobre azul */
  --whatsapp: var(--ok);

  /* Teléfonos de la sección de la app: aluminio, botones, cristal negro y lente de la cámara */
  --metal-claro: #8c929b;
  --metal: #3a3f46;
  --metal-oscuro: #1b1e23;
  --boton-claro: #646a73;
  --boton-oscuro: #24282d;
  --cristal: #030405;
  --lente: #34466a;

  /* Tipografía */
  --f-display: "Figtree", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-texto: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-ticket: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; /* solo la boleta impresa */

  /* Forma: el radio baja con la jerarquía */
  --r-seccion: 36px;
  --r-panel: 28px;
  --r-card: 22px;
  --r-ui: 12px;
  --r-pill: 999px;

  /* Sombras teñidas de azul, solo para objetos que "flotan" */
  /* En capas, con una sola fuente de luz arriba (cada capa más alta, más larga y más difusa) */
  --sombra-objeto: 0 1px 2px rgba(10, 27, 51, .10), 0 6px 12px -4px rgba(10, 27, 51, .14), 0 22px 44px -14px rgba(10, 27, 51, .38);
  --sombra-ventana: 0 1px 2px rgba(10, 27, 51, .05), 0 6px 14px -6px rgba(10, 27, 51, .10), 0 24px 48px -20px rgba(10, 27, 51, .20), 0 56px 96px -40px rgba(10, 27, 51, .28);
  --sombra-1: 0 0 0 1px rgba(18, 41, 74, .07), 0 1px 2px rgba(10, 27, 51, .05), 0 4px 10px -2px rgba(10, 27, 51, .06), 0 16px 32px -14px rgba(10, 27, 51, .14);
  --sombra-2: 0 0 0 1px rgba(18, 41, 74, .09), 0 2px 4px rgba(10, 27, 51, .05), 0 12px 24px -8px rgba(10, 27, 51, .12), 0 36px 64px -24px rgba(10, 27, 51, .30);
  --sombra-amarilla: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(120, 80, 0, .22), 0 10px 22px -10px rgba(204, 140, 0, .8);
  /* Grano de papel: ruido SVG (1 KB), en oscuro sobre claro y en claro sobre azul */
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grano-claro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --header-h: 68px;
  --mbar-h: 76px;               /* barra fija inferior del celular */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --rayas: repeating-linear-gradient(45deg, #ffb800 0 12px, #14181d 12px 24px);
}

/* ---------- 2. 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: var(--niebla);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); /* barra móvil */
}
@media (min-width: 768px) {
  body { font-size: 1.0625rem; padding-bottom: 0; }
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
strong, b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--amarillo); }
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--tinta); color: var(--blanco);
  font-weight: 600; padding: 12px 18px;
  border-radius: var(--r-pill); text-decoration: none;
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }

/* Íconos (sprite en línea, trazo estilo Lucide) */
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--xs { width: 14px; height: 14px; stroke-width: 2.25; }
.i--sm { width: 16px; height: 16px; stroke-width: 2; }
.i--lg { width: 24px; height: 24px; }
.i--fill { fill: currentColor; stroke: none; } /* glifos de relleno, como el de WhatsApp */

/* ---------- 3. Layout ---------- */
.container { width: min(100% - 32px, 1200px); margin-inline: auto; }
@media (min-width: 768px)  { .container { width: min(100% - 48px, 1200px); } }
@media (min-width: 1024px) { .container { width: min(100% - 80px, 1200px); } }

main { overflow-x: clip; } /* lo que entra de lado al hacer scroll no genera scroll horizontal */
.band { padding-block: 72px; }
.band--blanco { background: var(--blanco); }
.band--niebla { background: var(--niebla); }
@media (min-width: 1024px) { .band { padding-block: 112px; } }

.head { max-width: 720px; margin-bottom: 40px; }
@media (min-width: 1024px) {
  .head { margin-bottom: 56px; }
  .head--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: end;
  }
  .head--split .lead { margin-top: 0; }
}

/* ---------- 4. Tipografía ---------- */
.h2 {
  font-family: var(--f-display);
  font-size: clamp(2.125rem, 1.45rem + 2.7vw, 3.5rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinta-2);
  max-width: 58ch;
  text-wrap: pretty;
}
@media (min-width: 768px) { .lead { font-size: 1.1875rem; } }

/* Nombre del módulo sobre un título que no lo dice: información, no adorno */
.modlabel {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--azul-tenue);
  color: var(--azul);
  font-weight: 600; font-size: .875rem; line-height: 1.3;
}
.modlabel .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--blanco); }

/* ---------- 5. Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-family: var(--f-texto); font-size: 1rem; font-weight: 600; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn--primary { background: var(--amarillo); color: var(--tinta); }
.btn--primary:hover { background: var(--amarillo-hover); }
.btn--ghost { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn--ghost:hover { background: var(--tinta); color: var(--blanco); }
.btn--dark { background: var(--tinta); color: var(--blanco); }
.btn--dark:hover { background: var(--azul-hondo); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(.98); }
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: var(--amarillo); text-decoration-thickness: 3px; }

.more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: .9375rem;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.more:hover { text-decoration-color: var(--amarillo); text-decoration-thickness: 3px; }

/* Botón con contorno claro, para fondos azules */
.btn--claro { border-color: var(--o-texto-2); color: var(--o-texto); background: transparent; }
.btn--claro:hover { border-color: var(--amarillo); background: var(--o-capa); }

/* ---------- 6. Contacto y notas ---------- */
.nota-sii { margin-top: 14px; font-size: .9375rem; line-height: 1.55; color: var(--tinta-2); max-width: 58ch; }

.contacto { display: grid; gap: 2px; margin-top: 14px; }
.contacto a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.contacto a:hover { text-decoration-color: var(--amarillo); text-decoration-thickness: 3px; }
.contacto .i {
  width: 36px; height: 36px; padding: 8px; border-radius: 50%;
  background: var(--blanco); box-shadow: var(--sombra-1);
}
.contacto .i--fill { color: var(--whatsapp); }

/* ---------- 7. Barra superior ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 245, 248, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--linea-suave);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: 12px; }
.brand img { height: 28px; width: auto; }

.nav-desktop, .header-actions { display: none; }
.nav-desktop ul { display: flex; gap: 2px; }
.nav-desktop a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--tinta-2); font-weight: 600; font-size: .9375rem; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav-desktop a:hover { color: var(--tinta); background: rgba(20, 24, 29, .05); }
.nav-desktop a[aria-current="true"] { color: var(--tinta); background: var(--blanco); box-shadow: 0 0 0 1px var(--linea); }
/* Con cinco enlaces, entre 1024 y 1199 px «Preguntas» quedaba pegado a «Ingresar» */
@media (max-width: 1199px) { .nav-desktop a { padding: 0 11px; } }

.header-actions { align-items: center; gap: 10px; margin-left: auto; }
.header-signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--linea);
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  transition: box-shadow .15s;
}
.header-signin:hover { box-shadow: inset 0 0 0 1.5px var(--tinta); }

/* Menú móvil con <details> (funciona sin JavaScript) */
.nav-mobile { margin-left: auto; }
.nav-mobile > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--blanco); box-shadow: 0 0 0 1px var(--linea);
  font-weight: 600; font-size: .9375rem;
  cursor: pointer; user-select: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary .i-close { display: none; }
.nav-mobile[open] > summary .i-open { display: none; }
.nav-mobile[open] > summary .i-close { display: block; }

.nav-mobile__panel {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
  background: var(--blanco);
  border-radius: var(--r-card);
  box-shadow: var(--sombra-objeto);
  padding: 8px 20px 20px;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
}
.nav-mobile__panel ul { margin-bottom: 16px; }
.nav-mobile__panel li a {
  display: flex; align-items: center; min-height: 54px;
  border-bottom: 1px solid var(--linea-suave);
  font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-mobile__actions { display: grid; gap: 10px; }

@media (min-width: 1024px) {
  .nav-mobile { display: none; }
  .nav-desktop { display: block; }
  .header-actions { display: flex; }
  /* logo a la izquierda, menú al centro de la página y botones a la derecha */
  .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .brand { justify-self: start; margin-right: 0; }
  .header-actions { justify-self: end; margin-left: 0; }
}

/* ---------- 8. Hero ---------- */
.hero { background: var(--niebla); padding-top: 36px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-top: 64px; } }

.hero__title {
  margin-top: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 1.2rem + 6.6vw, 6.6rem);
  line-height: .9;
  letter-spacing: -0.022em;
}
.hero__verbs > span { display: block; }
.hero__sub {
  display: block;
  margin-top: .3em;
  font-size: .42em;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--azul);
}
/* Desde 640 px el lema va en una sola línea y su tamaño depende del ancho disponible:
   así no cambia de 1 a 2 líneas cuando llega la fuente (sin saltos de diseño, CLS). */
@media (min-width: 640px) {
  .hero__verbs { white-space: nowrap; }
  .hero__verbs > span { display: inline-block; }
  .hero__title { font-size: min(5.9rem, calc((100vw - 48px) * .08)); }
  .hero__sub { font-size: max(.42em, 1.625rem); }
}
@media (min-width: 1024px) {
  .hero__title { font-size: min(5.9rem, calc((100vw - 80px) * .08)); }
}

.hero__row { display: grid; gap: 28px; margin-top: 28px; }
.hero__lead { font-size: 1.0625rem; line-height: 1.6; color: var(--tinta-2); max-width: 56ch; }
.hero__lead strong { color: var(--tinta); }
@media (min-width: 768px) { .hero__lead { font-size: 1.1875rem; } }

.hero__actions { display: grid; gap: 18px; align-content: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .cta-row .btn { width: 100%; } }

.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; color: var(--tinta-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i {
  width: 20px; height: 20px; padding: 4px; border-radius: 50%;
  background: var(--amarillo); color: var(--tinta); stroke-width: 3;
}
.signin-line { font-size: .9375rem; color: var(--tinta-2); }
.signin-line a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tinta); }

@media (min-width: 1024px) {
  .hero__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: start; margin-top: 36px; }
  .hero__actions { padding-top: 4px; }
}

/* Tríptico: Arriendo, Servicio técnico y Punto de venta */
.tri {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 12px;
  margin: 40px -16px 0;
  padding: 4px 16px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: thin;
}
.tri:focus-visible { outline-offset: -2px; border-radius: var(--r-panel); }
@media (min-width: 640px) { .tri { grid-auto-columns: 58%; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; } }
@media (min-width: 1024px) {
  .tri {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 56px 0 0;
    padding: 0 0 56px;
    overflow: visible;
  }
}

.tri__panel {
  position: relative;
  isolation: isolate;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 460px;
  padding: 24px;
  border-radius: var(--r-panel);
  overflow: hidden;
}
@media (min-width: 1024px) { .tri__panel { min-height: 500px; padding: 28px; } }
.tri__panel--arriendo { background: var(--amarillo); color: var(--tinta); }
.tri__panel--taller   { background: var(--azul); color: var(--o-texto); }
.tri__panel--venta    { background: var(--azul-claro); color: var(--tinta); }

.tri__name {
  padding-right: 52px;
  font-family: var(--f-display);
  font-size: 1.75rem; font-weight: 750; line-height: 1.05; letter-spacing: -0.016em;
}
.tri__name a { text-decoration: none; }
.tri__name a::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.tri__name a:focus-visible { outline: none; }
.tri__name a:focus-visible::after { outline: 3px solid var(--tinta); outline-offset: -3px; }
.tri__panel--taller .tri__name a:focus-visible::after { outline-color: var(--amarillo); }
.tri__desc { margin-top: 8px; font-size: .9375rem; line-height: 1.45; max-width: 30ch; }
.tri__panel--taller .tri__desc { color: var(--o-texto-2); }
.tri__go {
  position: absolute; top: 22px; right: 22px; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tinta); color: var(--blanco);
  transition: transform .2s var(--ease);
}
.tri__panel--taller .tri__go { background: var(--amarillo); color: var(--tinta); }
.tri__stage { position: relative; flex: 1; min-height: 300px; margin-top: 22px; }

/* Objeto 1: etiqueta colgante de equipo */
.hang {
  position: absolute; left: 50%; top: -6px;
  width: 248px;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 22px rgba(10, 27, 51, .28)) drop-shadow(0 2px 2px rgba(10, 27, 51, .12));
}
.hang__cord { width: 60px; height: 40px; margin: 0 auto -6px; color: var(--tinta); opacity: .55; }
.hang__tag {
  position: relative;
  transform: rotate(-4deg);
  transform-origin: 50% 0;
  background: var(--blanco);
  border-radius: 18px;
  padding: 36px 18px 18px;
  clip-path: polygon(24% 0, 76% 0, 100% 11%, 100% 100%, 0 100%, 0 11%);
  transition: transform .35s var(--ease);
}
.hang__tag::before { /* ojal */
  content: "";
  position: absolute; left: 50%; top: 10px;
  width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%;
  background: var(--amarillo);
  box-shadow: inset 0 0 0 3px rgba(20, 24, 29, .14);
}
.hang__kind { font-size: .75rem; color: var(--tinta-2); }
.hang__name { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin-top: 2px; }
.hang__code {
  display: inline-block; margin-top: 8px; padding: 2px 10px;
  border-radius: var(--r-pill); background: var(--azul-tenue); color: var(--azul);
  font-weight: 600; font-size: .75rem; font-variant-numeric: tabular-nums;
}
.hang .kv { margin-top: 12px; font-size: .75rem; }
.hang .seg { margin-top: 12px; }

/* Objeto 2: orden de trabajo */
.ot {
  position: absolute; left: 50%; top: 6px;
  width: 272px;
  transform: translateX(-50%) rotate(2.5deg);
  background: var(--blanco); color: var(--tinta);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--sombra-objeto);
  font-size: .8125rem; line-height: 1.4;
  transition: transform .35s var(--ease);
}
.ot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ot__kind { font-size: .75rem; color: var(--tinta-2); }
.ot__id { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.ot__fotos { display: flex; gap: 6px; margin-top: 12px; }
.ot__fotos span {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--niebla-2); color: var(--tinta-2);
}
.ot__fotos small { align-self: center; margin-left: 4px; font-size: .75rem; color: var(--tinta-2); line-height: 1.25; }
.ot__ok {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 10px 12px;
  border-radius: 12px; background: var(--ok-bg); color: var(--ok);
  font-weight: 600; font-size: .78rem; line-height: 1.35;
}
.ot__ok b { display: block; color: var(--tinta); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.ot__steps { display: grid; gap: 4px; margin-top: 12px; font-size: .75rem; color: var(--tinta-2); }
.ot__steps li { display: flex; align-items: center; gap: 8px; }
.ot__steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); flex: none; }
.ot__steps li.now { color: var(--tinta); font-weight: 600; }
.ot__steps li.now::before { background: var(--amarillo); box-shadow: 0 0 0 3px rgba(255, 184, 0, .3); }

/* Objeto 3: boleta impresa saliendo */
.printer {
  position: absolute; left: 50%; top: 52px; z-index: 2;
  width: 252px; height: 22px; margin-left: -126px;
  border-radius: 12px;
  background: var(--tinta);
  box-shadow: 0 6px 14px -6px rgba(10, 27, 51, .5);
}
.printer::after { /* ranura */
  content: ""; position: absolute; left: 18px; right: 18px; top: 10px; height: 3px;
  border-radius: 3px; background: #000;
}
.ticket-feed {
  position: absolute; left: 50%; top: 64px; z-index: 1;
  width: 222px; margin-left: -111px;
  overflow: hidden;
  filter: drop-shadow(0 10px 14px rgba(10, 27, 51, .22));
}
.ticket {
  background: var(--blanco);
  padding: 22px 16px 16px;
  font-family: var(--f-ticket);
  font-size: .6875rem; line-height: 1.55;
  color: var(--tinta);
  /* la boleta termina en un corte dentado, como el papel de la impresora */
  padding-bottom: 22px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}
.ticket__c { text-align: center; }
.ticket__c b { font-weight: 700; }
.ticket hr { border: 0; border-top: 1px dashed #8d989c; margin: 8px 0; }
.ticket__row { display: flex; justify-content: space-between; gap: 10px; }
.ticket__row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket__tot { font-weight: 700; font-size: .8125rem; }
.ticket__qr { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .625rem; line-height: 1.35; }
.ticket__qr svg { width: 58px; height: 58px; flex: none; }
.sii-ok {
  position: absolute; z-index: 3; left: 50%; top: 0;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill);
  background: var(--ok); color: var(--blanco);
  font-weight: 600; font-size: .8125rem;
  box-shadow: var(--sombra-objeto);
  transform: translateX(-50%) rotate(-2deg);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tri__panel:hover .hang__tag { transform: rotate(-1deg); }
  .tri__panel:hover .ot { transform: translateX(-50%) rotate(1deg) translateY(-6px); }
  .tri__panel:hover .tri__go { transform: rotate(-45deg); }
}

.hero__note { font-size: .875rem; color: var(--tinta-2); padding-bottom: 40px; }
@media (min-width: 1024px) { .hero__note { margin-top: -32px; padding-bottom: 56px; } }

/* Rayas de seguridad: sello de la app (2 apariciones) */

/* Carga: un solo momento orquestado */
@media (prefers-reduced-motion: no-preference) {
  .hero__verbs > span, .hero__sub { animation: subir .8s var(--ease) both; }
  .hero__verbs > span:nth-child(2) { animation-delay: .08s; }
  .hero__verbs > span:nth-child(3) { animation-delay: .16s; }
  .hero__sub { animation-delay: .26s; }
  .tri__panel { animation: subir .7s var(--ease) both; }
  .tri__panel:nth-child(2) { animation-delay: .1s; }
  .tri__panel:nth-child(3) { animation-delay: .2s; }
  .hang__tag { animation: colgar 1.4s var(--ease) .45s both; }
  .ticket { animation: imprimir 1.6s cubic-bezier(.3, .7, .2, 1) .55s both; }
  .sii-ok { animation: sello .45s var(--ease) 1.9s both; }
  @keyframes subir { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  @keyframes colgar { 0% { transform: rotate(-14deg); } 55% { transform: rotate(1deg); } 100% { transform: rotate(-4deg); } }
  @keyframes imprimir { from { transform: translateY(-72%); } to { transform: none; } }
  @keyframes sello { from { opacity: 0; transform: translateX(-50%) rotate(-2deg) scale(1.25); } to { opacity: 1; transform: translateX(-50%) rotate(-2deg) scale(1); } }
}

/* ---------- 8b. El inicio cabe en la pantalla del dispositivo ----------
   Alto = pantalla menos la barra superior (y menos la barra inferior en celular).
   El título y los espacios se achican con el alto; los paneles ocupan lo que queda.
   Los objetos de cada panel se escalan según el ancho del panel (consulta de contenedor)
   y el alto de la pantalla; lo que no cabe se asoma recortado por el borde inferior. */
.hero {
  --barra-movil: 0px;
  display: flex; flex-direction: column;
  min-height: calc(100svh - var(--header-h) - var(--barra-movil));
  padding-top: clamp(16px, 3.2vh, 64px);
}
@media (max-width: 767px) { .hero { --barra-movil: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.hero > .container { flex: 1; display: flex; flex-direction: column; justify-content: center; } /* en pantallas muy altas el contenido queda al centro */

.hero__title { font-size: clamp(2.25rem, 6vh, 3.4rem); }
@media (min-width: 640px) { .hero__title { font-size: min(5.9rem, calc((100vw - 48px) * .08), 10.5vh); } }
@media (min-width: 1024px) { .hero__title { font-size: min(5.9rem, calc((100vw - 80px) * .08), 10.5vh); } }
.hero__row { margin-top: clamp(14px, 2.8vh, 36px); gap: clamp(14px, 2.4vh, 28px); }
.hero__actions { gap: clamp(10px, 1.8vh, 18px); }
/* En el celular el botón «Ver cómo funciona» sobra: la página se recorre bajando y abajo está la barra fija */
@media (max-width: 479px) { .cta-row .btn--ghost { display: none; } }
/* En celulares bajos (tipo iPhone SE) se omite la línea «Sin tarjeta · Cancela cuando quieras»: se repite en el plan y en el cierre */
@media (max-width: 479px) and (max-height: 700px) { .hero .trust { display: none; } }

.tri { flex: 1; min-height: 300px; max-height: 560px; margin-top: clamp(16px, 3vh, 56px); padding-bottom: 18px; }
.tri__panel { min-height: 0; container-type: inline-size; }
.tri__stage {
  --kw: 1; --kh: 1;
  min-height: 0;
  margin-top: clamp(10px, 2vh, 22px);
  /* sin JavaScript: escala por pasos; con JavaScript (landing.js) la escala exacta para que el objeto quepa completo */
  scale: var(--kfit, min(var(--kw), var(--kh)));
  translate: 0 var(--dy, 0px);
  transform-origin: 50% 0;
}
.hero__note { margin-top: 0; padding-bottom: clamp(12px, 2.4vh, 32px); }

/* Tablet: los tres paneles lado a lado, sin quedar cortados */
@media (min-width: 640px) {
  .tri {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: 0; padding-inline: 0; overflow: visible;
    gap: 12px;
  }
  .tri__panel { padding: 20px; }
  .tri__name { font-size: 1.375rem; padding-right: 42px; }
  .tri__go { top: 16px; right: 16px; width: 34px; height: 34px; }
}
@media (min-width: 1024px) {
  .tri { gap: 16px; min-height: 280px; max-height: 620px; padding-bottom: 22px; }
  .tri__panel { padding: 24px; }
  .tri__name { font-size: 1.625rem; padding-right: 48px; }
  .tri__go { top: 20px; right: 20px; width: 40px; height: 40px; }
}
/* los botones van siempre en una sola fila: la columna de acciones toma su ancho natural */
@media (min-width: 1024px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__lead { max-width: 72ch; } /* para quién es y los módulos caben en dos líneas junto a los botones */
}
@media (min-width: 1280px) and (min-height: 820px) {
  .tri__panel { padding: 28px; }
  .tri__name { font-size: 1.75rem; }
}

/* Escala de los objetos según el ancho del panel */
@container (max-width: 330px) { .tri__stage { --kw: .9; } }
@container (max-width: 300px) { .tri__stage { --kw: .82; } }
@container (max-width: 270px) { .tri__stage { --kw: .74; } }
@container (max-width: 240px) { .tri__stage { --kw: .66; } }
@container (max-width: 210px) { .tri__stage { --kw: .58; } }
@container (max-width: 190px) { .tri__stage { --kw: .52; } }
@container (max-width: 240px) { .tri__desc { font-size: .8125rem; } }

/* ...y según el alto de la pantalla */
@media (max-height: 820px) { .tri__stage { --kh: .9; } }
@media (max-height: 720px) { .tri__stage { --kh: .8; } }
@media (max-height: 640px) { .tri__stage { --kh: .72; } }
@media (max-height: 760px) and (min-width: 640px) { .tri__desc { margin-top: 4px; } }

/* Celular: objetos un poco más simples y sin el texto bajo el título, para que los paneles ganen alto
   y los objetos se vean completos y más grandes */
@media (max-width: 639px) {
  /* el lema, el subtítulo, el botón y las condiciones van centrados */
  .hero__title, .hero__row { text-align: center; }
  .hero .cta-row, .hero .trust { justify-content: center; }
  /* de la bajada queda solo para quién es: los módulos los muestran las tarjetas de abajo */
  .hero__lead { margin-inline: auto; max-width: 34ch; font-size: 1rem; line-height: 1.45; }
  .hero__lead strong { font-weight: 500; }
  .hero__lead-resto { display: none; }
  /* tres tarjetas apiladas, completas: nombre, descripción y flecha a la izquierda; el objeto entero a la derecha */
  .tri {
    display: grid; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto;
    gap: 10px; flex: none; min-height: 0; max-height: none;
    margin: 22px 0 0; padding: 0;
    overflow: visible; scroll-snap-type: none;
  }
  .tri__panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 48%); grid-template-rows: auto auto 1fr;
    column-gap: 6px;
    min-height: 188px; padding: 18px 12px 18px 20px;
    scroll-snap-align: none;
  }
  .tri__name { grid-column: 1; padding-right: 0; font-size: 1.375rem; }
  .tri__desc { grid-column: 1; margin-top: 4px; font-size: .875rem; }
  .tri__go { position: static; grid-column: 1; align-self: end; margin-top: 12px; width: 36px; height: 36px; }
  .tri__stage { grid-column: 2; grid-row: 1 / -1; margin-top: 0; }
  .hero__note { margin-top: 14px; padding-bottom: 24px; }
  .hang .kv > :nth-child(3), .hang .kv > :nth-child(4) { display: none; }
  .ot__steps { display: none; }
  .ticket__qr { display: none; }
}

@media print { .hero { min-height: 0; } .tri { max-height: none; } }

/* ---------- 8c. Para quién es ----------
   Sigue la superficie del inicio (niebla, luz cálida a la izquierda y grano, en 23b) para leerse
   como parte del inicio y no como una franja aparte. Los tres perfiles van en un solo panel blanco,
   como el plan y las preguntas. El ícono de cada perfil lleva el color de la tarjeta del inicio
   a la que lleva su enlace: punto de venta celeste, arriendo amarillo y servicio técnico azul.
   En escritorio cada texto va pegado a su nombre (los nombres tienen largos distintos)
   y los tres enlaces quedan alineados abajo. */
.quien { padding-block: 20px 64px; }
.quien__titulo {
  font-family: var(--f-display);
  font-size: 1.625rem; font-weight: 750; line-height: 1.05; letter-spacing: -0.018em;
  text-wrap: balance;
}
.quien__lista {
  margin-top: 18px;
  padding: 4px 20px;
  border-radius: var(--r-card);
  background: var(--blanco);
  box-shadow: 0 0 0 1px var(--linea);
}
/* Celular y tablet: ícono a la izquierda del nombre; texto y enlace alineados con el nombre */
.quien__perfil {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px; row-gap: 4px;
  align-items: center;
  padding: 20px 0 8px;
}
.quien__perfil + .quien__perfil { border-top: 1px solid var(--linea-suave); }
.quien__ic {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
}
.quien__ic .i { width: 22px; height: 22px; }
.quien__ic--venta    { background: var(--azul-claro); color: var(--azul); }
.quien__ic--arriendo { background: var(--amarillo); color: var(--tinta); }
.quien__ic--taller   { background: var(--azul); color: var(--amarillo); }
.quien__nombre {
  font-family: var(--f-display);
  font-size: 1.1875rem; font-weight: 750; line-height: 1.2; letter-spacing: -0.01em;
  text-wrap: balance;
}
.quien__texto {
  grid-column: 2;
  max-width: 52ch;
  color: var(--tinta-2); font-size: .9375rem; line-height: 1.5;
  text-wrap: pretty;
}
.quien__perfil .more { grid-column: 2; justify-self: start; }

@media (min-width: 768px) {
  .quien { padding-block: 32px 80px; }
  .quien__titulo { font-size: 1.875rem; }
  .quien__lista { margin-top: 22px; padding: 8px 32px; border-radius: var(--r-panel); }
  .quien__perfil { padding: 24px 0 10px; }
}
/* Escritorio: los tres perfiles lado a lado dentro del mismo panel */
@media (min-width: 1024px) {
  .quien { padding-block: 40px 104px; }
  .quien__titulo { font-size: 2.25rem; }
  .quien__lista {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
    padding: 12px 0;
  }
  .quien__perfil {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 24px 36px 12px;
  }
  .quien__perfil + .quien__perfil { border-top: 0; border-left: 1px solid var(--linea-suave); }
  .quien__ic { width: 52px; height: 52px; margin-bottom: 10px; border-radius: 16px; }
  .quien__ic .i { width: 24px; height: 24px; }
  .quien__nombre { font-size: 1.375rem; }
  .quien__perfil .more { margin-top: auto; padding-top: 6px; }
}

/* ---------- 9. Hoy y con Yunko ---------- */
.antes { border-top: 1px solid var(--linea); }
.antes li {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--linea);
}
.antes p { display: flex; align-items: center; gap: 12px; }
.antes__hoy { color: var(--tinta-2); font-size: 1rem; }
.antes__yk { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.antes__x, .antes__ok {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
}
.antes__x { background: var(--niebla-2); color: var(--tinta-2); }
.antes__ok { background: var(--amarillo); color: var(--tinta); }
.antes__ok .i { stroke-width: 3; }
.antes__flecha { display: none; }
@media (min-width: 768px) {
  .antes li { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.25fr); align-items: center; gap: 16px; padding: 22px 0; }
  .antes__flecha { display: grid; place-items: center; color: var(--azul); }
  .antes__yk { font-size: 1.375rem; }
}

/* ---------- 10. Módulos ---------- */
.mods { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mods { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.mod {
  position: relative;
  display: grid; gap: 6px; align-content: start;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--blanco);
  box-shadow: 0 0 0 1px var(--linea);
  transition: box-shadow .2s, translate .2s var(--ease);
}
.mod__ic {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 12px;
  border-radius: 16px;
  background: var(--azul-tenue); color: var(--azul);
}
.mod h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; }
.mod h3 a { text-decoration: none; }
.mod h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mod p { color: var(--tinta-2); font-size: .9375rem; line-height: 1.45; }
.mod:hover { box-shadow: 0 0 0 1.5px var(--azul), var(--sombra-ventana); }
@media (prefers-reduced-motion: no-preference) { .mod:hover { translate: 0 -3px; } }
.mod--plan { background: var(--amarillo); box-shadow: none; align-content: end; }
.mod--plan h3 { font-size: 1.5rem; line-height: 1.15; }
.mod__go {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tinta); color: var(--blanco);
  transition: rotate .2s var(--ease);
}
.mod--plan h3 { padding-right: 52px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .mod--plan:hover .mod__go { rotate: -45deg; } }
.mod--plan:hover { box-shadow: var(--sombra-ventana); }
@media (max-width: 639px) {
  .mods { gap: 10px; }
  .mod { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 18px; align-items: center; }
  .mod__ic { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 14px; }
  .mod__ic .i { width: 22px; height: 22px; }
  .mod h3 { font-size: 1.125rem; align-self: end; }
  .mod p { align-self: start; }
  .mod--plan { grid-template-columns: 1fr; padding: 20px 18px; }
  .mod--plan h3 { font-size: 1.25rem; }
  .mod__go { top: 50%; right: 16px; width: 36px; height: 36px; margin-top: -18px; }
}

/* Selector de tarifa: lo usan la etiqueta del hero y la cotización del arriendo */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--niebla-2); }
.seg span { padding: 7px 4px; border-radius: 9px; text-align: center; font-weight: 600; font-size: .75rem; line-height: 1.25; }
.seg span small { display: block; font-weight: 400; font-size: .6875rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.seg span.on { background: var(--blanco); box-shadow: 0 1px 3px rgba(10, 27, 51, .16); }
.hang .seg { background: var(--niebla); }

/* ---------- 11. Facturación SII ---------- */
.docs-title { font-weight: 600; color: var(--tinta-2); font-size: .9375rem; }
/* Los 8 documentos como papel de boleta: tirita blanca con borde dentado y el recuadro rojo de los documentos tributarios */
.docs-mesa {
  padding: 20px 18px 24px;
  border-radius: var(--r-panel);
  background: radial-gradient(80% 60% at 15% 0%, #ffffff, transparent 70%), var(--niebla);
}
@media (min-width: 640px) { .docs-mesa { padding: 28px 28px 32px; } }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 16px; }
@media (min-width: 640px) { .docs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; } }
.docs li {
  display: flex;
  filter: drop-shadow(0 1px 1px rgba(10, 27, 51, .10)) drop-shadow(0 8px 10px rgba(10, 27, 51, .12));
  rotate: -1.4deg;
}
.docs li:nth-child(2n) { rotate: 1.1deg; }
.docs li:nth-child(3n) { rotate: -.5deg; }
.dte {
  --diente: 6px;
  flex: 1;
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px 11px calc(var(--diente) + 14px);
  background: var(--blanco);
  font-family: var(--f-ticket);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--diente)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--diente)) 100%;
}
.dte__caja {
  display: grid; gap: 5px; align-content: center;
  min-height: 72px; padding: 8px 6px;
  border: 1.5px solid var(--bad);
  color: var(--bad);
  text-align: center; text-transform: uppercase;
  font-weight: 700; font-size: .6875rem; line-height: 1.3; letter-spacing: .01em;
}
.dte__cod { font-size: .8125rem; letter-spacing: .04em; }
.dte__lineas { display: grid; gap: 6px; margin-top: auto; }
.dte__lineas i { height: 5px; border-radius: 2px; background: var(--niebla-2); }
.dte__lineas i:nth-child(2) { width: 72%; }
.dte__lineas i:nth-child(3) { width: 88%; }
#sii .split { align-items: center; }

.feats { display: grid; gap: 16px 32px; margin-top: 56px; }
.feat { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.feat .ic {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--azul-tenue); color: var(--azul);
}
@media (min-width: 768px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feats { grid-template-columns: repeat(3, 1fr); margin-top: 72px; } }

/* ---------- 12. Maquetas de interfaz (comunes) ---------- */
.win {
  container-type: inline-size;
  background: var(--blanco); color: var(--tinta);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(20, 24, 29, .08), var(--sombra-ventana);
  font-size: .8125rem; line-height: 1.4;
}
.win__bar {
  display: flex; align-items: center; gap: 12px;
  min-height: 40px; padding: 0 16px;
  background: var(--niebla);
  border-bottom: 1px solid var(--linea-suave);
  color: var(--tinta-2); font-size: .75rem;
}
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--linea); }
.win__title { color: var(--tinta); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__ej { margin-left: auto; flex: none; }
.win__body { padding: 16px; }
@container (min-width: 520px) { .win__body { padding: 20px; } }

.ui-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.ui-title { font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.ui-meta { font-size: .75rem; color: var(--tinta-2); }
.ui-k { font-size: .75rem; color: var(--tinta-2); }
.ui-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.ui-big { font-family: var(--f-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.014em; font-variant-numeric: tabular-nums; }

.ui-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--linea-suave); }
.ui-list .grow { flex: 1 1 140px; min-width: 0; }
.ui-list .sub { display: block; color: var(--tinta-2); font-size: .75rem; }

.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .75rem;
  background: var(--blanco); box-shadow: 0 0 0 1px var(--linea);
  white-space: nowrap;
}
.ui-btn--primary { background: var(--amarillo); box-shadow: none; }

.st {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .6875rem; line-height: 1.3;
  white-space: nowrap;
}
.st--ok   { color: var(--ok);   background: var(--ok-bg); }
.st--warn { color: var(--warn); background: var(--warn-bg); }
.st--bad  { color: var(--bad);  background: var(--bad-bg); }
.st--info { color: var(--info); background: var(--info-bg); }
.st--muted{ color: var(--tinta-2); background: var(--niebla); }

.meter { height: 8px; border-radius: 8px; background: var(--niebla-2); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 8px; background: var(--amarillo); }
.w72 { width: 72%; }
.self-start { justify-self: start; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.kv dt { color: var(--tinta-2); }
.kv dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.ui-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.ui-table th { text-align: left; font-weight: 600; font-size: .6875rem; color: var(--tinta-2); padding: 8px 6px; border-bottom: 1px solid var(--linea); }
.ui-table td { padding: 10px 6px; border-bottom: 1px solid var(--linea-suave); vertical-align: middle; }
.ui-table .n { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ui-table .r { text-align: right; }
.ui-table tr.alert td { background: var(--warn-bg); }
.ui-table .hide-sm { display: none; }
@container (min-width: 460px) { .ui-table .hide-sm { display: table-cell; } .ui-table { font-size: .8125rem; } }

.alert-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; margin-bottom: 12px;
  border-radius: 12px;
  background: var(--bad-bg); color: var(--bad);
  font-size: .75rem; font-weight: 600;
}
.alert-row--warn { background: var(--warn-bg); color: var(--warn); }

.cap { margin-top: 14px; font-size: .875rem; color: var(--tinta-2); }

/* ---------- 13. Arriendo ---------- */
.split { display: grid; gap: 40px; }
.split__aside, .split__main { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
  .split__aside--sticky { position: sticky; top: calc(var(--header-h) + 40px); }
  .split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; }
  .split--rev .split__aside { order: 2; }
  .split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; }
}


.steps { position: relative; display: grid; gap: 14px; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px;
  width: 2px; background: var(--linea);
}
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.step__n {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amarillo); color: var(--tinta);
  font-family: var(--f-display); font-weight: 750; font-size: 1.125rem;
  box-shadow: 0 0 0 6px var(--blanco);
}
.step__body { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-card); background: var(--niebla); }
.band--niebla .step__body { background: var(--blanco); box-shadow: 0 0 0 1px var(--linea); }
.band--niebla .step__n { box-shadow: 0 0 0 6px var(--niebla); }
.band--niebla .mini { background: var(--niebla); box-shadow: none; }
.step h3 { font-family: var(--f-display); font-size: 1.3125rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 6px; }
.step p { color: var(--tinta-2); font-size: .9375rem; }
.mini {
  container-type: inline-size;
  border-radius: 16px;
  background: var(--blanco);
  padding: 14px;
  font-size: .75rem; line-height: 1.4;
  box-shadow: 0 1px 3px rgba(10, 27, 51, .1);
  align-self: start; min-width: 0;
}
.mini__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mini__head b { font-weight: 600; font-size: .8125rem; }
.mini .seg { margin: 8px 0 10px; }
.mini .ui-list li { padding: 7px 0; }
.step .mini p { font-size: inherit; color: inherit; }
@media (min-width: 768px) {
  .step__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 22px; }
}

/* Ficha de equipo con plano técnico */
.ficha {
  display: grid;
  margin-top: 56px;
  border-radius: var(--r-panel);
  background: var(--blanco);
  box-shadow: 0 0 0 1px var(--linea);
  overflow: hidden;
}
.ficha__plano { padding: 24px; background: var(--amarillo-claro); display: grid; place-items: center; }
.ficha__plano svg { width: 100%; max-width: 440px; height: auto; color: var(--tinta); }
.ficha__plano .fino { stroke-width: 1; }
.ficha__plano .acc { fill: var(--azul); stroke: var(--azul); }
.ficha__plano .plate { fill: var(--blanco); }
.ficha__plano .cota { stroke: #8a7a4a; stroke-width: 1; fill: none; }
.ficha__plano text { font-family: var(--f-texto); font-size: 9.5px; font-weight: 600; fill: #5b4a14; stroke: none; }
.ficha__plano .t-plate { font-size: 7.5px; fill: var(--tinta); }
.ficha__data { padding: 24px; display: grid; gap: 20px; align-content: start; }
.ficha__title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ficha__name { font-family: var(--f-display); font-size: 1.75rem; font-weight: 750; letter-spacing: -0.016em; line-height: 1.1; }
.ficha__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ficha__stats > div { padding: 14px; border-radius: 16px; background: var(--niebla); display: grid; gap: 4px; align-content: start; }
.ficha__stats .ui-big { font-size: 1.625rem; }
.ficha__stats .sub { font-size: .8125rem; color: var(--tinta-2); }
.ficha__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: .875rem; color: var(--tinta-2); }
@media (min-width: 1024px) {
  .ficha { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ficha__plano { padding: 36px; }
  .ficha__data { padding: 32px; }
}

/* ---------- 14. Servicio técnico ---------- */
.tl { display: grid; gap: 0; margin-bottom: 48px; }
.tl li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 22px; }
.tl li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--linea); }
.tl li:last-child::before { display: none; }
.tl__n {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blanco); box-shadow: inset 0 0 0 2px var(--azul);
  color: var(--azul);
  font-family: var(--f-display); font-weight: 750; font-size: 1rem;
}
.tl__n { position: relative; transition: background-color .3s, color .3s, box-shadow .3s; }
.tl__n svg { display: none; width: 18px; height: 18px; stroke-width: 3; }
.tl li.key .tl__n { background: var(--amarillo); box-shadow: none; color: var(--tinta); }

/* Recorrido animado del 1 al 7 (lo activa landing.js con .tl--anim) */
.tl li::after {
  content: ""; position: absolute;
  left: 19px; top: 40px; bottom: 0; width: 2px;
  background: var(--azul);
  transform-origin: top center; scale: 1 0;
  transition: scale .7s var(--ease);
}
.tl li:last-child::after { display: none; }
.tl h3 { transition: color .3s; }
.tl--anim li:not(.done):not(.now) .tl__n { background: var(--blanco); box-shadow: inset 0 0 0 2px var(--linea); color: var(--tinta-2); }
.tl--anim li:not(.done):not(.now) h3 { color: var(--tinta-2); }
.tl--anim li.done::after { scale: 1 1; }
.tl--anim li.done .tl__n { background: var(--azul); box-shadow: none; color: var(--blanco); }
.tl--anim li.done .tl__n b { display: none; }
.tl--anim li.done .tl__n svg { display: block; }
.tl--anim li.now .tl__n { background: var(--amarillo); box-shadow: none; color: var(--tinta); }
.tl--anim li.now .tl__n::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--amarillo);
  animation: pulso 1.4s ease-out infinite;
}
@keyframes pulso { from { opacity: 1; scale: .85; } to { opacity: 0; scale: 1.35; } }

.tl-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.tl-play {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px 0 12px;
  border: 0; border-radius: var(--r-pill);
  background: var(--blanco); box-shadow: 0 0 0 1px var(--linea);
  color: var(--tinta); font: 600 .875rem/1 var(--f-texto);
  cursor: pointer;
}
.tl-play:hover { box-shadow: 0 0 0 1.5px var(--azul); }
.tl-play .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.tl h3 { font-family: var(--f-display); font-size: 1.125rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; padding-top: 8px; }
.tl p { font-size: .875rem; color: var(--tinta-2); margin-top: 2px; }
@media (min-width: 1024px) {
  .tl { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
  .tl li { grid-template-columns: 1fr; gap: 14px; padding-bottom: 0; }
  .tl li::before { left: 48px; right: -8px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .tl li::after { left: 48px; right: -8px; top: 19px; bottom: auto; width: auto; height: 2px; transform-origin: left center; scale: 0 1; }
  .tl--anim li.done::after { scale: 1 1; }
  .tl h3 { padding-top: 0; }
}

.taller-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .taller-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .taller-grid .fig-phone { grid-column: 2; grid-row: 1 / span 2; }
}
.kanban { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 560px) { .kanban { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kcol { border-radius: 14px; background: var(--niebla); padding: 8px; min-width: 0; }
.kcol__h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 2px 4px 6px; font-size: .6875rem; font-weight: 600; }
.kcard { border-radius: 10px; background: var(--blanco); padding: 8px; font-size: .6875rem; line-height: 1.3; box-shadow: 0 1px 2px rgba(10, 27, 51, .1); }
.kcard b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.kcol.wait { background: var(--amarillo-claro); }

.phone {
  position: relative;
  width: 296px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  margin-inline: auto;
  padding: 10px;
  border-radius: 54px;
  /* marco de titanio: borde claro, canal oscuro y sombra de apoyo */
  background: linear-gradient(150deg, #5d6470 0%, #22262c 22%, #121417 50%, #2a2e35 78%, #6b727e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .22),
    inset 0 0 0 5px #0a0b0d,
    0 2px 4px rgba(10, 27, 51, .25),
    0 50px 90px -30px rgba(10, 27, 51, .55),
    0 20px 40px -20px rgba(10, 27, 51, .35);
  font-size: .8125rem; line-height: 1.4;
}
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #3b4048, #1a1d21); }
.phone__btn--accion { left: -2px; top: 108px; height: 26px; }
.phone__btn--vol1 { left: -2px; top: 152px; height: 48px; }
.phone__btn--vol2 { left: -2px; top: 210px; height: 48px; }
.phone__btn--power { right: -2px; top: 170px; height: 76px; background: linear-gradient(270deg, #3b4048, #1a1d21); }
.phone__screen {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  border-radius: 44px;
  background: var(--blanco);
  overflow: hidden;
}
.phone__status {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 4px 24px 0 32px; flex: none;
  color: var(--tinta);
}
.phone__time { font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; }
.phone__island {
  position: absolute; left: 50%; top: 11px;
  width: 86px; height: 26px; margin-left: -43px;
  border-radius: var(--r-pill); background: #000;
}
.phone__sys { display: flex; align-items: center; gap: 4px; }
.phone__sys svg:nth-child(1) { width: 15px; height: 10px; }
.phone__sys svg:nth-child(2) { width: 14px; height: 10px; }
.phone__sys svg:nth-child(3) { width: 23px; height: 11px; }
.phone__sys svg { fill: currentColor; display: block; }
.phone__url {
  display: flex; align-items: center; justify-content: center; gap: 5px; flex: none;
  margin: 0 14px 4px; padding: 7px 10px;
  border-radius: 12px;
  background: var(--niebla-2);
  font-size: .75rem; font-weight: 600; color: var(--tinta-2);
}
.phone__body { flex: 1; padding: 12px 16px 26px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.phone__home {
  position: absolute; left: 50%; bottom: 8px;
  width: 112px; height: 5px; margin-left: -56px;
  border-radius: var(--r-pill); background: var(--tinta);
}
.phone__shop { font-size: .75rem; color: var(--tinta-2); }
.ptl { display: grid; gap: 2px; }
.ptl li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: .75rem; }
.ptl li i { width: 12px; height: 12px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--linea); }
.ptl li.done i { background: var(--azul); box-shadow: none; }
.ptl li.now i { background: var(--amarillo); box-shadow: 0 0 0 3px rgba(255, 184, 0, .3); }
.ptl li.now { font-weight: 600; }
.ptl li.todo { color: var(--tinta-2); }
.pbox { border-radius: 14px; background: var(--niebla); padding: 12px; }
.pfotos { display: grid; gap: 6px; }
.pfotos div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pfotos i { display: grid; place-items: center; height: 46px; border-radius: 10px; background: var(--niebla-2); color: var(--tinta-2); }
.pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pbtns .ui-btn { transition: scale .15s, background-color .15s; }
.pbtns .ui-btn.pulsado { scale: .92; background: var(--amarillo-hover); }
.ph-ok {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--ok-bg); color: var(--ok);
  font-weight: 600; font-size: .75rem; line-height: 1.35;
}
.ph-estado.salta { animation: salta .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes salta { from { scale: .7; opacity: 0; } to { scale: 1; opacity: 1; } }
.phone .ptl li i { transition: background-color .3s, box-shadow .3s; }
.phone .ptl li { transition: color .3s; }
@media (prefers-reduced-motion: reduce) {
  .tl--anim li.now .tl__n::after, .ph-estado.salta { animation: none; }
}

/* ---------- 15. Punto de venta ---------- */
.flist { display: grid; margin-top: 28px; }
.flist li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--linea); }
.flist li:last-child { border-bottom: 1px solid var(--linea); }
.flist .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--amarillo-claro); color: var(--tinta); }
.flist h3 { font-family: var(--f-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.flist p { font-size: .9375rem; color: var(--tinta-2); margin-top: 2px; }

/* Punto de venta: dos tarjetas bajo la caja */
#ventas .split { align-items: center; }
.pcards { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .pcards { grid-template-columns: 1fr 1fr; } }
.pcard {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 18px 18px;
  border-radius: 18px; background: var(--blanco);
  box-shadow: 0 0 0 1px rgba(20, 24, 29, .08), var(--sombra-ventana);
  font-size: .8125rem;
}
.pcard__t { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.pcard__t .ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--amarillo-claro); color: var(--tinta); }
.pcard__t .i { width: 18px; height: 18px; }
.cupo, .turno { display: grid; gap: 8px; margin-top: auto; }
.cupo__top, .cupo__pie, .turno__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cupo__top b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cupo__bar { height: 10px; border-radius: var(--r-pill); background: var(--niebla-2); overflow: hidden; }
.cupo__bar i { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--azul); }
.cupo__pie { font-size: .75rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.turno .pay__line { padding: 6px 0; border-top: 1px solid var(--linea-suave); }
.turno__btn { display: grid; place-items: center; min-height: 34px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--tinta); font-weight: 600; font-size: .75rem; }

.pos { display: grid; gap: 14px; }
@container (min-width: 560px) { .pos { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--niebla); color: var(--tinta-2); }
.cart li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--linea-suave); }
.cart .q { color: var(--tinta-2); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.cart .p { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pay { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 14px; background: var(--niebla); }
.pay__tot { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--linea); }
.pay__tot .ui-big { font-size: 1.625rem; }
.pay__line { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; }
.pay__line span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--niebla-2); }
.doc-toggle span { text-align: center; padding: 6px; border-radius: var(--r-pill); font-weight: 600; font-size: .75rem; }
.doc-toggle span.on { background: var(--tinta); color: var(--blanco); }
.disc { display: flex; align-items: center; gap: 6px; font-size: .6875rem; color: var(--tinta-2); margin-top: 8px; }
.cobrar { width: 100%; min-height: 42px; font-size: .8125rem; }

/* ---------- 16. Inventario ---------- */
.recv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--niebla); font-size: .75rem; }

/* Inventario: la pantalla de stock y, al lado, la etiqueta en amarillo */
.inv { display: grid; gap: 16px; }
.inv__main { min-width: 0; }
@media (min-width: 1024px) { .inv { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; } }
.tile {
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0; padding: 22px;
  border-radius: var(--r-panel);
}
@media (min-width: 640px) { .tile { padding: 28px; } }
.tile__h { display: flex; align-items: center; gap: 12px; }
.tile__h .ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--blanco); color: var(--azul); box-shadow: 0 1px 2px rgba(10, 27, 51, .08); }
.tile h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.tile--etq {
  background: radial-gradient(90% 70% at 10% 0%, #ffd34d, transparent 65%), var(--amarillo);
  box-shadow: 0 24px 40px -24px rgba(181, 105, 0, .7);
}

/* Etiqueta con código de barras */
.etq-wrap { flex: 1; display: grid; place-items: center; padding: 10px 0; }
.etq {
  width: min(100%, 260px);
  padding: 16px 18px 12px;
  border-radius: 14px;
  background: var(--blanco); color: var(--tinta);
  box-shadow: var(--sombra-objeto);
  rotate: -3deg;
}
.etq__n { font-size: .875rem; font-weight: 600; }
.etq__p { font-family: var(--f-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.etq__bc { display: block; width: 100%; height: 50px; fill: var(--tinta); }
.etq__code { margin-top: 4px; font-size: .6875rem; letter-spacing: .14em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- 18. Plan ----------
   Un solo plan, con el diseño original: a la izquierda, en amarillo, el nombre, el precio + IVA,
   los botones y el total con IVA; a la derecha, qué incluye y las condiciones.
   landing.js actualiza precio, total, usuarios y sucursales por data-plan y data-campo. */
.plan {
  display: grid;
  border-radius: 32px;
  overflow: hidden;
  background: var(--blanco);
  box-shadow: 0 0 0 1px var(--linea), var(--sombra-ventana);
}
.plan__main { display: grid; gap: 16px; align-content: start; padding: 28px 24px; background: var(--amarillo); }
.plan__kind { font-weight: 600; font-size: .9375rem; }
.plan__name { font-family: var(--f-display); font-size: 3.5rem; font-weight: 800; letter-spacing: -0.022em; line-height: .95; }
.plan__price { display: grid; gap: 6px; }
.plan__monto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan__neto {
  font-family: var(--f-display); font-size: 2.5rem; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.plan__iva { font-weight: 600; font-size: 1rem; }
.plan__per { font-size: .9375rem; }
.plan__ctas { display: grid; gap: 10px; }
.plan__ctas .btn--ghost:hover { background: var(--tinta); color: var(--amarillo); }
.plan__fine { font-size: .875rem; }
.plan__fine span { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__inc { display: grid; gap: 24px; padding: 28px 24px; }
.plan__inc h4 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.plan__mods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }

.plan dl { display: grid; }
.plan dl > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--linea-suave); }
.plan dt { font-weight: 600; font-size: .875rem; }
.plan dd { font-size: .9375rem; color: var(--tinta-2); }
.plan__lim { display: block; }
@media (min-width: 768px) {
  .plan dl > div { grid-template-columns: 210px 1fr; gap: 16px; align-items: baseline; }
}
@media (min-width: 1024px) {
  .plan { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .plan__main { padding: 40px; }
  .plan__inc { padding: 40px; }
}

.custom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 14px; padding: 20px 26px;
  border-radius: var(--r-card);
  background: var(--blanco); box-shadow: 0 0 0 1px var(--linea);
}
.custom p { font-family: var(--f-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; }
.custom__links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .custom__links, .custom__links li, .custom__links .btn { width: 100%; } }

/* ---------- 19. Cómo empezar ---------- */
.start { display: grid; gap: 28px; }
.start li { position: relative; display: grid; gap: 10px; align-content: start; }
.start__n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--amarillo);
  font-family: var(--f-display); font-weight: 800; font-size: 1.375rem;
}
.start h3 { font-family: var(--f-display); font-size: 1.375rem; font-weight: 750; letter-spacing: -0.014em; line-height: 1.15; margin-top: 6px; }
.start p { color: var(--tinta-2); font-size: .9375rem; max-width: 34ch; }
@media (min-width: 768px) { .start { grid-template-columns: repeat(2, 1fr); } }
/* Celular y tablet: número a la izquierda; título y texto a la derecha */
@media (max-width: 1023px) {
  .start li { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: start; }
  .start__n { grid-row: 1 / span 2; }
  .start h3 { grid-column: 2; margin-top: 2px; font-size: 1.25rem; }
  .start p { grid-column: 2; }
}
/* Celular: los cuatro pasos unidos por una línea vertical */
@media (max-width: 767px) {
  .start { gap: 0; margin-top: 8px; }
  .start li { padding-bottom: 28px; }
  .start li:last-child { padding-bottom: 0; }
  .start li:not(:last-child)::before {
    content: ""; position: absolute; left: 25px; top: 62px; bottom: 6px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--linea) 0 8px, transparent 8px 14px);
  }
}
@media (min-width: 1024px) {
  .start { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .start li:not(:last-child)::after {
    content: ""; position: absolute; left: 64px; right: -20px; top: 25px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--linea) 0 8px, transparent 8px 14px);
  }
}

/* ---------- 19b. App para Android y iPhone ----------
   Adaptada de la sección «app» de la landing de MiAplicación: fondo azul marino, acento amarillo e insignias en tinta.
   Los teléfonos son marcos en CSS con capturas reales de la app. --pw es el ancho del iPhone y todo escala con él. */
.apps { display: grid; gap: 40px; align-items: center; }
.apps__txt { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.apps__txt .head { margin-bottom: 0; }
.apps__lista li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--o-linea);
  font-weight: 500; line-height: 1.45;
}
.apps__lista li:first-child { border-top: 1px solid var(--o-linea); }
.apps__lista .i { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--amarillo); color: var(--tinta); }
.apps__login { max-width: 520px; color: var(--o-texto-2); font-size: 1rem; }

.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 8px 12px;
  border: 1.5px solid var(--o-linea); border-radius: 14px;
  background: var(--tinta); color: var(--o-texto);
}
a.store { text-decoration: none; transition: border-color .2s, transform .2s; }
a.store:hover { color: var(--o-texto); border-color: var(--amarillo); transform: translateY(-2px); }
a.store:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.store svg { flex-shrink: 0; width: 22px; height: 22px; fill: currentColor; }
.store__t { display: flex; flex-direction: column; gap: 3px; font: 700 17px/1.05 var(--f-display); letter-spacing: -.01em; }
.store__t small { font: 500 11px/1.2 var(--f-texto); letter-spacing: .08em; text-transform: uppercase; color: var(--o-texto-2); }
.store--pronto { border-style: dashed; }
.store--pronto small { color: var(--amarillo); }

/* Escena: un Android atrás y un iPhone adelante, superpuestos y con perspectiva leve */
.apps__fones { --pw: clamp(140px, 44vw, 280px); position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-start; padding: 28px 0 56px; }
.apps__fones::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%;
  width: min(560px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 184, 0, .2), rgba(46, 144, 250, .08) 62%, transparent);
  pointer-events: none;
}
.apps__fones::after {
  content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: 18px; height: 34px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}
.fono {
  --w: var(--pw); --rim: calc(var(--w) * .013); --bez: calc(var(--w) * .022); --rad: calc(var(--w) * .165);
  position: relative; flex-shrink: 0; width: var(--w); padding: var(--rim); border-radius: var(--rad);
  background: linear-gradient(135deg, var(--metal-claro) 0%, var(--metal) 16%, var(--metal-oscuro) 50%, var(--metal) 80%, var(--metal-claro) 100%);
  box-shadow: 0 60px 90px -40px rgba(0, 0, 0, .85), 0 26px 44px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.fono__cuerpo { padding: var(--bez); border-radius: calc(var(--rad) - var(--rim)); background: var(--cristal); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.fono__pantalla {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  aspect-ratio: 1320 / 2868; border-radius: calc(var(--rad) - var(--rim) - var(--bez));
  background: var(--blanco); color: var(--tinta);
}
.fono__pantalla img { display: block; flex: 1 1 0; min-height: 0; width: 100%; height: auto; object-fit: cover; object-position: top center; }
/* reflejo del vidrio */
.fono__pantalla::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, .05) 24%, transparent 40%, transparent 80%, rgba(255, 255, 255, .05) 100%);
}
.fono__barra {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--w) * .115); padding: 0 calc(var(--w) * .075) 0 calc(var(--w) * .1);
  font: 600 calc(var(--w) * .044)/1 var(--f-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.fono__ico { display: flex; align-items: center; gap: calc(var(--w) * .014); }
.fono__ico svg { display: block; width: auto; height: calc(var(--w) * .038); fill: currentColor; }
.fono__isla { position: absolute; top: calc(var(--w) * .03); left: 50%; width: calc(var(--w) * .28); height: calc(var(--w) * .082); transform: translateX(-50%); border-radius: var(--r-pill); background: var(--cristal); }
.fono__isla::after, .fono__cam { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--lente), var(--cristal) 68%); }
.fono__isla::after { right: 16%; top: 50%; width: calc(var(--w) * .03); height: calc(var(--w) * .03); transform: translateY(-50%); }
.fono__cam { top: calc(var(--w) * .034); left: 50%; width: calc(var(--w) * .042); height: calc(var(--w) * .042); transform: translateX(-50%); box-shadow: 0 0 0 calc(var(--w) * .005) var(--cristal); }
/* botones laterales */
.fono .boton { position: absolute; width: calc(var(--w) * .011); border-radius: 2px; background: linear-gradient(90deg, var(--boton-claro), var(--boton-oscuro)); }
.fono .boton--izq { left: calc(var(--w) * -.008); }
.fono .boton--der { right: calc(var(--w) * -.008); background: linear-gradient(90deg, var(--boton-oscuro), var(--boton-claro)); }
.fono--ios .boton--1 { top: 16%; height: 4.5%; }
.fono--ios .boton--2 { top: 23.5%; height: 8.5%; }
.fono--ios .boton--3 { top: 34%; height: 8.5%; }
.fono--ios .boton--4 { top: 26%; height: 12%; }
.fono--ios .boton--5 { top: 58%; height: 6%; }
.fono--ios { z-index: 2; transform: perspective(1800px) rotateY(12deg) rotateZ(2deg); }
/* Android: esquinas menos redondas, cámara perforada y barra de estado propia; la pantalla toma el alto de la captura */
.fono--android {
  --w: calc(var(--pw) * .94); --rad: calc(var(--w) * .125); --bez: calc(var(--w) * .03);
  z-index: 1; margin-top: calc(var(--pw) * .17); margin-right: calc(var(--pw) * -.2);
  transform: perspective(1800px) rotateY(12deg) rotateZ(-4deg);
}
.fono--android .fono__pantalla { aspect-ratio: auto; }
.fono--android .fono__pantalla img { flex: none; }
.fono--android .fono__barra { height: calc(var(--w) * .105); padding: 0 calc(var(--w) * .075); font-size: calc(var(--w) * .04); font-weight: 500; }
.fono--android .boton--1 { top: 21%; height: 6.5%; }
.fono--android .boton--2 { top: 31%; height: 13%; }

@media (min-width: 640px) {
  .stores { display: flex; flex-wrap: wrap; }
  .store { gap: 12px; padding: 8px 22px 8px 16px; }
  .store svg { width: 26px; height: 26px; }
  .store__t { font-size: 19px; }
}
@media (min-width: 1024px) {
  .apps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .apps__fones { --pw: min(280px, 22.5vw); }
}

/* ---------- 20. Preguntas frecuentes ---------- */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 64px; align-items: start; }
  .faq-layout .head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
}
.faq { border-radius: var(--r-card); background: var(--blanco); box-shadow: 0 0 0 1px var(--linea); padding: 4px 20px; }
@media (min-width: 768px) { .faq { padding: 8px 28px; } }
.faq details + details { border-top: 1px solid var(--linea-suave); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i {
  width: 34px; height: 34px; padding: 8px; flex: none;
  border-radius: 50%;
  background: var(--niebla); color: var(--tinta);
  transition: transform .25s var(--ease), background-color .15s;
}
.faq summary:hover .i { background: var(--amarillo-claro); }
.faq details[open] summary .i { transform: rotate(45deg); background: var(--amarillo); }
.faq .ans { padding: 0 48px 22px 0; color: var(--tinta-2); }
.faq .ans p + p { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .faq summary .i { transition: none; } }

/* ---------- 21. CTA final ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid; gap: 28px;
  padding: 72px 24px 48px;
  border-radius: var(--r-seccion);
  background: var(--amarillo);
}
.cta__cinta {
  position: absolute; z-index: -1;
  right: -150px; top: 30px;
  width: 520px; height: 40px;
  transform: rotate(32deg);
  background: var(--rayas);
  box-shadow: 0 0 0 3px var(--tinta);
}
.cta h2 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem);
  font-weight: 800; line-height: .95; letter-spacing: -0.022em;
  max-width: 12ch;
  text-wrap: balance;
}
.cta__side { display: grid; gap: 14px; justify-items: start; }
.cta__side p { font-size: 1.0625rem; }
.cta .signin-line { color: var(--tinta); }
@media (max-width: 639px) { .cta__cinta { right: -250px; top: 14px; } }
@media (min-width: 1024px) {
  .cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; padding: 96px 72px 80px; column-gap: 48px; }
}

/* ---------- 22. Footer ---------- */
.site-footer { background: var(--azul-hondo); color: var(--o-texto); padding-block: 64px 32px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--o-texto-2); font-size: .9375rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.footer-col h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--o-texto-2); }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amarillo); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--o-linea);
  font-size: .875rem; color: var(--o-texto-2);
}
/* Enlace dentro de la frase: subrayado para distinguirlo del texto, amarillo al pasar el mouse */
.footer-bottom a {
  color: var(--o-texto); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: var(--o-texto-2);
}
.footer-bottom a:hover { text-decoration-color: var(--amarillo); text-decoration-thickness: 3px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; } }

/* ---------- 23. Barra fija inferior (móvil) ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 -1px 0 var(--linea), 0 -10px 30px -12px rgba(10, 27, 51, .25);
}
.mbar .btn { flex: 1; }
.mbar .btn { min-height: 50px; }
.mbar .mbar__signin { flex: 0 0 auto; padding: 0 22px; background: var(--blanco); border-color: var(--linea); color: var(--tinta); }
.mbar .mbar__signin:hover, .mbar .mbar__signin:active { border-color: var(--tinta); background: var(--blanco); color: var(--tinta); }
@media (min-width: 768px) { .mbar { display: none; } }

/* ---------- 23a. Botón flotante de WhatsApp ----------
   Enlace simple a wa.me. En celular sube sobre la barra fija inferior para no taparla. */
.wa-float {
  position: fixed; z-index: 45;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: var(--blanco);
  box-shadow: 0 0 0 2px var(--blanco), var(--sombra-objeto);
  text-decoration: none;
  transition: box-shadow .2s, translate .2s var(--ease);
}
.wa-float .i { width: 30px; height: 30px; }
.wa-float:hover { box-shadow: 0 0 0 2px var(--blanco), var(--sombra-2); }
.wa-float:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .wa-float:hover { translate: 0 -2px; } }
@media (max-width: 767px) {
  .wa-float { right: 14px; width: 52px; height: 52px; bottom: calc(var(--mbar-h) + 12px + env(safe-area-inset-bottom, 0px)); }
  .wa-float .i { width: 28px; height: 28px; }
}
@media (min-width: 1024px) { .wa-float { right: 24px; bottom: 24px; } }

/* ---------- 23b. Profundidad: luz, grano, capas y ritmo de color ----------
   Inspirado en: secciones oscuras intercaladas para descansar la vista, sombras en capas
   teñidas con una sola fuente de luz, degradados suaves hechos con CSS y grano de papel. */

/* Inicio: luz cálida abajo a la izquierda, fría arriba a la derecha, y grano */
.hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(55% 45% at 6% 96%, rgba(255, 184, 0, .24), transparent 70%),
    radial-gradient(45% 40% at 98% 4%, rgba(46, 144, 250, .13), transparent 70%),
    radial-gradient(40% 30% at 50% 30%, rgba(255, 255, 255, .8), transparent 70%),
    var(--niebla);
}
/* Para quién es: continúa la luz cálida del borde inferior del inicio (mismo ancho de elipse e
   intensidad en el borde), así entre ambas secciones no se ve un corte */
.quien {
  position: relative; isolation: isolate;
  background: radial-gradient(55% 75% at 6% 0%, rgba(255, 184, 0, .21), transparent 70%), var(--niebla);
}
.hero::before, .quien::before, .band--azul::before, .site-footer::before, .cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grano); opacity: .05;
  pointer-events: none;
}
.band--azul::before, .site-footer::before { background-image: var(--grano-claro); opacity: .045; }
.cta::before { z-index: -2; opacity: .08; }

/* Los tres paneles del inicio: brillo arriba y sombra de su propio color */
.tri__panel--arriendo {
  background: radial-gradient(90% 60% at 12% 0%, #ffd34d, transparent 65%), var(--amarillo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 30px 50px -28px rgba(181, 105, 0, .75);
}
.tri__panel--taller {
  background: radial-gradient(90% 60% at 88% 0%, rgba(30, 62, 108, .7), transparent 65%), var(--azul-hondo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 50px -28px rgba(10, 27, 51, .8);
}
.tri__panel--venta {
  background: radial-gradient(90% 60% at 50% 0%, #f0f5fb, transparent 65%), var(--azul-claro);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 30px 50px -28px rgba(18, 41, 74, .5);
}

/* Secciones en azul marino, de borde a borde: cortan la seguidilla de fondos claros */
.band--azul {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--o-texto);
  background:
    radial-gradient(55% 60% at 0% 0%, rgba(30, 62, 108, .55), transparent 70%),
    radial-gradient(45% 55% at 100% 100%, rgba(46, 144, 250, .06), transparent 70%),
    var(--azul-hondo);
}
.band--azul .h2 { color: var(--o-texto); }
.band--azul .lead { color: var(--o-texto-2); }
.band--azul .antes { border-top-color: var(--o-linea); }
.band--azul .antes li { border-bottom-color: var(--o-linea); }
.band--azul .antes__hoy { color: var(--o-texto-2); }
.band--azul .antes__x { background: var(--o-capa); color: var(--o-texto-2); }
.band--azul .antes__flecha { color: var(--amarillo); }
.band--azul .antes__ok { box-shadow: 0 0 0 5px rgba(255, 184, 0, .16); }
.band--azul .plan { color: var(--tinta); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 48px 90px -36px rgba(0, 0, 0, .6); }
.band--azul .custom { background: var(--o-capa); box-shadow: inset 0 0 0 1px var(--o-linea); color: var(--o-texto); }
@media (min-width: 768px) { .band--azul .antes__yk { font-size: 1.5rem; } }
.band--azul .modlabel { background: rgba(255, 255, 255, .1); color: var(--o-texto); }
.band--azul .modlabel .i { background: var(--amarillo); color: var(--tinta); }
.band--azul .cap { color: var(--o-texto-2); }
.band--azul .phone__screen, .band--azul .kanban { color: var(--tinta); }

/* Servicio técnico sobre azul: recorrido en blanco y amarillo */
.band--azul .tl li::before { background: var(--o-linea); }
.band--azul .tl li::after { background: var(--blanco); }
.band--azul .tl__n { background: var(--blanco); box-shadow: none; color: var(--azul); }
.band--azul .tl li.key .tl__n { background: var(--amarillo); color: var(--tinta); }
.band--azul .tl--anim li:not(.done):not(.now) .tl__n { background: transparent; box-shadow: inset 0 0 0 2px var(--o-linea); color: var(--o-texto-2); }
.band--azul .tl--anim li:not(.done):not(.now) h3 { color: var(--o-texto-2); }
.band--azul .tl--anim li.done .tl__n { background: var(--blanco); color: var(--azul); }
.band--azul .tl--anim li.now .tl__n { background: var(--amarillo); color: var(--tinta); box-shadow: var(--sombra-amarilla); }
.band--azul .tl-play { background: rgba(255, 255, 255, .1); color: var(--o-texto); box-shadow: inset 0 0 0 1px var(--o-linea); }
.band--azul .tl-play:hover { box-shadow: inset 0 0 0 1.5px var(--amarillo); }
.band--azul .win { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -28px rgba(0, 0, 0, .55); }
.band--azul .luz--tel::before {
  background:
    radial-gradient(42% 40% at 50% 40%, rgba(46, 144, 250, .22), transparent 70%),
    radial-gradient(30% 25% at 50% 80%, rgba(255, 255, 255, .08), transparent 70%);
}
.band--azul .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), inset 0 0 0 5px #0a0b0d, 0 2px 4px rgba(0, 0, 0, .3), 0 50px 90px -30px rgba(0, 0, 0, .7); }

/* Una frase clave por título. El amarillo de la marca solo sobre azul (8,4:1); sobre los fondos claros
   quedaba en 1,6:1, así que ahí va en azul marino, como "Todo en un solo sistema" del inicio. */
.h2 mark { background: none; color: var(--azul); }
.band--azul .h2 mark { color: var(--amarillo); }

/* Tarjetas que descansan y se elevan al pasar el mouse */
.mod { box-shadow: var(--sombra-1); }
.mod:hover { box-shadow: var(--sombra-2); }
.mod__ic { transition: background-color .2s, color .2s; }
.mod:hover .mod__ic { background: var(--amarillo); color: var(--tinta); }
.mod--plan:hover { box-shadow: 0 32px 52px -24px rgba(181, 105, 0, .85); }
.mod--plan { background: radial-gradient(90% 70% at 10% 0%, #ffd34d, transparent 65%), var(--amarillo); box-shadow: 0 24px 40px -24px rgba(181, 105, 0, .7); }
.faq, .custom, .band--niebla .step__body, .quien__lista { box-shadow: var(--sombra-1); }
.faq details { transition: background-color .2s; }

/* Botones con cuerpo: brillo arriba y sombra del mismo color */
.btn { transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, translate .2s var(--ease), transform .15s var(--ease); }
.btn--primary { box-shadow: var(--sombra-amarilla); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(120, 80, 0, .2), 0 16px 28px -12px rgba(204, 140, 0, .85); }
.btn--dark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 22px -12px rgba(10, 27, 51, .8); }
@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover, .btn--dark:hover { translate: 0 -2px; }
}

/* Números y códigos en amarillo con relieve */
.step__n, .start__n { box-shadow: var(--sombra-amarilla); }
.start__n { box-shadow: 0 0 0 7px rgba(255, 184, 0, .16), var(--sombra-amarilla); }
.band--niebla .step__n { box-shadow: 0 0 0 6px var(--niebla), var(--sombra-amarilla); }

/* Luz de color detrás de las maquetas */
.luz { position: relative; isolation: isolate; }
.luz::before {
  content: ""; position: absolute; z-index: -1; inset: -10% -8% -12%;
  pointer-events: none;
  background:
    radial-gradient(45% 45% at 28% 35%, rgba(255, 184, 0, .26), transparent 70%),
    radial-gradient(45% 50% at 78% 70%, rgba(46, 144, 250, .16), transparent 70%);
}
.luz--tel::before {
  inset: -4% -30% -8%;
  background:
    radial-gradient(40% 40% at 50% 38%, rgba(255, 184, 0, .30), transparent 70%),
    radial-gradient(40% 45% at 50% 75%, rgba(46, 144, 250, .16), transparent 70%);
}

/* Sello que flota sobre la caja: la boleta de esta venta ya fue aceptada */
.pos-fig { position: relative; }
.flota {
  position: absolute; z-index: 2; right: 16px; top: -44px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 10px;
  border-radius: 16px;
  background: var(--blanco);
  box-shadow: var(--sombra-2);
  font-weight: 600; font-size: .8125rem; line-height: 1.2;
  rotate: 2deg;
}
.flota .i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.flota small { display: block; font-size: .75rem; font-weight: 600; color: var(--ok); }
@media (max-width: 1023px) { .pos-fig { margin-top: 16px; } }
@media (min-width: 1024px) { .flota { right: -18px; top: -46px; } }
.motion .flota[data-m] { transition-delay: .7s; }

/* El cierre y el pie también con luz y grano */
.cta {
  background:
    radial-gradient(70% 90% at 0% 0%, #ffd34d, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, #f5a300, transparent 65%),
    var(--amarillo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 40px 70px -40px rgba(181, 105, 0, .7);
}
.site-footer {
  position: relative; isolation: isolate;
  background: radial-gradient(50% 70% at 100% 0%, rgba(46, 144, 250, .12), transparent 70%), var(--azul-hondo);
}

/* ---------- 24. Movimiento al hacer scroll ----------
   landing.js pone la clase .motion en <html> y marca cada pieza con data-m="tipo".
   Sin JavaScript, o con "reducir movimiento", no hay estados ocultos: todo se ve.
   Solo se animan opacity y las propiedades de transformación (translate, scale, rotate). */
.motion [data-m] {
  transition-property: opacity, translate, scale, rotate;
  transition-duration: .7s, .9s, .9s, .9s;
  transition-timing-function: var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.motion [data-m="sube"]:not(.is-in)   { opacity: 0; translate: 0 36px; }
.motion [data-m="izq"]:not(.is-in)    { opacity: 0; translate: -44px 0; }
.motion [data-m="der"]:not(.is-in)    { opacity: 0; translate: 44px 0; }
.motion [data-m="cae"]:not(.is-in)    { opacity: 0; translate: 0 -18px; }
.motion [data-m="escala"]:not(.is-in) { opacity: 0; translate: 0 32px; scale: .94; }
.motion [data-m="pop"] { transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); transition-duration: .35s, .6s, .6s, .6s; }
.motion [data-m="pop"]:not(.is-in)    { opacity: 0; scale: .35; }
.motion [data-m="llena"] { transform-origin: left center; transition-duration: .2s, 1.3s, 1.3s, .2s; transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
.motion [data-m="llena"]:not(.is-in)  { scale: 0 1; }


/* Al activar el movimiento, las piezas pasan a su estado oculto sin transición */
.sin-trans *, .sin-trans *::before, .sin-trans *::after { transition: none !important; }

/* Inventario: la etiqueta cae girando */
.motion .etq[data-m] { transition-delay: .25s; }
.motion .etq[data-m]:not(.is-in) { rotate: -14deg; }

/* Títulos palabra por palabra */
.motion [data-m="palabras"] .w {
  display: inline-block;
  transition: opacity .6s var(--ease), translate .8s var(--ease);
  transition-delay: calc(var(--w) * 70ms);
}
.motion [data-m="palabras"]:not(.is-in) .w { opacity: 0; translate: 0 .55em; }

/* Líneas que se trazan: pasos del arriendo, recorrido del taller y cómo empezar */
.steps::before { transform-origin: top center; transition: scale 1.6s var(--ease) .1s; }
.motion .steps[data-m]:not(.is-in)::before { scale: 1 0; }

.tl li::before { transform-origin: top center; transition: scale .7s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 300ms); }
.motion .tl[data-m]:not(.is-in) li::before { scale: 1 0; }
@media (min-width: 1024px) {
  .tl li::before { transform-origin: left center; }
  .motion .tl[data-m]:not(.is-in) li::before { scale: 0 1; }
}
.start li::after { transform-origin: left center; transition: scale .8s var(--ease); transition-delay: calc(var(--i, 0) * 150ms + 350ms); }
.motion .start[data-m]:not(.is-in) li::after { scale: 0 1; }


/* El plano del generador se dibuja solo */
.motion .ficha__plano .trazo { stroke-dasharray: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.6, .1, .3, 1) .2s; }
.motion .ficha__plano[data-m]:not(.is-in) .trazo { stroke-dashoffset: 1; }
.motion .ficha__plano text { transition: opacity .6s ease 1.6s; }
.motion .ficha__plano .acc, .motion .ficha__plano .plate { transition: fill-opacity .6s ease 1.6s, stroke-dashoffset 2.2s cubic-bezier(.6, .1, .3, 1) .2s; }
.motion .ficha__plano [stroke-dasharray] { transition: opacity .6s ease 1.2s; }
.motion .ficha__plano[data-m]:not(.is-in) text,
.motion .ficha__plano[data-m]:not(.is-in) [stroke-dasharray] { opacity: 0; }
.motion .ficha__plano[data-m]:not(.is-in) .acc,
.motion .ficha__plano[data-m]:not(.is-in) .plate { fill-opacity: 0; }

/* La cinta de peligro cruza la esquina del cierre */
.cta__cinta { transition: translate 1.2s var(--ease) .35s; }
.motion .cta[data-m]:not(.is-in) .cta__cinta { translate: 45% -40%; }

/* Donde el navegador lo permite, la línea de los pasos crece al ritmo del scroll
   y los objetos del hero flotan a distintas velocidades */
@supports (animation-timeline: view()) {
  .motion .steps { view-timeline: --pasos block; }
  .motion .steps::before {
    animation: linea-y linear both;
    animation-timeline: --pasos;
    animation-range: entry 10% cover 60%;
  }
  @keyframes linea-y { from { scale: 1 0; } to { scale: 1 1; } }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hang { --flota: -34px; }
    .ot { --flota: -58px; }
    .hang, .ot {
      animation: flotar linear both;
      animation-timeline: scroll(root);
      animation-range: 0 700px;
    }
    @keyframes flotar { to { translate: 0 var(--flota); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion [data-m], .motion [data-m] .w {
    opacity: 1 !important; translate: none !important; scale: none !important; rotate: none !important; transition: none !important;
  }
  .motion .ficha__plano .trazo { stroke-dashoffset: 0 !important; }
}

/* ---------- 25. Impresión ---------- */
@media print {
  .site-header, .mbar, .wa-float, .cta__cinta { display: none !important; }
  body { padding: 0; background: var(--blanco); }
  .tri { overflow: visible; grid-auto-flow: row; }
  .motion [data-m], .motion [data-m] .w { opacity: 1 !important; translate: none !important; scale: none !important; rotate: none !important; }
  .motion .ficha__plano .trazo { stroke-dashoffset: 0 !important; }
}
