/* Páginas EA — landing styles */

:root {
  --bg: oklch(97.6% 0.006 165);
  --bg-deep: oklch(94.2% 0.01 165);
  --card: oklch(99.5% 0.002 165);
  --ink: oklch(23% 0.018 165);
  --ink-soft: oklch(37% 0.02 165);
  --line: oklch(86% 0.012 165);

  --brand: oklch(47% 0.12 155);
  --brand-hover: oklch(42% 0.115 155);
  --deep: oklch(29% 0.055 165);
  --deep-ink: oklch(96% 0.015 160);
  --mark: oklch(88% 0.085 152);
  --bubble-out: oklch(93.5% 0.045 152);

  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --z-header: 10;
  --z-fab: 20;
}

:root[data-accent="azul"] {
  --bg: oklch(97.6% 0.006 245);
  --bg-deep: oklch(94.2% 0.012 245);
  --card: oklch(99.5% 0.002 245);
  --ink: oklch(23% 0.02 250);
  --ink-soft: oklch(37% 0.022 250);
  --line: oklch(86% 0.014 245);
  --brand: oklch(47% 0.125 250);
  --brand-hover: oklch(42% 0.12 250);
  --deep: oklch(28% 0.055 255);
  --deep-ink: oklch(96% 0.012 245);
  --mark: oklch(88% 0.07 240);
  --bubble-out: oklch(93.5% 0.035 240);
}

:root[data-accent="terracota"] {
  --bg: oklch(97.6% 0.006 45);
  --bg-deep: oklch(94.2% 0.012 50);
  --card: oklch(99.5% 0.002 45);
  --ink: oklch(24% 0.02 40);
  --ink-soft: oklch(38% 0.022 40);
  --line: oklch(86% 0.016 50);
  --brand: oklch(50% 0.125 40);
  --brand-hover: oklch(45% 0.12 40);
  --deep: oklch(30% 0.05 40);
  --deep-ink: oklch(96% 0.014 60);
  --mark: oklch(89% 0.07 65);
  --bubble-out: oklch(94% 0.04 60);
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-wa {
  background: var(--brand);
  color: #fff;
}
.btn-wa .bub { fill: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: var(--brand-hover); box-shadow: 0 6px 18px -10px var(--brand); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-light:hover { transform: translateY(-1px); }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-light {
  background: #fff;
  color: var(--deep);
}

.btn-sm { padding: 10px 18px; font-size: 15px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 240ms ease;
}
.site-header.scrolled { box-shadow: 0 12px 32px -24px oklch(30% 0.05 165 / 0.55); }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.logo .dot { color: var(--brand); }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink-soft);
  transition: color 140ms ease;
}
.site-nav a:hover { color: var(--ink); }

.header-phone {
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .site-nav, .header-phone { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 90px;
  background:
    radial-gradient(640px 420px at 86% 12%, color-mix(in oklab, var(--mark) 38%, transparent), transparent 70%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.kicker {
  display: inline-block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--brand);
  background: var(--mark);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero h1 .mark {
  background-image: linear-gradient(transparent 68%, var(--mark) 68%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
}

.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-soft);
}
.hero-note strong { color: var(--ink); }

/* ---------- Chat mockup ---------- */

.chat {
  background: var(--card);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 60px -32px oklch(30% 0.05 165 / 0.45);
  overflow: hidden;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--deep);
  color: var(--deep-ink);
  padding: 14px 18px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 15px;
}
.chat-head .who { line-height: 1.25; }
.chat-head .who b { font-size: 16px; display: block; }
.chat-head .who span { font-size: 13px; opacity: 0.78; }

.chat-body {
  position: relative;
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in oklab, var(--mark) 30%, transparent), transparent 60%),
    var(--bg);
}

.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 1px 2px oklch(30% 0.03 165 / 0.12);
}
.msg .meta {
  display: block;
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 3px;
}
.msg-in {
  background: #fff;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg-out {
  background: var(--bubble-out);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg-out .meta::after {
  content: " ✓✓";
  color: var(--brand);
  letter-spacing: -0.08em;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.chat-input .field {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.chat-input .send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  flex: none;
}

:root[data-chat="off"] .chat { display: none; }
:root[data-chat="off"] .hero .wrap { grid-template-columns: 1fr; text-align: center; }
:root[data-chat="off"] .hero-sub { margin-inline: auto; }
:root[data-chat="off"] .hero-ctas { justify-content: center; }

@media (max-width: 920px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .chat { justify-self: center; }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.sec-head { max-width: 60ch; margin-bottom: 52px; }
.sec-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sec-head p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- Proceso ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
  padding-top: 36px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.step .n {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--brand);
}
.step h3 { font-size: 21px; margin: 10px 0 8px; font-weight: 700; }
.step p { font-size: 15.5px; color: var(--ink-soft); }

@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Portfolio ---------- */

#proyectos { background: var(--bg-deep); }

.works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.works > * { min-width: 0; }
.work-main { grid-column: 1 / -1; }

.works-dots { display: none; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.works-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line); cursor: pointer;
  transition: width 220ms var(--ease-out), background 220ms var(--ease-out);
}
.works-dots button[aria-current="true"] { width: 22px; background: var(--brand); }

.browser {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 44px -28px oklch(30% 0.05 165 / 0.5);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .work:hover .browser {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -30px oklch(30% 0.06 165 / 0.55);
  }
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.browser-bar .url {
  flex: 1;
  background: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 5px 14px;
  text-align: center;
  font-family: ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser { min-width: 0; }
.browser image-slot,
.browser .work-shot { display: block; width: 100%; max-width: 100%; }
.work-main .browser image-slot,
.work-main .browser .work-shot { height: 460px; object-fit: cover; object-position: top; }
.work image-slot,
.work .work-shot { height: 300px; object-fit: cover; object-position: top; }

.work-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.work-meta h3 { font-size: 21px; font-weight: 700; }
.work-meta .tag {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--mark);
  border-radius: 999px;
  padding: 3px 12px;
}
.work-meta .visit {
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--mark);
  transition: border-color 140ms ease;
}
.work-meta .visit .arr {
  display: inline-block;
  transition: transform 180ms var(--ease-out);
}
.work-meta .visit:hover .arr { transform: translateX(4px); }
.work-meta .visit:hover { border-color: var(--brand); }

.work-desc {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 70ch;
}

@media (max-width: 860px) {
  .works {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 4px;
  }
  .works::-webkit-scrollbar { display: none; }
  .works > .work { flex: 0 0 86%; scroll-snap-align: start; }
  .work-main { grid-column: auto; }
  .work-main .browser image-slot,
  .work-main .browser .work-shot,
  .work image-slot,
  .work .work-shot { height: 200px; }
  .works-dots { display: flex; }
}

/* ---------- Incluye ---------- */

.incluye {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.incluye .sec-head { margin-bottom: 0; position: sticky; top: 96px; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.check-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.check-list li:first-child { padding-top: 4px; }
.check-list .tick {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--mark);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  margin-top: 3px;
}
.check-list b { font-size: 17.5px; display: block; margin-bottom: 3px; }
.check-list p { font-size: 15.5px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .incluye { grid-template-columns: 1fr; gap: 36px; }
  .incluye .sec-head { position: static; }
}

/* ---------- Opiniones ---------- */

.quotes {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.quote {
  margin: 0;
  position: relative;
  padding-top: 44px;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 0;
  left: -4px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: var(--brand);
}
.quote blockquote {
  margin: 0;
  font-size: 17.5px;
  color: var(--ink);
  text-wrap: pretty;
}
.quote.lead blockquote {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.quote figcaption {
  margin-top: 16px;
  font-size: 15px;
}
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--ink-soft); }

@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Hueco "tu web" ---------- */

.work-cta { grid-column: 1 / -1; }
.work-cta .slot {
  border: 2px dashed color-mix(in oklab, var(--brand) 38%, var(--line));
  border-radius: var(--radius);
  padding: 38px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}
.work-cta h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.work-cta p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- Precios ---------- */

#precios { background: var(--bg-deep); }

.precio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 72px;
  align-items: center;
}
.precio .big {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 1;
}
.precio .big small {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand);
  margin-bottom: 14px;
  font-family: "Instrument Sans", sans-serif;
}
.precio .big em {
  display: block;
  font-style: normal;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 14px;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink-soft);
}
.precio-txt p { font-size: 18px; color: var(--ink-soft); max-width: 56ch; }
.precio-txt p + p { margin-top: 16px; }
.precio-txt strong { color: var(--ink); }
.precio-txt .btn { margin-top: 28px; }

@media (max-width: 860px) {
  .precio { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Cierre ---------- */

.cierre {
  background: var(--deep);
  color: var(--deep-ink);
  text-align: center;
  padding: 104px 0;
}
.cierre h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.cierre p {
  margin: 18px auto 0;
  font-size: 19px;
  max-width: 44ch;
  color: color-mix(in oklab, var(--deep-ink) 82%, var(--deep));
}
.cierre .ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.cierre .btn-ghost {
  color: var(--deep-ink);
  border-color: color-mix(in oklab, var(--deep-ink) 35%, transparent);
}
.cierre .btn-ghost:hover { border-color: var(--deep-ink); }

/* ---------- Footer ---------- */

.site-footer { padding: 36px 0 110px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink); font-weight: 500; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { margin-left: auto; }

/* ---------- FAB + mobile bar ---------- */

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: var(--z-fab);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -10px var(--brand);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:active { transform: scale(0.94); }
.fab .bub { fill: #fff; }

.mobile-bar { display: none; }

@media (max-width: 720px) {
  .fab { display: none; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-fab);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--card) 94%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { justify-content: center; padding: 13px 10px; font-size: 15.5px; }
}

/* ---------- Marquee de sectores ---------- */

.marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
}
.m-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.m-group .sep { color: var(--brand); }

/* ---------- Typing indicator (chat) ---------- */

.typing {
  position: absolute;
  display: flex;
  gap: 5px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px oklch(30% 0.03 165 / 0.12);
}
.typing.msg-in { left: 16px; border-bottom-left-radius: 4px; }
.typing.msg-out { right: 16px; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: tdot 1.1s infinite both;
}
.typing i:nth-child(2) { animation-delay: 150ms; }
.typing i:nth-child(3) { animation-delay: 300ms; }

@keyframes tdot {
  0%, 60%, 100% { transform: none; opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 0.9; }
}

/* ---------- Reveals (JS-gated, visible by default) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Hero choreography — fires once on load via body.hero-in */
  body.anim .hero-copy > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  body.anim .hero-copy > *:nth-child(2) { transition-delay: 90ms; }
  body.anim .hero-copy > *:nth-child(3) { transition-delay: 180ms; }
  body.anim .hero-copy > *:nth-child(4) { transition-delay: 270ms; }
  body.anim .hero-copy > *:nth-child(5) { transition-delay: 360ms; }
  body.anim.hero-in .hero-copy > * { opacity: 1; transform: none; }

  body.anim .hero h1 .mark {
    background-size: 0% 100%;
    transition: background-size 560ms var(--ease-in-out) 680ms;
  }
  body.anim.hero-in .hero h1 .mark { background-size: 100% 100%; }

  body.anim .chat {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 800ms var(--ease-out) 240ms, transform 800ms var(--ease-out) 240ms;
  }
  body.anim.hero-in .chat { opacity: 1; transform: none; }

  /* Marquee */
  .marquee-track { animation: marq 36s linear infinite; }

  /* Steps rule draws itself */
  body.anim .steps::before {
    transform: scaleX(0);
    transition: transform 1100ms var(--ease-out) 120ms;
  }
  body.anim .steps.in::before { transform: scaleX(1); }

  /* FAB ping (3 veces, no infinito) */
  .fab.show::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    opacity: 0;
    animation: fab-ping 1.7s var(--ease-out) 500ms 3;
  }

  body.anim .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  body.anim .reveal.in { opacity: 1; transform: none; }
  body.anim .reveal:nth-child(2) { transition-delay: 60ms; }
  body.anim .reveal:nth-child(3) { transition-delay: 120ms; }
  body.anim .reveal:nth-child(4) { transition-delay: 180ms; }

  body.anim .msg {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out);
  }
  body.anim .msg.in { opacity: 1; transform: none; }
}

@keyframes marq {
  to { transform: translateX(-50%); }
}

@keyframes fab-ping {
  0% { transform: scale(0.82); opacity: 0.7; }
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Safety valve: si la línea de tiempo se congela (capturas, PDF, iframes
   pausados), todo el contenido queda visible pasados unos segundos. */
body.settled .hero-copy > *,
body.settled .chat,
body.settled .msg,
body.settled .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
body.settled .hero h1 .mark { background-size: 100% 100% !important; }
body.settled .steps::before { transform: scaleX(1) !important; }

