/* ==========================================================================
   Inicio + Test de 1 minuto + piezas nuevas de la versión "de barrio"
   ========================================================================== */

.demo-tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-full);
  color: var(--subtle);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  vertical-align: 1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 64px 84px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 56px;
  align-items: center;
}
.pioneer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}
.pioneer-badge:hover { border-color: var(--piloto); }
.pioneer-badge svg { width: 16px; height: 16px; }
.pioneer-new {
  padding: 3px 10px;
  border-radius: var(--r-full);
  color: #1b1300;
  background: var(--piloto);
  font-size: .74rem;
  font-weight: 750;
  white-space: nowrap;
}
.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1;
  text-wrap: balance;
  outline: none;
}
.hero-title .flip { display: block; }
.hero-copy .lede { max-width: 560px; margin-top: 20px; font-size: 1.15rem; }

.ask { margin-top: 28px; }
.ask-label { display: block; margin-bottom: 10px; font-size: 1.02rem; font-weight: 650; }
.ask-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 10px 10px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ask-box:focus-within { border-color: var(--negocio); box-shadow: 0 0 0 4px color-mix(in srgb, var(--negocio) 16%, transparent), var(--shadow-2); }
.ask-box textarea {
  flex: 1;
  min-width: 0;
  min-height: 58px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1.45;
  resize: none;
}
.ask-box textarea::placeholder { color: var(--subtle); }
.ask-actions { display: flex; align-items: center; gap: 8px; }

.hero-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 640px; margin-top: 14px; }
.alt-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.alt-option:hover { border-color: var(--negocio); background: var(--negocio-soft); }
.alt-option svg { width: 24px; height: 24px; flex: none; color: var(--negocio); }
.alt-option strong { display: block; color: var(--ink); font-size: .92rem; }

.social-proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--ink-2); font-size: .92rem; }
.faces { display: flex; }
.faces .avatar { margin-left: -9px; color: var(--negocio-ink); background: var(--negocio-soft); box-shadow: 0 0 0 1px var(--negocio); }
.faces .avatar:first-child { margin-left: 0; }
.social-proof strong { font-variant-numeric: tabular-nums; }

/* Diagrama con haces: negocio → Colaboremos → quien acompaña */
.hero-visual { display: grid; gap: 22px; }
.beam-diagram { aspect-ratio: 400 / 150; }
.beam-node {
  --s: 64px;
  position: absolute;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, calc(var(--s) / -2));
}
.node-negocio { left: 13%; }
.node-center { left: 50%; --s: 88px; }
.node-helper { left: 87%; }
.node-icon {
  position: relative;
  z-index: 1;
  width: var(--s);
  height: var(--s);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.node-negocio .node-icon { border-color: var(--negocio); color: var(--negocio); }
.node-negocio .node-icon svg { width: 28px; height: 28px; }
.node-center .node-icon { border-color: var(--piloto); }
.node-center .node-icon .brand-mark { width: 46px; height: 34px; }
.node-helper .node-icon { border-color: var(--creador); }
.node-helper .avatar { --size: 52px; border: 0; box-shadow: none; }
.node-center .ripple { width: var(--s); height: var(--s); inset: 0 auto auto 50%; transform: translateX(-50%); }
.node-label {
  padding: 2px 9px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 650;
  white-space: nowrap;
}

.feed-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-3);
}
.feed-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; animation: live 1.8s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgb(47 191 113 / .55); } 50% { box-shadow: 0 0 0 6px rgb(47 191 113 / 0); } }
.feed { display: grid; gap: 8px; min-height: 196px; list-style: none; align-content: start; }
.feed-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  font-size: .87rem;
  line-height: 1.35;
}
.feed-time { color: var(--subtle); font-size: .74rem; white-space: nowrap; }

/* ---------- Rubros ---------- */
.rubro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rubro-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background-color: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .7s ease, filter .7s ease;
}
.rubro-card:hover { border-color: var(--negocio); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.rubro-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 16px;
  color: var(--negocio-ink);
  background: var(--negocio-soft);
  transition: transform .25s ease;
}
.rubro-card:hover .rubro-icon { transform: rotate(-6deg) scale(1.06); }
.rubro-icon svg { width: 28px; height: 28px; }
.rubro-card strong { font-size: 1.06rem; line-height: 1.25; }
.rubro-pain { color: var(--muted); font-size: .86rem; font-style: italic; line-height: 1.4; }
.rubro-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--negocio-ink); font-size: .85rem; font-weight: 650; }
.rubro-go svg { width: 15px; height: 15px; transition: transform .15s ease; }
.rubro-card:hover .rubro-go svg { transform: translateX(3px); }

/* ---------- Cómo funciona ---------- */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; }
.how-step {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background-color: var(--surface);
}
.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 55px;
  right: -19px;
  width: 20px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}
.how-step .how-num { position: absolute; top: 24px; right: 24px; }
.how-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; color: var(--c); background: var(--c-soft); }
.how-icon svg { width: 28px; height: 28px; }
.how-step h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.how-step p { color: var(--muted); }
.how-negocio { --c: var(--negocio-ink); --c-soft: var(--negocio-soft); }
.how-neutral { --c: var(--ink); --c-soft: var(--surface-2); }
.how-piloto { --c: var(--piloto-ink); --c-soft: var(--piloto-soft); }
.how-piloto .how-num { color: #1b1300; background: var(--piloto); }
.how-negocio .how-num { color: var(--btn-primary-fg); background: var(--btn-primary-bg); }

/* ---------- Cifras ---------- */
.stats-band {
  margin-top: 88px;
  padding-block: 52px 40px;
  color: #eef3ef;
  background:
    radial-gradient(600px 200px at 85% 0%, rgb(242 181 58 / .18), transparent 70%),
    color-mix(in srgb, #0f6b4f 22%, #0b1310);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; }
.stats strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  font-weight: 760;
  letter-spacing: -.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stats li > span { display: block; margin-top: 6px; color: rgb(255 255 255 / .75); font-size: .92rem; }
.stats-note { margin-top: 22px; color: rgb(255 255 255 / .55); font-size: .76rem; }

/* ---------- Test CTA + medidor circular ---------- */
.test-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 40px 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--negocio-soft), var(--surface) 65%);
  color: var(--ink);
  text-decoration: none;
}
.test-cta p:not(.eyebrow) { max-width: 52ch; margin: 10px 0 22px; color: var(--ink-2); font-size: 1.05rem; }
.gauge { --p: .5; position: relative; width: 180px; height: 180px; display: grid; place-items: center; flex: none; }
.gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge-bg { stroke: var(--line); }
.gauge-fg { stroke: var(--negocio); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: calc(314.16 * (1 - var(--p))); transition: stroke-dashoffset 1.2s ease; }
.gauge > span { position: relative; display: grid; color: var(--muted); font-size: .85rem; text-align: center; }
.gauge strong { color: var(--ink); font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.gauge-lg { width: 200px; height: 200px; }

/* ---------- Bento de promesas ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; }
.bento-cell {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background-color: var(--surface);
}
.bento-cell strong { font-size: 1rem; line-height: 1.3; }
.bento-cell > span:last-child { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.bento-hero {
  grid-column: span 2;
  grid-row: span 2;
  gap: 14px;
  padding: 30px;
  background: linear-gradient(160deg, var(--piloto-soft), var(--surface) 70%);
}
.bento-hero h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 740; letter-spacing: -.02em; line-height: 1.1; }
.bento-hero > p:not(.eyebrow) { color: var(--ink-2); }
.mini-steps { display: grid; gap: 10px; margin-top: 8px; list-style: none; }
.mini-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-m); background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: .92rem; font-weight: 600; }
.mini-steps span { min-width: 60px; padding: 3px 8px; border-radius: var(--r-full); color: #1b1300; background: var(--piloto); font-size: .74rem; font-weight: 750; text-align: center; }
.bento-wide { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bento-wide > div { flex: 1 1 220px; display: grid; gap: 4px; }
.bento-wide > div span { color: var(--muted); font-size: .88rem; }

/* ---------- Testimonios ---------- */
.testimonials .marquee { margin-top: 16px; }
.quote-card {
  width: 320px;
  flex: none;
  display: grid;
  gap: 14px;
  align-content: space-between;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.quote-card figcaption { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; }
.quote-card figcaption strong { display: block; color: var(--ink); }
.quote-card .avatar { color: var(--negocio-ink); background: var(--negocio-soft); box-shadow: 0 0 0 1px var(--negocio); }

/* ---------- Pioneros ---------- */
.pioneer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.pioneer .lede { margin-top: 16px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.versus-col { padding: 24px; border-radius: 22px; }
.versus-col h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 1rem; }
.versus-col h3 .brand-mark { width: 26px; height: 19px; }
.versus-col ul { display: grid; gap: 12px; list-style: none; }
.versus-col li { display: flex; gap: 10px; font-size: .95rem; line-height: 1.4; }
.versus-col li svg { width: 20px; height: 20px; flex: none; }
.versus-old { color: var(--ink-2); background: var(--surface-2); }
.versus-old li svg { color: var(--subtle); }
.versus-new { border: 1.5px solid var(--negocio); background: var(--negocio-soft); }
.versus-new li svg { color: var(--ok); }

/* ---------- Cierre ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 64px 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  text-align: center;
}
.final-cta .aurora { inset: -60% -20%; opacity: .5; }
.final-cta > :not(.aurora) { position: relative; z-index: 1; }
.final-cta p { color: var(--ink-2); font-size: 1.05rem; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.helper-link { margin-top: 22px; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Buscar ayuda: problemas típicos del rubro ---------- */
.pains { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-l); background: var(--negocio-soft); }
.pains-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--ink-2); font-size: .92rem; }
.pains-title svg { width: 24px; height: 24px; flex: none; color: var(--negocio); }
.chip-pain { min-height: 40px; padding: 8px 14px; background: var(--surface); text-align: left; white-space: normal; }
.callout-callback { border-style: solid; border-color: color-mix(in srgb, var(--negocio) 40%, var(--line)); background: var(--surface); }

/* ---------- Test de 1 minuto ---------- */
.page-head-quiz { position: relative; overflow: hidden; }
.page-head-quiz .shell { position: relative; }
.quiz { margin-top: 32px; padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-2); }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.quiz-progress i { flex: 1; height: 6px; border-radius: 6px; background: var(--line); transition: background-color .3s ease; }
.quiz-progress i.is-done { background: var(--negocio); }
.quiz-progress i.is-current { background: var(--piloto); }
.quiz-count { color: var(--muted); font-size: .85rem; font-weight: 600; }
.quiz-q { margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 720; letter-spacing: -.02em; line-height: 1.15; outline: none; animation: quiz-in .35s ease; }
.quiz-why { margin-top: 10px; color: var(--muted); font-size: 1rem; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.quiz-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 18px; }
.quiz-answer {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  font-size: 1.15rem;
  font-weight: 700;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.quiz-answer:hover { border-color: var(--negocio); background: var(--negocio-soft); transform: translateY(-2px); }
.quiz-answer svg { width: 24px; height: 24px; }
.quiz-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 28px; }
.quiz-result .h2 { outline: none; }
.quiz-result .lede { margin-top: 10px; }
.quiz-next-title { margin-bottom: 16px; font-size: 1.1rem; }
.next-step { position: relative; display: grid; }
.next-num {
  position: absolute;
  top: -10px; left: -10px;
  z-index: 2;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1b1300;
  background: var(--piloto);
  font-weight: 800;
}
.quiz-end { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.pilot-visit { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: .84rem; line-height: 1.4; }
.pilot-visit svg { width: 18px; height: 18px; flex: none; color: var(--negocio); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 580px; }
  .rubro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-hero { grid-row: auto; }
  .pioneer { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-step:not(:last-child)::after { top: auto; bottom: -17px; right: auto; left: 55px; width: 2px; height: 16px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px); }
  .stats-band { margin-top: 64px; }
}

@media (max-width: 640px) {
  .hero { padding-block: 40px 56px; }
  .pioneer-badge { font-size: .78rem; }
  .ask-box { flex-direction: column; align-items: stretch; padding: 12px; }
  .ask-box textarea { padding: 4px 4px 0; }
  .ask-actions .btn { flex: 1; }
  .hero-alt { grid-template-columns: 1fr; }
  .beam-node { --s: 50px; }
  .node-center { --s: 66px; }
  .node-negocio .node-icon svg { width: 22px; height: 22px; }
  .node-helper .avatar { --size: 40px; }
  .node-center .node-icon .brand-mark { width: 36px; height: 26px; }
  .node-label { max-width: 84px; font-size: .7rem; line-height: 1.2; text-align: center; white-space: normal; }
  .feed-item { grid-template-columns: auto minmax(0, 1fr); }
  .feed-time { grid-column: 2; }
  .rubro-card { padding: 16px; }
  .rubro-pain { display: none; }
  .rubro-icon { width: 46px; height: 46px; }
  .bento, .versus { grid-template-columns: 1fr; }
  .bento-hero, .bento-wide { grid-column: auto; }
  .test-cta { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .gauge { width: 140px; height: 140px; }
  .quote-card { width: 270px; }
  .final-cta { padding: 44px 20px; border-radius: 24px; }
  .quiz { padding: 22px 18px; border-radius: 22px; }
  .quiz-answers { grid-template-columns: 1fr; }
  .quiz-result { grid-template-columns: 1fr; justify-items: start; gap: 20px; }
}
