/* Sanaro: mismos colores y tipografía que Sanaro Pro (Sanaro-Admin). El tema sigue al sistema. */
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/onest-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --accent: #1f3a5f;
  --accent-soft: #e3eaf4;
  --on-accent: #ffffff;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #edebe5;
  --line: #e0ddd4;
  --ink: #17181c;
  --ink-2: #5a5d66;
  --ok: #1f6b45;
  --radius-field: 16px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-text: 'Onest Variable', system-ui, sans-serif;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8fb4e8;
    --accent-soft: #1b2b44;
    --on-accent: #0f1013;
    --bg: #0f1013;
    --surface: #181a1f;
    --surface-2: #21242b;
    --line: #2c2f37;
    --ink: #f2f2f0;
    --ink-2: #a3a7b2;
    --ok: #6fd1a0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(34px, 6vw, 56px);
}
h2 {
  font-size: clamp(26px, 4vw, 36px);
}
h3 {
  font-size: 20px;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
  border-radius: 8px;
}
.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
.muted {
  color: var(--ink-2);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--surface);
}

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.logo__tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--on-accent);
}
.logo__tile svg {
  width: 24px;
  height: 24px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
/* El botón de la barra conserva sus colores (la regla de arriba tiene más peso que .button). */
.nav a.button,
.nav a.button:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.08);
}
.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* Secciones */
section {
  padding: 72px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.section-head p {
  max-width: 680px;
}
.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero {
  padding: 80px 0 56px;
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
}
.hero p {
  color: var(--ink-2);
  font-size: clamp(18px, 2.4vw, 21px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Los botones de cada panel quedan abajo, a la misma altura. */
.panel .actions {
  margin-top: auto;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.button:disabled:hover {
  filter: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.card p {
  color: var(--ink-2);
  font-size: 16px;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 7px;
  height: 12px;
  border: solid var(--ok);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(40deg);
}
.steps {
  counter-reset: step;
}
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.soon {
  display: inline-block;
  padding: 6px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 15px;
}

/* Planes */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.plan__price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan__price small {
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 500;
}
.plan .ticks {
  flex: 1;
  margin: 12px 0 20px;
  font-size: 16px;
}
@media (min-width: 721px) {
  /* Dos líneas de descripción en todas las tarjetas: las listas empiezan a la misma altura. */
  .plan > .muted {
    min-height: 3.1em;
  }
}
.plans-note {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 15px;
}

/* Contacto y pie */
.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--on-accent);
}
.cta p {
  max-width: 560px;
  opacity: 0.9;
}
.cta .button {
  background: var(--on-accent);
  color: var(--accent);
}
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer nav strong {
  color: var(--ink);
}
.site-footer a {
  color: var(--ink-2);
}

/* Páginas sueltas (enlaces, documentos legales) */
.page {
  padding: 72px 0 96px;
}
.page .wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
.page .wrap.legal {
  max-width: 860px;
}

@media (max-width: 720px) {
  .nav a:not(.button) {
    display: none;
  }
  section {
    padding: 48px 0;
  }
  .hero {
    padding: 48px 0 32px;
  }
  .panel,
  .cta {
    padding: 24px;
  }
}

/* Textos legales */
.legal {
  gap: 16px;
}
.legal h1 {
  font-size: clamp(28px, 4.5vw, 40px);
}
.legal p,
.legal li {
  color: var(--ink-2);
  font-size: 16px;
}
.legal strong {
  color: var(--ink);
}
.legal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}
.table-scroll {
  overflow-x: auto;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--surface-2);
  color: var(--ink);
}
.legal td {
  color: var(--ink-2);
}
