/* ==========================================================================
   Sistema de diseño Comunidad NEXO
   Portado 1:1 desde comunidadnexo-app/tailwind.config.js para que el embudo
   se vea igual que el sitio, pero sin React ni build (mobile-first, liviano).
   ========================================================================== */

:root {
  --base: #ffffff;
  --elevated: #f4f4f7;
  --ink: #0b0b0f;
  --ink2: #5a5a66;
  --accent: #1a1aff;
  --accent-hover: #0000cc;
  --line: #e3e3ea;

  --content: 1100px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--base);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: var(--narrow);
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section--flush {
  border-top: 0;
}

.section--elevated {
  background: var(--elevated);
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

/* ── Tipografía ─────────────────────────────────────────────────────────── */

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
}

h1 {
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.15;
}

h2 {
  font-size: clamp(24px, 4.6vw, 38px);
}

h3 {
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.3;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink2);
}

.lead {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--ink2);
  line-height: 1.65;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--ink2);
}

.small {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink2);
}

.stack > * + * {
  margin-top: 20px;
}

.stack-sm > * + * {
  margin-top: 10px;
}

/* ── Botones ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 17px 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
}

.btn--block {
  width: 100%;
}

@media (min-width: 640px) {
  .btn--block {
    width: auto;
  }
}

/* ── Tarjetas ───────────────────────────────────────────────────────────── */

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  background: var(--base);
}

.card--elevated {
  background: var(--elevated);
  border-color: transparent;
}

.card--accent {
  border-color: var(--accent);
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Listas con viñeta de marca ─────────────────────────────────────────── */

.bullets {
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--ink2);
  line-height: 1.6;
}

.bullets li + li {
  margin-top: 12px;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.bullets strong {
  color: var(--ink);
  font-weight: 700;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo img {
  width: 22px;
  height: 22px;
}

/* ── Barra superior ─────────────────────────────────────────────────────── */

.topbar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topbar b {
  color: #8f8fff;
  font-weight: 800;
}

/* ── FAQ (acordeón nativo, sin JS) ──────────────────────────────────────── */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq .faq-body {
  padding: 0 0 24px;
  color: var(--ink2);
  line-height: 1.7;
}

.faq .faq-body p + p {
  margin-top: 12px;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
}

.footer .small a {
  color: var(--ink2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Animación de entrada (equivalente al componente Reveal) ────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Documentos legales (términos, privacidad) ──────────────────────────── */

.doc { padding: 44px 0 64px; }
.doc .wrap { max-width: 720px; }
.doc .volver {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  text-decoration: none;
  margin-bottom: 30px;
}
.doc .volver:hover { color: var(--accent); }
.doc h1 { font-size: clamp(28px, 5.4vw, 40px); }
.doc .fecha {
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
}
.doc .intro { margin-top: 22px; color: var(--ink2); line-height: 1.7; }
.doc section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.doc section h2 { font-size: clamp(18px, 3vw, 22px); }
.doc section p { margin-top: 12px; color: var(--ink2); line-height: 1.7; }
.doc section ul { margin-top: 14px; padding-left: 22px; color: var(--ink2); line-height: 1.7; }
.doc section li + li { margin-top: 8px; }
.doc section strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--accent); }
