/* LaNoti · estilos compartidos de la web pública (landing, /activar, /unirse, legales). */
:root {
  --purple: #6b3f23;
  --purple-2: #a34a00;
  --purple-3: #f6921e;
  --purple-light: #fff1d6;
  --green: #1fb57a;
  --green-2: #37d59a;
  --green-light: #e5f7ef;
  --amber: #d4930f;
  --red: #d64545;
  --ink: #2b1a10;
  --ink-2: #5a4636;
  --ink-3: #6f5a4a;
  --line: rgba(107, 63, 35, .12);
  --glass: rgba(255, 255, 255, .72);
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(43, 26, 16, .05), 0 2px 6px rgba(43, 26, 16, .04);
  --shadow: 0 10px 30px -12px rgba(43, 26, 16, .25), 0 4px 10px -6px rgba(43, 26, 16, .08);
  --shadow-lg: 0 30px 60px -20px rgba(43, 26, 16, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fbf6ee;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #a34a00; text-decoration: none; } /* ají oscuro: 5,5:1 sobre papel */
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }

/* ---------- Fondo: manchas de color difuminadas que se mueven despacio ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #fbf6ee 0%, #fff1d6 60%, #f3faf6 100%); }
.bg span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 22s var(--ease) infinite alternate; }
.bg span:nth-child(1) { width: 520px; height: 520px; background: #f9c98a; top: -160px; left: -120px; }
.bg span:nth-child(2) { width: 460px; height: 460px; background: #b9efd6; top: 18%; right: -140px; animation-duration: 26s; animation-delay: -6s; }
.bg span:nth-child(3) { width: 380px; height: 380px; background: #ffe3b0; bottom: -120px; left: 30%; animation-duration: 30s; animation-delay: -12s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(.95); }
}
/* Grano sutil para que el degradado no se vea plano */
.bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(107, 63, 35, .05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }

/* ---------- Estructura ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 16px; }
section { position: relative; }

/* Barra superior translúcida */
.nav { position: sticky; top: 0; z-index: 20; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--line); }
header.top, .nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 11px; display: block; box-shadow: 0 6px 16px -6px rgba(163, 74, 0, .55); }
nav.links { display: flex; align-items: center; gap: 6px; }
nav.links a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .2s, color .2s; }
nav.links a:not(.btn):hover { background: rgba(107, 63, 35, .07); color: var(--purple); text-decoration: none; }

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
h3 { letter-spacing: -.01em; }
.grad { background: linear-gradient(100deg, #6b3f23 0%, #a34a00 55%, #c75d00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 620px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--purple); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 181, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 181, 122, .55); } 70% { box-shadow: 0 0 0 10px rgba(31, 181, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 181, 122, 0); } }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #6b3f23; color: #fff1d6; border: 0; border-radius: 14px;
  padding: 0 24px; min-height: 52px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(107, 63, 35, .7), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s; overflow: hidden; text-decoration: none;
}
.btn:hover { background: #4f2d18; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(107, 63, 35, .75), inset 0 1px 0 rgba(255, 255, 255, .2); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn.accent, .btn.shine { background: #f6921e; color: #2b1a10; box-shadow: 0 10px 24px -10px rgba(219, 127, 11, .8), inset 0 1px 0 rgba(255, 255, 255, .35); } /* ají con texto cacao: 7:1 */
.btn.accent:hover, .btn.shine:hover { background: #db7f0b; }
.btn.green { background: linear-gradient(135deg, #17a86f, var(--green-2)); box-shadow: 0 10px 24px -10px rgba(31, 181, 122, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--purple); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
/* Brillo que cruza el botón principal */
.btn.shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Tarjetas ---------- */
.card { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(107, 63, 35, .22); }
.feature h3 { margin: 16px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple-light), #fff); border: 1px solid var(--line); color: var(--purple); }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.green { background: linear-gradient(135deg, var(--green-light), #fff); color: #13925f; }

/* ---------- Formularios (/activar) ---------- */
label { display: block; font-weight: 700; margin: 18px 0 8px; font-size: 15px; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); font-size: 18px; font-family: inherit;
  background: rgba(255, 255, 255, .9); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple-3); box-shadow: 0 0 0 4px rgba(246, 146, 30, .15); }
input.code { font-size: 26px; letter-spacing: 7px; text-transform: uppercase; font-weight: 800; text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { position: relative; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; background: rgba(255, 255, 255, .85); text-align: left; font: inherit; color: inherit; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.plan[aria-pressed="true"] { border-color: var(--purple); background: linear-gradient(135deg, #fff, var(--purple-light)); box-shadow: 0 0 0 4px rgba(246, 146, 30, .12); }
.plan b { display: block; font-size: 24px; color: var(--purple); letter-spacing: -.02em; }
.amount { font-size: clamp(44px, 10vw, 60px); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(100deg, #139a64, var(--green-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice { background: #fff8e8; border: 1px solid #f5e2b3; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.error { background: #fdeeee; color: #8f2020; border: 1px solid #f6d0d0; border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: 15px; }
.ok { background: var(--green-light); color: #0f6e48; border-radius: 16px; padding: 18px; }
.badge { display: inline-block; background: var(--green-light); color: #0f7a50; font-weight: 700; font-size: 13px; padding: 5px 11px; border-radius: 999px; }

/* ---------- Pie ---------- */
footer { padding: 48px 0 40px; color: var(--ink-3); font-size: 15px; }
footer a { color: var(--ink-2); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.fade-in { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.spinner { width: 22px; height: 22px; border: 3px solid var(--purple-light); border-top-color: var(--purple); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Legales ---------- */
.prose h1 { font-size: clamp(32px, 5vw, 44px); }
.prose h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  nav.links a:not(.btn):not(.keep) { display: none; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Diagrama "Así viaja un pago" (diagrama.js) ---------- */
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 22px; }
.mode-tabs button { border: 1px solid var(--line); background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: all .3s var(--ease); }
.mode-tabs button:hover { background: #fff; }
.mode-tabs button[aria-selected="true"] { background: #6b3f23; color: #fff1d6; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(107, 63, 35, .8); }
.diagram { padding: 18px; }
svg.flow { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .diagram { padding: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .diagram::-webkit-scrollbar { display: none; }
  svg.flow { width: 600px; max-width: none; }
}
.flow .night, .flow .stars, .flow .sun, .flow .moon { transition: opacity .8s var(--ease); }
.flow .edge { fill: none; stroke: #e6dacb; stroke-width: 3; stroke-linecap: round; transition: stroke .4s, opacity .4s; }
.flow .edge.on { stroke: url(#dg-grad); }
.flow .edge.off { opacity: .35; stroke-dasharray: 4 8; }
.flow .node-bg { fill: #fff; stroke: rgba(107, 63, 35, .15); stroke-width: 1.5; filter: url(#dg-shadow); transition: stroke .4s; }
.flow .node.hit .node-bg { stroke: #1fb57a; stroke-width: 2.5; }
.flow .node.dim { opacity: .45; transition: opacity .4s; }
.flow text { font-family: Inter, system-ui, sans-serif; }
.flow .title { font-size: 15px; font-weight: 800; fill: #2b1a10; }
.flow .sub { font-size: 12px; font-weight: 600; fill: #6f5a4a; }
.flow .tag { font-size: 12px; font-weight: 800; }
.flow .clock { font-size: 22px; font-weight: 800; fill: #2b1a10; }
.flow.is-night .edge:not(.on) { stroke: #6b3f23; }
.diagram-caption { text-align: center; max-width: 660px; margin: 18px auto 0; font-size: 18px; color: var(--ink-2); min-height: 56px; transition: opacity .3s; }
.diagram-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.diagram-legend span { display: inline-flex; gap: 8px; align-items: center; }
.diagram-legend i { width: 26px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, #6b3f23, #1fb57a); }
.diagram-legend i.off { background: repeating-linear-gradient(90deg, #e6dacb 0 4px, transparent 4px 10px); }
@media (max-width: 860px) { .diagram { padding: 8px; } .mode-tabs button { padding: 8px 14px; font-size: 14px; } }
