/* Source Serif 4 y Source Sans 3, SIL OFL. Licencias en /fonts/. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-deep: #e9e1d2;
  --ink: #1a2330;
  --muted: #3e4c5c;
  --card: #fffdf8;
  --line: #ddd4c4;
  --label: #0c6e56;
  --btn: #2ee6a6;
  --btn-ink: #04221a;
  --navy: #141c2b;
  --paper: #f6f1e7;
  --focus: #0c6e56;
  --focus-on-btn: #141c2b;
  --shadow: 0 18px 40px rgba(20, 28, 43, 0.08);
  --mark: #f3e2a4;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #10161f;
    --bg-deep: #1a2330;
    --ink: #f4efe6;
    --muted: #c9c2b4;
    --card: #1c2633;
    --line: #334155;
    --label: #8ee0c4;
    --paper: #f4efe6;
    --focus: #8ee0c4;
    --focus-on-btn: #f4efe6;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --mark: rgba(46, 230, 166, 0.35);
  }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 1.25rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/grain.svg");
  background-size: 160px 160px;
  opacity: 0.045;
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  body::before {
    opacity: 0.07;
    mix-blend-mode: overlay;
  }

  .sheet {
    box-shadow: inset 5px 0 0 var(--btn), var(--shadow);
  }
}

.bar,
main,
.footer {
  position: relative;
  z-index: 1;
}

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

p,
h1,
h2,
h3,
blockquote,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.cta:focus-visible {
  outline-color: var(--focus-on-btn);
}

::selection {
  background: var(--mark);
  color: #1a2330;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--paper);
  font-weight: 700;
}

.skip:focus {
  top: max(0.5rem, env(safe-area-inset-top));
}

.wrap {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
}

.wrap-narrow {
  width: min(760px, 100%);
}

.kicker,
.case-kicker {
  margin-bottom: 0.55rem;
  color: var(--label);
  font-size: 1rem;
  font-weight: 700;
}

h1,
h2,
.sheet-title,
.brand,
.pain h3,
.steps h3,
.desk h3,
.plan h3,
.faq h3,
.amount strong {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  max-width: 18em;
}

h3 {
  font-size: 1.45rem;
}

.lede {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.lede-follow {
  margin-top: 0.75rem;
}

.mark {
  font-style: inherit;
  background-image: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%);
}

.bar {
  position: relative;
  z-index: 4;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  min-height: 4.25rem;
  padding-block: 0.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  order: 3;
  flex: 1 0 100%;
  gap: 0 1.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--label);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-left: auto;
}

.entrar,
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  text-decoration: none;
}

.entrar:hover,
.text-link:hover,
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cta.cta-bar {
  display: none;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
}

.cta:hover {
  filter: brightness(0.96);
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.trust,
.aside,
figcaption,
.sheet-when,
.copy {
  color: var(--muted);
}

.trust {
  margin-top: 0.85rem;
}

.hero {
  padding-block: clamp(1.75rem, 4vw, 4.25rem) clamp(3rem, 6vw, 5.5rem);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.exhibit {
  margin: 0;
  padding: 1.15rem;
  background: var(--bg-deep);
  border-radius: 22px;
}

blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--btn);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
}

.bridge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--label);
  font-weight: 700;
}

.bridge::before,
.bridge::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sheet {
  position: relative;
  padding: 1.15rem 1.15rem 0.35rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px 16px 16px 2px;
  box-shadow: inset 5px 0 0 var(--navy), var(--shadow);
}

.sheet-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.sheet-title {
  font-size: 1.4rem;
}

.sheet-status {
  color: var(--label);
  font-weight: 700;
}

.sheet-when {
  margin-top: 0.75rem;
}

.sheet dl > div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.sheet dt {
  color: var(--muted);
}

.sheet dd {
  margin-top: 0.12rem;
  font-weight: 600;
}

figcaption {
  margin-top: 0.9rem;
  font-size: 1rem;
}

.section {
  padding-block: clamp(3rem, 6vw, 5.25rem);
  border-top: 1px solid var(--line);
}

.pains {
  margin-top: 2rem;
}

.pain {
  display: grid;
  gap: 0.45rem 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.pain:last-child {
  border-bottom: 1px solid var(--line);
}

.when {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  color: var(--label);
}

.pain h3 {
  margin-bottom: 0.4rem;
}

.pain p:last-child,
.steps li > p,
.desk p,
.plan > p:last-child,
.case-lead p:last-child {
  max-width: 62ch;
}

.steps {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.num {
  margin-bottom: 0.35rem;
  color: var(--label);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.sample {
  margin-top: 0.75rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
}

.case {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.case-lead {
  max-width: 42rem;
  margin-bottom: 1.35rem;
}

.case-lead h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin-bottom: 0.55rem;
}

.case-body {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.acta {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.acta li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1.05rem;
  border-top: 1px solid var(--line);
}

.acta li:first-child {
  border-top: 0;
}

.acta .bot {
  background: color-mix(in srgb, var(--btn) 14%, var(--card));
}

.who {
  font-weight: 700;
}

.acta .bot .who {
  color: var(--label);
}

.desk {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

.desk li {
  padding: 1.2rem 1.25rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.desk h3 {
  margin-bottom: 0.4rem;
}

.aside {
  max-width: 46rem;
  margin-top: 1.25rem;
}

.band {
  padding-block: clamp(3rem, 6vw, 5.25rem);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.plans {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  padding: 1.2rem 1.25rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.plan-pick {
  border-color: color-mix(in srgb, var(--label) 45%, var(--line));
  box-shadow: inset 0 3px 0 var(--btn);
}

.plan-tag {
  margin-bottom: 0.4rem;
  color: var(--label);
  font-size: 0.95rem;
  font-weight: 700;
}

.plan-pick .amount strong {
  font-size: 2.55rem;
}

.amount {
  margin: 0.45rem 0 0.55rem;
}

.amount strong {
  font-size: 2rem;
  font-weight: 600;
}

.amount span,
.plan > p:last-child {
  color: var(--muted);
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-block: 0.95rem;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.faq h3 {
  flex: 1;
  min-width: 0;
  font-size: 1.3rem;
}

.faq details p {
  max-width: 62ch;
  margin: 0 0 1.15rem;
}

.closer {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) calc(clamp(3.5rem, 8vw, 6.5rem) + env(safe-area-inset-bottom));
  background: var(--navy);
  color: var(--paper);
}

.closer h2 {
  max-width: 12em;
  color: var(--paper);
}

.closer p {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.closer .trust {
  color: #d5cec2;
}

.text-link.light {
  color: var(--paper);
}

.footer {
  padding-block: 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 0.35rem 1.5rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer .brand {
  text-decoration: none;
}

.copy {
  margin-top: 0.4rem;
}

@media (max-width: 719px) {
  .nav {
    justify-content: space-between;
    gap: 0.4rem;
  }

  .nav a {
    font-size: 0.9375rem;
  }
}

@media (min-width: 720px) {
  html {
    scroll-padding-top: 5.75rem;
  }

  .bar {
    position: sticky;
    top: 0;
  }

  .cta.cta-bar {
    display: inline-flex;
    width: auto;
    min-width: 0;
    padding-inline: 0.95rem;
  }

  .actions {
    flex-direction: row;
    align-items: center;
  }

  .cta {
    width: auto;
    min-width: 13.5rem;
  }

  .text-link {
    justify-content: flex-start;
  }

  .pain {
    grid-template-columns: 13.5rem 1fr;
    align-items: start;
  }

  .desk {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
  }

  .footer-inner > p:not(.copy) {
    margin-right: auto;
  }

  .copy {
    width: 100%;
    margin-top: 0;
  }
}

@media (min-width: 980px) {
  .nav {
    order: 0;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bar-actions {
    margin-left: 0;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .exhibit .sheet {
    transform: rotate(-0.45deg);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .case-body {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
  }

  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .acta li {
    grid-template-columns: 6.25rem 1fr;
    column-gap: 0.75rem;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .exhibit .sheet {
    transform: none;
  }
}
