/* QR Saver — papel cálido, tinta y el amarillo del contorno del escáner como único detalle propio */
:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --band: #f2eee6;
  --raised: #ffffff;
  --text: #1d1b17;
  --text-2: #57524a;
  --muted: #6f6a60;
  --line: rgba(29, 27, 23, 0.1);
  --accent: #0057d9;
  --accent-ink: #004bbd;
  --on-accent: #ffffff;
  --signature: #e0a100;
  --bezel: #1f1d1a;
  --shadow: 0 24px 48px -24px rgba(29, 27, 23, 0.35), 0 2px 8px rgba(29, 27, 23, 0.08);
  --pass: #b95300;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --maxw: 1152px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --band: #1d1c19;
    --raised: #24221f;
    --text: #f2eee6;
    --text-2: #c4beb2;
    --muted: #9a9488;
    --line: rgba(242, 238, 230, 0.1);
    --accent: #e9e5dc;
    --accent-ink: #8fbcff;
    --on-accent: #161513;
    --signature: #f2c230;
    --bezel: #050505;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 150ms var(--ease); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--text); }
h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 500; margin: 0 0 4px; }
p { margin: 0 0 16px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  background: var(--raised); color: var(--text);
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 17px; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; gap: 4px 24px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--text-2); text-decoration: none; padding: 4px 0; }
.site-nav a:hover { color: var(--text); }

/* Botones */
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.button:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.button:active { transform: scale(0.98); }
.button-quiet { background: var(--raised); color: var(--text); border: 1px solid var(--line); }
.button-quiet:hover { background: var(--band); }

/* Firma: esquinas del contorno del escáner */
.mark {
  --c: var(--signature); --l: 14px; --w: 3px;
  padding: 0 8px; margin: 0 -2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) left top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) right top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--l);
  background-repeat: no-repeat;
}

/* Hero */
.hero { background: var(--band); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; padding-top: 56px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 24px; max-width: 14em; }
.hero .sub { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 32em; margin: 0 0 32px; }
.actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.status { margin: 0; font-size: 15px; color: var(--muted); }
.hero-visual { display: flex; justify-content: center; height: 480px; }
.phone {
  border: 10px solid var(--bezel); border-radius: 48px; overflow: hidden;
  background: var(--bezel); box-shadow: var(--shadow);
}
.phone img { border-radius: 38px; }
.phone-hero { width: 300px; align-self: flex-start; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.phone-hero img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; padding-top: 72px; gap: 64px; }
  .hero-text { padding-bottom: 72px; }
  .hero-visual { height: 600px; align-self: end; }
  .phone-hero { width: 340px; }
}

/* Secciones */
section { padding: 96px 0; }
@media (max-width: 767px) { section { padding: 64px 0; } }
.hero { padding: 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { color: var(--text-2); font-size: 18px; line-height: 1.55; max-width: 32em; margin: 0; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 4fr 8fr; gap: 64px; } .split-head { position: sticky; top: 32px; align-self: start; } }

.features { display: grid; gap: 0 40px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { border-top: 1px solid var(--line); padding: 20px 0 24px; }
.features p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }

.types { display: grid; margin: 0; padding: 0; list-style: none; column-gap: 40px; }
@media (min-width: 640px) { .types { grid-template-columns: 1fr 1fr; } }
.types li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 16px; }
.types li span:first-child { font-weight: 500; }
.types li span:last-child { color: var(--text-2); text-align: right; }

.gallery { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery .phone { border-width: 6px; border-radius: 32px; }
.gallery .phone img { border-radius: 26px; }
.gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--text-2); }

/* Oferta y pase */
.offer { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .offer { grid-template-columns: 7fr 5fr; gap: 64px; } }
.offer-text p { color: var(--text-2); max-width: 34em; }
.offer-sub { margin-top: 40px; }

.pass {
  --notch: var(--band);
  margin: 0 auto; width: 100%; max-width: 340px; border-radius: 16px;
  background: var(--pass); color: #ffffff; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.pass::before { content: ""; position: absolute; top: -12px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--notch); }
.pass-top { padding: 24px 24px 0; font-size: 15px; font-weight: 500; }
.pass-body { padding: 16px 24px 24px; display: grid; gap: 4px; }
.pass-label { font-size: 13px; opacity: 0.85; }
.pass-title { font-family: var(--display); font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.pass-fields { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; margin: 16px 0 0; }
.pass-fields dt { font-size: 13px; opacity: 0.85; }
.pass-fields dd { margin: 0; font-size: 15px; white-space: nowrap; }
.pass-tear { position: relative; height: 24px; margin: 0 24px; border-top: 2px dashed rgba(255, 255, 255, 0.45); top: 11px; }
.pass-tear::before, .pass-tear::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--notch); }
.pass-tear::before { left: -36px; }
.pass-tear::after { right: -36px; }
.pass-code { padding: 12px 24px 28px; display: flex; justify-content: center; }
.pass-code img { width: 136px; height: 136px; padding: 10px; background: #ffffff; border-radius: 8px; image-rendering: pixelated; }

.closing h2 { margin-bottom: 12px; }
.closing .lead { margin-bottom: 24px; }

/* Páginas de contenido */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.page .meta { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.page h2 { margin-top: 48px; font-size: 24px; }
.page h3 { margin-top: 24px; }
.page ul, .page ol { padding-left: 20px; }
.page li { margin-bottom: 8px; }
.page strong { font-weight: 500; }
.page details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.page details:first-of-type { border-top: 1px solid var(--line); }
.page summary { cursor: pointer; font-weight: 500; }
.page details p, .page details ul { margin: 12px 0 0; color: var(--text-2); }
.callout { border: 1px solid var(--line); background: var(--band); padding: 16px 20px; border-radius: 12px; }
.callout p { margin: 0; }
.notfound { text-align: center; padding: 96px 0; }
.notfound h1 { font-size: 56px; font-weight: 500; margin: 0 0 16px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; font-size: 15px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0 0 8px; max-width: 46em; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
