/* ═══════════════════════════════════════════════════════════════
   Contaes — contaes.com · Sistema de diseño (referencia Wise)
   Forest Ink dominante · Lime Voltage solo en CTAs y acentos
   Cabinet Grotesk 900 para display · Inter para todo lo demás
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Color */
  --forest: #163300;   /* Forest Ink — marca, superficies oscuras, texto */
  --lime: #9fe870;     /* Lime Voltage — CTA fill y acentos puntuales */
  --spruce: #054d28;   /* verde oscuro secundario, cards sobre dark */
  --linen: #e2f6d5;    /* wash verde pálido, highlights */
  --charcoal: #454745; /* cuerpo */
  --obsidian: #0e0f0c; /* display sobre claro */
  --pebble: #868685;   /* muted */
  --slate: #6a6c6a;    /* texto de apoyo */
  --fog: #e8ebe6;      /* superficies card */
  --paper: #ffffff;

  /* Tipografía */
  --ff-disp: 'Cabinet Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --ff-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Medidas */
  --container: 1200px;
  --r-card: 10px;
  --r-panel: 20px;
  --r-lg: 28px;
  --r-pill: 9999px;
  --shadow-xl: 0 30px 80px -42px rgba(14, 15, 12, 0.45), 0 10px 32px -16px rgba(14, 15, 12, 0.18);
}

/* ── Reset / base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--forest); }
strong { font-weight: 600; color: inherit; }
::selection { background: var(--lime); color: var(--forest); }

#inicio, #problema, #que-incluye, #valor, #como-funciona, #garantias, #precios, #faq {
  scroll-margin-top: 84px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: var(--lime);
  padding: 10px 18px; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: var(--lime); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }

/* ── Tipografía de marca ────────────────────────────────────── */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/assets/fonts/CabinetGrotesk-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3 { margin: 0; color: var(--obsidian); }

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-align: center; text-decoration: none;
  font-family: var(--ff-body); font-weight: 600; font-size: 16px;
  letter-spacing: -0.004em;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-xl { padding: 18px 40px; font-size: 18px; }
.btn-block { width: 100%; }

.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { background: #8fe15b; }
.btn-ghost { background: var(--paper); color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--linen); }

/* ── Tags / chips ───────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--linen); color: var(--forest);
  font-size: 13px; font-weight: 600; letter-spacing: .002em;
  padding: 8px 16px; border-radius: var(--r-pill);
}
.tag-check svg { flex: none; }

.chip {
  display: inline-flex; align-items: center;
  background: var(--fog); color: var(--forest);
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.chip-lime { background: var(--lime); }
.chip-dark { background: rgba(255, 255, 255, 0.1); color: var(--lime); }

.link {
  color: var(--forest); font-weight: 600; font-size: 16.5px;
  text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.link:hover { text-decoration-thickness: 2.5px; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--fog);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--forest);
  position: relative; flex: none;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 7px;
  border-radius: 3px; background: var(--lime);
}
.brand-name {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: 23px; letter-spacing: -0.03em;
  color: var(--forest); line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none; color: var(--slate);
  font-size: 15px; font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--forest); }
.nav-cta { display: flex; }
.nav-cta .btn { padding: 10px 20px; font-size: 15px; }

/* menú móvil (native <details>) */
.mnav { display: none; position: relative; }
.mnav summary {
  list-style: none; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; cursor: pointer;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--fog); border-radius: var(--r-pill); }
.mnav-panel {
  position: absolute; right: 0; top: 52px; z-index: 60;
  min-width: 270px;
  background: var(--paper);
  border: 1px solid var(--fog);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.mnav-panel a {
  text-decoration: none; color: var(--forest);
  font-weight: 500; font-size: 16px;
  padding: 12px 14px; border-radius: 10px;
}
.mnav-panel a:hover { background: var(--fog); }
.mnav-panel .btn { margin-top: 8px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: 88px 0 0; overflow: hidden; }
.hero-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-title {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(2.75rem, 6.3vw, 5.05rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--obsidian);
  max-width: 19ch;
  margin-top: 28px;
  text-wrap: balance;
}
.hero-title .hl {
  color: var(--forest);
  position: relative;
}
.hero-title .hl::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.08em;
  height: 0.12em; border-radius: 2px;
  background: var(--lime);
}
.hero-sub {
  margin: 26px auto 0; max-width: 720px;
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.5; color: var(--slate);
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.microcopy {
  margin: 14px 0 0; font-size: 13.5px; color: var(--pebble);
  text-align: center;
}
.hero-trust {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
  max-width: 800px;
}
.hero-trust .tag { background: var(--paper); box-shadow: inset 0 0 0 1px var(--fog); }

/* Panel — la plataforma */
.panel-wrap { margin-top: 64px; padding-bottom: 0; }
.panel {
  background: var(--paper);
  border: 1px solid #e2e7dd;
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--fog);
  background: #fbfcf9;
}
.panel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; }
.panel-title {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--slate);
}
.panel-logo {
  width: 15px; height: 15px; border-radius: 4px; background: var(--forest);
  position: relative; flex: none;
}
.panel-logo::after { content: ''; position: absolute; inset: 4px; border-radius: 2px; background: var(--lime); }
.panel-chips { margin-left: auto; display: flex; gap: 6px; }

.panel-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 20px 22px 0;
}
.kpi {
  background: var(--fog); border-radius: 12px;
  padding: 15px 17px;
  display: flex; flex-direction: column; gap: 3px;
}
.kpi-label { font-size: 12.5px; font-weight: 500; color: var(--slate); }
.kpi-value {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: 23px; letter-spacing: -0.02em; color: var(--forest);
  line-height: 1.1;
}
.kpi-delta { font-size: 12px; color: var(--pebble); }
.kpi-delta-ok { color: #2f7d3a; }

.panel-body {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px;
  padding: 14px 22px 22px;
}
.panel-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--forest);
}

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kanban-col {
  background: var(--fog); border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.kanban-head {
  font-size: 12.5px; font-weight: 600; color: var(--slate);
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-head b { color: var(--forest); background: var(--paper); border-radius: 50%; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.kanban-card {
  background: var(--paper); border: 1px solid #e2e7dd;
  border-radius: 8px;
  font-size: 12px; font-weight: 500; color: var(--charcoal);
  padding: 8px 10px;
}
.kanban-card-ok { color: var(--forest); }

.panel-side { gap: 10px; }
.side-row {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon text" "icon chip";
  column-gap: 12px; row-gap: 2px;
  background: var(--fog); border-radius: 12px;
  padding: 13px 14px; align-items: start;
}
.side-icon {
  grid-area: icon; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.side-icon-lime { background: var(--lime); }
.side-text { grid-area: text; }
.side-text strong { display: block; font-size: 13.5px; color: var(--forest); }
.side-text p { margin: 2px 0 0; font-size: 12.5px; color: var(--slate); line-height: 1.45; }
.side-row .chip { grid-area: chip; justify-self: start; margin-top: 4px; }

/* ── Secciones ──────────────────────────────────────────────── */
.section { padding: clamp(84px, 9vw, 118px) 0; }
.section-fog { background: var(--fog); }
.section-dark { background: var(--forest); }
.section-dark, .section-dark h1, .section-dark h2, .section-dark h3 { color: var(--paper); }

.sec-title {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04; letter-spacing: -0.024em;
  text-wrap: balance;
}
.sec-title-sm { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.sec-title-light { color: var(--paper); }
.sec-title .hl-lime, .hl-lime { color: var(--lime); }

.sec-lead {
  margin: 24px auto 0; max-width: 800px;
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  color: var(--slate);
}
.section-fog .sec-lead { color: var(--charcoal); }

.sec-closing {
  margin: 48px auto 0; max-width: 760px; text-align: center;
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.015em; color: var(--forest); line-height: 1.25;
}
.sec-closing-dark { color: var(--paper); }
.sec-center { text-align: center; margin: 26px 0 0; }

/* ── Cards genéricas (problema / garantías) ─────────────────── */
.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 52px;
}
.card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, 0.05);
}
.card-num {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: 15px; color: var(--lime);
  background: var(--forest); border-radius: var(--r-pill);
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.card-title { font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--obsidian); }
.card-price {
  font-size: 13px; font-weight: 600; color: var(--forest);
  background: var(--linen); border-radius: var(--r-pill);
  padding: 4px 11px; align-self: flex-start;
}
.card-text { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--slate); }
.card-text strong { color: var(--forest); }

.card-guard .card-text { font-size: 15px; }
.guard-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--linen);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}

/* ── Pilar oscuro (qué incluye) ─────────────────────────────── */
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 56px;
}
.dark-cards { margin-bottom: 0; }
.d-card {
  background: var(--spruce);
  border-radius: var(--r-lg);
  padding: 36px 34px;
  display: flex; flex-direction: column; gap: 12px;
}
.d-card-title { font-family: var(--ff-disp); font-weight: 900; font-size: clamp(1.5rem, 2vw, 1.85rem); letter-spacing: -0.02em; color: var(--paper); }
.d-card-title .d-num { color: var(--paper); }
.d-card-text { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.d-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.d-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.92);
}
.d-list svg { flex: none; margin-top: 3px; }
.d-tags { margin: 14px 0 0; display: flex; gap: 7px; flex-wrap: wrap; }

/* ── Ancla de valor ─────────────────────────────────────────── */
.anchor-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 52px; align-items: stretch;
}
.anchor-item {
  background: var(--fog); border-radius: var(--r-lg);
  padding: 36px 30px;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  text-align: center;
}
.anchor-item-feat { background: var(--forest); }
.anchor-value {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.03em; line-height: 1; color: var(--forest);
}
.anchor-value-lime { color: var(--lime); }
.anchor-label { font-size: 15.5px; color: var(--slate); }
.anchor-item-feat .anchor-label { color: rgba(255, 255, 255, 0.85); }

/* ── Cómo funciona ──────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 56px;
}
.step {
  background: var(--paper);
  border-radius: 16px;
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, 0.05);
}
.step-num {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: 44px; letter-spacing: -0.03em; color: var(--lime);
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--forest);
}
.step-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.step-text { margin: 0; font-size: 15.5px; line-height: 1.52; color: var(--slate); }

/* ── Precios ────────────────────────────────────────────────── */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px; align-items: stretch;
}
.plan {
  background: var(--paper);
  border-radius: 24px;
  padding: 38px 34px;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, 0.06);
  position: relative;
}
.plan-feat {
  background: var(--forest);
  box-shadow: var(--shadow-xl);
}
.plan-pop {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: var(--forest);
  font-size: 12.5px; font-weight: 700;
  padding: 7px 18px; border-radius: var(--r-pill);
  white-space: nowrap;
  letter-spacing: .01em;
}
.plan-name {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: 26px; letter-spacing: -0.02em;
  color: var(--forest); line-height: 1;
}
.plan-feat .plan-name { color: var(--paper); }
.plan-for { margin: 8px 0 0; font-size: 14.5px; color: var(--slate); line-height: 1.4; }
.plan-feat .plan-for { color: rgba(255, 255, 255, 0.75); }
.plan-price { margin: 24px 0 4px; display: flex; align-items: baseline; gap: 7px; }
.plan-eur {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(2.5rem, 3.6vw, 3.2rem);
  letter-spacing: -0.03em; line-height: 1; color: var(--forest);
}
.plan-feat .plan-eur { color: var(--lime); }
.plan-per { font-size: 15px; color: var(--pebble); font-weight: 500; }
.plan-feat .plan-per { color: rgba(255, 255, 255, 0.6); }
.plan-list {
  list-style: none; margin: 22px 0 30px; padding: 0;
  display: flex; flex-direction: column; gap: 11px; flex: 1;
}
.plan-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; line-height: 1.45; color: var(--charcoal);
}
.plan-list svg { flex: none; margin-top: 3px; }
.plan-feat .plan-list li { color: rgba(255, 255, 255, 0.92); }

.plans-note {
  margin: 34px auto 0; max-width: 720px; text-align: center;
  font-size: 14px; color: var(--pebble); line-height: 1.5;
}

/* Add-ons */
.addons {
  margin-top: 60px;
  background: var(--paper);
  border-radius: 20px;
  padding: 34px;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, 0.06);
}
.addons-title {
  font-size: 16.5px; font-weight: 700; color: var(--forest);
  margin: 0 0 20px; letter-spacing: -0.01em;
  max-width: 620px; line-height: 1.4;
}
.addons-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
.addon {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px; border-radius: 12px; background: var(--fog);
}
.addon strong { font-size: 14.5px; color: var(--forest); }
.addon span { font-size: 13px; color: var(--slate); line-height: 1.45; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { margin-top: 52px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--fog);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 21px 26px;
  font-size: 17px; font-weight: 600; color: var(--obsidian);
  letter-spacing: -0.008em;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: none;
  font-family: var(--ff-body); font-weight: 400;
  font-size: 24px; line-height: 1; color: var(--forest);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--linen);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--forest); }
.faq-item p {
  margin: 0; padding: 0 26px 24px;
  font-size: 15.5px; line-height: 1.6; color: var(--slate);
  max-width: 720px;
}

/* ── CTA final ──────────────────────────────────────────────── */
.section-cta { background: var(--forest); position: relative; overflow: hidden; }
.section-cta::before {
  content: ''; position: absolute; right: -140px; top: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(159, 232, 112, 0.07);
  pointer-events: none;
}
.cta-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative;
}
.cta-title {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.02; letter-spacing: -0.026em;
  color: var(--paper);
  max-width: 21ch; text-wrap: balance;
}
.cta-sub { margin: 24px 0 0; max-width: 560px; font-size: 17.5px; color: rgba(255, 255, 255, 0.85); }
.cta-inner .btn { margin-top: 34px; }
.microcopy-dark { color: rgba(255, 255, 255, 0.55); }
.cta-scarce {
  margin: 26px 0 0; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: rgba(255, 255, 255, 0.72);
  max-width: 480px; line-height: 1.5;
}
.cta-scarce svg { flex: none; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--obsidian); color: rgba(255, 255, 255, 0.72); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-top: 72px; padding-bottom: 48px;
}
.brand-light .brand-name { color: var(--paper); }
.brand-mark-light { background: var(--paper); }
.brand-mark-light::after { background: var(--lime); }
.footer-tag { margin: 18px 0 0; max-width: 380px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; width: fit-content; }
.footer-nav a:hover { color: var(--lime); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, 0.45); }
.footer-contact a { color: var(--lime); text-decoration: none; font-weight: 600; font-size: 16px; width: fit-content; }
.footer-contact a:hover { text-decoration: underline; }
.footer-note { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; padding-bottom: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px; color: rgba(255, 255, 255, 0.38);
}

/* ── CTA bar móvil ──────────────────────────────────────────── */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--paper);
  border-top: 1px solid var(--fog);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .22s ease;
}
.cta-bar.is-visible { transform: translateY(0); }
body.js { padding-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .mnav { display: block; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .panel-kpis { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .plans .plan-feat { order: -1; }
  .anchor-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .panel-body { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .addons-list { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}
@media (max-width: 640px) {
  body.has-bar { padding-bottom: 78px; }
  .hero-title { letter-spacing: -0.024em; }
  .panel-kpis { padding: 14px 14px 0; gap: 10px; }
  .panel-body { padding: 12px 14px 14px; gap: 12px; }
  .panel-bar { padding: 12px 14px; }
  .panel-chips { display: none; }
  .kanban { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .btn-ghost { order: 3; }
  .card { padding: 22px 20px; }
  .d-card { padding: 28px 24px; }
  .plan { padding: 30px 24px; }
  .addons { padding: 24px 20px; }
  .faq-item summary { padding: 17px 18px; font-size: 16px; }
  .faq-item p { padding: 0 18px 20px; }
  .btn-xl { width: 100%; }
}

/* ══════════ PÁGINAS INTERIORES ══════════ */
.footer-col-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--lime); margin-bottom: 4px;
}
.footer-legal-mini { margin-top: 16px; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.footer-legal-mini a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-legal-mini a:hover { color: var(--lime); }

/* Cabecera de página interior */
.page-hero { padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero-inner { max-width: 860px; }
.page-hero .tag { margin-bottom: 22px; }
.page-hero h1 {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.0; letter-spacing: -0.028em;
  color: var(--obsidian); text-wrap: balance;
}
.page-hero .lead {
  margin: 22px 0 0; max-width: 700px;
  font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.55; color: var(--slate);
}
.page-hero .hero-cta { margin-top: 28px; justify-content: flex-start; }

/* Prosa (legal, guías, artículos) */
.prose { max-width: 780px; }
.prose h2 {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em; color: var(--obsidian);
  margin: 44px 0 12px; line-height: 1.15;
}
.prose h3 { font-size: 19px; font-weight: 700; color: var(--obsidian); margin: 30px 0 8px; }
.prose p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--charcoal); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; font-size: 16px; line-height: 1.6; }
.prose a { text-underline-offset: 3px; }
.prose .meta-line { font-size: 13.5px; color: var(--pebble); margin-bottom: 8px; }
.prose blockquote {
  margin: 22px 0; padding: 18px 22px;
  border-left: 3px solid var(--lime); background: var(--fog);
  border-radius: 0 12px 12px 0; font-size: 16.5px; color: var(--charcoal);
}
.prose table { border-collapse: collapse; width: 100%; margin: 20px 0 26px; font-size: 15px; }
.prose th, .prose td { border: 1px solid #dde4d8; padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--forest); color: var(--lime); font-weight: 600; font-size: 13.5px; }
.prose tr:nth-child(even) td { background: #f6f8f3; }
.prose .hl-lime { color: var(--forest); background: linear-gradient(transparent 62%, var(--lime) 62%); }

/* Avisos / callouts */
.callout {
  background: var(--linen); border-radius: 14px; padding: 18px 22px;
  font-size: 15.5px; color: var(--forest); line-height: 1.55;
  display: flex; gap: 12px; align-items: flex-start; margin: 22px 0;
}
.callout svg { flex: none; margin-top: 2px; }
.callout strong { color: var(--forest); }
.callout-note { background: var(--fog); color: var(--charcoal); }
.callout-note strong { color: var(--forest); }

/* Grid de 3 (artículos, gemas destacadas) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card-link { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.card-link:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }
.card-link .card-tag { align-self: flex-start; }

/* ── Buscador de gemas ── */
.gem-toolbar { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.gem-search {
  position: relative; max-width: 560px;
}
.gem-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--pebble); pointer-events: none; }
.gem-search input {
  width: 100%; padding: 15px 18px 15px 50px;
  border: 1.5px solid #dde4d8; border-radius: var(--r-pill);
  font: 500 16px var(--ff-body); color: var(--obsidian); background: var(--paper);
  outline: none; transition: border-color .15s;
}
.gem-search input:focus { border-color: var(--forest); }
.gem-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gem-filters .chip-btn {
  border: 1px solid #dde4d8; background: var(--paper); color: var(--slate);
  font: 600 13px var(--ff-body); padding: 8px 16px; border-radius: var(--r-pill);
  cursor: pointer; transition: all .15s;
}
.gem-filters .chip-btn:hover { border-color: var(--forest); color: var(--forest); }
.gem-filters .chip-btn.is-active { background: var(--forest); border-color: var(--forest); color: var(--lime); }

.gem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.gem-card {
  background: var(--paper); border-radius: 16px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(14,15,12,.07);
}
.gem-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gem-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--forest); color: var(--lime);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.gem-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--obsidian); }
.gem-desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--slate); flex: 1; }
.gem-quota { font-size: 13.5px; line-height: 1.5; }
.gem-quota b { color: var(--forest); }
.gem-quota .inc { color: #2f7d3a; font-weight: 600; }
.gem-more { margin-top: 4px; }
.gem-card .link { font-size: 14.5px; }
.gem-hidden { display: none !important; }
.gem-empty { display: none; text-align: center; padding: 60px 0; color: var(--pebble); }
.gem-empty.is-visible { display: block; }

/* Detalle de gema (details) */
.gem-detail { margin-top: 8px; border-top: 1px dashed #dde4d8; padding-top: 14px; }
.gem-detail p { font-size: 14.5px; line-height: 1.6; color: var(--charcoal); margin: 0 0 10px; }
.gem-detail ul { margin: 0 0 12px; padding-left: 18px; font-size: 14.5px; color: var(--charcoal); }
.gem-detail .btn { margin-top: 6px; }

/* ── Formularios (empezar / contacto) ── */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--forest); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  font: 500 16px var(--ff-body); color: var(--obsidian);
  padding: 13px 16px; border: 1.5px solid #dde4d8; border-radius: 12px;
  background: var(--paper); outline: none; width: 100%;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); }
.field .hint { font-size: 12.5px; color: var(--pebble); }
.form-note { font-size: 13px; color: var(--pebble); margin-top: 14px; line-height: 1.55; }

/* Wizard empezar */
.onb { min-height: 100vh; background: var(--paper); display: flex; flex-direction: column; }
.onb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--fog);
}
.onb-top .backlink { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--slate); font-weight: 500; font-size: 14.5px; }
.onb-top .backlink:hover { color: var(--forest); }
.onb-progress { display: flex; gap: 6px; align-items: center; }
.onb-progress .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--fog); }
.onb-progress .pdot.is-on { background: var(--lime); }
.onb-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.onb-card { width: 100%; max-width: 640px; }
.onb-card .kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--pebble); }
.onb-card h1 {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; letter-spacing: -0.025em;
  color: var(--obsidian); margin: 10px 0 8px;
}
.onb-card .onb-sub { font-size: 16px; color: var(--slate); margin: 0 0 26px; line-height: 1.55; }
.onb-steps { display: none; }
.onb-steps.is-active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  border: 2px solid #e2e7dd; border-radius: 18px; padding: 22px 20px;
  background: var(--paper); cursor: pointer; text-align: left;
  font-family: var(--ff-body); transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; gap: 6px;
}
.choice:hover { border-color: var(--forest); }
.choice.is-sel { border-color: var(--forest); background: var(--linen); }
.choice .c-t { font-size: 17px; font-weight: 700; color: var(--obsidian); }
.choice .c-d { font-size: 13.5px; color: var(--slate); line-height: 1.45; }
.onb-actions { display: flex; gap: 12px; margin-top: 28px; }
.onb-actions .spacer { flex: 1; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot {
  border: 1.5px solid #e2e7dd; border-radius: 12px; padding: 12px 6px;
  background: var(--paper); cursor: pointer; text-align: center;
  font: 600 14px var(--ff-body); color: var(--forest);
  transition: all .15s;
}
.slot:hover { border-color: var(--forest); }
.slot.is-sel { background: var(--forest); color: var(--lime); border-color: var(--forest); }
.slot .s-sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--pebble); margin-top: 2px; }
.slot.is-sel .s-sub { color: rgba(255,255,255,.65); }
.onb-success { text-align: center; padding: 30px 0; }
.onb-success .ok-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--linen);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.onb-success h2 { font-family: var(--ff-disp); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; color: var(--forest); }
.onb-success p { color: var(--slate); font-size: 16px; margin: 12px auto 0; max-width: 460px; line-height: 1.6; }
@media (max-width: 760px) {
  .gem-grid, .grid-3 { grid-template-columns: 1fr; }
  .choice-grid, .slot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Wizard: pasos 2-3 como h2 con el mismo aspecto */
.onb-card h2 {
  font-family: var(--ff-disp); font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; letter-spacing: -0.025em;
  color: var(--obsidian); margin: 10px 0 8px;
}
