/* ──────────────────────────────────────────────────────────────────────────────
   Estilos de las páginas legales servidas como HTML estático (privacidad,
   términos y eliminación de datos). Replican el LandingLayout sin JavaScript,
   porque los validadores de Meta y Google no ejecutan JS.
   Cualquier cambio de identidad visual en la landing debe reflejarse aquí.
   ────────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #ffffff;
  background: #020617;
  -webkit-font-smoothing: antialiased;
  -moz-osx-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Fondo: gradientes radiales + partículas ─────────────────────────────── */

.lbg {
  position: fixed;
  inset: 0;
  background: #020617;
  pointer-events: none;
  z-index: 0;
}
.lbg::before,
.lbg::after {
  content: "";
  position: absolute;
  inset: 0;
}
.lbg::before {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, .35), transparent);
}
.lbg::after {
  background: radial-gradient(ellipse 60% 40% at 100% 50%, rgba(129, 140, 248, .25), transparent);
}

.lbg-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lbg-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(56, 189, 248, .6);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(56, 189, 248, .8);
}
.lbg-particle:nth-child(1) { left: 10%; top: 20%; animation: lbg-float 10s ease-in-out infinite 0s; }
.lbg-particle:nth-child(2) { left: 20%; top: 28%; animation: lbg-float 11s ease-in-out infinite .5s; }
.lbg-particle:nth-child(3) { left: 30%; top: 36%; animation: lbg-float 12s ease-in-out infinite 1s; }
.lbg-particle:nth-child(4) { left: 40%; top: 44%; animation: lbg-float 13s ease-in-out infinite 1.5s; }
.lbg-particle:nth-child(5) { left: 50%; top: 52%; animation: lbg-float 14s ease-in-out infinite 2s; }
.lbg-particle:nth-child(6) { left: 60%; top: 60%; animation: lbg-float 15s ease-in-out infinite 2.5s; }
.lbg-particle:nth-child(7) { left: 70%; top: 68%; animation: lbg-float 16s ease-in-out infinite 3s; }
.lbg-particle:nth-child(8) { left: 80%; top: 76%; animation: lbg-float 17s ease-in-out infinite 3.5s; }

@keyframes lbg-float {
  0%, 100% { transform: translate(0, 0); opacity: .3; }
  50%      { transform: translate(30px, -40px); opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
  .lbg-particle { animation: none; opacity: .45; }
  html { scroll-behavior: auto; }
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */

.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(2, 6, 23, .8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 16px;
}
@media (min-width: 640px) { .nav-inner { padding: 0 24px; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 40px; } }
@media (min-width: 1280px) { .nav-inner { padding: 0 64px; } }

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-name { font-size: 1.125rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }

.nav-links { display: none; align-items: center; gap: 4px; flex: 1; justify-content: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(51, 65, 85, .4); }

/* En móvil no hay menú hamburguesa (requiere JS): se deja solo el CTA principal. */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .btn-ghost { display: none; }
@media (min-width: 768px) { .nav-actions .btn-ghost { display: inline-flex; } }
.btn-ghost, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.btn-ghost {
  font-weight: 500;
  color: #e2e8f0;
  border: 1px solid rgba(71, 85, 105, .7);
  background: rgba(30, 41, 59, .4);
}
.btn-ghost:hover { color: #fff; border-color: rgba(6, 182, 212, .5); background: rgba(30, 41, 59, .7); }
.btn-ghost svg { width: 14px; height: 14px; color: rgba(34, 211, 238, .8); }
.btn-primary {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to right, #06b6d4, #2563eb);
  box-shadow: 0 0 24px rgba(34, 211, 238, .4);
}
.btn-primary:hover {
  background: linear-gradient(to right, #22d3ee, #3b82f6);
  box-shadow: 0 0 36px rgba(34, 211, 238, .65);
  transform: translateY(-2px);
}
.btn-primary svg { width: 14px; height: 14px; }

.nav-spacer { height: 64px; }

/* ── Contenido ────────────────────────────────────────────────────────────── */

.page { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: 100vh; }

main.wrap {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 64px 24px;
  flex: 1;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}
@media (min-width: 640px) { h1 { font-size: 2.25rem; } }

.meta { font-size: .875rem; color: #94a3b8; margin: 0 0 40px; }

.callout {
  border: 1px solid rgba(6, 182, 212, .2);
  background: rgba(6, 182, 212, .05);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 40px;
}
.callout p { margin: 0; font-size: .875rem; line-height: 1.7; color: #67e8f9; }
.callout strong { color: #a5f3fc; }

.toc {
  border: 1px solid rgba(30, 41, 59, .6);
  background: rgba(15, 23, 42, .5);
  border-radius: 16px;
  padding: 24px;
  margin: 0 0 56px;
}
.toc h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0 0 8px; counter-increment: toc; }
.toc a {
  font-size: .875rem;
  color: #22d3ee;
  text-decoration: none;
  transition: color .2s;
}
.toc a::before { content: counter(toc) ". "; }
.toc a:hover { color: #67e8f9; }

section { margin: 0 0 56px; scroll-margin-top: 96px; }

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  padding: 0 0 20px;
  border-bottom: 1px solid #1e293b;
}
h3 { font-size: 1rem; font-weight: 600; color: #e2e8f0; margin: 24px 0 8px; }

p { color: #cbd5e1; line-height: 1.75; margin: 0 0 16px; }
ul, ol { color: #cbd5e1; padding-left: 24px; margin: 0 0 16px; }
li { margin-bottom: 4px; line-height: 1.75; }
strong { color: #e2e8f0; font-weight: 600; }

a { color: #22d3ee; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #67e8f9; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9375rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #1e293b; vertical-align: top; }
th { color: #fff; font-weight: 600; }
td { color: #cbd5e1; }

.box {
  border: 1px solid rgba(30, 41, 59, .6);
  background: rgba(15, 23, 42, .5);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}
.box p { margin: 0; }
code {
  background: rgba(30, 41, 59, .8);
  color: #67e8f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.note { font-size: .875rem; color: #94a3b8; font-style: italic; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 0 16px;
}
@media (min-width: 640px) { .site-footer { padding: 0 24px; } }
@media (min-width: 1024px) { .site-footer { padding: 0 40px; } }
@media (min-width: 1280px) { .site-footer { padding: 0 64px; } }

.footer-inner { max-width: 1400px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
  padding: 56px 0 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }

/* Bloque de marca */
.footer-about { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer-about { grid-column: span 3; } }
@media (min-width: 1024px) { .footer-about { grid-column: span 1; } }

.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 20px; }
.footer-brand .nav-logo { width: 48px; height: 48px; }
.footer-brand .nav-name { font-size: 1.25rem; }
.footer-desc { font-size: .875rem; line-height: 1.7; color: #64748b; max-width: 420px; margin: 0 0 24px; }

.footer-contact { list-style: none; padding: 0; margin: 0 0 24px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .875rem;
  color: #64748b;
}
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: #475569; }
.footer-contact a { color: #64748b; text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: #22d3ee; }

/* Redes sociales */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  color: #94a3b8;
  transition: all .2s;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social a.s-wa:hover { border-color: rgba(37, 211, 102, .4); color: #25D366; background: rgba(37, 211, 102, .1); }
.footer-social a.s-x:hover { border-color: rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .1); }
.footer-social a.s-in:hover { border-color: rgba(10, 102, 194, .5); color: #3b9aff; background: rgba(10, 102, 194, .1); }
.footer-social a.s-ig:hover { border-color: rgba(225, 48, 108, .5); color: #f472b6; background: rgba(225, 48, 108, .1); }
.footer-social a.s-yt:hover { border-color: rgba(255, 0, 0, .5); color: #ff5a5a; background: rgba(255, 0, 0, .1); }

/* Columnas de enlaces */
.footer-col h3 {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94a3b8;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: .875rem;
  color: #64748b;
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: #e2e8f0; }

/* Barra inferior */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: .75rem; color: #475569; margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-bottom nav a {
  font-size: .75rem;
  color: #475569;
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom nav a:hover { color: #94a3b8; }

/* Botón volver arriba (ancla, sin JS) */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, #06b6d4, #2563eb);
  box-shadow: 0 0 24px rgba(34, 211, 238, .45);
  color: #fff;
  transition: box-shadow .2s, transform .2s;
}
.scroll-top:hover { box-shadow: 0 0 36px rgba(34, 211, 238, .7); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }
