/* =========================================================
   JM Tec — estilos
   Paleta de la marca: Tuatara, Fuscous Gray, Dove Gray, Zorba, Cloud.
   El verde es solo WhatsApp: así el botón para escribir siempre resalta.
   ========================================================= */

/* Fuentes alojadas en el sitio (licencia SIL Open Font License). Un archivo por familia:
   son fuentes variables, así que traen todos los grosores. Solo caracteres latinos (incluye español). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.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;
}

/* Letra provisional: Arial escalada para medir lo mismo que Inter y Space Grotesk.
   Si las fuentes tardan (internet lento), el texto se muestra con esta y al cambiar no se mueve nada.
   Valores medidos en Chrome comparando cada fuente con Arial. */
@font-face {
  font-family: 'Inter fallback';
  font-weight: 400;
  src: local('Arial'), local('ArialMT');
  size-adjust: 106.35%;
  ascent-override: 91.21%;
  descent-override: 22.57%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter fallback';
  font-weight: 500;
  src: local('Arial'), local('ArialMT');
  size-adjust: 107.47%;
  ascent-override: 90.26%;
  descent-override: 22.33%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter fallback';
  font-weight: 600 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 101.45%;
  ascent-override: 95.61%;
  descent-override: 23.66%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Space Grotesk fallback';
  font-weight: 500 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 101.56%;
  ascent-override: 96.5%;
  descent-override: 28.56%;
  line-gap-override: 0%;
}

:root {
  --tuatara: #2a2928;
  --fuscous: #514f4e;
  --dove: #6e6b6a;
  --zorba: #999695;
  --cloud: #cac9c8;

  /* Derivados de la paleta para fondos claros y bordes */
  --papel: #f4f3f2;
  --blanco: #fbfbfa;
  --borde: #e2e1e0;
  --hueso: #f4f3f2;       /* texto casi blanco sobre fondos oscuros */
  --gris-panel: #353433;  /* entre Tuatara y Fuscous */

  --wa: #25d366;
  --wa-claro: #3ee07a;

  --foco: var(--tuatara);
  --radio: 20px;
  --sombra: 0 1px 2px rgb(42 41 40 / .05), 0 10px 30px -12px rgb(42 41 40 / .18);
  --alto-cabecera: 68px;

  --fuente: 'Inter', 'Inter fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fuente-titulo: 'Space Grotesk', 'Space Grotesk fallback', 'Inter', system-ui, sans-serif;
  --ancho: 1160px;
  --frenado: cubic-bezier(.16, 1, .3, 1); /* arranca rápido y frena suave */
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--alto-cabecera);
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tuatara);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--fuente-titulo);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }
/* Lo que está oculto (p. ej. Telegram sin configurar) no se muestra aunque tenga display propio */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 6px;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.saltar {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--hueso);
  color: var(--tuatara);
  font-weight: 600;
}
.saltar:focus { top: 12px; }

.icono { width: 20px; height: 20px; flex: none; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 1rem/1 var(--fuente);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.boton-wa { background: var(--wa); color: var(--tuatara); }
.boton-contorno { border-color: rgb(202 201 200 / .35); color: var(--hueso); }

@media (hover: hover) {
  .boton:hover { transform: translateY(-1px); }
  .boton-wa:hover { background: var(--wa-claro); }
  .boton-contorno:hover { border-color: var(--cloud); background: rgb(202 201 200 / .08); }
}

.boton-chico { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: .92rem; }
.boton-chico .icono { width: 18px; height: 18px; }
.boton-grande { min-height: 60px; padding: 0 32px; font-size: 1.08rem; }
.boton-grande .icono { width: 22px; height: 22px; }

.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--cloud);
  font-weight: 600;
  text-decoration: none;
  color: var(--tuatara);
  transition: border-color .15s ease;
}
.enlace-flecha svg { width: 18px; height: 18px; transition: transform .2s ease; }
.enlace-flecha:hover { border-color: var(--tuatara); }
.enlace-flecha:hover svg { transform: translateX(3px); }

/* Círculo con visto bueno */
.check {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tuatara);
  color: var(--blanco);
}
.check svg { width: 13px; height: 13px; }
.check-claro { background: var(--cloud); color: var(--tuatara); width: 20px; height: 20px; }
.check-claro svg { width: 12px; height: 12px; }

/* ---------- Cabecera ---------- */
.cabecera {
  --foco: var(--cloud);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(42 41 40 / .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.cabecera.con-borde { border-bottom-color: rgb(202 201 200 / .12); }

.cabecera-fila {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--alto-cabecera);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--hueso);
}
.logo-marca { width: 44px; height: 44px; }

.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--cloud);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.menu a:hover { background: rgb(202 201 200 / .1); color: var(--hueso); }

.menu-boton {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(202 201 200 / .25);
  border-radius: 10px;
  background: transparent;
  color: var(--hueso);
  cursor: pointer;
}
.menu-boton .icono { width: 22px; height: 22px; }
.menu-boton .icono-cerrar,
.menu-boton[aria-expanded="true"] .icono-abrir { display: none; }
.menu-boton[aria-expanded="true"] .icono-cerrar { display: block; }

/* ---------- Hero ---------- */
.hero {
  --foco: var(--cloud);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px);
  background: var(--tuatara);
  color: var(--cloud);
}

/* Cuadrícula tenue, como papel de plano */
.hero::before,
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(202 201 200 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(202 201 200 / .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 72% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 72% 40%, #000 25%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.insignia {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgb(202 201 200 / .2);
  border-radius: 999px;
  background: rgb(202 201 200 / .05);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cloud);
}
.punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 4px rgb(37 211 102 / .18);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 700;
  color: var(--hueso);
}

.hero-sub {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--cloud);
}

.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-confianza {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  color: var(--zorba);
}
.hero-confianza li { display: flex; align-items: center; gap: 8px; }

/* Circuitos animados (el motivo del logo). Solo cambian stroke, así que el costo es mínimo,
   y main.js los pausa cuando el hero sale de la pantalla. */
.circuito {
  position: absolute;
  width: min(460px, 70vw);
  height: auto;
  pointer-events: none;
}
.circuito-arriba { top: 0; right: 0; }
.circuito-abajo { bottom: 0; right: 0; scale: 1 -1; } /* el mismo dibujo, reflejado hacia abajo */
.circuito .traza { fill: none; stroke: rgb(202 201 200 / .16); stroke-width: 1.5; stroke-linejoin: round; }
.circuito .pulso {
  fill: none;
  stroke: var(--hueso);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 9 100;
  stroke-dashoffset: 9;
  animation: pulso 5s cubic-bezier(.45, 0, .55, 1) var(--d, 0s) infinite;
}
.circuito .nodo {
  fill: var(--tuatara);
  stroke: rgb(202 201 200 / .3);
  stroke-width: 1.5;
  animation: nodo 5s ease-out var(--d, 0s) infinite;
}
@keyframes pulso {
  0% { stroke-dashoffset: 9; }
  55%, 100% { stroke-dashoffset: -100; }
}
@keyframes nodo {
  0%, 50% { stroke: rgb(202 201 200 / .3); fill: var(--tuatara); }
  56% { stroke: var(--hueso); fill: rgb(202 201 200 / .45); }
  90%, 100% { stroke: rgb(202 201 200 / .3); fill: var(--tuatara); }
}
.hero.pausado .circuito * { animation-play-state: paused; }

/* Ilustración del hero */
.hero-visual { position: relative; isolation: isolate; padding: 0 0 64px 44px; }
/* Resplandor suave detrás de la ventana para darle profundidad */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -8% 0 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(202 201 200 / .13), transparent);
  pointer-events: none;
}

.ventana {
  overflow: hidden;
  border-radius: 14px;
  background: var(--papel);
  box-shadow: 0 40px 70px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06);
}
.ventana-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #e6e5e4;
  border-bottom: 1px solid #d9d8d7;
}
.ventana-barra > span { width: 10px; height: 10px; border-radius: 50%; background: var(--cloud); }
.ventana-barra > span:first-child { background: var(--zorba); }
.ventana-url {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 220px;
  height: 22px;
  margin-left: 12px;
  padding-left: 10px;
  border-radius: 6px;
  background: var(--blanco);
  font-size: .72rem;
  color: var(--dove);
}
.ventana-cuerpo { padding: 22px 26px 28px; }

.mini-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.mini-nav i { width: 36px; height: 8px; border-radius: 4px; background: var(--cloud); }
.mini-nav .mini-logo { width: 22px; height: 22px; margin-right: auto; border-radius: 6px; background: var(--tuatara); }
.mini-titulo { width: 84%; height: 18px; margin-bottom: 10px; border-radius: 5px; background: var(--tuatara); }
.mini-titulo.corto { width: 58%; }
.mini-texto {
  width: 70%;
  height: 8px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--cloud);
  box-shadow: 0 14px 0 var(--cloud);
}
.mini-boton { width: 128px; height: 32px; margin-top: 36px; border-radius: 8px; background: var(--wa); }
.mini-tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.mini-tarjetas i { height: 64px; border: 1px solid var(--borde); border-radius: 8px; background: var(--blanco); }

.diagnostico {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(270px, 72%);
  padding: 18px 20px;
  border: 1px solid rgb(202 201 200 / .12);
  border-radius: 14px;
  background: var(--gris-panel);
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / .6);
}
.diag-titulo {
  margin-bottom: 12px;
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: .95rem;
  color: var(--hueso);
}
.diagnostico ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.diagnostico li { display: flex; align-items: center; justify-content: space-between; color: var(--zorba); }
.diagnostico li b { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--hueso); }
.diagnostico li b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.diag-barra { height: 6px; margin-top: 16px; overflow: hidden; border-radius: 3px; background: rgb(202 201 200 / .15); }
.diag-barra i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cloud);
  transform-origin: left;
  animation: llenar 2.4s .5s cubic-bezier(.2, .7, .2, 1) both;
}
.diag-pie { margin-top: 8px; font-size: .78rem; color: var(--zorba); }

@keyframes llenar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(72px, 10vw, 120px) 0; }
.seccion-blanca { background: var(--blanco); }
.seccion-oscura { --foco: var(--cloud); background: var(--tuatara); color: var(--cloud); }

.seccion-cabeza { max-width: 640px; margin-bottom: clamp(40px, 6vw, 60px); }
.seccion-cabeza.centrada { margin-inline: auto; text-align: center; }

.antetitulo {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dove);
}
.seccion-oscura .antetitulo { color: var(--zorba); }

.seccion h2 { margin-top: 12px; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
.seccion-oscura h2 { color: var(--hueso); }
.seccion-cabeza > p:last-child:not(.antetitulo) { margin-top: 16px; font-size: 1.1rem; color: var(--fuscous); }

/* ---------- Servicios ---------- */
.servicios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.servicio {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra);
}
.servicio-cabeza { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.servicio-icono {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--tuatara);
  color: var(--cloud);
}
.servicio-icono svg { width: 26px; height: 26px; }
.servicio-num {
  font-family: var(--fuente-titulo);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dove);
}
.servicio h3 { font-size: clamp(1.4rem, 2.4vw, 1.65rem); }
.servicio > p { margin-top: 12px; color: var(--fuscous); }

.lista-check { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.lista-check li { display: flex; align-items: flex-start; gap: 12px; }
.lista-check .check { margin-top: 2px; }

.servicio-pie { margin-top: auto; padding-top: 32px; }

/* ---------- Sistemas ---------- */
.seccion-oscura .seccion-cabeza > p:last-child:not(.antetitulo) { color: var(--cloud); }

.sistema {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.sistema + .sistema { margin-top: clamp(72px, 10vw, 120px); }
/* Los sistemas pares van al revés: texto a la izquierda, ilustración a la derecha */
.sistema:nth-of-type(even) { grid-template-columns: .9fr 1.1fr; }
.sistema:nth-of-type(even) .sistema-vista { order: 2; }

/* Marco de la ilustración. Todo lo de adentro se mide en em y crece con el ancho del marco. */
.sistema-vista {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  padding: 7% 7% 13%;
  border: 1px solid rgb(202 201 200 / .12);
  border-radius: var(--radio);
  background: rgb(255 255 255 / .03);
}
.sistema-vista::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(202 201 200 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(202 201 200 / .06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 80%);
}

.pantalla {
  position: relative;
  overflow: hidden;
  border-radius: 1em;
  font-size: 11px;
  font-size: 2.1cqi;
  line-height: 1.3;
  background: var(--blanco);
  color: var(--tuatara);
  box-shadow: 0 40px 70px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06);
}
.pantalla-cuerpo > img { display: block; width: 100%; height: auto; }
.pantalla-barra {
  display: flex;
  align-items: center;
  gap: .5em;
  height: 2.6em;
  padding: 0 1.1em;
  background: #e6e5e4;
  border-bottom: 1px solid #d9d8d7;
}
.pantalla-barra > span { width: .8em; height: .8em; border-radius: 50%; background: var(--cloud); }
.pantalla-barra > span:first-child { background: var(--zorba); }
.pantalla-url {
  margin-left: 1em;
  padding: .25em .9em;
  border-radius: .5em;
  background: var(--blanco);
  font-size: .85em;
  color: var(--dove);
}

/* Aplicación de muestra */
.app { display: grid; grid-template-columns: 3.2em 1fr 15em; min-height: 22em; }
.app-inv { grid-template-columns: 3.2em 1fr; }
:where(.app) i { display: block; font-style: normal; }
.app-lateral { display: grid; align-content: start; gap: 1em; padding: 1.4em .9em; background: var(--tuatara); }
.app-lateral i { height: 1.4em; border-radius: .4em; background: rgb(202 201 200 / .25); }
.app-lateral i.activo { background: var(--cloud); }
.app-titulo { margin-bottom: 1em; font: 600 1.15em/1 var(--fuente-titulo); }

.pos-salon { padding: 1.4em; }
.pos-mesas { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.app .mesa {
  display: grid;
  place-items: center;
  height: 3.8em;
  border: 1.5px solid var(--cloud);
  border-radius: .7em;
  font: 600 1em/1 var(--fuente-titulo);
  color: var(--dove);
}
.app .mesa.ocupada { border-color: var(--tuatara); background: var(--tuatara); color: var(--hueso); }
.app .mesa.listo {
  position: relative;
  border-color: var(--zorba);
  background: var(--cloud);
  color: var(--tuatara);
}
.app .mesa.listo::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border: .2em solid var(--dove);
  border-radius: inherit;
  animation: latido 1.8s ease-out infinite;
}
@keyframes latido {
  from { transform: scale(1); opacity: .5; }
  to { transform: scale(1.3); opacity: 0; }
}
.pos-leyenda { display: flex; gap: 1.2em; margin-top: 1.3em; font-size: .85em; color: var(--dove); }
.pos-leyenda span { display: flex; align-items: center; gap: .45em; }
.pos-leyenda span::before { content: ""; width: .8em; height: .8em; border: 1.5px solid var(--cloud); border-radius: .25em; }
.pos-leyenda .l-ocupada::before { border-color: var(--tuatara); background: var(--tuatara); }
.pos-leyenda .l-listo::before { border-color: var(--zorba); background: var(--cloud); }

.pos-pedido { display: flex; flex-direction: column; padding: 1.4em; border-left: 1px solid var(--borde); background: var(--papel); }
.app-lineas { display: grid; gap: .7em; margin: 0; padding: 0; list-style: none; font-size: .9em; }
.app-lineas li,
.app-total { display: flex; justify-content: space-between; gap: .6em; }
.app-lineas b { font-weight: 600; }
.app-total { margin-top: auto; padding-top: .9em; border-top: 1px dashed var(--zorba); font-weight: 600; }
.app-total b { font-family: var(--fuente-titulo); font-size: 1.15em; }
.app-boton {
  display: grid;
  place-items: center;
  height: 2.8em;
  margin-top: .9em;
  border-radius: .6em;
  background: var(--tuatara);
  color: var(--hueso);
  font-weight: 600;
}

.inv-principal { padding: 1.4em; }
.inv-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; margin-bottom: 1.3em; }
.inv-resumen p { display: grid; gap: .35em; padding: .9em 1em; border: 1px solid var(--borde); border-radius: .7em; background: var(--papel); }
.inv-resumen span { font-size: .8em; color: var(--dove); }
.inv-resumen b { font: 700 1.3em/1 var(--fuente-titulo); }
.inv-tabla p {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: .6em;
  padding: .75em .3em;
  border-bottom: 1px solid var(--borde);
  font-size: .9em;
}
.inv-tabla p span:not(:first-child) { text-align: right; }
.inv-tabla .inv-cabeza { font-size: .72em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dove); }

/* Papel impreso: comanda de cocina / factura */
.ticket {
  position: absolute;
  left: 4%;
  bottom: 5%;
  display: grid;
  gap: .15em;
  width: 30%;
  padding: 1.1em 1.1em 1.9em;
  background: var(--blanco);
  color: var(--tuatara);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.75cqi;
  line-height: 1.5;
  box-shadow: 0 14px 26px -8px rgb(0 0 0 / .6);
  transform: rotate(-4deg);
  transition: transform .35s ease;
  /* Borde de abajo en zigzag, como papel de impresora cortado */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / .9em 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / .9em 100%;
}
.ticket b { margin-bottom: .3em; letter-spacing: .04em; }
.ticket strong { margin-top: .4em; }
.sistema:nth-of-type(even) .ticket { left: auto; right: 4%; transform: rotate(4deg); }
@media (hover: hover) {
  .sistema .sistema-vista:hover .ticket { transform: rotate(0deg) translateY(-6px); }
}

/* Texto de cada sistema */
.sistema-tag {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--zorba);
}
.sistema h3 { margin-top: 10px; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--hueso); }
.sistema-desc { margin-top: 14px; font-size: 1.08rem; color: var(--cloud); }
.sistema-funciones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: .98rem;
  color: var(--hueso);
}
.sistema-funciones li { display: flex; align-items: flex-start; gap: 10px; }
.sistema-funciones .check { margin-top: 2px; }
.sistema-estado { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: .92rem; color: var(--zorba); }
.sistema-estado .punto { flex: none; }
.sistema-acciones { margin-top: 30px; }

.sistemas-otro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(72px, 10vw, 112px);
  padding: 28px 32px;
  border: 1px solid rgb(202 201 200 / .14);
  border-radius: var(--radio);
  background: rgb(255 255 255 / .025);
}
.sistemas-otro p { max-width: 40em; color: var(--cloud); }
.sistemas-otro b { display: block; margin-bottom: 4px; font-family: var(--fuente-titulo); font-size: 1.2rem; color: var(--hueso); }

/* ---------- Trabajos ---------- */
.trabajos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.trabajo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--papel);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .trabajo:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgb(42 41 40 / .4); }
}

.trabajo-vista {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  overflow: hidden;
}
.vista-web { background: var(--cloud); }
.vista-soporte { background: var(--fuscous); }

.trabajo-cuerpo { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.trabajo-tag {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dove);
}
.trabajo h3 { margin-top: 8px; font-size: 1.35rem; }
.trabajo-cuerpo > p:not(.trabajo-tag) { margin-top: 10px; font-size: .98rem; color: var(--fuscous); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 4px 11px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--blanco);
  font-size: .8rem;
  font-weight: 500;
  color: var(--fuscous);
}

.trabajo-pie { margin-top: auto; padding-top: 26px; }

.escena { position: relative; }

/* Ilustración 1: página en escritorio y en celular */
.escena-web { width: 290px; height: 170px; }
.web-escritorio {
  width: 232px;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blanco);
  box-shadow: 0 18px 30px -14px rgb(42 41 40 / .45);
}
.web-barra { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; background: #e6e5e4; }
.web-barra span { width: 6px; height: 6px; border-radius: 50%; background: var(--zorba); }
.web-cuerpo { display: grid; gap: 8px; padding: 18px 16px; }
.escena-web i { display: block; }
.w-titulo { width: 82%; height: 12px; border-radius: 3px; background: var(--tuatara); }
.w-titulo.corto { width: 56%; }
.w-linea { width: 68%; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--cloud); }
.w-boton { width: 70px; height: 18px; margin-top: 8px; border-radius: 5px; background: var(--wa); }
.web-movil {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  width: 82px;
  height: 152px;
  padding: 20px 9px 9px;
  border: 3px solid var(--tuatara);
  border-radius: 16px;
  background: var(--blanco);
  box-shadow: 0 18px 30px -12px rgb(42 41 40 / .55);
  transition: transform .35s ease;
}
.web-movil .w-titulo { height: 8px; }
.web-movil .w-boton { width: 40px; height: 12px; margin-top: 4px; }
.web-movil .w-bloque { height: 44px; margin-top: 8px; border-radius: 5px; background: var(--papel); border: 1px solid var(--borde); }
.trabajo:hover .web-movil { transform: translateY(-8px); }

/* Ilustración 2: lista de mantenimiento */
.checklist {
  width: 250px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--blanco);
  box-shadow: 0 18px 30px -12px rgb(0 0 0 / .5);
}
.checklist-titulo {
  margin-bottom: 10px;
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: .9rem;
  color: var(--tuatara);
}
.checklist ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .84rem; color: var(--fuscous); }
.checklist li { position: relative; display: flex; align-items: center; gap: 10px; }
.checklist li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--tuatara);
  border-radius: 5px;
  background: var(--tuatara);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 9px;
  margin-top: -6px;
  border: solid var(--blanco);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Proceso ---------- */
.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paso {
  position: relative;
  padding: 32px 28px;
  border: 1px solid rgb(202 201 200 / .14);
  border-radius: var(--radio);
  background: rgb(255 255 255 / .025);
}
.paso:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -19px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--dove);
  border-right: 2px solid var(--dove);
  transform: rotate(45deg);
}
.paso-num {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--zorba);
}
.paso h3 { margin-top: 24px; font-size: 1.3rem; color: var(--hueso); }
.paso p { margin-top: 10px; color: var(--cloud); }

/* ---------- Contacto ---------- */
.cta {
  --foco: var(--cloud);
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  background: var(--tuatara);
  color: var(--cloud);
}
.cta > * { position: relative; }
.cta .antetitulo { color: var(--zorba); }
.cta h2 { color: var(--hueso); }
.cta-texto > p:last-child { margin-top: 16px; font-size: 1.1rem; }
/* stretch: los dos botones (WhatsApp y correo) quedan del mismo ancho */
.cta-acciones { display: flex; flex-direction: column; align-items: stretch; gap: 14px; justify-self: end; }
.cta-nota { font-size: .92rem; color: var(--zorba); }
.cta-nota a { font-weight: 600; color: var(--hueso); white-space: nowrap; text-underline-offset: 3px; }

.redes { margin-top: 56px; }
.redes-titulo { font-size: 1.2rem; font-weight: 600; }
.redes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.red {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--blanco);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.red-icono {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tuatara);
  color: var(--hueso);
}
.red-icono svg { width: 22px; height: 22px; }
.red-texto { display: grid; line-height: 1.35; }
.red-texto b { font-weight: 600; }
.red-texto span { font-size: .9rem; color: var(--dove); }
.red-flecha { width: 18px; height: 18px; margin-left: auto; color: var(--zorba); transition: transform .2s ease, color .2s ease; }
@media (hover: hover) {
  .red:hover { border-color: var(--zorba); transform: translateY(-2px); }
  .red:hover .red-flecha { transform: translate(2px, -2px); color: var(--tuatara); }
}

/* ---------- Pie ---------- */
.pie {
  --foco: var(--cloud);
  padding: 40px 0 28px;
  background: var(--tuatara);
  color: var(--zorba);
}
.pie-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgb(202 201 200 / .12);
}
.pie-lema { font-size: .95rem; }
.pie-redes { display: flex; gap: 8px; }
.pie-redes a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(202 201 200 / .2);
  border-radius: 10px;
  color: var(--cloud);
  transition: background-color .15s ease, color .15s ease;
}
.pie-redes a:hover { background: var(--cloud); color: var(--tuatara); }
.pie-redes svg { width: 18px; height: 18px; }
.pie-legal { padding-top: 22px; font-size: .85rem; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-flotante {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--tuatara);
  box-shadow: 0 12px 26px -6px rgb(0 0 0 / .45);
  transition: transform .25s ease, opacity .25s ease;
}
.wa-flotante svg { width: 30px; height: 30px; }
/* Onda que se expande. Se anima con transform/opacity (no con box-shadow) para no redibujar en cada cuadro. */
.wa-flotante::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--wa);
  animation: onda 3s ease-out infinite;
}
@keyframes onda {
  0% { transform: scale(1); opacity: .5; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
.wa-flotante.oculto { opacity: 0; transform: scale(.6) translateY(16px); pointer-events: none; }
@media (hover: hover) { .wa-flotante:hover { transform: scale(1.06); } }

/* ---------- Aparecer al hacer scroll ---------- */
/* main.js agrega .visible cuando el bloque entra a la pantalla.
   Se mueve con "translate" (no "transform") para no chocar con el efecto de las tarjetas al pasar el mouse. */
.js .aparece,
.js .aparece-lista > li {
  --entrada: opacity .8s var(--frenado) var(--retraso, 0s), translate .8s var(--frenado) var(--retraso, 0s);
  opacity: 0;
  translate: 0 var(--desde, 28px);
  transition: var(--entrada);
}
.js .aparece.visible,
.js .aparece-lista > li.visible { opacity: 1; translate: none; }

/* Listas: cada elemento entra por su cuenta, en cascada si entran juntos */
.js .aparece-lista > li { --desde: 16px; --retraso: calc(var(--n, 0) * 70ms); }

/* Tarjetas con efecto al pasar el mouse: se suman sus transiciones a la de entrada */
.js .trabajo.aparece { transition: var(--entrada), transform .25s ease, box-shadow .25s ease; }
.js .red.aparece { transition: var(--entrada), transform .15s ease, border-color .15s ease; }

/* En celular el movimiento es más largo para que se note al deslizar con el dedo */
@media (max-width: 860px) {
  .js .aparece { --desde: 40px; }
}

/* Lista de mantenimiento: se va marcando cuando aparece la tarjeta */
.js .trabajo.visible .checklist li::before { animation: marcar-caja .3s ease both; animation-delay: calc(var(--i) * .35s + .5s); }
.js .trabajo.visible .checklist li::after { animation: marcar-visto .3s ease both; animation-delay: calc(var(--i) * .35s + .6s); }
@keyframes marcar-caja { from { background: transparent; border-color: var(--zorba); } }
@keyframes marcar-visto { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 540px; margin-inline: auto; }
  /* Con el texto a todo el ancho, el circuito de arriba quedaría detrás del título */
  .circuito-arriba { display: none; }

  .sistema,
  .sistema:nth-of-type(even) { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .redes-grid { grid-template-columns: repeat(2, 1fr); }
  .sistema:nth-of-type(even) .sistema-vista { order: 0; }
}

@media (max-width: 860px) {
  .menu-boton { display: grid; }
  .cabecera .boton-chico { margin-left: auto; }
  .menu {
    position: absolute;
    top: var(--alto-cabecera);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px clamp(16px, 4vw, 32px) 18px;
    background: var(--tuatara);
    border-bottom: 1px solid rgb(202 201 200 / .12);
    box-shadow: 0 20px 30px -20px rgb(0 0 0 / .6);
  }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 12px; font-size: 1.05rem; }

  .servicios-grid,
  .trabajos-grid,
  .pasos,
  .cta { grid-template-columns: 1fr; }

  .paso:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 50%;
    bottom: -19px;
    margin-left: -6px;
    transform: rotate(135deg);
  }

  .cta-acciones { justify-self: stretch; }
}

@media (max-width: 560px) {
  .cabecera-fila { gap: 12px; }
  .hero-acciones .boton,
  .cta-acciones .boton { width: 100%; }
  .hero-visual { padding-left: 0; padding-bottom: 80px; }
  .diagnostico { width: min(250px, 80%); }
  .ventana-cuerpo { padding: 18px 18px 22px; }
  .mini-tarjetas i { height: 48px; }
  .boton-grande { padding: 0 20px; }
  .sistema-vista { padding: 5% 4% 14%; }
  .sistema-funciones { grid-template-columns: 1fr; }
  .sistema-acciones .boton,
  .sistemas-otro .boton { width: 100%; }
  .sistemas-otro { padding: 24px 20px; }
  .redes-grid { grid-template-columns: 1fr; }
  /* Espacio para que el botón flotante no tape el texto legal */
  .pie { padding-bottom: 100px; }
}

@media (max-width: 400px) {
  .cta { padding: 28px 20px; border-radius: 22px; }
  .boton-grande { padding: 0 16px; font-size: 1rem; }
  .boton { white-space: normal; text-align: center; }
}

/* En celulares angostos, el botón de la cabecera queda solo con el ícono para que quepa "JM Tec" */
@media (max-width: 380px) {
  /* Se oculta a la vista, pero el lector de pantalla sigue leyendo "Escríbenos" */
  .cabecera .boton-chico span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cabecera .boton-chico { width: 44px; min-height: 44px; padding: 0; }
}

@media (max-width: 360px) {
  .escena-web { transform: scale(.9); }
}

/* Sin animaciones para quien las desactiva en su sistema */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .aparece,
  .js .aparece-lista > li { opacity: 1; translate: none; }
}
