/* Sesio — sitio de marketing (sesio.co)
   Tema base: Sereno. Tokens espejo de static/css/themes.css (.theme-sereno) */

:root {
  --primary: #7C9E8F;
  --primary-dark: #5A7A6C;
  --primary-soft: rgba(124, 158, 143, 0.14);
  --accent: #C4845A;
  --accent-soft: rgba(196, 132, 90, 0.12);
  --bg: #FAF8F4;
  --subtle: #EFEDE8;
  --card: #FFFFFF;
  --border: #DDD8CF;
  --ink: #2D3028;
  --muted: #7A8070;
  --faint: #A8A499;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 24px;
  --pill: 999px;

  --shadow-sm: 0 2px 10px rgba(45, 48, 40, 0.05);
  --shadow: 0 16px 40px rgba(45, 48, 40, 0.10);
  --shadow-lg: 0 24px 64px rgba(45, 48, 40, 0.14);

  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'Lato', system-ui, -apple-system, sans-serif;

  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--fd); font-weight: 700; line-height: 1.14; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; border-radius: 4px; }

/* ── layout ───────────────────────────────────────── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.wrap--narrow { max-width: 820px; }
.sect { padding: clamp(52px, 7vw, 88px) 0; }
.sect--tight { padding: clamp(40px, 5vw, 60px) 0; }
.sect--tint { background: var(--subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sect--dark { background: var(--ink); color: #FAF8F4; }
.sect--dark h2, .sect--dark h3 { color: #FAF8F4; }
.sect--dark .lead, .sect--dark .card p { color: #DDD8CF; }
.stack { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.stack--sm { gap: 16px; }
.stack--md { gap: 24px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.split--flip > *:first-child { order: 2; }
@media (max-width: 900px) { .split--flip > *:first-child { order: 0; } }

/* ── tipografía ───────────────────────────────────── */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.h1 { font-size: clamp(36px, 5vw, 58px); text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); text-wrap: balance; }
.h3 { font-size: clamp(21px, 2.2vw, 25px); }
.h4 { font-size: 18px; }
.em { font-style: italic; color: var(--primary-dark); }
.sect--dark .em { color: var(--primary); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); max-width: 58ch; }
.body { font-size: 16px; line-height: 1.65; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.tiny { font-size: 13px; color: var(--faint); }
.measure { max-width: 64ch; }

/* ── botones ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--fb); font-size: 16px; font-weight: 700;
  border-radius: var(--pill); padding: 15px 30px; min-height: 48px;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary { background: var(--primary-dark); color: #fff; }
.btn--primary:hover { background: #4A6A5C; color: #fff; }
.btn--ghost { border-color: var(--primary-dark); color: var(--primary-dark); background: transparent; }
.btn--ghost:hover { background: var(--primary-dark); color: #fff; }
.btn--light { background: #FAF8F4; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--lg { font-size: 17px; padding: 18px 38px; min-height: 56px; }
.btn--block { width: 100%; }
.link-arrow { font-size: 15px; font-weight: 700; color: var(--primary-dark); display: inline-flex; gap: 6px; align-items: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── nav ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--subtle);
}
.nav__in { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); min-height: var(--nav-h); }
.nav__logo { font-family: var(--fd); font-size: 25px; font-weight: 700; color: var(--primary-dark); }
.nav__logo:hover { color: var(--primary-dark); }
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.nav__links > a, .nav__drop > summary { color: var(--muted); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__actions .btn { padding: 11px 24px; min-height: 42px; font-size: 15px; }
.nav__enter { font-size: 15px; font-weight: 700; padding: 10px 8px; }

.nav__drop { position: relative; }
.nav__drop > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600;
}
.nav__drop > summary::-webkit-details-marker { display: none; }
.nav__drop[open] > summary { color: var(--ink); }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: -18px; width: 320px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px;
}
.nav__menu a { display: grid; gap: 2px; padding: 11px 14px; border-radius: var(--r); color: var(--ink); }
.nav__menu a:hover { background: var(--subtle); color: var(--ink); }
.nav__menu strong { font-size: 15px; font-weight: 700; }
.nav__menu span { font-size: 13px; color: var(--muted); line-height: 1.45; }

.nav__burger {
  margin-left: auto; display: none; list-style: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r); color: var(--ink);
}
.nav__burger::-webkit-details-marker { display: none; }
.nav__mobile { display: none; }
.nav__sheet {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 12px clamp(16px, 4vw, 32px) 24px; display: grid; gap: 4px;
  box-shadow: var(--shadow); max-height: calc(100vh - var(--nav-h)); overflow: auto;
}
.nav__sheet a { padding: 13px 4px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--subtle); }
.nav__sheet .nav__group { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); padding: 18px 4px 6px; }
.nav__sheet .btn { margin-top: 16px; }

@media (max-width: 940px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: block; }
}

/* ── cards ────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px;
}
.card--tint { background: var(--subtle); border-color: var(--border); }
.card--plain { background: transparent; border: none; padding: 0; }
.sect--dark .card { background: transparent; border-color: rgba(250, 248, 244, 0.18); }
.card--link:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.card__ico {
  width: 44px; height: 44px; border-radius: var(--r); background: var(--primary-soft);
  color: var(--primary-dark); display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.card__foot { margin-top: auto; padding-top: 6px; }

.badge {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 700;
  border-radius: var(--pill); padding: 6px 14px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.badge--accent { background: var(--accent-soft); color: #A9663C; }
.badge--neutral { background: var(--subtle); color: var(--muted); }
.pill-tag {
  align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border-radius: var(--pill); padding: 8px 18px;
}

/* ── lista de features con check ──────────────────── */
.checks { display: flex; flex-direction: column; gap: 11px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.checks svg { color: var(--primary-dark); margin-top: 3px; }
.checks--dark svg { color: var(--primary); }

/* ── mocks de producto ────────────────────────────── */
.mock {
  background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 15px;
}
.mock--flat { box-shadow: var(--shadow); border: 1px solid var(--border); }
.mock__hd {
  background: var(--ink); color: #FAF8F4; padding: 17px 24px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
}
.mock__hd strong { font-size: 16px; }
.mock__hd span { font-size: 13.5px; color: var(--primary); }
.mock__body { padding: 6px 24px 18px; }
.mock__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--subtle);
}
.mock__row:last-child { border-bottom: none; }
.mock__row p { margin: 0; font-size: 15.5px; font-weight: 700; }
.mock__row .sub { font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.mock__note { background: var(--subtle); padding: 14px 24px; font-size: 13.5px; color: var(--muted); }
.bar { height: 6px; border-radius: var(--pill); background: var(--subtle); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: var(--pill); }

/* ── pasos / flujo ────────────────────────────────── */
.flow { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr)); }
.flow__item {
  background: rgba(250, 248, 244, 0.05); border: 1px solid rgba(250, 248, 244, 0.18);
  border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.flow__n { font-family: var(--fd); font-size: 15px; font-weight: 700; color: var(--accent); }
.flow__item strong { font-size: 16.5px; color: #FAF8F4; }
.flow__item p { font-size: 14.5px; color: #C9C6BC; line-height: 1.55; margin: 0; }

.steps { display: flex; flex-direction: column; gap: 28px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step__n {
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary-dark); font-family: var(--fd); font-size: 21px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step .mock { margin-top: 18px; }
@media (max-width: 640px) {
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step__n { width: 44px; height: 44px; font-size: 18px; }
}

/* ── FAQ ──────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--fd); font-size: 19px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 27px;
  width: 11px; height: 11px; border-right: 2px solid var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark); transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 0 22px; color: var(--muted); max-width: 72ch; }

/* ── tabla de precios ─────────────────────────────── */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.plan--featured { border: 2px solid var(--primary-dark); box-shadow: 0 16px 40px rgba(90, 122, 108, 0.16); position: relative; }
.plan__flag {
  position: absolute; top: -14px; left: 28px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: var(--primary-dark); border-radius: var(--pill); padding: 6px 16px;
}
.plan__price { font-family: var(--fd); font-size: 33px; font-weight: 700; white-space: nowrap; }
.plan__price small { font-family: var(--fb); font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .btn { margin-top: auto; }

.country { display: flex; flex-wrap: wrap; gap: 8px; }
.country button {
  font-family: var(--fb); font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--card); color: var(--muted);
  border-radius: var(--pill); padding: 11px 20px; min-height: 44px;
}
.country button[aria-pressed="true"] { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--subtle); font-size: 15px; vertical-align: top; }
.compare thead th { background: var(--subtle); font-family: var(--fd); font-size: 17px; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.compare td { color: var(--muted); }
.compare .yes { color: var(--primary-dark); font-weight: 700; }
.compare .no { color: var(--faint); }
.compare caption { caption-side: bottom; padding-top: 14px; font-size: 13px; color: var(--faint); text-align: left; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .compare { min-width: 720px; }

/* ── temas ────────────────────────────────────────── */
.themes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.theme { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.theme__swatches { display: flex; gap: 6px; }
.theme__swatches span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(45, 48, 40, 0.10); }
.theme strong { font-size: 15px; }
.theme span.label { font-size: 13px; color: var(--muted); }

/* ── personas ─────────────────────────────────────── */
.persona { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.beforeafter { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.beforeafter > div { border-radius: var(--r); padding: 20px; }
.beforeafter .before { background: var(--subtle); }
.beforeafter .after { background: var(--primary-soft); }
.beforeafter h4 { font-size: 15px; font-family: var(--fb); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; color: var(--muted); }
.beforeafter .after h4 { color: var(--primary-dark); }
.beforeafter li { font-size: 15px; line-height: 1.55; padding: 5px 0; color: var(--ink); }

/* ── banda CTA ────────────────────────────────────── */
.cta-band { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-band h2 { max-width: 24ch; }
.cta-band p { max-width: 52ch; }

/* ── cross-links ──────────────────────────────────── */
.crosslinks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.crosslink { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.crosslink:hover { border-color: var(--primary); }
.crosslink strong { font-size: 16px; color: var(--ink); }
.crosslink span { font-size: 14px; color: var(--muted); line-height: 1.5; }

.breadcrumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }

.note-strong {
  background: var(--primary-soft); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 12px;
}
.note-strong strong { font-family: var(--fd); font-size: clamp(24px, 3vw, 32px); font-weight: 700; }

/* ── prosa legal / doc ────────────────────────────── */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 25px; margin-top: 22px; }
.prose h3 { font-size: 19px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }

/* ── footer ───────────────────────────────────────── */
.foot { background: var(--subtle); border-top: 1px solid var(--border); }
.foot__grid { display: grid; gap: 32px; padding: clamp(40px, 5vw, 56px) 0 28px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col h4 { font-family: var(--fb); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.foot__col a { font-size: 15px; color: var(--muted); }
.foot__col a:hover { color: var(--ink); }
.foot__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: baseline; padding: 20px 0 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }
.foot__logo { font-family: var(--fd); font-size: 23px; font-weight: 700; color: var(--primary-dark); }

/* ── utilidades ───────────────────────────────────── */
.hide-mobile { display: initial; }
@media (max-width: 640px) {
  .hide-mobile { display: none; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
  .nav__actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
