:root {
  color-scheme: light;
  --ink: var(--editorial-tinta);
  --muted: var(--editorial-secundario);
  --accent: var(--editorial-verde);
  --line: var(--editorial-linea);
  --slate: var(--editorial-tinta);
  --plan-accent: var(--editorial-menta);
  --surface: var(--editorial-hoja);
  font: 16px/1.55 var(--editorial-texto);
}
* { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--editorial-pagina); }
a { color: var(--accent); text-underline-offset: .25em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--editorial-violeta); outline-offset: 3px; }
.frame { width: min(calc(100% - 48px), 1120px); margin-inline: auto; }
.site-header { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font: 650 1.6rem var(--editorial-titulo); }
.brand img { border-radius: 8px; border: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-header nav a { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.checkout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 50px); align-items: start; padding-block: clamp(28px, 6vw, 74px); }
.plan {
  min-width: 0;
  padding: clamp(23px, 3.9vw, 49px);
  border: 1px solid #4d4155;
  border-radius: 10px;
  color: var(--editorial-hoja);
  background-color: var(--slate);
  background-image: linear-gradient(#eee0ff0e 1px, transparent 1px), linear-gradient(90deg, #eee0ff0e 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 7px 9px 0 #5c536023;
}
.plan h1 { font: 580 clamp(2.35rem, 4.5vw, 4.25rem)/1.04 var(--editorial-titulo); letter-spacing: -.059em; margin: 0 0 17px; }
.plan h1 span { color: var(--plan-accent); font-style: italic; }
.lead { max-width: 34ch; font-size: 1.06rem; margin: 0 0 26px; color: #e8dbec; }
.price-card { border-radius: 6px; padding: 22px clamp(15px, 2.6vw, 26px); background: #302939; border: 1px solid #74677a; }
.price-card p { margin: 0; }
.price { font: 630 clamp(2.05rem, 4vw, 3.35rem)/1.08 var(--editorial-titulo); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
#duration { margin-top: 8px; color: #e4d9ee; font-size: .88rem; }
.features { padding: 13px 0 0; margin: 17px 0 0; border-top: 1px solid #e8d5ff41; list-style: none; font-size: .89rem; }
.features li { position: relative; padding-left: 24px; padding-block: 4px; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--plan-accent); font-weight: 750; }
.service-state { color: #e6daf0; margin: 16px 0 0; font-size: .82rem; }
.mobile-access { display: none; }
.purchase { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--editorial-violeta); border-radius: 10px; padding: clamp(21px, 3.5vw, 39px); }
.purchase h2 { font: 590 clamp(1.55rem, 3vw, 2.3rem)/1.15 var(--editorial-titulo); letter-spacing: -.043em; margin: 0; }
.step { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.step h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 1.02rem; }
.step-index { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 6px; color: var(--accent); background: #e0eee4; font-size: .79rem; }
.step label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: 5px; }
.step-description, .qr-details p { color: var(--muted); font-size: .91rem; margin: 0 0 12px; }
.access-step {
  margin-top: 1.2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(90deg, var(--editorial-reticula) 1px, transparent 1px) 0 0 / 21px 21px,
    linear-gradient(var(--editorial-reticula) 1px, transparent 1px) 0 0 / 21px 21px,
    #f8f2e7;
  scroll-margin-top: 1rem;
}
.access-step h3 { font: 645 clamp(1.4rem, 3vw, 1.8rem)/1.12 var(--editorial-titulo); }
.access-step .step-index { font-family: var(--editorial-texto); }
.email-row { display: grid; gap: .65rem; }
.email-row input { min-width: 0; width: 100%; height: 48px; padding: 8px 12px; color: var(--ink); border: 1px solid #9c8c81; border-radius: 6px; background: #fffdf8; }
.local-access { color: var(--editorial-violeta); font-size: .87rem; margin: .75rem 0 0; }
.mail-help { margin-top: .85rem; color: var(--muted); font-size: .87rem; }
.mail-help summary { width: fit-content; min-height: 30px; color: var(--accent); font-weight: 700; cursor: pointer; }
.mail-help p { margin: .2rem 0 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 8px 15px; border: 1px solid transparent; border-radius: 6px; background: var(--accent); color: white; cursor: pointer; text-decoration: none; font-size: .9rem; font-weight: 680; text-align: center; }
#buy { width: 100%; }
.btn:hover:not(:disabled) { background: #184739; }
.btn.alt { background: #ede5ee; color: #57366d; border-color: #d8c7df; }
.btn.alt:hover:not(:disabled) { background: #e3d4e8; }
.btn:disabled { color: #625766; background: #efe8db; border-color: #e0d4c3; cursor: default; }
.account-actions:has(> :not(.hidden, [hidden])) { display: flex; flex-wrap: wrap; gap: 8px; }
.status { overflow-wrap: anywhere; color: var(--muted); font-size: .86rem; margin: 10px 0 0; min-height: 1.3em; }
.status.good, .status.danger { padding: 8px 11px; border-radius: 8px; }
.status.good { color: #146345; background: #e9f7ef; }
.status.danger { color: #9b263c; background: #fdf0f3; }
.qr-panel { display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 15px; border-radius: 8px; margin-top: 16px; background: #eef2e8; border: 1px solid #d6ded0; }
.qr-figure { display: grid; place-items: center; padding: 9px; background: white; border: 1px solid #d6ded0; border-radius: 6px; }
.qr-figure img { display: block; width: 100%; height: auto; }
.qr-details { display: grid; gap: 6px; }
.qr-details strong { font-variant-numeric: tabular-nums; }
.qr-details span, .qr-details a { font-size: .84rem; }
.qr-details p { margin: 2px 0 4px; }
#templateItems { display: grid; gap: 12px; }
#editor-pro-open { margin-bottom: 1.1rem; }
.footer { display: flex; flex-wrap: wrap; gap: 12px 18px; padding-block: 18px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer span { margin-right: auto; }
@media (max-width: 760px) {
  .checkout { grid-template-columns: 1fr; }
  .plan h1 { margin-bottom: 10px; }
  .lead { margin-bottom: 17px; }
  .mobile-access { display: inline-block; margin-top: .7rem; padding-block: .4rem; color: var(--plan-accent); font-weight: 700; }
}
@media (max-width: 420px) {
  .frame { width: calc(100% - 30px); }
  .header-inner { flex-wrap: wrap; padding-block: .65rem; }
  .site-header nav { gap: 8px 12px; }
  .qr-panel { grid-template-columns: 1fr; }
  .qr-figure { width: min(100%, 190px); }
}
