/* Los estilos de index.html. Los escribe armar_sitio.py. */
/* Diseño: "del cuaderno al celular". Papel cuadriculado y un celular que funciona; texto a la izquierda, escenario a la derecha; bandas a lo ancho.
   Colores de Pegaso Dev (marca/paleta-colores.png): pizarra de fondo, cian de marca, menta para resaltar y turquesa de apoyo.
   La página nace oscura, como el logo; el modo claro cambia los fondos y deja el cian solo para botones. */
:root {
  --bg: #2F455C;          /* pizarra */
  --surface: #37516A;
  --ink: #F2F6FA;
  --muted: #BCCBD8;
  --line: #4A6580;
  --band: #283C50;
  --brand: #1DCDFE;       /* cian: botones y acentos */
  --brand-text: #1DCDFE;
  --on-brand: #102331;
  --signal: #34F5C5;      /* menta: resaltados y etiquetas */
  --on-signal: #0E2A26;
  --accent: #21D0B2;      /* turquesa */
  --deep: #1E2F41;
  --on-deep: #F2F6FA;

  /* banda de experiencia: cian lleno en los dos temas */
  --exp-bg: #1DCDFE;
  --exp-ink: #102331;
  --exp-muted: #1D3A4E;
  --exp-line: rgba(16, 35, 49, .28);
  --exp-card: rgba(16, 35, 49, .08);

  /* logo (marca/pegaso-dev-horizontal.svg): cian sobre oscuro, pizarra sobre claro */
  --logo-caballo: #1DCDFE;
  --logo-letras: #F2F6FA;

  /* papel del cuaderno: claro en los dos temas */
  --paper: #EEECE2;
  --paper-line: #B9C6D2;
  --paper-margin: #E39A9A;
  --paper-ink: #1E3B7A;
  --paper-check: #2C7A4B;

  /* el celular: pantalla clara en los dos temas, como un celular real */
  --bezel: #0B141C;
  --screen: #FFFFFF;
  --screen-bg: #F1F4F6;
  --screen-ink: #172330;
  --screen-muted: #66737E;
  --screen-line: #E2E7EC;
  --ok: #1C8A57;
  --ok-soft: #DDF3E7;
  --warn: #A86400;
  --warn-soft: #FCEFD6;
  --bad: #B8322A;
  --bad-soft: #FBE3E0;
  --chat: #ECE6DC;
  --bubble: #FFFFFF;
  --bubble-me: #DCF6CF;
  --wa: #1A8F4C;
  --wa-head: #1D5A47;
  --wa-marca: #25D366;    /* el verde de WhatsApp, solo en el botón flotante que abre WhatsApp */

  /* marcos de aparatos (navegador, celulares de muestra): oscuros en los dos temas, como los de verdad */
  --chrome: #16212C;
  --chrome-line: #2A3744;
  --chrome-ink: #9FB0C0;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F3F7FA; --surface: #FFFFFF; --ink: #1E3142; --muted: #50667A; --line: #D2DEE7; --band: #E7EFF5;
    --brand-text: #08779F; --deep: #2F455C;
    --logo-caballo: #2F455C; --logo-letras: #2F455C;
    --paper: #FCFBF5; --paper-line: #CFDCE8;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F3F7FA; --surface: #FFFFFF; --ink: #1E3142; --muted: #50667A; --line: #D2DEE7; --band: #E7EFF5;
  --brand-text: #08779F; --deep: #2F455C;
  --logo-caballo: #2F455C; --logo-letras: #2F455C;
  --paper: #FCFBF5; --paper-line: #CFDCE8;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
/* Lenis (desplazamiento suave): sus reglas recomendadas */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.band { background: var(--band); }

h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 3.6vw + .6rem, 3rem); font-weight: 850; font-stretch: 116%; line-height: 1; letter-spacing: -.015em; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin: 0 0 14px;
}
.section-head { display: grid; gap: 14px; max-width: 46rem; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 40rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
html.con-animaciones .btn { transition: background-color .15s ease; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Encabezado ---------- */
/* Fijo arriba, de vidrio, como el de Apple: se esconde al bajar y vuelve al subir (lo maneja el script). */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s;
}
.top.con-borde { border-bottom-color: var(--line); }
.top.oculta { transform: translateY(-110%); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--bg); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: block; min-width: 0; text-decoration: none; }
.logo svg { display: block; height: 50px; width: auto; max-width: 100%; }
.lg-caballo { fill: var(--logo-caballo); }
.lg-letras { fill: var(--logo-letras); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.top .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; white-space: nowrap; flex: none; }
@media (max-width: 1060px) { .nav { display: none; } }
@media (max-width: 420px) { .logo svg { height: 42px; } .top .btn { padding: 0 14px; font-size: .88rem; } }

/* ---------- Portada ---------- */
.hero { overflow-x: hidden; overflow-x: clip; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px);
}
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--signal); color: var(--on-signal);
  font-family: var(--f-mono); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 14px 7px 12px; border-radius: 4px 12px 12px 4px;
  transform: rotate(-2deg);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); flex: none; }
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  font-weight: 900; font-stretch: 122%;
  line-height: .92; letter-spacing: -.025em;
  margin: 22px 0 22px;
}
.hero h1 mark {
  display: inline-block; transform: rotate(-1.5deg);
  background: var(--signal); color: var(--on-signal);
  padding: 0 .12em .04em; border-radius: 6px;
}
.lead { font-size: clamp(1.12rem, 1.3vw + .5rem, 1.3rem); color: var(--muted); margin: 0; max-width: 33rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.prueba { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: .95rem; color: var(--muted); }
.prueba::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); flex: none; }

.hero-art { position: relative; height: 580px; width: 100%; max-width: 540px; justify-self: end; }
.cuaderno {
  position: absolute; left: 0; top: 46px;
  width: min(80%, 400px); height: 470px;
  transform: rotate(-4deg);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 44px, var(--paper-margin) 44px, var(--paper-margin) 46px, transparent 46px),
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
  border-radius: 4px;
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .45);
  padding: 46px 18px 20px 58px;
  font-family: var(--f-hand); color: var(--paper-ink);
  font-size: 1.42rem; line-height: 1.32;
}
.cuaderno::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 12px; height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--bg) 0 4px, transparent 5px) 0 0 / 22px 14px repeat-x;
}
.cuaderno::after {
  content: ""; position: absolute; right: 26px; bottom: 30px; width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle, transparent 57%, rgba(122, 78, 36, .16) 59%, rgba(122, 78, 36, .30) 62%, rgba(122, 78, 36, .08) 65%, transparent 67%);
}
.cuaderno h4 { font: 600 1.7rem/1.1 var(--f-hand); margin: 0 0 10px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cuaderno ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cuaderno s { text-decoration-thickness: 2px; opacity: .8; }
.cuaderno .si { color: var(--paper-check); font-weight: 600; }
/* Cada pendiente se tacha cuando llega su aviso al celular (el script pone y quita "hecha"). */
.tarea {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 0 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .7s cubic-bezier(.6, 0, .2, 1), opacity .4s;
}
.tarea.hecha { background-size: 100% 2px; opacity: .78; }
.tarea.hecha::after { content: " ✓"; color: var(--paper-check); font-weight: 600; }

.phone {
  position: relative; flex: none;
  width: 300px; max-width: 100%; height: 600px;
  border-radius: 46px; padding: 10px;
  background: var(--bezel);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .55), inset 0 0 0 2px #26323D;
}
.phone::before {
  content: ""; position: absolute; z-index: 5; top: 20px; left: 50%;
  width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: var(--bezel);
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 36px; background: var(--screen); color: var(--screen-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.35;
  display: flex; flex-direction: column;
}
.statusbar {
  flex: none; height: 44px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.statusbar svg { height: 11px; width: auto; }

.hero-art .phone { position: absolute; right: 0; top: 0; width: 286px; height: 572px; }
.lock {
  flex: 1; min-height: 0; position: relative; color: #fff;
  background: linear-gradient(180deg, #2C6A8A 0%, #24435A 55%, #18293A 100%);
  display: flex; flex-direction: column;
}
.lock .statusbar { color: #fff; }
.lock .montes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.reloj { text-align: center; margin-top: 6px; }
.reloj b { display: block; font-family: var(--f-display); font-weight: 600; font-stretch: 100%; font-size: 60px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.reloj span { font-size: 13px; opacity: .85; }
.notis { position: relative; z-index: 1; display: grid; gap: 8px; padding: 18px 10px 0; }
.notis .noti:nth-child(n + 4) { display: none; }
.noti {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 1px 10px; align-items: start;
  background: rgba(255, 255, 255, .92); color: var(--screen-ink);
  border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5);
}
.noti .ico { grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.noti .ico svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.noti b { font-size: 13px; min-width: 0; }
.noti time { font-size: 11px; color: var(--screen-muted); }
.noti p { grid-column: 2 / 4; margin: 0; font-size: 12.5px; color: var(--screen-muted); }
.ico-pedido { background: var(--wa); }
.ico-agenda { background: #2F6FB3; }
.ico-inv { background: #B67A00; }
.ico-taller { background: #4A5A53; }
.noti.entra { animation: entra .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes entra { from { transform: translateY(-14px) scale(.96); opacity: .15; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; height: 640px; max-width: 460px; }
  .cuaderno { top: 0; width: min(84%, 380px); height: 420px; }
  .hero-art .phone { top: 96px; width: 272px; height: 544px; }
}

/* ---------- Cinta de palabras ---------- */
/* Dos filas que corren en sentido contrario; con el script corren más rápido mientras se baja. */
.cinta { overflow: hidden; padding-block: clamp(18px, 3vw, 34px); border-block: 1px solid var(--line); background: var(--band); }
.cinta-fila { display: flex; overflow: hidden; }
.cinta-fila + .cinta-fila { margin-top: 4px; }
.cinta-pista { display: flex; flex: none; will-change: transform; animation: cinta 40s linear infinite; }
.cinta-grupo {
  display: flex; flex: none; align-items: center; gap: .5em; padding-right: .5em; white-space: nowrap;
  font: 900 clamp(2.3rem, 6.4vw, 5.6rem)/1.08 var(--f-display); font-stretch: 122%; letter-spacing: -.02em;
}
.cinta-grupo .sep { flex: none; width: .42em; height: .42em; border-radius: 50%; background: var(--signal); }
.cinta-fila.inversa .cinta-pista { animation-direction: reverse; }
.cinta-fila.inversa .cinta-grupo { color: transparent; -webkit-text-stroke: 1.5px var(--brand-text); }
.cinta-fila.inversa .sep { background: var(--brand-text); }
@keyframes cinta { to { transform: translateX(-50%); } }
html.con-animaciones .cinta-pista { animation: none; }

/* ---------- Servicios en tarjetas (bento) ---------- */
/* Como las páginas de producto de Apple: tarjetas de distintos tamaños, cada una con una muestra del trabajo.
   La luz que sigue al cursor sale de --mx y --my, que pone el script. */
.servicios { padding-top: clamp(40px, 6vw, 80px); }
.bento {
  display: grid; gap: 16px; margin-top: 44px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "apps apps web web"
    "apps apps soft integ"
    "fact fact soporte soporte";
}
.b-card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  min-width: 0; min-height: 300px;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  transition: border-color .25s ease;
}
.b-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(440px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 20%, transparent), color-mix(in srgb, var(--brand) 0%, transparent) 70%);
}
.b-card:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.b-card:hover::before { opacity: 1; }
.b-apps { grid-area: apps; min-height: 640px; }
.b-web { grid-area: web; }
.b-soft { grid-area: soft; }
.b-integ { grid-area: integ; }
.b-fact { grid-area: fact; }
.b-soporte { grid-area: soporte; }
.b-texto { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; min-width: 0; }
.b-tag { margin: 0; font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.b-card h3 { font-size: clamp(1.4rem, 1vw + 1.05rem, 1.9rem); font-weight: 850; font-stretch: 112%; line-height: 1.04; letter-spacing: -.01em; }
.b-card p { margin: 0; color: var(--muted); max-width: 34rem; }
.b-card .ej { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; color: var(--ink); line-height: 1.6; }
.b-visual { position: relative; flex: 1; min-height: 170px; min-width: 0; }
@media (min-width: 621px) { .b-fila { flex-direction: row; } .b-fila > * { flex: 1 1 0; } }

/* teléfonos de muestra con pantallas reales de la app */
.mini-tel {
  position: absolute; width: clamp(150px, 15vw, 214px); aspect-ratio: 600 / 1300; padding: 6px;
  border-radius: 30px; background: var(--bezel);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6), inset 0 0 0 1.5px var(--chrome-line);
}
.mini-tel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.b-apps .b-visual { min-height: 360px; }
.b-apps .mini-tel.atras { right: 6%; bottom: -70px; rotate: 8deg; }
.b-apps .mini-tel.frente { right: 36%; bottom: -120px; rotate: -5deg; }

/* ventana de navegador con una página de verdad */
.navegador {
  position: absolute; left: 0; right: -18%; bottom: -30px; overflow: hidden;
  border-radius: 14px 14px 0 0; background: var(--chrome); border: 1px solid var(--chrome-line);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6);
}
.nav-barra { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--chrome); }
.nav-barra i { width: 9px; height: 9px; border-radius: 50%; background: var(--chrome-line); }
.nav-barra span { margin-left: 8px; flex: 0 1 220px; font: 500 .72rem/1 var(--f-mono); color: var(--chrome-ink); background: var(--bezel); border-radius: 6px; padding: 6px 10px; }
.navegador img { display: block; width: 100%; height: auto; }
.b-web .b-visual { min-height: 230px; }

/* ventas de hoy y la gráfica de la semana */
.b-soft .b-visual { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 190px; }
.b-dato { display: grid; gap: 4px; }
.b-dato small { font: 600 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.b-dato b { font: 850 clamp(1.8rem, 2.4vw, 2.5rem)/1 var(--f-display); font-stretch: 110%; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.b-barras { display: block; width: 100%; height: 104px; }
.b-barras rect { fill: var(--line); }
.b-barras rect.hoy { fill: var(--brand); }

/* integraciones: la app en el centro y los programas alrededor; los datos corren por las líneas */
.b-red { display: block; width: 100%; height: 100%; min-height: 170px; }
.b-red .via { stroke: var(--line); stroke-width: 2; }
.b-red .dato-flujo { stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 12; animation: flujo 1.1s linear infinite; }
@keyframes flujo { to { stroke-dashoffset: -30; } }
.b-red .centro { fill: var(--brand); }
.b-red .centro-txt { fill: var(--on-brand); font: 800 13px var(--f-display); }
.b-red .sat { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.b-red .sat-txt { fill: var(--ink); font: 700 12px var(--f-body); }

/* facturas: el recibo que le llega al cliente */
.b-fact .b-visual { min-height: 240px; }
.recibo-mini {
  position: absolute; right: 4%; top: 6px; width: min(56%, 300px); overflow: hidden;
  border-radius: 14px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55); rotate: 4deg;
}
.recibo-mini img { display: block; width: 100%; height: auto; }
.sello {
  position: absolute; left: 0; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--signal); color: var(--on-signal); font-weight: 700; font-size: .92rem;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55);
}

/* soporte: el estado de lo que cuidamos */
.estado-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: center; }
.estado-lista li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
}
.estado-lista span { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.estado-lista b { font: 500 .8rem var(--f-mono); color: var(--muted); text-align: right; }
.punto { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); animation: latido 2.4s ease-out infinite; }
@keyframes latido {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--signal) 0%, transparent); }
}

.serv-mas { margin: 44px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.serv-mas p { margin: 0; font-size: 1.12rem; max-width: 36rem; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "apps apps" "web web" "soft integ" "fact fact" "soporte soporte"; }
  /* a lo ancho: el texto a la izquierda y los teléfonos a la derecha, para que no quede un hueco en el centro */
  .b-apps { min-height: 460px; flex-direction: row; }
  .b-apps > * { flex: 1 1 0; }
  .b-apps .mini-tel.atras { right: 2%; bottom: -60px; }
  .b-apps .mini-tel.frente { right: 34%; bottom: -100px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "apps" "web" "soft" "integ" "fact" "soporte"; }
  .b-apps { min-height: 620px; flex-direction: column; }
  .b-apps > * { flex: none; }
  .b-apps .b-visual { flex: 1; }
  .b-apps .mini-tel.frente { right: 40%; }
  .navegador { right: -30%; }
  .recibo-mini { width: 62%; }
}

/* ---------- Demostraciones ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; }
.tab, .chipbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: .98rem; cursor: pointer;
}
.tab:hover, .chipbtn:hover { border-color: var(--ink); }
.tab[aria-selected="true"], .chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 700px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}

.panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 88px); align-items: center; }
.copy { min-width: 0; max-width: 34rem; }
.copy h3 { font-size: clamp(1.7rem, 2.4vw + .6rem, 2.4rem); font-weight: 850; font-stretch: 114%; line-height: 1.02; letter-spacing: -.01em; margin-bottom: 14px; }
.copy > p { margin: 0 0 18px; font-size: 1.12rem; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.checks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23102331' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0 0 24px; padding: 16px 0 0; border-top: 1px dashed var(--line); }
.meta dt { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.meta dd { margin: 0; }
.hint { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--brand-text); }
.hint svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .copy { justify-self: stretch; max-width: none; }
}

/* piezas de las apps dentro del celular */
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 14px 12px; border-bottom: 1px solid var(--screen-line); }
.app-logo { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #2F455C; color: #fff; display: grid; place-items: center; font: 800 12px/1 var(--f-display); }
.app-bar b { display: block; font-size: 14px; }
.app-bar small { color: var(--screen-muted); font-size: 11.5px; }
.app-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; display: grid; align-content: start; gap: 8px; background: var(--screen-bg); }
.app-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 20px; background: var(--screen); border-top: 1px solid var(--screen-line); }
.app-btn {
  border: 0; border-radius: 999px; padding: 10px 15px; cursor: pointer;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 13px; line-height: 1.2;
}
.app-btn.sec { background: var(--screen-bg); color: var(--screen-ink); border: 1px solid var(--screen-line); }
.app-btn.full { width: 100%; }
.app-btn:disabled { opacity: .45; cursor: not-allowed; }
.mono { font-family: var(--f-mono); font-size: 11px; color: var(--screen-muted); }

.item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--screen); border: 1px solid var(--screen-line); border-radius: 12px; padding: 9px 10px; }
.thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--screen-bg); border: 1px dashed #C8D0C9; display: grid; place-items: center; font: 600 10px/1 var(--f-mono); color: var(--screen-muted); }
.item b { display: block; font-size: 12.5px; line-height: 1.25; }
.item small { font-size: 12px; font-weight: 700; color: var(--screen-ink); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--screen-line); background: var(--screen); color: var(--screen-ink); font-size: 16px; line-height: 1; cursor: pointer; }
.qty output { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.suma small { display: block; font-size: 11px; color: var(--screen-muted); }
.suma b { font-size: 16px; font-variant-numeric: tabular-nums; }

.wa-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 12px 10px; background: var(--wa-head); color: #fff; }
.wa-head .app-logo { background: rgba(255, 255, 255, .18); }
.wa-head small { opacity: .8; font-size: 11.5px; }
.wa-head b { display: block; font-size: 14px; }
.wa-head button { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.wa-head button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.statusbar.barra-wa { background: var(--wa-head); color: #fff; }
.chat { flex: 1; min-height: 0; overflow-y: auto; background: var(--chat); padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.chat > * { flex-shrink: 0; }
.bubble { max-width: 88%; align-self: flex-start; background: var(--bubble); border-radius: 4px 12px 12px 12px; padding: 7px 10px 6px; font-size: 13px; line-height: 1.38; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.bubble.me { align-self: flex-end; background: var(--bubble-me); border-radius: 12px 4px 12px 12px; }
.bubble .who { display: block; font-weight: 700; font-size: 12px; color: var(--wa); margin-bottom: 2px; }
.bubble time { display: block; text-align: right; font-size: 10.5px; color: var(--screen-muted); margin-top: 3px; }
.bubble p { margin: 0 0 4px; }
.lineas { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; margin: 6px 0; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.lineas .tot { font-weight: 700; border-top: 1px solid rgba(0, 0, 0, .12); padding-top: 4px; }
.lineas .falta { color: var(--bad); }
.chat-nota { align-self: center; background: rgba(255, 255, 255, .75); color: var(--screen-muted); font-size: 11px; padding: 4px 10px; border-radius: 8px; text-align: center; }
.escribiendo { display: inline-flex; gap: 4px; padding: 10px 12px; }
.escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--screen-muted); animation: punto 1s infinite ease-in-out; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.rapidas { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.rapidas span { background: var(--screen); border: 1px solid var(--screen-line); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; color: var(--wa); }

/* inventario */
.kpis { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 8px; }
.kpi { background: var(--screen-bg); border-radius: 10px; padding: 7px 4px; text-align: center; }
.kpi b { display: block; font: 800 19px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.kpi small { font-size: 10.5px; color: var(--screen-muted); }
.kpi.pedir b { color: var(--warn); }
.kpi.agotado b { color: var(--bad); }
.buscar { flex: none; padding: 0 12px 8px; }
.buscar input { width: 100%; border: 1px solid var(--screen-line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; background: var(--screen-bg); color: var(--screen-ink); }
.filtros { flex: none; display: flex; gap: 6px; padding: 0 12px 10px; border-bottom: 1px solid var(--screen-line); }
.filtro { border: 1px solid var(--screen-line); background: var(--screen); color: var(--screen-ink); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.filtro[aria-pressed="true"] { background: var(--screen-ink); color: var(--screen); border-color: var(--screen-ink); }
.inv-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; background: var(--screen); border: 1px solid var(--screen-line); border-radius: 12px; padding: 10px; }
.inv-item b { display: block; font-size: 12.5px; line-height: 1.25; }
.inv-item .stock { display: block; font-size: 11.5px; color: var(--screen-muted); font-variant-numeric: tabular-nums; }
.inv-item .der { display: grid; gap: 6px; justify-items: end; align-content: start; }
.estado { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.estado.ok { background: var(--ok-soft); color: var(--ok); }
.estado.pedir { background: var(--warn-soft); color: var(--warn); }
.estado.agotado { background: var(--bad-soft); color: var(--bad); }
.vendi { border: 1px solid var(--screen-line); background: var(--screen); color: var(--screen-ink); border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.vendi:disabled { opacity: .4; cursor: not-allowed; }
.sticker {
  position: absolute; left: 46%; top: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
  background: var(--signal); color: var(--on-signal);
  font: 600 11px/1 var(--f-mono); letter-spacing: .08em;
  padding: 5px 9px; border-radius: 3px; box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
  pointer-events: none;
}
.vacio { text-align: center; color: var(--screen-muted); font-size: 13px; padding: 20px 0; margin: 0; }
.hoja {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  max-height: 78%; overflow-y: auto;
  background: var(--screen); border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .22);
  padding: 10px 14px 18px;
}
.hoja::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--screen-line); margin: 0 auto 12px; }
.hoja h4 { margin: 0 0 4px; font: 800 15px/1.2 var(--f-display); }
.hoja p { margin: 0 0 8px; font-size: 12.5px; color: var(--screen-muted); }
.hoja .bubble { max-width: none; margin-bottom: 12px; background: var(--bubble-me); }

/* lista escolar */
.foto {
  position: relative; overflow: hidden; align-self: flex-start;
  width: 82%; padding: 8px 10px 10px 26px;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent 18px, var(--paper-margin) 18px, var(--paper-margin) 19px, transparent 19px), linear-gradient(var(--paper-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 21px;
  background-position: 0 0, 0 6px;
  border: 5px solid #fff; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transform: rotate(-1.2deg);
  font-family: var(--f-hand); color: var(--paper-ink); font-size: 16.5px; line-height: 21px;
}
.foto ol { margin: 0; padding: 0 0 0 4px; list-style: none; }
.foto li { border-radius: 3px; transition: background-color .12s; }
.foto li.visto { background: rgba(244, 194, 26, .45); }
.foto .titulo { font-weight: 600; text-decoration: underline; }
.scan { position: absolute; left: 0; right: 0; top: -50px; height: 50px; background: linear-gradient(rgba(26, 143, 76, 0), rgba(26, 143, 76, .35), rgba(26, 143, 76, 0)); display: none; }
.foto.leyendo .scan { display: block; animation: scan 1.6s linear infinite; }
@keyframes scan { to { top: 100%; } }

/* orden de servicio */
.orden { background: var(--screen); border: 1px solid var(--screen-line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.orden-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.orden-top b { font-size: 14px; }
.pasos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.paso { height: 6px; border-radius: 3px; background: var(--screen-line); }
.paso.hecho { background: var(--ok); }
.paso.actual { background: var(--signal); }
.paso-txt { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--screen-muted); }
.paso-txt b { color: var(--screen-ink); }
.fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fotos figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #3A4A59, #212C36); }
.fotos svg { width: 62%; height: auto; fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fotos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 5px; font-size: 9.5px; color: #fff; background: rgba(0, 0, 0, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cotiza { font-size: 12.5px; }
.log { display: grid; gap: 6px; }
.log .bubble { max-width: 92%; font-size: 12.5px; }
.log-titulo { font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--screen-muted); margin: 4px 0 0; }

/* citas */
.dias { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--screen-line); }
.dia { border: 1px solid var(--screen-line); border-radius: 10px; padding: 6px 2px; background: var(--screen); color: var(--screen-ink); text-align: center; font-size: 11px; cursor: pointer; line-height: 1.2; }
.dia b { display: block; font: 800 17px/1.1 var(--f-display); }
.dia[aria-pressed="true"] { background: #2F455C; color: #fff; border-color: #2F455C; }
.dia:disabled { cursor: not-allowed; color: var(--screen-muted); background: var(--screen-bg); }
.slot { width: 100%; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: center; text-align: left; border: 1px solid var(--screen-line); border-radius: 10px; padding: 8px 10px; background: var(--screen); color: var(--screen-ink); font-size: 12.5px; cursor: pointer; }
.slot time { font: 600 11.5px/1 var(--f-mono); white-space: nowrap; }
.slot.ocupado { background: transparent; border-style: dashed; color: var(--screen-muted); cursor: default; }
.slot.libre span { color: var(--wa); font-weight: 700; }
.slot.nueva { border: 1.5px solid var(--wa); background: #E8F6EE; }
.slot.nueva span { font-weight: 700; }
.anual { background: var(--warn-soft); border-radius: 12px; padding: 10px; font-size: 12.5px; display: grid; gap: 8px; }
.anual b { color: var(--warn); }

/* ---------- Su negocio ---------- */
.sectores { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 24px; }
.sector-panel {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(22px, 3.5vw, 40px);
}
.sector-panel .eyebrow { margin-bottom: 10px; }
.dolor { margin: 0; font-family: var(--f-hand); font-size: clamp(1.8rem, 2.6vw + .6rem, 2.5rem); line-height: 1.1; color: var(--ink); }
.sirve { display: grid; gap: 10px; align-content: start; }
.sirve button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 700;
}
.sirve button:hover { border-color: var(--ink); }
.sirve button svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sirve .paquete { margin: 4px 0 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .sector-panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Experiencia ---------- */
.verde { background: var(--exp-bg); color: var(--exp-ink); }
.verde .eyebrow { color: var(--exp-ink); }
.verde .section-head p { color: var(--exp-muted); }
.hechos { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hechos li { border-top: 2px solid var(--exp-line); padding-top: 16px; }
.hechos b { display: block; font: 800 1.2rem/1.15 var(--f-display); font-stretch: 108%; margin-bottom: 6px; }
.hechos span { color: var(--exp-muted); }
.flujo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; margin-top: 40px; }
.nodo { background: var(--exp-card); border: 1px solid var(--exp-line); border-radius: 16px; padding: 18px; }
.nodo small { display: block; font: 600 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--exp-muted); margin-bottom: 8px; }
.nodo b { display: block; font: 800 1.15rem/1.15 var(--f-display); margin-bottom: 4px; }
.nodo span { color: var(--exp-muted); font-size: .98rem; }
.flecha { align-self: center; justify-self: center; font: 600 1.4rem/1 var(--f-mono); color: var(--exp-ink); }
.nota-verde { margin: 28px 0 0; color: var(--exp-muted); font-size: .98rem; max-width: 46rem; }
@media (max-width: 860px) {
  .hechos { grid-template-columns: minmax(0, 1fr); }
  .flujo { grid-template-columns: minmax(0, 1fr); }
  .flecha { transform: rotate(90deg); }
}

/* ---------- Paquetes ---------- */
.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 22px; }
.plan .nombre { font: 600 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.plan h3 { font-size: 1.55rem; font-weight: 850; font-stretch: 112%; line-height: 1.05; }
.plan .para { margin: 0; color: var(--muted); }
.plan .checks { margin: 0; }
.plan .entrega { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: .95rem; }
.plan .entrega span { color: var(--muted); }
.aviso-precio { margin: 22px 0 0; color: var(--muted); }
@media (max-width: 900px) { .planes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cómo trabajo ---------- */
.proceso { list-style: none; counter-reset: paso; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.proceso li { counter-increment: paso; border-top: 3px solid var(--ink); padding-top: 16px; }
/* Al bajar, una línea cian recorre los cuatro pasos (la mueve el script). */
.proceso-caja { position: relative; margin-top: 40px; }
.proceso-caja .proceso { margin-top: 0; }
.proceso-linea { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-text); transform-origin: left center; transform: scaleX(0); pointer-events: none; }
@media (max-width: 900px) { .proceso-linea { display: none; } }
.proceso li::before { content: counter(paso); display: block; font: 900 2.6rem/1 var(--f-display); font-stretch: 120%; color: var(--brand-text); margin-bottom: 10px; }
.proceso b { display: block; font: 800 1.2rem/1.15 var(--f-display); font-stretch: 108%; margin-bottom: 6px; }
.proceso span { color: var(--muted); }
@media (max-width: 900px) { .proceso { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .proceso { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Preguntas ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem/1 var(--f-mono); color: var(--brand-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 40rem; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contacto ---------- */
.contacto { background: var(--deep); color: var(--on-deep); }
.contacto .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.contacto .eyebrow { color: var(--signal); }
.contacto h2 { font-size: clamp(2.2rem, 4.4vw + .4rem, 3.6rem); }
.contacto p { color: color-mix(in srgb, var(--on-deep) 78%, transparent); font-size: 1.15rem; margin: 16px 0 0; max-width: 34rem; }
.contacto-caja { display: grid; gap: 14px; justify-items: start; }
.logo-grande { display: block; width: min(100%, 420px); height: auto; margin-bottom: 28px; fill: var(--brand); }
.contacto .btn-primary { background: var(--signal); color: var(--on-signal); }
.contacto .dato { font-family: var(--f-mono); font-size: .95rem; color: color-mix(in srgb, var(--on-deep) 85%, transparent); margin: 0; overflow-wrap: anywhere; }
.contacto .dato a { color: inherit; text-underline-offset: 3px; }
.contacto .aviso-datos { font-size: .88rem; line-height: 1.5; margin: 6px 0 0; max-width: 30rem; color: color-mix(in srgb, var(--on-deep) 72%, transparent); }
.contacto .aviso-datos a { color: var(--signal); }
@media (max-width: 860px) { .contacto .wrap { grid-template-columns: minmax(0, 1fr); } }

.pie .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; padding-block: 28px 36px; color: var(--muted); font-size: .92rem; }
.pie p { margin: 0; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pie-enlaces a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.pie .nota { flex-basis: 100%; }

/* ---------- Nuestro trabajo: el pegaso que se abre ---------- */
/* Como el logo de GTA VI en la página de Rockstar: el pegaso es una ventana a un mosaico con nuestro trabajo; al
   bajar se agranda hasta llenar la pantalla (lo anima el script; sin él, queda quieto y se ve igual de completo). */
.trabajo-intro { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--deep); }
.mosaico {
  position: absolute; inset: -14vh -4vw; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.2vmin; align-items: start; will-change: transform;
}
.mosaico .col { display: grid; gap: 2.2vmin; will-change: transform; }
.mosaico .col:nth-child(even) { margin-top: -16vh; }
.mosaico img { display: block; width: 100%; height: auto; border-radius: 2vmin; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.mosaico img.ancha { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mosaico img.correo { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.velo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.velo .tela { fill: var(--bg); }
.velo .borde { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.trabajo-titulo { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(24px, 6vh, 64px); text-align: center; }
.trabajo-titulo .eyebrow { margin-bottom: 10px; }
.trabajo-titulo h2 { font-size: clamp(2.3rem, 5.4vw, 4.8rem); }
.trabajo-titulo p { margin: 12px auto 0; color: var(--muted); max-width: 34rem; font-size: 1.08rem; }
.baje { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 600 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.baje svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: baje 1.6s ease-in-out infinite; }
@keyframes baje { 50% { transform: translateY(5px); } }
@media (max-width: 700px) {
  .mosaico { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -8vh -10vw; }
  .mosaico .col:nth-child(n + 4) { display: none; }
}

/* ---------- Nuestro trabajo: la galería de proyectos ---------- */
/* En el computador la galería se queda fija y los proyectos pasan de lado al bajar (como las galerías de Apple);
   en el celular se desliza con el dedo. */
.galeria { position: relative; padding-block: clamp(48px, 7vw, 84px); overflow: hidden; }
.galeria-cabeza { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; margin-bottom: 26px; }
.galeria-cabeza h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); font-weight: 850; font-stretch: 114%; line-height: 1; letter-spacing: -.015em; }
.galeria-cabeza p { margin: 0; font: 600 .78rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.galeria-pista {
  display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(16px, calc((100vw - 1160px) / 2 + 16px)); padding-bottom: 14px; scrollbar-width: none;
}
.galeria-pista::-webkit-scrollbar { display: none; }
.solo-celular { display: none; }
@media (max-width: 899px) { .solo-celular { display: inline; color: var(--brand-text); } }
.proyecto {
  --acento: var(--brand);
  flex: 0 0 min(86vw, 1040px); scroll-snap-align: center; min-height: min(72vh, 600px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px);
  padding: clamp(24px, 3.4vw, 48px); position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; border: 1px solid var(--line); background: var(--surface);
}
.proyecto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 80% at 85% 60%, color-mix(in srgb, var(--acento) 24%, transparent), color-mix(in srgb, var(--acento) 0%, transparent) 70%);
}
.p-texto { display: grid; gap: 14px; align-content: center; min-width: 0; }
.p-tag { margin: 0; font: 600 .76rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.proyecto h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 900; font-stretch: 118%; line-height: .98; letter-spacing: -.02em; }
.proyecto p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 30rem; }
.p-chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.p-chips li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font: 600 .78rem/1 var(--f-mono); color: var(--ink); }
.p-visual { position: relative; min-height: 340px; min-width: 0; }
.p-visual .mini-tel { width: clamp(140px, 14vw, 210px); left: 50%; top: 50%; }
.p-visual .t1 { translate: -118% -47%; rotate: -9deg; }
.p-visual .t2 { translate: -50% -52%; z-index: 2; }
.p-visual .t3 { translate: 18% -47%; rotate: 9deg; }
.p-visual.duo .t1 { translate: -96% -49%; rotate: -7deg; }
.p-visual.duo .t2 { translate: -6% -52%; rotate: 5deg; }
.p-visual .navegador { left: 2%; right: -14%; top: 50%; bottom: auto; translate: 0 -50%; border-radius: 14px; }
.p-correo {
  position: absolute; left: 50%; top: 4%; width: min(78%, 380px); translate: -50% 0; rotate: -3deg; overflow: hidden;
  border-radius: 16px; box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .6);
}
.p-correo img { display: block; width: 100%; height: auto; }
.p-marca { position: absolute; inset: 0; display: grid; align-content: center; gap: 22px; }
.p-marca .p-logo { width: min(100%, 380px); height: auto; fill: var(--brand-text); }
.p-paleta { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.p-paleta li { display: grid; gap: 8px; font: 500 .72rem/1.3 var(--f-mono); color: var(--muted); }
.p-paleta li::before { content: ""; aspect-ratio: 1; border-radius: 14px; background: var(--c); border: 1px solid var(--line); }
.p-letras { margin: 0; font: 500 .82rem/1.5 var(--f-mono); color: var(--ink); }
.galeria-progreso { display: none; height: 3px; margin: 26px auto 0; width: min(100% - 32px, 1128px); background: var(--line); border-radius: 3px; overflow: hidden; }
.galeria-progreso i { display: block; height: 100%; background: var(--brand-text); transform-origin: left center; transform: scaleX(0); }
.galeria.fija { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 0; }
.galeria.fija .galeria-pista { overflow: visible; scroll-snap-type: none; }
.galeria.fija .galeria-progreso { display: block; }
@media (max-width: 900px) {
  .proyecto { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .p-visual { min-height: 380px; }
}

/* ---------- Redes sociales ---------- */
.redes { display: flex; flex-wrap: wrap; gap: 10px; }
.red {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px;
  border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--on-deep) 30%, transparent);
  color: var(--on-deep); text-decoration: none; font-weight: 700;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.red svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.red:hover { background: color-mix(in srgb, var(--on-deep) 12%, transparent); border-color: var(--on-deep); transform: translateY(-2px); }
.pie-redes { display: flex; gap: 10px; }
.pie-redes a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); transition: background-color .2s, color .2s, transform .2s;
}
.pie-redes a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.pie-redes svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- WhatsApp flotante ---------- */
/* Abajo a la derecha en toda la página, con un globo de chat que invita a escribir. Se esconde cuando ya se ve el
   contacto o el pie, para no repetir el botón. En el celular el globo sale un rato al bajar; en el computador, siempre. */
.wa-flota {
  position: fixed; z-index: 20;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.wa-flota.oculto { opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none; }
.wa-flota-icono {
  flex: none; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa-marca);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55);
  transition: transform .15s ease;
}
.wa-flota:hover .wa-flota-icono { transform: scale(1.06); }
.wa-flota-icono svg { width: 32px; height: 32px; fill: #FFFFFF; }
.wa-flota-globo {
  display: none; max-width: 15rem;
  background: var(--screen); color: var(--screen-ink); border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px; padding: 10px 14px;
  font-size: .95rem; line-height: 1.35;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5);
}
.wa-flota-globo b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; }
.wa-flota.con-globo .wa-flota-globo { display: block; animation: globo .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes globo { from { opacity: 0; transform: translateX(10px) scale(.96); } }
@media (min-width: 760px) { .wa-flota-globo { display: block; } }
@media print { .wa-flota { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
