/* Home: componentes de React Bits traducidos a CSS/JS puro.
   Layout: una sola columna de secciones sobre negro; el hilo rojo (Threads) une hero, canales y CTA final. */
:root {
  --ink: #090706;          /* fondo, negro con sesgo cálido */
  --surface: #14100f;      /* tarjetas */
  --surface-2: #1d1715;
  --line: rgba(255, 228, 222, .10);
  --text: #f7f0ee;
  --muted: #a99e9a;
  --red: #E84545;          /* rojo de marca */
  --red-ink: #2a1312;      /* burbuja del asistente */
  --red-glow: rgba(232, 69, 69, .55);
  --ok: #5fd38a;           /* estado "activo" */
  --warn: #e8b045;         /* estado "en verificación" */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--text);
  font: 400 17px/1.55 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
section { position: relative; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.025em; line-height: 1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
p { margin: 0; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 34em; }
.eyebrow {
  font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); display: inline-flex; gap: .6em; align-items: center;
}
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.sec-head > div { display: grid; gap: 16px; min-width: 0; }

/* ---------- Botones + Magnet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 1em 1.5em; border-radius: 999px; border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #f05656; }
.btn-ghost { border-color: rgba(255,255,255,.28); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; font: 800 1.55rem/1 var(--f-display); letter-spacing: -.03em; text-decoration: none; }
.logo svg { width: .86em; height: 1.02em; margin: 0 .02em; transform: translateY(.08em); }
.nav { display: flex; gap: 28px; font-size: .95rem; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
.top .btn { padding: .7em 1.1em; font-size: .9rem; }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.threads {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 60%, rgba(232,69,69,.16), transparent 70%);
}
.threads canvas { width: 100% !important; height: 100% !important; display: block; }
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center;
  padding-block: 72px 80px;
}
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.shiny {
  justify-self: start; display: inline-flex; align-items: center; gap: .6em;
  font: 500 .8rem/1 var(--f-mono); letter-spacing: .04em;
  padding: .7em 1em; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03);
}
.shiny .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.shiny-text {
  color: rgba(247,240,238,.55);
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%) 0 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  animation: shine 4s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: .98; }
.hero h1 .l { display: block; }
.rot {
  display: inline-flex; vertical-align: bottom; overflow: hidden;
  background: var(--red); color: #fff; border-radius: .16em;
  padding: .02em .16em .1em; margin: .04em 0;
  white-space: nowrap;
}
.rot .w { display: inline-flex; }
.rot .c { display: inline-block; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Chat */
.phone {
  justify-self: center; width: min(100%, 380px);
  border-radius: 34px; padding: 10px; background: #050404;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 120px -30px var(--red-glow), inset 0 0 0 1px rgba(255,255,255,.03);
}
.chat { border-radius: 26px; background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font: 800 1rem/1 var(--f-display); flex: none; }
.chat-head b { display: block; font-size: 1rem; }
.chat-head small { color: var(--muted); font-size: .8rem; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 20px; font-size: .92rem; line-height: 1.4; }
.msg { max-width: 82%; padding: 10px 13px 18px; border-radius: 14px; position: relative; }
.msg time { position: absolute; right: 10px; bottom: 5px; font: 500 .62rem/1 var(--f-mono); color: var(--muted); }
.msg.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--red-ink); border: 1px solid rgba(232,69,69,.25); border-bottom-right-radius: 4px; }
.msg.out time { color: #c99; }
.sys {
  align-self: center; display: inline-flex; align-items: center; gap: .5em;
  font: 500 .72rem/1 var(--f-mono); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: .6em .9em; margin-top: 4px;
}
.sys::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--red-ink); border-radius: 14px; border-bottom-right-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #d88; 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; } 40% { opacity: 1; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 56px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- Canales (Animated Beam) ---------- */
.channels { padding-block: 88px 96px; border-bottom: 1px solid var(--line); }
.beam {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 24px clamp(48px, 10vw, 160px);
}
.beam-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.beam-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.beam-in { justify-items: start; }
.beam-out { justify-items: end; }
.beam-node { display: flex; align-items: center; gap: 12px; line-height: 1.25; }
.beam-out .beam-node { flex-direction: row-reverse; text-align: right; }
.beam-node b { display: block; font-size: 1rem; }
.beam-dot {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 0 0 6px var(--ink);
}
.beam-dot svg { width: 24px; height: 24px; }
.beam-node.is-pending .beam-dot { border-style: dashed; border-color: rgba(232,176,69,.5); }
.beam-hub { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; text-align: center; }
.beam-dot-hub {
  width: 104px; height: 104px;
  background: radial-gradient(circle at 50% 35%, #2a1312, var(--surface) 70%);
  border-color: rgba(232,69,69,.45);
  box-shadow: 0 0 0 8px var(--ink), 0 0 60px -10px var(--red-glow);
}
.beam-dot-hub svg { width: 40px; height: 47px; }
.beam-hub b { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -.01em; }
.status { display: inline-flex; align-items: center; gap: .45em; font-size: .8rem; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status.pending::before { background: transparent; border: 1.5px solid var(--warn); }
.beam-base { fill: none; stroke: rgba(255, 228, 222, .12); stroke-width: 1.5; }
.beam-base.is-pending { stroke-dasharray: 4 6; }
.beam-flow {
  fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 14 86; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px var(--red));
  animation: beam-flow 3.2s linear infinite;
}
.beam-flow.is-pending { stroke: var(--warn); filter: none; opacity: .6; }
@keyframes beam-flow { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .channels { padding-block: 64px 72px; }
  .beam { grid-template-columns: minmax(0, 1fr); gap: 56px; justify-items: center; }
  .beam-in, .beam-out { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 20px 6px; align-items: start; }
  .beam-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .beam-in, .beam-out { justify-items: center; }
  .beam-node, .beam-out .beam-node { flex-direction: column; text-align: center; gap: 8px; }
  .beam-dot-hub { width: 88px; height: 88px; }
  .beam-dot { width: 46px; height: 46px; }
  .beam-node b { font-size: .9rem; }
  .beam-node .status { display: block; font-size: .72rem; line-height: 1.3; text-align: center; }
  .beam-node .status::before { display: inline-block; margin-right: .35em; vertical-align: .05em; }
}

/* ---------- ScrollReveal ---------- */
.reveal-sec { padding-block: 120px 96px; }
.reveal {
  font: 600 clamp(1.7rem, 4.2vw, 3.2rem)/1.12 var(--f-display); letter-spacing: -.02em;
  max-width: 22em; text-wrap: pretty; margin-top: 28px;
}
.reveal .word { display: inline-block; will-change: opacity, filter; }
.reveal em { font-style: normal; color: var(--red); }
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 64px; }
.pain { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 8px; }
.pain h3 { font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.1; }
.pain p { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .pains { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- MagicBento ---------- */
.bento-sec { padding-block: 96px; }
.bento {
  position: relative;
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
}
.bento-card {
  --gx: 50%; --gy: 50%; --gi: 0;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 24px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  transform-style: preserve-3d; will-change: transform;
}
.bento-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: radial-gradient(260px circle at var(--gx) var(--gy), rgba(232,69,69,calc(var(--gi) * .95)), rgba(232,69,69,calc(var(--gi) * .3)) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.bento-card .label { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bento-card h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.05; }
.bento-card p { color: var(--muted); font-size: .95rem; margin-top: 8px; max-width: 30em; }
.bento-card.main { grid-column: span 2; grid-row: span 2; background: radial-gradient(120% 90% at 100% 0%, rgba(232,69,69,.2), transparent 55%), var(--surface); }
.bento-card.main h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.bento-card.main ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.bento-card.main li { display: flex; gap: 10px; align-items: baseline; }
.bento-card.main li::before { content: ""; width: 14px; height: 2px; background: var(--red); flex: none; transform: translateY(-4px); }
.bento-card.wide { grid-column: span 2; }
.bento-spot {
  position: fixed; left: 0; top: 0; width: 760px; height: 760px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(232,69,69,.13) 0%, rgba(232,69,69,.05) 30%, transparent 65%);
  transform: translate(-50%, -50%); opacity: 0; mix-blend-mode: screen;
}
.particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); pointer-events: none; z-index: 1; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-card.main, .bento-card.wide { grid-column: auto; grid-row: auto; }
}

/* ---------- LogoLoop rubros ---------- */
.loop {
  overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.loop-track { display: flex; width: max-content; animation: loop 28s linear infinite; }
.loop:hover .loop-track { animation-play-state: paused; }
.loop-item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 600 clamp(1.4rem, 3vw, 2.2rem)/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; color: rgba(247,240,238,.82); }
.loop-item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--red); }
@keyframes loop { to { transform: translateX(-50%); } }

/* ---------- CardSwap rubros ---------- */
.swap-sec { padding-block: 112px; overflow: hidden; }
.swap-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.swap-copy { display: grid; gap: 22px; min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  font: 600 .95rem/1 var(--f-body); color: var(--muted); cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .8em 1.15em;
  transition: color .2s, border-color .2s, background .2s;
}
.tab[aria-selected="true"] { color: #fff; background: var(--red); border-color: var(--red); }
.swap-note { color: var(--muted); font-size: .95rem; min-height: 3em; }
.swap-stage { position: relative; height: 470px; perspective: 900px; }
.swap-card {
  position: absolute; top: 50%; left: 46%; width: min(340px, 78vw);
  border-radius: 22px; background: #050404; border: 1px solid rgba(255,255,255,.14); padding: 8px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
  transform-style: preserve-3d; will-change: transform; backface-visibility: hidden;
}
.swap-card .chat { border-radius: 16px; }
.swap-card .chat-body { font-size: .86rem; }
@media (max-width: 900px) {
  .swap-grid { grid-template-columns: minmax(0, 1fr); }
  .swap-stage { height: 440px; }
  .swap-card { left: 42%; }
}

/* ---------- Pasos ---------- */
.steps-sec { padding-block: 96px; border-top: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps-line { position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line); }
.steps-line i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step .n {
  width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 1px solid var(--red); color: var(--red);
  font: 500 .8rem/1 var(--f-mono);
}
.step h3 { font-size: 1.35rem; letter-spacing: -.015em; margin-top: 10px; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-left: 0; }
  .steps-line { left: 18px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps-line i { transform-origin: top; }
  .step { grid-template-columns: 37px minmax(0, 1fr); column-gap: 18px; }
  .step .n { grid-row: span 2; }
  .step h3 { margin-top: 6px; }
}

/* ---------- FAQ ---------- */
.faq-sec { padding-block: 96px; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 22px 0; font: 600 1.15rem/1.3 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.4rem/1 var(--f-mono); color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 36em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- CTA final + StarBorder ---------- */
.cta-sec { overflow: hidden; padding-block: 120px; text-align: left; border-top: 1px solid var(--line); }
.cta-sec .threads { background: radial-gradient(50% 60% at 50% 100%, rgba(232,69,69,.18), transparent 70%); }
.cta-sec .wrap { position: relative; z-index: 1; display: grid; gap: 28px; justify-items: start; }
.cta-sec h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 11em; }
.star {
  position: relative; display: inline-block; padding: 1.5px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.08);
}
.star::before, .star::after {
  content: ""; position: absolute; width: 300%; height: 50%; border-radius: 50%; opacity: .8;
  background: radial-gradient(circle, #fff, transparent 12%);
}
.star::before { bottom: -12px; right: -250%; animation: star-bottom 5s linear infinite alternate; }
.star::after { top: -12px; left: -250%; animation: star-top 5s linear infinite alternate; }
.star .btn { position: relative; z-index: 1; font-size: 1.1rem; padding: 1.1em 1.8em; }
@keyframes star-bottom { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }
@keyframes star-top { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
.wa-note { color: var(--muted); font-size: .9rem; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 32px; color: var(--muted); font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .shiny-text, .loop-track, .star::before, .star::after, .typing i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Ajustes para Flask (la home no carga Bootstrap) ---------- */
body { margin: 0; }
img { max-width: 100%; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
a.bento-card { text-decoration: none; color: inherit; }
a.bento-card:hover h3 { color: var(--red); }
.home-footer nav { gap: 12px 20px; }

/* En celular el mazo sube por las tarjetas de atrás: deja lugar para que no tape el texto */
@media (max-width: 900px) { .swap-stage { margin-top: 64px; } }

/* ---------- Qué resuelve: Animated List ---------- */
.reveal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; margin-top: 28px; }
.reveal-grid .reveal { margin-top: 0; }
.feed {
  position: relative; height: 380px; overflow: hidden;
  -webkit-mask: linear-gradient(#000 65%, transparent);
          mask: linear-gradient(#000 65%, transparent);
}
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.9);
}
.feed-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); }
.feed-icon svg { width: 20px; height: 20px; }
.feed-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.feed-meta { display: flex; gap: 8px; align-items: baseline; font-size: .85rem; }
.feed-meta time { font: 500 .7rem/1 var(--f-mono); color: var(--muted); }
.feed-text { font-size: .95rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feed-ok { flex: none; display: inline-flex; align-items: center; gap: .4em; font-size: .75rem; color: var(--muted); }
.feed-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
@media (max-width: 900px) {
  .reveal-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feed { height: 300px; }
}
@media (max-width: 420px) { .feed-ok { display: none; } }

/* ---------- Menú para celular: Staggered Menu ---------- */
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; position: relative; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s cubic-bezier(.7, 0, .2, 1);
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (max-width: 860px) { .menu-toggle { display: block; } }
@media (max-width: 400px) { .top-actions .btn { padding: .7em .9em; } }

.menu { position: fixed; inset: 0; z-index: 19; }
.menu-layer, .menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 420px);
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.7, 0, .2, 1);
}
.menu-layer:nth-child(1) { background: var(--red); }
.menu-layer:nth-child(2) { background: var(--surface-2); transition-delay: .07s; }
.menu-panel {
  background: var(--ink); border-left: 1px solid var(--line); transition-delay: .14s;
  display: flex; flex-direction: column; gap: 32px;
  padding: calc(68px + env(safe-area-inset-top, 0px) + 40px) var(--gutter-r) 40px 28px;
}
.menu.is-open .menu-layer, .menu.is-open .menu-panel { transform: none; }
.menu.is-open .menu-layer:nth-child(1) { transition-delay: 0s; }
.menu.is-open .menu-layer:nth-child(2) { transition-delay: .07s; }
.menu.is-open .menu-panel { transition-delay: .14s; }
.menu:not(.is-open) .menu-layer:nth-child(1) { transition-delay: .14s; }
.menu:not(.is-open) .menu-panel { transition-delay: 0s; }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: menu; }
.menu-links li { overflow: hidden; counter-increment: menu; }
.menu-links a {
  display: flex; align-items: baseline; gap: 14px; text-decoration: none;
  font: 800 clamp(2rem, 9vw, 2.6rem)/1.15 var(--f-display); letter-spacing: -.02em;
  transform: translateY(110%); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.menu-links a::before { content: counter(menu, decimal-leading-zero); font: 500 .75rem/1 var(--f-mono); color: var(--red); }
.menu-links a:hover { color: var(--red); }
.menu-cta { align-self: start; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s; }
.menu.is-open .menu-links a { transform: none; transition-delay: calc(.3s + var(--i, 0) * .06s); }
.menu.is-open .menu-cta { opacity: 1; transform: none; transition-delay: .55s; }

/* ---------- FAQ: apertura suave ---------- */
.faq details { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .beam-flow { animation: none; stroke-dasharray: none; opacity: .5; }
  .menu-layer, .menu-panel, .menu-links a, .menu-cta { transition: none; }
}

/* Logo (isologo horizontal en blanco y rojo) */
.logo img { display: block; height: 30px; width: auto; }
.logo-sm img { height: 24px; }
.beam-dot-hub img { width: 40px; height: auto; }
