/* Estilos compartidos: Privacidad, Términos y Eliminar cuenta */
:root {
  --orange: #ffb74d;
  --green: #4caf50;
  --blue: #2196f3;
  --ink: #1a1a1a;
  --muted: #5c6470;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --border: rgba(15, 23, 42, 0.08);
  --warn-bg: #fff7e6;
  --warn-border: #ffd591;
  --ok: #2e7d32;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --grad: linear-gradient(135deg, #ffb74d 0%, #4caf50 50%, #2196f3 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 183, 77, 0.18), rgba(76, 175, 80, 0.14), rgba(33, 150, 243, 0.18));
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf2;
    --muted: #9aa4b2;
    --bg: #0b0f14;
    --surface: #121821;
    --surface-2: #1a2230;
    --border: rgba(255, 255, 255, 0.08);
    --warn-bg: #2a2112;
    --warn-border: #6b4f1d;
    --ok: #81c784;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Cabecera */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.topbar nav a:hover { color: var(--ink); background: var(--surface-2); }
.topbar nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.lang-switch button {
  border: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

[hidden] { display: none !important; }

/* Encabezado del documento */
.hero {
  background: var(--grad-soft);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero .meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
.hero .lead { margin: 16px 0 0; font-size: 1.1rem; max-width: 62ch; }

/* Contenido */
.layout {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.toc {
  margin: 0 0 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.toc h2 { margin: 0 0 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 240px; column-gap: 32px; }
.toc li { break-inside: avoid; font-size: 0.95rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); }

.section {
  margin: 0 0 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  scroll-margin-top: 80px;
}
.section > :first-child { margin-top: 0; }
.section > :last-child { margin-bottom: 0; }
.section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.section h2 .num {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}
.section h3 { margin: 20px 0 6px; font-size: 1.05rem; }
.section ul, .section ol { margin: 8px 0; padding-left: 1.25rem; }
.section li { margin: 4px 0; }
.section li::marker { color: var(--green); }

.callout {
  margin: 16px 0 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface-2);
  border-left: 4px solid var(--blue);
}
.callout h3 { margin: 0 0 4px; }
.callout p { margin: 0; }

.callout-warn { background: var(--warn-bg); border: 1px solid var(--warn-border); border-left-width: 4px; border-left-color: var(--orange); }

.email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}
.email:hover { color: var(--blue); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.plan {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.plan h3 { margin: 0 0 6px; }
.plan ul { margin: 0; }

/* Pasos (eliminar cuenta) */
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  margin: 0 0 10px !important;
  padding: 12px 16px 12px 56px;
  border-radius: 12px;
  background: var(--surface-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.checklist { list-style: none; padding: 0 !important; }
.checklist li { padding-left: 1.75rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Pie */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .topbar nav a { padding: 6px 6px; font-size: 0.78rem; }
  .topbar-inner { padding: 10px 12px; gap: 8px; }
  .brand span { display: none; }
  .section { padding: 20px 16px; }
  .hero-inner { padding: 36px 16px 28px; }
}
