/* Visitrek — web pública. Sin frameworks; tokens en :root. */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --blue: #2563eb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0b1026;
  --ok: #16a34a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 80px -20px rgba(30, 27, 75, 0.35);
  --container: 1180px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  left: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.7);
}
.btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: #cbd5e1;
  background: var(--bg-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-soft);
}
.btn-light {
  background: #fff;
  color: var(--brand-700);
}
.btn-light:hover {
  background: var(--brand-50);
}
.btn-on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

/* ── Cabecera ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none !important;
}
.brand img {
  width: 34px;
  height: 34px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.site-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--bg-soft);
  text-decoration: none;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}
.nav-open .nav-toggle span {
  background: transparent;
}
.nav-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.menu {
  display: flex;
  align-items: center;
  flex: 1;
}

@media (max-width: 960px) {
  /* El desenfoque es caro de repintar en móviles modestos: fondo sólido. */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .menu {
    display: none;
  }
  .nav-open {
    overflow: hidden;
  }
  .nav-open .menu {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 24px;
    background: #fff;
    overflow-y: auto;
  }
  .nav-open .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }
  .nav-open .site-nav a {
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav-open .header-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 20px 0 0;
  }
  .nav-open .header-actions .btn {
    min-height: 52px;
  }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(800px 420px at -10% 10%, rgba(37, 99, 235, 0.1), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: center;
}
.hero-copy {
  max-width: 820px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.eyebrow b {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--blue), var(--brand) 55%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 500;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
  flex: none;
}

.hero-visual {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.browser {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cbd5e1;
}
.browser-bar i:nth-child(1) {
  background: #f87171;
}
.browser-bar i:nth-child(2) {
  background: #fbbf24;
}
.browser-bar i:nth-child(3) {
  background: #34d399;
}
.browser-url {
  margin-left: 14px;
  flex: 1;
  max-width: 340px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.browser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.phone {
  position: absolute;
  right: -18px;
  bottom: -36px;
  width: 22%;
  min-width: 150px;
  max-width: 230px;
  border-radius: 30px;
  padding: 8px;
  background: #0f172a;
  box-shadow: var(--shadow-lg);
}
.phone img {
  border-radius: 23px;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}
@media (max-width: 700px) {
  .phone {
    display: none;
  }
}

/* ── Secciones ───────────────────────────────────────────────────────────── */
.section {
  padding: 104px 0;
}
/* Que los anclajes (#precios…) no queden bajo la cabecera fija. */
[id] {
  scroll-margin-top: 80px;
}
.section-soft {
  background: var(--bg-soft);
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.12rem;
}
.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
}

/* Franja de tipos de taller */
.for-strip {
  padding: 64px 0 24px;
  text-align: center;
}
.for-strip p {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Problema → solución */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--rev {
  grid-template-columns: 1fr 1.05fr;
}
.split--rev .split-media {
  order: 2;
}
@media (max-width: 900px) {
  .split,
  .split--rev {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split--rev .split-media {
    order: 0;
  }
}
.photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.photo--tall img {
  aspect-ratio: 4 / 5;
}
.photo-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  max-width: 330px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.photo-card strong {
  display: block;
  color: var(--ink);
}
.photo-card .ico {
  flex: none;
}

.compare {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.compare li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.compare .before {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(100, 116, 139, 0.5);
  display: block;
  font-size: 0.92rem;
}
.compare .after {
  color: var(--ink);
  font-weight: 600;
}

.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
}
.ico svg {
  width: 22px;
  height: 22px;
}
.ico-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.ico-sm svg {
  width: 16px;
  height: 16px;
}
.ico--ok {
  background: #dcfce7;
  color: var(--ok);
}

/* Funcionalidades */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}
.feature h3 {
  margin: 18px 0 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Recorrido por la app (pestañas) */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tabs button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 44px;
}
.tabs button[aria-selected='true'] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tour-panel {
  max-width: 1040px;
  margin: 0 auto;
}
.tour-panel figcaption {
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
  font-size: 0.98rem;
}

/* Lista con checks */
.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}
.checks svg {
  width: 22px;
  height: 22px;
  color: var(--ok);
  margin-top: 2px;
}

/* Roles */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .roles {
    grid-template-columns: 1fr;
  }
}
.role {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.role ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.97rem;
}
.role li {
  margin-bottom: 6px;
}

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps li {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

/* Seguridad (oscuro) */
.section-dark {
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(99, 102, 241, 0.35), transparent 60%),
    var(--bg-dark);
  color: #cbd5e1;
}
.section-dark h2,
.section-dark h3 {
  color: #fff;
}
.section-dark .section-head p {
  color: #94a3b8;
}
.section-dark .kicker {
  color: #a5b4fc;
}
.secure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .secure {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .secure {
    grid-template-columns: 1fr;
  }
}
.secure > div {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.secure .ico {
  background: rgba(165, 180, 252, 0.15);
  color: #c7d2fe;
}
.secure h3 {
  margin: 16px 0 6px;
}
.secure p {
  margin: 0;
  font-size: 0.96rem;
  color: #94a3b8;
}

/* Precios */
.billing-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.billing-switch[hidden] {
  display: none;
}
.billing-switch button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-2);
  min-height: 40px;
}
.billing-switch button[aria-pressed='true'] {
  background: var(--brand);
  color: #fff;
}
.pricing-wrap {
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 360px));
  justify-content: center;
  gap: 22px;
  align-items: stretch;
  text-align: left;
}
@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.plan--featured {
  border: 2px solid var(--brand);
  box-shadow: 0 24px 60px -24px rgba(79, 70, 229, 0.45);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan-name {
  font-size: 1.25rem;
  margin: 0 0 4px;
}
.plan-tagline,
.plan-desc,
.plan-sub {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0 0 8px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 6px;
}
.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.plan-price .per {
  color: var(--muted);
  font-weight: 500;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  flex: 1;
  align-content: start;
}
.plan-features li {
  position: relative;
  padding-left: 26px;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dcfce7
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}
.plan-skeleton {
  height: 420px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plan-skeleton {
    animation: none;
  }
}
.pricing-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  background: #fff;
}
.pricing-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 500;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 4px 18px;
  margin: 0;
  color: var(--muted);
}

/* CTA final */
.cta {
  padding: 0 0 104px;
}
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 72px 40px;
  text-align: center;
  color: #e0e7ff;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(167, 139, 250, 0.45), transparent 60%),
    linear-gradient(135deg, #312e81, var(--brand) 60%, var(--blue));
}
.cta-box h2 {
  color: #fff;
  max-width: 760px;
  margin: 0 auto 14px;
}
.cta-box p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}
.cta-box .hero-ctas .btn-primary {
  background: #fff;
  color: var(--brand-700);
}
@media (max-width: 600px) {
  .cta-box {
    padding: 52px 20px;
    border-radius: 22px;
  }
}

/* Pie */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
.footer-brand p {
  color: var(--muted);
  max-width: 340px;
  margin-top: 14px;
}
.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.site-footer a,
.link-button {
  color: var(--ink-2);
}
.link-button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.site-footer a:hover,
.link-button:hover {
  color: var(--brand);
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-bottom a {
  color: var(--muted);
}

/* Animación de entrada: SOLO en pantallas grandes y solo si el JS la activa
   (clase .anim en <html>). En móvil el contenido se ve siempre desde el
   primer momento: nada de huecos en blanco mientras se hace scroll. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .anim .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .anim .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Banner de cookies ───────────────────────────────────────────────────── */
.cc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cc-box {
  pointer-events: auto;
  width: 100%;
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.45);
  padding: 24px;
  font-size: 0.94rem;
}
.cc-box h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.cc-box p {
  color: var(--muted);
  margin: 0 0 16px;
}
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.cc-actions .btn {
  min-height: 44px;
  flex: 1 1 150px;
}
.cc-settings {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.cc-settings[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .cc {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .cc-box {
    padding: 18px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }
  .cc-box p {
    font-size: 0.88rem;
  }
}
.cc-cat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.cc-cat p {
  margin: 6px 0 0;
  font-size: 0.88rem;
}
.cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
}
.cc-always {
  font-size: 0.8rem;
  color: var(--ok);
  font-weight: 600;
}
.cc-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex: none;
  margin: 0;
}
.cc-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.cc-switch:checked {
  background: var(--brand);
}
.cc-switch:checked::after {
  transform: translateX(20px);
}

/* ── Páginas legales ─────────────────────────────────────────────────────── */
.legal {
  padding: 64px 0 96px;
}
.legal .container {
  max-width: 820px;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}
.legal .updated {
  color: var(--muted);
  font-size: 0.92rem;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 16px 0 24px;
  display: block;
  overflow-x: auto;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.legal th {
  background: var(--bg-soft);
  color: var(--ink);
}
.todo {
  background: #fef3c7;
  color: #92400e;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}
.notice {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--ink-2);
  font-size: 0.95rem;
}
