/* ═══════════════════════════════════════════════════════════
   InfinitumTech As — estilos
   Paleta y tipografía tomadas de los vídeos (src/comun/theme.ts)
   para que web y contenido sean la misma marca.
   Sin fuentes ni recursos externos: nada sale fuera del dominio.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #080B12;
  --bg-lift: #111927;
  --card: #0E1621;
  --line: rgba(255, 255, 255, .12);
  --text: #EEF3F8;
  --muted: #8C9BAE;
  --cyan: #4CC9F0;
  --wa: #25D366;
  --amber: #FFB84D;
  --radio: 18px;
  --ancho: 1120px;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Fondo animado ─── */
.fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.rejilla {
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(76, 201, 240, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 240, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: deriva 40s linear infinite;
}
@keyframes deriva { to { transform: translate(54px, 54px); } }

/* Red de nodos difuminada: el "lienzo de automatización" de fondo */
.red-nodos {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: blur(3px);
  opacity: .5;
}
.red-cables path {
  fill: none;
  stroke: rgba(76, 201, 240, .55);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 26 300;
  animation: circular 9s linear infinite;
}
.red-cables path:nth-child(2n) { animation-duration: 11s; animation-delay: -3s; }
.red-cables path:nth-child(3n) { animation-duration: 13s; animation-delay: -6s; stroke: rgba(37, 211, 102, .5); }
@keyframes circular { from { stroke-dashoffset: 326; } to { stroke-dashoffset: 0; } }

.red-puntos circle {
  fill: rgba(76, 201, 240, .5);
  animation: pulso-nodo 4s ease-in-out infinite;
}
.red-puntos circle:nth-child(2n) { animation-delay: -1.3s; fill: rgba(37, 211, 102, .45); }
.red-puntos circle:nth-child(3n) { animation-delay: -2.6s; }
@keyframes pulso-nodo {
  0%, 100% { opacity: .35; transform: scale(1); transform-origin: center; }
  50%      { opacity: .9;  transform: scale(1.35); }
}

.brillo { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.brillo-1 { width: 46vw; height: 46vw; background: rgba(76, 201, 240, .28); top: -12vw; right: -10vw; animation: latir 12s ease-in-out infinite; }
.brillo-2 { width: 40vw; height: 40vw; background: rgba(37, 211, 102, .16); bottom: -14vw; left: -12vw; animation: latir 16s ease-in-out infinite reverse; }
@keyframes latir { 50% { transform: scale(1.18); opacity: .75; } }

/* ─── Cabecera ─── */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  background: rgba(8, 11, 18, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-weight: 700; }
.marca-logo {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #16404f, #071018);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-size: .82rem; font-weight: 800; letter-spacing: .5px;
}
.marca-texto { font-size: 1.02rem; letter-spacing: -.2px; }
.marca-texto b { color: var(--cyan); }

/* ─── Botones ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-wa { background: var(--wa); color: #04241a; box-shadow: 0 8px 26px rgba(37, 211, 102, .3); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(37, 211, 102, .45); filter: brightness(1.06); }
.btn-cabecera { padding: 9px 17px; font-size: .92rem; }
.btn-grande { padding: 17px 32px; font-size: 1.1rem; }
.ico-wa { width: 21px; height: 21px; fill: currentColor; flex: none; }

/* ─── Layout general ─── */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: 92px 22px; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.8px; margin: 0 0 18px; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.9vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.16rem; font-weight: 700; }

.resalte {
  color: var(--cyan);
  background: linear-gradient(transparent 68%, rgba(76, 201, 240, .22) 68%);
}
.entradilla { font-size: clamp(1.02rem, 2vw, 1.16rem); color: #C6D2E0; max-width: 58ch; }
.subtitulo-seccion { color: var(--muted); max-width: 62ch; margin: -6px 0 40px; }
.remate { margin-top: 34px; font-size: 1.06rem; color: #C6D2E0; max-width: 62ch; }
.etiqueta {
  display: inline-block; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(76, 201, 240, .4);
  background: rgba(76, 201, 240, .09);
  color: var(--cyan);
  font-size: .8rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.bajo-boton { margin-top: 14px; color: var(--muted); font-size: .93rem; }

/* ─── Portada ─── */
.portada {
  max-width: var(--ancho); margin: 0 auto;
  padding: 64px 22px 88px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.portada-hueco { min-height: 300px; }

/* ─── Robot guía: fijo en pantalla, viaja de apartado en apartado ─── */
.robot-guia {
  position: fixed;
  left: 50%; top: 50%;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) translate(33vw, 0) scale(1);
  transition:
    transform 1.05s cubic-bezier(.34, 1.2, .4, 1),
    opacity .6s ease;
}
.robot-guia.activo { opacity: 1; }

.robot-caja { position: relative; display: grid; place-items: center; }
.robot-halo {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 201, 240, .3), transparent 68%);
  filter: blur(26px); animation: latir 6s ease-in-out infinite;
}
.robot { width: 165px; height: auto; position: relative; }

/* En pantallas anchas el contenido se estrecha para dejarle carril al robot */
@media (min-width: 1180px) {
  :root { --ancho: 960px; }
}
@media (min-width: 900px) and (max-width: 1179px) {
  :root { --ancho: 820px; }
}

/* Bocadillo: el robot "dice" de qué va cada apartado */
.robot-bocadillo {
  position: absolute;
  bottom: calc(100% - 30px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: max-content; max-width: var(--ancho-bocadillo, 190px);
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(14, 22, 33, .94);
  border: 1px solid rgba(76, 201, 240, .45);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
  color: var(--text);
  font-size: .95rem; font-weight: 600; line-height: 1.4;
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
}
.robot-bocadillo.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.robot-bocadillo span::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 3px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: cursor .8s steps(2) infinite;
}
@keyframes cursor { 50% { opacity: 0; } }


/* ─── Apariciones al bajar ─── */
.aparece {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease var(--retraso, 0ms), transform .7s cubic-bezier(.22, 1, .36, 1) var(--retraso, 0ms);
}
.aparece.visible { opacity: 1; transform: none; }
.robot-cuerpo { animation: flotar 3.4s ease-in-out infinite; transform-origin: 210px 300px; }
@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50%      { transform: translateY(-15px) rotate(1.4deg); }
}
.brazo-izq { transform-origin: 150px 250px; animation: brazo-izq 3.9s ease-in-out infinite; }
.brazo-der { transform-origin: 270px 250px; animation: brazo-der 2.6s ease-in-out infinite; }
@keyframes brazo-izq { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes brazo-der { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(11deg); } }
.ojos { transform-origin: 210px 132px; animation: parpadeo 4.2s infinite; }
@keyframes parpadeo { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.12); } }
.boca { transform-origin: 210px 168px; animation: hablar .42s ease-in-out infinite alternate; }
@keyframes hablar { from { transform: scaleY(.42); } to { transform: scaleY(1.5); } }
.robot-sombra { animation: sombra 3.4s ease-in-out infinite; transform-origin: 210px 392px; }
@keyframes sombra { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(.84); opacity: .28; } }

/* ─── El problema ─── */
.problema-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.tarjeta-dolor {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radio);
  padding: 26px 24px;
  transition: transform .22s ease, border-color .22s ease;
}
.tarjeta-dolor:hover { transform: translateY(-5px); border-color: rgba(76, 201, 240, .45); }
.hora {
  display: inline-block; margin-bottom: 12px;
  color: var(--amber); font-weight: 800; font-size: .92rem;
  font-variant-numeric: tabular-nums; letter-spacing: .6px;
}
.tarjeta-dolor p { margin: 0; color: #C6D2E0; }

/* ─── Flujo animado ─── */
.lienzo {
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: var(--radio);
  padding: 26px 18px;
  overflow-x: auto;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.flujo { min-width: 760px; width: 100%; height: auto; }
.nodo rect { fill: var(--card); stroke: rgba(76, 201, 240, .55); stroke-width: 2; }
.nodo text { fill: var(--text); font-family: var(--fuente); font-size: 15px; font-weight: 700; text-anchor: middle; }
.nodo text.sub { fill: var(--muted); font-size: 12.5px; font-weight: 500; }
.nodo-final rect { stroke: var(--wa); }
.nodo-final text { fill: var(--wa); font-size: 27px; }
.nodo { opacity: 0; animation: aparecer .5s ease forwards; }
.n1 { animation-delay: .1s; } .n2 { animation-delay: .7s; } .n3 { animation-delay: 1.3s; }
.n4 { animation-delay: 1.9s; } .n5 { animation-delay: 2.5s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cables { opacity: .45; }
.cables-flujo use { animation: recorrer 2.6s linear infinite; }
.cables-flujo use:nth-child(2) { animation-delay: .3s; }
.cables-flujo use:nth-child(3) { animation-delay: .6s; }
.cables-flujo use:nth-child(4) { animation-delay: .9s; }
@keyframes recorrer { from { stroke-dashoffset: 250; } to { stroke-dashoffset: 0; } }

/* ─── Servicios ─── */
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.servicio {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radio);
  padding: 24px 24px 26px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.servicio:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 201, 240, .5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
}
.servicio-ico {
  width: 50px; height: 50px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 14px;
  background: rgba(76, 201, 240, .11);
  border: 1px solid rgba(76, 201, 240, .3);
  color: var(--cyan);
}
.servicio-ico svg { width: 26px; height: 26px; }
.servicio p { color: #C6D2E0; margin: 0 0 18px; }
.lista-check { list-style: none; margin: 0; padding: 0; }
.lista-check li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--muted); font-size: .95rem; }
.lista-check li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--wa); font-weight: 800;
}

/* ─── Pasos ─── */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: p; }
.pasos li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radio);
  padding: 30px 26px; position: relative;
}
.paso-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(76, 201, 240, .13); border: 1px solid rgba(76, 201, 240, .45);
  color: var(--cyan); font-weight: 800;
}
.pasos p { color: #C6D2E0; margin: 0; }

/* ─── Sobre mí ─── */
.sobre-mi-caja {
  background: linear-gradient(140deg, rgba(76, 201, 240, .11), rgba(37, 211, 102, .06));
  border: 1px solid rgba(76, 201, 240, .3);
  border-radius: 26px;
  padding: clamp(30px, 5vw, 56px);
}
.sobre-mi-caja p { color: #C6D2E0; max-width: 62ch; }
.idiomas { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.idiomas li {
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  font-size: .93rem; font-weight: 600;
}

/* ─── Cierre ─── */
.cierre { text-align: center; }
.cierre .entradilla { margin: 0 auto 30px; }

/* ─── Pie ─── */
.pie {
  border-top: 1px solid var(--line);
  padding: 42px 22px 120px;
  text-align: center; color: var(--muted); font-size: .92rem;
}
.pie-marca { margin: 0 0 14px; color: var(--text); font-weight: 600; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 14px; }
.pie-enlaces a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.pie-enlaces a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.pie-nota { margin: 0; font-size: .85rem; opacity: .75; }

/* ─── Botón flotante ─── */
.wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #04241a;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.wa-flotante svg { width: 30px; height: 30px; fill: currentColor; }
.wa-flotante:hover { transform: scale(1.09); }
.wa-flotante::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: onda 2.4s ease-out infinite;
}
@keyframes onda { to { transform: scale(1.75); opacity: 0; } }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .portada { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .portada-hueco { min-height: 300px; }
  .portada-texto { order: 2; }
  .portada-robot { order: 1; }
  .entradilla, .subtitulo-seccion, .remate { margin-left: auto; margin-right: auto; }
  .problema-grid, .servicios, .pasos { grid-template-columns: 1fr; }
  .seccion { padding: 66px 20px; }
  .idiomas { justify-content: center; }
  .sobre-mi-caja { text-align: center; }
}

@media (max-width: 560px) {
  .marca-texto { font-size: .95rem; }
  .btn-grande { width: 100%; justify-content: center; }
}

/* Respeta a quien pide menos animación */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .robot-guia { position: fixed; top: 62%; opacity: 1; }
  .robot-bocadillo { display: none; }
  .aparece { opacity: 1; transform: none; }
}

/* ─── El robot en móvil: acompañante de esquina, sin bocadillo ───
   En pantalla pequeña no hay margen libre, así que se queda arriba del
   contenido como un icono de chat. Se le quita el bocadillo (no cabe) y
   se reserva hueco al final para que no tape el pie. */
@media (max-width: 1023px) {
  .robot-bocadillo { display: none; }
  .robot-guia { filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .65)); }
  .pie { padding-bottom: 150px; }
}

/* ═══════════════════════════════════════════════════════════
   Apartados a pantalla completa y mockups con vida
   ═══════════════════════════════════════════════════════════ */

/* Cada apartado ocupa la pantalla y se centra, como en las webs de referencia */
@media (min-width: 900px) and (min-height: 820px) {
  .seccion:not(.cierre) {
    min-height: 100svh;
    justify-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 110px;   /* deja hueco a la cabecera fija */
    padding-bottom: 70px;
  }
  .portada { min-height: calc(100svh - 68px); }

  /* Titulares grandes, al estilo de las referencias */
  h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
}

/* El apartado que estás mirando gana peso; los de al lado se apagan */
.seccion { transition: opacity .6s ease, filter .6s ease; }

/* ─── Tarjetas del problema: cada una con su gesto ─── */
.tarjeta-dolor { position: relative; overflow: hidden; }
.dolor-icono {
  position: relative;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  display: grid; place-items: center;
  color: var(--amber);
}
.dolor-icono svg { width: 26px; height: 26px; position: relative; }

/* Teléfono que vibra con ondas saliendo */
.icono-llamada svg { animation: vibra 2.4s ease-in-out infinite; }
@keyframes vibra {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(-14deg); } 70% { transform: rotate(12deg); }
  74% { transform: rotate(-10deg); } 78% { transform: rotate(8deg); } 82% { transform: rotate(0); }
}
.icono-llamada .onda {
  position: absolute; inset: 0;
  border: 2px solid var(--amber); border-radius: 50%;
  opacity: 0; animation: onda-sale 2.4s ease-out infinite;
}
.icono-llamada .onda.o2 { animation-delay: .35s; }
@keyframes onda-sale {
  0%, 60% { transform: scale(.6); opacity: 0; }
  70% { opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Mensaje sin leer, con su globo rojo */
.icono-mensaje svg { animation: flota-msg 3s ease-in-out infinite; }
@keyframes flota-msg { 50% { transform: translateY(-4px); } }
.icono-mensaje .globo {
  position: absolute; top: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 0 2px var(--card);
  animation: late-globo 1.8s ease-in-out infinite;
}
@keyframes late-globo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }

/* Facturas que se van amontonando */
.icono-papeles { width: 46px; height: 46px; }
.icono-papeles .papel {
  position: absolute;
  width: 26px; height: 32px; border-radius: 3px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 184, 77, .55);
  animation: cae-papel 3.6s ease-in-out infinite;
}
.icono-papeles .p1 { left: 4px;  top: 8px; transform: rotate(-9deg); }
.icono-papeles .p2 { left: 10px; top: 6px; transform: rotate(3deg);  animation-delay: .5s; }
.icono-papeles .p3 { left: 16px; top: 9px; transform: rotate(11deg); animation-delay: 1s; }
@keyframes cae-papel {
  0%, 100% { transform: translateY(0) rotate(var(--g, 0deg)); }
  50%      { transform: translateY(-5px) rotate(var(--g, 0deg)); }
}

/* ─── Mockups dentro de las tarjetas de servicio ─── */
.mockup {
  position: relative;
  margin: -6px 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0A121B;
  overflow: hidden;
  height: 152px;
}

/* Conversación de WhatsApp escribiéndose sola */
.chat-barra {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: #10202b;
  border-bottom: 1px solid var(--line);
  font-size: .74rem; font-weight: 700; color: var(--muted);
}
.chat-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.chat-cuerpo { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.burbuja {
  max-width: 82%;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: .74rem; line-height: 1.35;
  opacity: 0;
  animation: burbuja-entra .5s ease forwards;
}
.burbuja.entra { align-self: flex-start; background: var(--bubbleIn, #1B2733); border-bottom-left-radius: 4px; }
.burbuja.sale  { align-self: flex-end;   background: #0A5B4A; border-bottom-right-radius: 4px; }
.b1 { animation-delay: .3s; } .b2 { animation-delay: 1.5s; } .b3 { animation-delay: 2.4s; }
@keyframes burbuja-entra { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.escribiendo {
  align-self: flex-end;
  display: flex; gap: 4px;
  padding: 8px 10px; border-radius: 12px;
  background: #0A5B4A;
  opacity: 0; animation: parpadea-escribe 4.4s ease-in-out infinite;
}
.escribiendo i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.75); animation: sube-punto 1.1s ease-in-out infinite; }
.escribiendo i:nth-child(2) { animation-delay: .16s; }
.escribiendo i:nth-child(3) { animation-delay: .32s; }
@keyframes sube-punto { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes parpadea-escribe { 0%, 18% { opacity: 1; } 26%, 100% { opacity: 0; } }

/* Hoja de cálculo rellenándose sola */
.mockup-hoja { padding: 10px 12px; font-size: .72rem; }
.hoja-cabecera, .hoja-fila {
  display: grid; grid-template-columns: 1.4fr .8fr .9fr;
  gap: 6px; padding: 7px 8px; border-radius: 6px;
}
.hoja-cabecera { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: .62rem; background: rgba(255,255,255,.04); }
.hoja-fila { color: #C6D2E0; border-bottom: 1px solid rgba(255,255,255,.05); opacity: 0; animation: fila-entra .5s ease forwards; }
.hoja-fila span:last-child { color: var(--wa); font-weight: 700; text-align: right; }
.f1 { animation-delay: .4s; } .f2 { animation-delay: 1.1s; } .f3 { animation-delay: 1.8s; } .f4 { animation-delay: 2.5s; }
@keyframes fila-entra { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* Piezas sueltas que se conectan */
.mockup-piezas { display: grid; place-items: center; }
.mockup-piezas svg { width: 100%; height: auto; padding: 6px 10px; }
.piezas-cables path {
  fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: traza 4.5s ease-in-out infinite;
}
.piezas-cables path:nth-child(2) { animation-delay: .5s; }
.piezas-cables path:nth-child(3) { animation-delay: .25s; }
.piezas-cables path:nth-child(4) { animation-delay: .75s; }
@keyframes traza {
  0%   { stroke-dashoffset: 90; }
  35%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.piezas-cajas rect {
  fill: var(--card); stroke: rgba(76, 201, 240, .5); stroke-width: 2;
  animation: respira-caja 4.5s ease-in-out infinite;
}
.piezas-cajas rect:nth-child(2) { animation-delay: .3s; }
.piezas-cajas rect:nth-child(4) { animation-delay: .6s; }
.piezas-cajas rect:nth-child(5) { animation-delay: .9s; }
.pieza-centro { stroke: var(--wa) !important; }
@keyframes respira-caja { 0%, 100% { opacity: .55; } 45% { opacity: 1; } }

/* En móvil los mockups se achican un poco */
@media (max-width: 899px) {
  .mockup { height: 150px; }
}

/* El robot se da la vuelta al cambiar de lado */
.robot-guia.girando .robot-caja { animation: giro-robot 1s cubic-bezier(.5, 0, .3, 1); }
@keyframes giro-robot {
  0%   { transform: rotateY(0)      scale(1); }
  50%  { transform: rotateY(180deg) scale(.86); }
  100% { transform: rotateY(360deg) scale(1); }
}
