/* Estilos compartidos de las páginas legales de JGrowth */
:root {
  --bg: #050506;
  --bg-raised: #0b0b0d;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ededed;
  --muted: #9a9aa0;
  --dim: #62626a;
  --accent: #3ddc97;
  --accent-glow: rgba(61, 220, 151, 0.35);
  --radius: 20px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grano sutil sobre toda la página */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--text); color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
.btn-primary:hover { box-shadow: 0 8px 40px rgba(255, 255, 255, 0.18); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.26); }
.btn svg { width: 18px; height: 18px; flex: none; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.15), 0 0 12px var(--accent-glow);
  flex: none;
}

/* Barra superior */
.top { padding: 16px 0; }
.top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px;
  border: 1px solid var(--border); border-radius: 18px;
  background: rgba(10, 10, 12, 0.6);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; }
.logo img { width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--border); }
@media (max-width: 420px) { .logo { gap: 6px; } .logo img { width: 28px; height: 28px; } }
.top .btn { padding: 10px 18px; font-size: 14px; margin-left: -6px; }
/* Botón de idioma */
.lang {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 12px 0 10px; margin-left: auto;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  transition: color .2s, border-color .2s;
}
.lang svg { width: 18px; height: 18px; flex: none; }
.lang:hover { color: var(--text); border-color: var(--border-strong, rgba(255,255,255,.2)); }
@media (max-width: 374px) {
  .top-inner { gap: 10px; padding-left: 16px; }
  .top .btn { margin-left: 0; padding: 10px 14px; }
  .lang { width: 40px; padding: 0; justify-content: center; }
  .lang span { display: none; }
}

/* Documento */
.doc { max-width: 46rem; padding: 64px 0 96px; }
.doc h1 { margin: 14px 0 0; font-size: clamp(34px, 6vw, 52px); line-height: 1.06; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.doc .updated { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); }
.doc .lead { margin: 28px 0 0; font-size: 18px; color: var(--text); }
.doc h2 { margin: 48px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 14px 0 0; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--dim); }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--text); }
.doc .box {
  margin-top: 28px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-raised);
}
.doc .box p:first-child { margin-top: 0; }
.doc code { font-family: var(--mono); font-size: 0.92em; color: var(--text); background: var(--surface-hover); padding: 2px 6px; border-radius: 6px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 32px; font-size: 14px; color: var(--dim); }
footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--text); }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.social a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }
.social svg { width: 18px; height: 18px; }

/* Botón flotante de WhatsApp (abajo a la derecha) */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(11, 11, 13, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.04); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .wa-dot {
  position: absolute; top: 6px; right: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid #0b0b0d;
  box-shadow: 0 0 10px var(--accent-glow);
}
@media (max-width: 759px) { footer { padding-bottom: 96px; } }
/* Solo en celular: en computador ya está el botón "Hablemos" del header */
@media (min-width: 760px) { .wa-float { display: none; } }
