/* Landing y blog de viaurl. Mismo modelo visual que la landing de FlowMenu (portada
   negra con resplandores, botones redondos, tarjetas suaves), con el color de viaurl. */
:root {
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-light: #2dd4bf;
  --brand-soft: #ccfbf1;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #52525b;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --soft: #fafafa;
  --dark: #09090b;
  --wa: #25d366;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: #fff; color: var(--ink); overflow-x: hidden;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.s-wrap { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.s-narrow { max-width: 760px; }
.center { text-align: center; margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Botones ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: .9rem; text-decoration: none; border: 1px solid transparent;
  transition: background .2s, transform .2s, border-color .2s; cursor: pointer; white-space: nowrap; }
.s-btn-lg { padding: 14px 28px; font-size: 1rem; }
.s-btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(13,148,136,.6); }
.s-btn-brand:hover { background: var(--brand-dark); }
.s-btn-brand svg { transition: transform .2s; }
.s-btn-brand:hover svg { transform: translateX(2px); }
.s-btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.s-btn-ghost:hover { background: rgba(255,255,255,.1); }
.s-btn-line { color: var(--ink); border-color: #d4d4d8; background: #fff; }
.s-btn-line:hover { border-color: var(--ink); }

/* ---------- Encabezado ---------- */
.s-header { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.s-header.solid { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(228,228,231,.7); }
.s-header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.s-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.s-brand b { color: var(--brand); }
.s-brand svg { color: var(--brand); }
.hero-dark .s-header:not(.solid) .s-brand { color: #fff; }
.hero-dark .s-header:not(.solid) .s-brand b, .hero-dark .s-header:not(.solid) .s-brand svg { color: var(--brand-light); }
.s-nav { display: none; gap: 30px; margin: 0 auto; }
.s-nav a, .s-link { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--muted); }
.s-nav a:hover, .s-link:hover { color: var(--ink); }
.hero-dark .s-header:not(.solid) .s-nav a, .hero-dark .s-header:not(.solid) .s-link { color: rgba(255,255,255,.8); }
.hero-dark .s-header:not(.solid) .s-nav a:hover, .hero-dark .s-header:not(.solid) .s-link:hover { color: #fff; }
.s-actions { display: none; align-items: center; gap: 16px; }
.s-actions .s-link { font-weight: 600; }
.s-menu-btn { margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.hero-dark .s-header:not(.solid) .s-menu-btn { color: #fff; }
.s-mobile { background: #fff; border-top: 1px solid #f4f4f5; padding: 6px 20px 20px; }
.s-mobile > a { display: block; padding: 12px 0; border-bottom: 1px solid #f4f4f5; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.s-mobile-actions { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 860px) {
  .s-nav, .s-actions { display: flex; }
  .s-actions { margin-left: 0; }
  .s-menu-btn, .s-mobile { display: none !important; }
}

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); padding: 128px 0 96px; }
@media (min-width: 640px) { .hero { padding-top: 160px; } }
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow span { position: absolute; border-radius: 50%; filter: blur(110px); }
.hero-glow span:first-child { width: 900px; height: 600px; left: 50%; top: 0; transform: translateX(-50%); background: rgba(13,148,136,.28); }
.hero-glow span:nth-child(2) { width: 420px; height: 420px; right: 0; bottom: 0; background: rgba(45,212,191,.12); }
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero-text { text-align: center; }
@media (min-width: 1024px) { .hero-text { text-align: left; } }
.pill-dark { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  color: #99f6e4; font-size: .78rem; font-weight: 500; padding: 6px 16px; border-radius: 999px; }
.pill-dark i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.hero h1 { margin-top: 24px; color: #fff; font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; line-height: 1.05; }
.grad { background: linear-gradient(90deg, #5eead4, #14b8a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #d4d4d8; font-size: 1.1rem; max-width: 36rem; margin: 24px auto 0; }
@media (min-width: 1024px) { .hero-sub { margin-left: 0; } }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; align-items: stretch; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; align-items: center; justify-content: center; } }
@media (min-width: 1024px) { .hero .hero-ctas { justify-content: flex-start; } }
.center-ctas { justify-content: center !important; }
.hero-note { color: var(--faint); font-size: .85rem; margin-top: 16px; }

/* Ejemplo de estadísticas en la portada */
.mock { position: relative; max-width: 380px; width: 100%; margin: 0 auto; }
.mock-card { background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.mock-top { display: flex; justify-content: space-between; align-items: center; }
.mock-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.mock-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 10px; border-radius: 999px; }
.mock-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: latido 2s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .25; } }
.mock-link { margin-top: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; color: var(--ink-2); }
.mock-link b { color: var(--brand-dark); }
.mock-row { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.mock-qr { width: 96px; height: 96px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mock-nums { display: grid; gap: 8px; }
.mock-nums strong { display: block; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.mock-nums span { font-size: .78rem; color: var(--muted); }
.mock-split { margin-top: 18px; }
.mock-split-bar { height: 10px; border-radius: 999px; background: var(--brand); overflow: hidden; }
.mock-split-bar span { display: block; height: 100%; background: var(--ink); border-right: 2px solid #fff; }
.mock-split-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.mock-split-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: 0; }
.k-qr { background: var(--ink); } .k-link { background: var(--brand); }
.mock-countries { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.mock-countries li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; }
.mock-countries img { width: 28px; height: 21px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.mock-countries b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mock-toast { position: absolute; left: -12px; bottom: -22px; display: flex; align-items: center; gap: 8px; max-width: 92%;
  background: var(--ink); color: #fff; font-size: .8rem; padding: 10px 14px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.mock-toast img { width: 22px; height: 16.5px; border-radius: 3px; flex: none; }
@media (min-width: 1024px) { .mock-toast { left: -40px; } }

/* ---------- Barra de confianza ---------- */
.trust { border-bottom: 1px solid #f4f4f5; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 24px; padding-bottom: 24px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-grid div { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--muted); text-align: center; }
.trust-grid svg { color: var(--brand); flex: none; width: 19px; height: 19px; }

/* ---------- Secciones ---------- */
.sec { padding: 80px 0; }
@media (min-width: 640px) { .sec { padding: 104px 0; } }
.sec-tight { padding-top: 24px; }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--dark); position: relative; overflow: hidden; }
.eyebrow { text-align: center; color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.eyebrow-light { color: var(--brand-light); text-align: left; }
.sec-title { text-align: center; font-size: clamp(1.85rem, 4vw, 2.5rem); font-weight: 800; }
.sec-title-light { color: #fff; text-align: left; }
.sec-sub { text-align: center; color: var(--muted); max-width: 40rem; margin: 16px auto 0; }
.sec-sub.left { text-align: left; margin-left: 0; }
.sec-sub-light { color: var(--faint); text-align: left; margin-left: 0; }
.brand-text { color: var(--brand); }

.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
@media (min-width: 768px) { .who-grid { grid-template-columns: repeat(4, 1fr); } }
.who { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px 12px; border: 1px solid var(--line);
  border-radius: 18px; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: border-color .2s, box-shadow .2s; }
.who:hover { border-color: rgba(13,148,136,.4); box-shadow: 0 6px 20px -10px rgba(0,0,0,.15); }
.who-ico, .feat-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(13,148,136,.1); color: var(--brand); }

.steps { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 32px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.15rem; }
.step h3 { margin-top: 18px; font-size: 1.2rem; }
.step p { color: var(--muted); margin: 8px 0 0; }

.feat-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: #fff; transition: box-shadow .2s, transform .2s; }
.feat:hover { box-shadow: 0 14px 34px -18px rgba(0,0,0,.25); transform: translateY(-2px); }
.feat h3 { margin-top: 16px; font-size: 1.08rem; }
.feat p { color: var(--muted); font-size: .93rem; margin: 6px 0 0; }

/* Vitrina oscura */
.showcase { display: grid; gap: 48px; align-items: center; position: relative; }
@media (min-width: 1000px) { .showcase { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: #e4e4e7; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.compare { display: grid; gap: 14px; }
@media (min-width: 560px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { border-radius: 22px; padding: 24px; }
.compare-col h3 { font-size: 1.05rem; margin-bottom: 12px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.compare-col.bad { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: var(--faint); }
.compare-col.bad h3 { color: #e4e4e7; }
.compare-col.bad li::before { content: "✕  "; color: #f87171; font-weight: 700; }
.compare-col.good { background: linear-gradient(160deg, #0f766e, #0d9488); color: #fff; box-shadow: 0 20px 50px -20px rgba(13,148,136,.7); }
.compare-col.good li::before { content: "✓  "; font-weight: 700; }

/* ---------- Preguntas ---------- */
.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Llamado final ---------- */
.final { padding: 0 0 80px; }
.final-box { position: relative; overflow: hidden; background: var(--dark); border-radius: 40px; padding: 64px 24px; text-align: center; }
.final-box h2 { position: relative; color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; max-width: 40rem; margin: 0 auto; }
.final-box p { position: relative; color: var(--faint); max-width: 32rem; margin: 16px auto 0; }
.final-box .hero-ctas { position: relative; }

/* ---------- Blog ---------- */
.page-head { padding: 128px 0 32px; background: linear-gradient(180deg, #f0fdfa, #fff); }
.page-head .eyebrow { text-align: left; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.crumbs { margin: 0 0 12px; font-size: .9rem; font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }
.post-meta { color: var(--muted); font-size: .88rem; margin: 12px 0 0; }
.draft-note { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 14px; font-size: .9rem; margin: 0 0 16px; }
.posts-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 16px 40px -20px rgba(0,0,0,.3); transform: translateY(-2px); }
.post-cover { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--soft); }
.post-cover-empty { display: grid; place-items: center; color: var(--brand); background: linear-gradient(135deg, #ccfbf1, #f0fdfa); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.post-body .post-meta { margin: 0; font-size: .8rem; }
.post-title { font-size: 1.15rem; line-height: 1.3; }
.post-excerpt { color: var(--muted); font-size: .93rem; }
.post-more { margin-top: auto; color: var(--brand-dark); font-weight: 600; font-size: .9rem; padding-top: 6px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.empty-blog { text-align: center; border: 1px dashed #d4d4d8; border-radius: 22px; padding: 48px 24px; }
.empty-blog h2 { font-size: 1.3rem; }
.empty-blog p { color: var(--muted); margin: 8px 0 0; }

.article-cover { display: block; width: 100%; border-radius: 22px; margin: 8px 0 32px; aspect-ratio: 1200 / 630; object-fit: cover; }
.prose { font-size: 1.08rem; line-height: 1.75; color: #27272a; padding-bottom: 8px; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose img { display: block; border-radius: 16px; margin: 1.6em auto; height: auto; }
.prose blockquote { border-left: 4px solid var(--brand); background: #f0fdfa; padding: 14px 18px; border-radius: 0 14px 14px 0; color: var(--ink-2); }
.prose blockquote p:last-child { margin: 0; }
.prose code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--dark); color: #e4e4e7; padding: 16px; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose a { color: var(--brand-dark); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-cta { margin: 40px 0 72px; padding: 28px; border-radius: 24px; background: var(--dark); color: #fff; }
.article-cta h2 { font-size: 1.4rem; }
.article-cta p { color: var(--faint); margin: 8px 0 0; }
.article-cta .hero-ctas { margin-top: 20px; justify-content: flex-start; }
.article-cta .s-btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }

/* ---------- Pie ---------- */
.s-footer { border-top: 1px solid #f4f4f5; padding: 56px 0 100px; }
.s-footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .s-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.s-footer p { color: var(--muted); font-size: .9rem; max-width: 22rem; margin: 12px 0 0; }
.s-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 12px; }
.s-footer-grid > div > a:not(.s-brand) { display: block; color: var(--muted); text-decoration: none; font-size: .92rem; padding: 4px 0; }
.s-footer-grid > div > a:not(.s-brand):hover { color: var(--ink); }
.s-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #f4f4f5; color: var(--faint); font-size: .85rem; }

/* ---------- Botón flotante de WhatsApp ---------- */
.s-wa { position: fixed; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none; border-radius: 999px; padding: 14px; box-shadow: 0 10px 25px -5px rgba(0,0,0,.35); transition: transform .2s, background .2s; }
.s-wa:hover { transform: scale(1.05); background: #1ebe5a; }
.s-wa span { display: none; font-weight: 600; font-size: .9rem; padding-right: 4px; }
@media (min-width: 640px) { .s-wa { right: 20px; padding: 14px 18px; } .s-wa span { display: inline; } }
