/* Páginas de contenido en español (23/10, SEO): /es/qr-dinamico y
   /es/qr-con-estadisticas. Van después de style.css y usan sus tokens, su
   menú, botones, tarjetas, panel de métricas (.mx-*) y footer; acá sólo
   está lo propio de estas páginas. Sin JavaScript: todo el texto está en el
   HTML. Colores del panel de ejemplo: QR #8B6CFF y Link #2DD4BF, los de la app. */

.seo-page { position: relative; z-index: 2; }
.seo-page a.seo-link { color: #b9a3ff; border-bottom: 1px solid rgba(185, 163, 255, 0.4); }
.seo-page a.seo-link:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* menú: el de la landing con los links de estas páginas */
.qivi-nav-link[aria-current="page"] { color: var(--text); }
.qivi-logo-wrap a { display: block; }

/* hero */
.seo-hero { position: relative; z-index: 0; overflow-x: clip; }
.seo-hero .qivi-grid-bg { height: 760px; }
.seo-hero-inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  padding: 64px 24px 56px; display: flex; align-items: center; gap: 48px;
}
.seo-hero-text { flex: 1 1 0; min-width: 0; }
.seo-hero .qivi-sub { max-width: 560px; }
.seo-h1 { font-size: 52px; }
.seo-hero-art { flex: 0 1 420px; min-width: 0; display: flex; justify-content: center; }
.seo-hero-art img { width: 100%; max-width: 400px; height: auto; }

/* secciones */
.seo-section { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.seo-narrow { max-width: 868px; }
.seo-h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.seo-h2.solo { margin-bottom: 32px; }
.seo-lead { margin: 0 0 36px; font-size: 17px; line-height: 1.6; color: rgba(242, 243, 247, 0.68); max-width: 700px; }
.seo-p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: rgba(242, 243, 247, 0.72); }
.seo-p:last-child { margin-bottom: 0; }
.seo-p strong { color: var(--text); }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.seo-card { padding: 24px; }
.seo-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.seo-card p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(242, 243, 247, 0.65); }

/* antes → ahora */
.seo-swap { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.seo-swap .qivi-card { flex: 1 1 280px; min-width: 0; padding: 28px; }
.seo-swap .now { border-color: rgba(139, 108, 255, 0.55); box-shadow: 0 0 34px -14px rgba(139, 108, 255, 0.5); }
.seo-swap-k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 243, 247, 0.5); margin-bottom: 8px; }
.seo-swap .now .seo-swap-k { color: #b9a3ff; }
.seo-swap-t { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.seo-swap-u { font: 500 14px "JetBrains Mono", ui-monospace, monospace; color: rgba(242, 243, 247, 0.55); overflow-wrap: anywhere; }
.seo-swap-arrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 4px; color: #b9a3ff; }

/* pasos */
.seo-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.seo-step-n { font: 700 36px/1 "JetBrains Mono", ui-monospace, monospace; }
.seo-steps h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 700; }
.seo-steps p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(242, 243, 247, 0.65); }

/* tablas */
.seo-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.seo-table { border-collapse: collapse; width: 100%; min-width: 520px; }
.seo-table th, .seo-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 15px; line-height: 1.45; vertical-align: top; }
.seo-table tbody tr:last-child td { border-bottom: 0; }
.seo-table th { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(242, 243, 247, 0.5); }
.seo-table th.hl { color: #b9a3ff; }
.seo-table td.no { color: rgba(242, 243, 247, 0.45); }
.seo-table td:first-child { color: rgba(242, 243, 247, 0.86); }
.seo-plans td:not(:first-child), .seo-plans th:not(:first-child) { text-align: center; }

/* banda con link a la otra página */
.seo-band { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 32px; }
.seo-band-t { display: block; font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.seo-band-d { display: block; font-size: 16px; color: rgba(242, 243, 247, 0.65); }
.seo-band > span:first-child { flex: 1 1 360px; min-width: 0; }
.seo-band:hover { border-color: rgba(139, 108, 255, 0.45); }

/* preguntas frecuentes: siempre abiertas, texto visible sin JS */
.seo-faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; }
.seo-faq-item:first-of-type { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.seo-faq-item h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.seo-faq-item p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(242, 243, 247, 0.72); }

/* CTA final */
.seo-final {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 52px 40px; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(43, 107, 255, 0.22), rgba(166, 40, 216, 0.22)), var(--bg-alt);
  border: 1px solid rgba(166, 40, 216, 0.35);
}
.seo-final > div { flex: 1 1 400px; min-width: 0; }
.seo-final h2 { margin: 0 0 8px; font-size: 36px; line-height: 1.15; font-weight: 800; }
.seo-final p { margin: 0; font-size: 17px; color: rgba(242, 243, 247, 0.72); }

/* "QR con estadísticas": panel de ejemplo del hero */
.seo-hero-panel { flex: 1.3 1 0; min-width: 0; display: flex; align-items: flex-end; gap: 8px; }
.seo-hero-panel .mx-window { flex: 1 1 auto; min-width: 0; }
.seo-hero-panel img { flex: 0 0 200px; width: 200px; height: auto; }
.seo-kpis2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seo-kpis2 .mx-n { font-size: 20px; }
.seo-big .mx-n { font-size: 36px; }
.seo-chip { margin-top: 6px; font-size: 12.5px; color: rgba(242, 243, 247, 0.55); }
.seo-chip b { color: var(--text); font-family: "JetBrains Mono", ui-monospace, monospace; }
.seo-back { color: #4fe3a6; }
.mx-split i.qr { background: #8B6CFF; }
.mx-split i.ln { background: #2DD4BF; }
.mx-split i.unc { background: #3a3f4d; }
.seo-sq { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.seo-sq.qr { background: #8B6CFF; } .seo-sq.ln { background: #2DD4BF; }
.mx-split-l.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
/* en estas páginas las barras ya llevan su ancho (no las anima main.js) */
.seo-page .mx-split i, .seo-page .mx-row .bar i { transition: none; }

/* ejemplo cartel vs folletos */
.seo-example { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 44px; }
.seo-example > div { flex: 1 1 360px; min-width: 0; }
.seo-bars { display: flex; flex-direction: column; gap: 16px; }
.seo-bar-l { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.seo-bar-l b { font-family: "JetBrains Mono", ui-monospace, monospace; }
.seo-bar { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.seo-bar i { display: block; height: 100%; border-radius: 7px; }

/* filas con imagen y texto */
.seo-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.seo-split-art { flex: 1 1 260px; min-width: 0; display: flex; justify-content: center; }
.seo-split-art img { width: 100%; max-width: 320px; height: auto; }
.seo-split-text { flex: 2 1 460px; min-width: 0; }
.seo-split-text.half { flex: 1 1 380px; }
.seo-split .mx-panel { flex: 1 1 440px; min-width: 0; padding: 22px; }
.seo-split .mx-row { grid-template-columns: 40px minmax(0, 130px) minmax(40px, 1fr) 76px; }
.seo-split .mx-row .cc { text-align: center; }
.seo-split .mx-row .bar i { background: #2DD4BF; }

/* mapa de calor día × hora */
.seo-heat-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.seo-heat { flex: 2 1 520px; min-width: 0; padding: 22px; }
.seo-heat-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.seo-heat-grid { display: grid; grid-template-columns: 40px repeat(6, minmax(0, 1fr)); gap: 6px; min-width: 420px; }
.seo-heat-grid span { font: 500 12px "JetBrains Mono", ui-monospace, monospace; color: rgba(242, 243, 247, 0.5); text-align: center; align-self: center; }
.seo-heat-grid span.d { text-align: left; }
.seo-heat-grid b { border-radius: 6px; text-align: center; padding: 8px 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h0 { background: #26243F; } .h1 { background: #36306A; } .h2 { background: #4A3D95; } .h3 { background: #6550C6; } .h4 { background: #8B6CFF; }
.seo-people { flex: 1 1 280px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.seo-people h3 { margin: 0; font-size: 18px; font-weight: 700; }
.seo-people p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(242, 243, 247, 0.65); }
.seo-dev { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.seo-dev div { display: flex; justify-content: space-between; }
.seo-dev span:last-child { font: 500 12px "JetBrains Mono", ui-monospace, monospace; color: rgba(242, 243, 247, 0.55); }
.seo-demo-foot { margin: 10px 0 0; }

/* ---------- celular y tablet ---------- */
@media (max-width: 1024px) {
  .seo-hero-inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .seo-hero-art { flex-basis: auto; }
  .seo-hero-art img { max-width: 320px; }
}
@media (max-width: 860px) {
  .seo-h1 { font-size: 38px; }
  .seo-hero-inner { padding: 40px 16px 40px; }
  .seo-section { padding: 48px 16px; }
  .seo-h2 { font-size: 28px; }
  .seo-final { padding: 36px 24px; }
  .seo-final h2 { font-size: 28px; }
  .seo-example { padding: 28px 22px; gap: 28px; }
  .seo-swap-arrow { flex-basis: 100%; transform: rotate(90deg); }
}
@media (max-width: 1024px) {
  .seo-hero .qivi-hero-ctas { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .seo-h1 { font-size: 32px; }
  .seo-hero-art img { max-width: 230px; }
  .seo-hero .qivi-hero-ctas { margin-bottom: 0; }
  /* tablas sin deslizar: entran en el ancho y el texto baja de renglón */
  .seo-table { min-width: 0; table-layout: fixed; }
  .seo-table th:first-child, .seo-table td:first-child { width: 34%; }
  .seo-plans th:first-child, .seo-plans td:first-child { width: 40%; }
  .seo-table.seo-plans th, .seo-table.seo-plans td { padding: 11px 8px; font-size: 13px; }
  .seo-table.seo-plans th { font-size: 11px; letter-spacing: 0.02em; }
  .seo-table.seo-plans td:first-child, .seo-table.seo-plans th:first-child { padding-left: 14px; }
  .seo-hero-panel { flex-direction: column; align-items: center; }
  .seo-hero-panel .mx-window { width: 100%; }
  .seo-hero-panel img { width: 170px; flex-basis: auto; }
  .seo-big .mx-n { font-size: 30px; }
  .seo-split { gap: 28px; }
  .seo-split .mx-row { grid-template-columns: 36px minmax(0, 1fr) 64px; }
  .seo-split .mx-row .bar { grid-column: 2 / 4; grid-row: 2; }
  .seo-table th, .seo-table td { padding: 12px 14px; font-size: 14px; }
  .seo-band { padding: 24px; }
  .seo-band-t { font-size: 20px; }
  .seo-final .q-cta { width: 100%; justify-content: center; }
  .seo-final > a { width: 100%; }
}

/* ajustes después de la vista previa (23/10) */
.seo-grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.seo-demo-foot { display: inline-block; align-self: flex-start; }
@media (max-width: 640px) {
  .seo-grid.cols3 { grid-template-columns: 1fr; }
  .seo-heat { padding: 16px 12px; }
  .seo-heat-grid { min-width: 0; grid-template-columns: 30px repeat(6, minmax(0, 1fr)); gap: 4px; }
  .seo-heat-grid b { font-size: 11.5px; padding: 7px 0; border-radius: 5px; }
  .seo-heat-grid span { font-size: 10.5px; }
}

/* Guías (23/10): miga de pan arriba del H1 y tarjetas de /es/guias */
.seo-crumbs { margin: 0 0 18px; font-size: 13.5px; color: rgba(242, 243, 247, 0.55); }
.seo-crumbs ol { list-style: none; margin: 0; padding: 0; line-height: 1.6; }
.seo-crumbs li { display: inline; }
.seo-crumbs li + li::before { content: '›'; margin: 0 8px; color: rgba(242, 243, 247, 0.35); }
.seo-crumbs a { color: rgba(242, 243, 247, 0.75); }
.seo-crumbs a:hover { color: #ffffff; }
.seo-crumbs [aria-current="page"] { color: rgba(242, 243, 247, 0.55); }
.seo-hero-short .seo-hero-inner { padding-bottom: 8px; }
.seo-hero-short .qivi-sub { margin-bottom: 0; }
.seo-guides-section { padding-top: 32px; }
.seo-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.seo-guide { display: flex; flex-direction: column; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.seo-guide:hover, .seo-guide:focus-visible { border-color: rgba(139, 108, 255, 0.5); box-shadow: 0 0 34px -14px rgba(139, 108, 255, 0.5); transform: translateY(-2px); }
.seo-guide:focus-visible { outline: 2px solid var(--accent-a); outline-offset: 2px; }
.seo-guide-art {
  display: flex; justify-content: center; align-items: flex-end; height: 240px; padding-top: 18px;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(166, 40, 216, 0.28), transparent 70%), rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.seo-guide-art img { height: 100%; width: auto; }
.seo-guide-body { display: block; padding: 22px 24px 26px; }
.seo-guide h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 800; }
.seo-guide p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(242, 243, 247, 0.65); }
@media (max-width: 640px) {
  .seo-guides { grid-template-columns: 1fr; }
  .seo-guide-art { height: 200px; }
  .seo-crumbs { font-size: 12.5px; }
}
