/* Operia: tokens */
:root {
  --noche: #000000;
  --carbon: #0E0B09;      /* superficies elevadas, con un dejo cálido */
  --linea: #2A221D;
  --borde-campo: #6B625A;
  --hueso: #F4EFE8;
  --ceniza: #9C958E;
  --sol: #FF8A12;
  --llama: #FC4A03;
  --brasa: #E61B02;
  --ember: linear-gradient(120deg, var(--sol) 0%, var(--llama) 45%, var(--brasa) 100%);

  --display: "Sora", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --radius-s: 10px;
  --radius-l: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--hueso);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--sol); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--hueso); color: var(--noche); padding: 10px 14px; border-radius: var(--radius-s);
}
.skip:focus { top: 16px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  background: var(--ember); color: var(--noche);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 40px -10px rgba(252, 74, 3, .7); }
.btn-ghost { background: transparent; color: var(--hueso); box-shadow: inset 0 0 0 1px var(--linea); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--hueso); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

.text-link {
  display: inline-block; margin-top: 28px;
  font-weight: 600; text-decoration: none;
  background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 1px solid var(--llama); padding-bottom: 2px;
}

/* Navegación */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: background .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled { background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.25rem/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 122px; height: auto; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ceniza); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--hueso); }
.menu-toggle { display: none; }

/* Portada */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px var(--gutter) clamp(56px, 9vh, 110px);
  overflow: hidden; isolation: isolate;
}

.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.hero-title {
  font-weight: 600;
  font-size: clamp(2.75rem, 8.4vw, 8.25rem);
  line-height: .98; letter-spacing: -.045em;
  max-width: 11ch;
  text-wrap: balance;
}
.hero-lead { margin-top: 32px; max-width: 46ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ceniza); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Secciones */
.products, .process, .faq, .cta {
  max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) 0;
}
.section-head h2 {
  font-weight: 600; font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04; letter-spacing: -.035em; max-width: 18ch; text-wrap: balance;
}

/* Productos */
.product {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 1px solid var(--linea);
}
.section-head + .product { margin-top: clamp(48px, 6vw, 80px); }
.product-flip .product-copy { order: 2; }
.product-name {
  font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  overflow-wrap: anywhere; hyphens: auto;
  line-height: .95; letter-spacing: -.05em;
}
.product-promise { margin-top: 20px; font: 400 clamp(1.25rem, 2vw, 1.625rem)/1.3 var(--display); letter-spacing: -.01em; max-width: 24ch; }
.product-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--ceniza); max-width: 44ch; }
.product-points li { padding-left: 22px; position: relative; }
.product-points li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ember);
}

.product-visual {
  position: relative; border-radius: var(--radius-l);
  background: radial-gradient(120% 90% at 100% 0%, rgba(252, 74, 3, .16), transparent 55%), var(--carbon);
  box-shadow: inset 0 0 0 1px var(--linea);
  padding: clamp(20px, 3vw, 36px);
  min-height: 360px;
}

/* Visual: chat */
.visual-chat { display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ceniza); margin-bottom: 8px; }
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 10px #3DDC84; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 18px; font-size: .9375rem; line-height: 1.45; }
.bubble.in { background: #1E1814; border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.out { background: var(--ember); color: var(--noche); border-bottom-right-radius: 6px; align-self: flex-end; }
.chat-event { align-self: center; margin-top: 6px; font-size: .8125rem; color: var(--ceniza); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linea); }

/* Visual: tablero */
.visual-board { display: grid; gap: 18px; align-content: space-between; }
.board-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpi { background: #17120F; border-radius: 14px; padding: 16px 18px; }
.kpi span { display: block; font-size: .8125rem; color: var(--ceniza); }
.kpi strong { display: block; margin-top: 6px; font: 600 2.25rem/1 var(--display); letter-spacing: -.03em; }
.alert { font-size: .875rem; padding: 12px 14px; border-radius: 12px; background: rgba(230, 27, 2, .12); box-shadow: inset 0 0 0 1px rgba(230, 27, 2, .35); }

/* Visual: integraciones */
.visual-hub { aspect-ratio: 5 / 4; min-height: 0; }
.visual-hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-core { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 28px rgba(252, 74, 3, .55)); }
.node {
  position: absolute; transform: translate(-50%, -50%);
  padding: 9px 14px; border-radius: 999px; font-size: .875rem; font-weight: 500;
  background: #17120F; box-shadow: inset 0 0 0 1px var(--linea); white-space: nowrap;
}
.n1 { left: 17.5%; top: 21.9%; } .n2 { left: 82.5%; top: 21.9%; }
.n3 { left: 17.5%; top: 78.1%; } .n4 { left: 82.5%; top: 78.1%; }

/* Proceso */
.steps {
  list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  position: relative;
}
.steps li { position: relative; }
.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--noche); box-shadow: inset 0 0 0 1px var(--linea);
  font: 600 1rem/1 var(--display); color: var(--ceniza);
  transition: background .5s ease, color .5s ease, box-shadow .5s ease;
}
.steps li.is-on .step-n { background: var(--ember); color: var(--noche); box-shadow: 0 0 24px rgba(252, 74, 3, .6); }
.steps h3 { margin-top: 28px; font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.steps p { margin-top: 10px; color: var(--ceniza); max-width: 32ch; }

/* Preguntas */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list details { border-top: 1px solid var(--linea); }
.faq-list details:last-child { border-bottom: 1px solid var(--linea); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 400 clamp(1.125rem, 1.8vw, 1.375rem)/1.35 var(--display); letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--llama), var(--llama)) center / 14px 2px no-repeat,
    linear-gradient(var(--llama), var(--llama)) center / 2px 14px no-repeat;
  transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 26px 0; color: var(--ceniza); max-width: 60ch; }

/* Contacto */
.cta {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px);
  padding-bottom: clamp(80px, 12vw, 160px);
}
.cta h2 { font-weight: 600; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.cta-copy p { margin-top: 24px; color: var(--ceniza); max-width: 40ch; }
.cta-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: clamp(22px, 3vw, 40px); border-radius: var(--radius-l);
  background: radial-gradient(90% 70% at 0% 100%, rgba(230, 27, 2, .18), transparent 60%), var(--carbon);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.field { display: grid; gap: 8px; }
.field-wide, .form-status, .form-actions { grid-column: 1 / -1; }
.field label { font-size: .875rem; color: var(--ceniza); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--noche); color: var(--hueso);
  border: 1px solid var(--borde-campo); border-radius: var(--radius-s);
  font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--llama); box-shadow: 0 0 0 3px rgba(252, 74, 3, .45); }
.field [aria-invalid="true"] { border-color: var(--brasa); }
.form-status { min-height: 1.4em; font-size: .9375rem; }
.form-status.is-error { color: #FF8A65; }
.form-status.is-ok { color: var(--sol); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pie */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px 24px; align-items: end;
}
.footer::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--linea); margin-bottom: 16px; }
.footer-brand img { width: 120px; height: auto; }
.footer-brand p { margin-top: 14px; color: var(--ceniza); }
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ceniza); text-decoration: none; }
.footer-links a:hover { color: var(--hueso); }
.footer-legal { grid-column: 1 / -1; font-size: .875rem; color: var(--ceniza); }

/* Responsive */
@media (max-width: 960px) {
  .product, .faq, .cta { grid-template-columns: 1fr; }
  .product-flip .product-copy { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 720px) {
  .nav { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .nav .btn-small { margin-left: auto; }
  .menu-toggle {
    order: 1; display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px;
    background: transparent; color: var(--hueso); border: 1px solid var(--linea); border-radius: 999px;
    font: 500 .9375rem/1 var(--body); cursor: pointer;
  }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    background: rgba(0, 0, 0, .94); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--linea);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.125rem; color: var(--hueso); }
  .hero { padding-top: 120px; }
  .cta-form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .product-visual { min-height: 0; }
  .node { font-size: .75rem; padding: 7px 10px; }
}
@media (max-width: 420px) {
  .nav .btn-small { display: none; }
  .menu-toggle { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
}


/* ===== Animaciones generadas con código ===== */

/* Portada: lienzo generativo */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block;
  background: radial-gradient(circle calc(max(100vw, 100svh) * .42) at 78% 36%, rgba(255, 138, 18, .34), rgba(230, 27, 2, .08) 55%, transparent);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .03), rgba(0, 0, 0, .3) 42%, #000 70%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .03), rgba(0, 0, 0, .3) 42%, #000 70%); }
@media (max-width: 719px) { .hero-canvas {
  background: radial-gradient(circle calc(max(100vw, 100svh) * .42) at 90% 20%, rgba(255, 138, 18, .34), rgba(230, 27, 2, .08) 55%, transparent);
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, .03) 5%, rgba(0, 0, 0, .3) 44%, #000 70%);
          mask-image: linear-gradient(0deg, rgba(0, 0, 0, .03) 5%, rgba(0, 0, 0, .3) 44%, #000 70%); } }

.motion-toggle {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; white-space: nowrap; min-height: 36px; padding: 0 14px;
  border-radius: 999px; background: rgba(0, 0, 0, .5); color: var(--hueso);
  border: 1px solid var(--borde-campo); font: 500 .8125rem/1 var(--body); cursor: pointer;
}
.motion-toggle:hover { border-color: var(--hueso); }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
.is-order .messy span { animation-play-state: paused; }

/* Luz que sigue al cursor sobre las maquetas */
.product-visual { overflow: hidden; }
.product-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 70%) var(--my, 25%), rgba(255, 138, 18, .12), transparent 70%);
}

/* Chat del agente */
.visual-chat { height: 400px; }
.chat-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: opacity .5s ease;
}
.chat-body.is-fading { opacity: 0; }
.chat-body > .is-hidden { display: none; }
.bubble, .chat-event, .typing { animation: pop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.bubble.in { transform-origin: bottom left; }
.bubble.out, .typing { transform-origin: bottom right; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.typing {
  align-self: flex-end; display: flex; gap: 5px; padding: 14px 16px;
  border-radius: 18px 18px 6px 18px; background: rgba(252, 74, 3, .18);
}
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sol); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-event { display: inline-flex; align-items: center; gap: 8px; }
.check {
  width: 16px; height: 16px; border-radius: 50%; background: #3DDC84; position: relative;
  box-shadow: 0 0 12px rgba(61, 220, 132, .7);
}
.check::after {
  content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px;
  border: solid var(--noche); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Tablero en vivo */
.visual-board { display: flex; flex-direction: column; gap: 16px; }
.kpi strong { font-variant-numeric: tabular-nums; transition: color .3s ease; }
.kpi strong.is-bump { color: var(--sol); }
.chart { position: relative; background: #17120F; border-radius: 14px; padding: 14px 14px 6px; }
.chart-label { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ceniza); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--brasa); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(230, 27, 2, 0); } 0% { box-shadow: 0 0 0 0 rgba(230, 27, 2, .6); } }
.chart canvas { display: block; width: 100%; height: 130px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; height: 92px; overflow: hidden; }
.feed li {
  font-size: .875rem; padding: 10px 14px; border-radius: 12px;
  background: rgba(252, 74, 3, .1); box-shadow: inset 0 0 0 1px rgba(252, 74, 3, .3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed li.is-new { animation: slide-in .6s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-14px); } }

/* Integraciones */
.hub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-core { z-index: 1; transition: transform .25s ease; }
.hub-core.is-hit { transform: translate(-50%, -50%) scale(1.06); }
.node { z-index: 1; transition: box-shadow .3s ease, color .3s ease; }
.node.is-ping { box-shadow: inset 0 0 0 1px var(--llama), 0 0 22px rgba(252, 74, 3, .55); color: var(--sol); }

/* Personalización: del caos al orden */
.visual-flow { display: flex; flex-direction: column; gap: 12px; }
.flow-label { font-size: .8125rem; color: var(--ceniza); transition: color .3s ease; }
.is-scan .flow-label { color: var(--sol); }
.flow-stage { position: relative; flex: 1; min-height: 240px; }
.messy span, .clean span {
  padding: 9px 14px; border-radius: 10px; font-size: .875rem; white-space: nowrap;
  background: #17120F; box-shadow: inset 0 0 0 1px var(--linea);
}
.messy span {
  position: absolute; left: var(--x); top: var(--y);
  animation: drift 4s ease-in-out infinite alternate; animation-delay: var(--d);
  transition: opacity .35s ease, filter .35s ease, transform .35s ease;
}
.messy span:nth-child(1) { --sd: .05s; --x: 4%;  --y: 10%; --r: -6deg; --d: 0s; }
.messy span:nth-child(2) { --sd: .5s; --x: 42%; --y: 4%;  --r: 4deg;  --d: -1s; color: var(--ceniza); }
.messy span:nth-child(3) { --sd: .85s; --x: 70%; --y: 22%; --r: -3deg; --d: -2s; }
.messy span:nth-child(4) { --sd: .22s; --x: 18%; --y: 52%; --r: 5deg;  --d: -.5s; color: var(--ceniza); }
.messy span:nth-child(5) { --sd: .62s; --x: 52%; --y: 60%; --r: -5deg; --d: -1.5s; }
.messy span:nth-child(6) { --sd: .9s; --x: 76%; --y: 74%; --r: 3deg;  --d: -2.5s; color: var(--ceniza); }
@keyframes drift {
  from { transform: rotate(var(--r)) translate(0, 0); }
  to   { transform: rotate(calc(var(--r) * -1)) translate(10px, -8px); }
}
.is-scan .messy span, .is-order .messy span { opacity: 0; filter: blur(6px); transition-delay: var(--sd); }
.is-order .messy span { transition-delay: 0s; }

.clean {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.clean span {
  position: relative; z-index: 1; opacity: 0; transform: scale(.8);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2, .9, .3, 1.3), background .4s ease, color .4s ease;
}
.is-order .clean span {
  opacity: 1; transform: none; transition-delay: calc(var(--i) * .22s);
  background: var(--ember); color: var(--noche); font-weight: 600; box-shadow: none;
}
.flow-line {
  position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, var(--sol), var(--brasa));
  transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.6, .1, .2, 1);
}
.is-order .flow-line { transform: scaleX(1); }
.flow-pulse {
  position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 4px var(--sol); opacity: 0;
}
.is-order .flow-pulse { animation: pulse-x 1.8s ease-in-out 1s infinite; }
@keyframes pulse-x { 0% { left: 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.scan {
  position: absolute; top: -6%; bottom: -6%; left: 0; width: 2px; opacity: 0; pointer-events: none;
  background: var(--sol); box-shadow: 0 0 18px 4px rgba(255, 138, 18, .7);
}
.is-scan .scan { animation: scan 1.3s cubic-bezier(.6, .1, .3, 1) forwards; }
@keyframes scan { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

@media (max-width: 560px) {
  .flow-stage { min-height: 300px; }
  .clean { flex-direction: column; justify-content: space-between; align-items: center; padding: 8px 0; }
  .clean span { min-width: 60%; text-align: center; }
  .flow-line { left: 50%; right: auto; top: 6%; bottom: 6%; width: 2px; height: auto; margin: 0 0 0 -1px; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--sol), var(--brasa)); }
  .is-order .flow-line { transform: scaleY(1); }
  .flow-pulse { left: 50%; top: 0; }
  .is-order .flow-pulse { animation-name: pulse-y; }
  @keyframes pulse-y { 0% { top: 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  .visual-chat { height: 420px; }
  .messy span:nth-child(3), .messy span:nth-child(6) { --x: 58%; }
}

@media (prefers-reduced-motion: reduce) {
  .messy span { animation: none; }
}

/* ===== Vida en el fondo ===== */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.blob {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(252, 74, 3, .16), rgba(230, 27, 2, .05) 55%, transparent);
  will-change: transform;
}
.b1 { left: -20vmax; top: 10vh; animation: deriva-1 46s ease-in-out infinite alternate; }
.b2 { right: -25vmax; top: 40vh; animation: deriva-2 58s ease-in-out infinite alternate; background: radial-gradient(closest-side, rgba(255, 138, 18, .12), rgba(252, 74, 3, .04) 55%, transparent); }
.b3 { left: 20vw; bottom: -35vmax; animation: deriva-3 52s ease-in-out infinite alternate; }
@keyframes deriva-1 { to { transform: translate(30vw, 25vh) scale(1.2); } }
@keyframes deriva-2 { to { transform: translate(-35vw, -20vh) scale(.85); } }
@keyframes deriva-3 { to { transform: translate(-15vw, -30vh) scale(1.15); } }

/* Lámpara que sigue al cursor en toda la página */
.lamp {
  position: fixed; left: 0; top: 0; z-index: 60; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  pointer-events: none; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 138, 18, .14), rgba(252, 74, 3, .05) 50%, transparent);
  transform: translate3d(var(--lx, 50vw), var(--ly, 40vh), 0);
  opacity: 0; transition: opacity .6s ease, transform .18s ease-out;
}
.lamp.is-on { opacity: 1; }
@media (hover: none) { .lamp { display: none; } }

/* Rayas de brasa al pasar el cursor */
.product, .steps > li { position: relative; isolation: isolate; }
.product::before, .steps > li::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 20px;
  background:
    repeating-linear-gradient(135deg, rgba(252, 74, 3, .55) 0 1.5px, transparent 1.5px 8.5px) 0 0 / 12.02px 12.02px,
    linear-gradient(135deg, rgba(110, 30, 4, .55), rgba(45, 12, 2, .45));
  box-shadow: inset 0 0 0 1px rgba(252, 74, 3, .35), 0 0 60px -20px rgba(252, 74, 3, .5);
  opacity: 0; transform: scale(.985);
  transition: opacity .35s ease, transform .35s ease;
  animation: rayas 1.2s linear infinite; animation-play-state: paused;
}
.product::before { inset: 16px calc(var(--gutter) * -.5); }
.steps > li::before { inset: -20px -16px; }
.product:hover::before, .steps > li:hover::before, .product:focus-within::before {
  opacity: 1; transform: none; animation-play-state: running;
}
@keyframes rayas { to { background-position: 12.02px 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .product::before, .steps > li::before { animation: none; }
  .faq-list details { animation: none; }
}

/* Preguntas: mismas rayas, con una propiedad animable porque <details> no admite bien ::before */
@property --rayas { syntax: "<number>"; inherits: false; initial-value: 0; }
.faq-list details {
  margin-inline: -18px; padding-inline: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(252, 74, 3, calc(.55 * var(--rayas))) 0 1.5px, transparent 1.5px 8.5px) 0 0 / 12.02px 12.02px,
    linear-gradient(135deg, rgba(110, 30, 4, calc(.55 * var(--rayas))), rgba(45, 12, 2, calc(.45 * var(--rayas))));
  transition: --rayas .35s ease;
  animation: rayas 1.2s linear infinite; animation-play-state: paused;
}
.faq-list details:hover, .faq-list details:focus-within { --rayas: 1; animation-play-state: running; }
