/* ============================================================
   QRveo · Landing es-MX
   Estilo: postal mexicana de pueblo + skeuomorfismo ligero
   ============================================================ */

@font-face {
  font-family: 'Alfa Slab One';
  src: url('/assets/fonts/alfa-slab-one-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/assets/fonts/caveat-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f3e6d1;
  --paper-2: #fdf7ea;
  --paper-3: #ead8ba;
  --ink: #2b2118;
  --ink-2: #5b4835;
  --ink-3: #8a745b;
  --cempasuchil: #e0542c;
  --cempasuchil-d: #a83a1b;
  --rosa: #bf3760;
  --jade: #0f6f68;
  --anil: #2c4a72;
  --maiz: #e9b949;
  --tierra: #a2502c;
  --line: rgba(70, 44, 22, 0.16);
  --line-strong: rgba(70, 44, 22, 0.28);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 -1px 0 rgba(90, 60, 30, 0.08) inset,
    0 22px 34px -24px rgba(74, 44, 20, 0.6), 0 3px 8px -4px rgba(74, 44, 20, 0.18);
  --display: 'Alfa Slab One', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(248, 205, 150, 0.85) 0%, rgba(248, 205, 150, 0) 62%),
    radial-gradient(900px 520px at -8% 14%, rgba(246, 227, 196, 0.9) 0%, rgba(246, 227, 196, 0) 58%),
    radial-gradient(760px 680px at 46% 116%, rgba(226, 199, 157, 0.8) 0%, rgba(226, 199, 157, 0) 62%);
  background-attachment: fixed;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grano de papel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.38'/%3E%3C/svg%3E");
}

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

img, svg { max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------------- tipografía ---------------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.9rem); line-height: 0.99; letter-spacing: -0.01em; }
html[lang='en'] h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.015em; }
html[lang='zh-CN'] h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.12; letter-spacing: 0; }
html[lang='zh-CN'] h2 { line-height: 1.2; letter-spacing: 0; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.04; }
h3 { font-size: 1.18rem; line-height: 1.2; }
p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tierra);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 9px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cempasuchil); box-shadow: 0 0 0 3px rgba(224, 84, 44, 0.18); }

.mark { background: linear-gradient(180deg, transparent 58%, rgba(233, 185, 73, 0.55) 58%, rgba(233, 185, 73, 0.55) 92%, transparent 92%); padding: 0 2px; }

.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--ink-3); font-size: 0.92rem; }

/* ---------------- botones (skeuomorfismo ligero) ---------------- */
.btn {
  --btn-bg: var(--cempasuchil);
  --btn-edge: var(--cempasuchil-d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(60, 30, 12, 0.25);
  border-radius: 12px;
  padding: 13px 22px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  color: #fff8ef;
  background: linear-gradient(180deg, #f07348, var(--btn-bg) 55%, #cf4724);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 3px 0 var(--btn-edge),
    0 14px 22px -14px rgba(168, 58, 27, 0.9);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.14s ease, filter 0.15s ease;
  text-shadow: 0 1px 0 rgba(120, 40, 16, 0.35);
}
.btn:hover { filter: saturate(1.06) brightness(1.02); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 0 var(--btn-edge), 0 18px 26px -14px rgba(168, 58, 27, 0.85); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 1px 0 var(--btn-edge), 0 8px 12px -10px rgba(168, 58, 27, 0.8); }
.btn:focus-visible { outline: 3px solid rgba(44, 74, 114, 0.45); outline-offset: 3px; }

.btn--ghost {
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf7, #f3e6d1);
  box-shadow: 0 1px 0 #fff inset, 0 3px 0 rgba(90, 60, 30, 0.22), 0 10px 18px -14px rgba(60, 40, 20, 0.5);
  text-shadow: none;
  border-color: rgba(70, 44, 22, 0.28);
}
.btn--ghost:active { box-shadow: 0 1px 0 #fff inset, 0 1px 0 rgba(90, 60, 30, 0.2); }
.btn--jade {
  background: linear-gradient(180deg, #1a8d84, var(--jade) 55%, #0a5a54);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 3px 0 #064a45, 0 14px 22px -14px rgba(10, 90, 84, 0.9);
}
.btn--sm { padding: 10px 16px; font-size: 0.9rem; border-radius: 10px; }
.btn--wide { width: 100%; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(9px);
  background: rgba(247, 238, 221, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(170deg, #fffdf7, #f0dfc2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 #fff inset, 0 3px 0 rgba(90, 60, 30, 0.18), 0 8px 14px -10px rgba(60, 40, 20, 0.6);
}
.brand__name { font-family: var(--display); font-size: 1.34rem; letter-spacing: -0.01em; line-height: 1; }
.brand__tag { display: block; font-family: var(--hand); font-size: 1.02rem; color: var(--ink-3); line-height: 1; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--ink-2);
  padding: 9px 11px; border-radius: 9px; border: 1px solid transparent;
}
.nav a:hover { background: rgba(255, 255, 255, 0.6); border-color: var(--line); color: var(--ink); }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; }

/* idioma */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 10px;
  background: rgba(255, 253, 247, 0.6); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  flex: none;
}
.lang-switch a {
  font-size: 0.71rem; font-weight: 700; letter-spacing: 0.05em; line-height: 1; text-decoration: none;
  color: var(--ink-2); padding: 6px 9px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.lang-switch a:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.lang-switch a.is-active {
  color: #fff8ef;
  background: linear-gradient(180deg, #f07348, var(--cempasuchil) 60%, #cf4724);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 2px 4px rgba(120, 40, 18, 0.25);
}

@media (max-width: 900px) {
  .site-header .wrap { gap: 10px; }
  .brand { order: 1; }
  .lang-switch { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: 0; }
  .nav { order: 4; }
  .header-cta { order: 5; }
  .lang-switch a { padding: 7px 8px; font-size: 0.7rem; }
}
@media (max-width: 560px) {
  .site-header .wrap { padding: 0 16px; gap: 8px; height: 62px; }
  .brand { min-width: 0; }
  .brand__mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand__name { font-size: 1.05rem; white-space: nowrap; }
  .brand__tag { display: none; }
  .lang-switch { margin-left: auto; padding: 2px; }
  .lang-switch a { padding: 5px 6px; font-size: 0.66rem; letter-spacing: 0; }
  .nav-toggle { padding: 7px 9px; font-size: 0.78rem; margin-left: 0; }
}

@media (max-width: 900px) {
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
        background: rgba(250, 243, 231, 0.98); border-bottom: 1px solid var(--line);
        padding: 10px 18px 18px; display: none; box-shadow: 0 20px 30px -20px rgba(60, 40, 20, 0.6); z-index: 45; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    background: #fffdf7; border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 9px 13px; font-weight: 700; font-size: 0.86rem; cursor: pointer; color: var(--ink);
    box-shadow: 0 2px 0 rgba(90, 60, 30, 0.16);
  }
}

/* ---------------- hero ---------------- */
.hero { padding: 40px 0 18px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 46px; align-items: center; }
.hero__copy > * + * { margin-top: 20px; }
.hero h1 { margin-top: 4px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__trust { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); max-width: 46ch; }
.trust-seal { flex: none; width: 22px; height: 22px; margin-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); padding: 14px 0; }
.stats > div { padding: 0 12px; border-left: 1px dashed var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-family: var(--display); font-size: 1.32rem; line-height: 1.1; color: var(--tierra); }
.stats span { font-size: 0.79rem; color: var(--ink-3); line-height: 1.25; display: block; margin-top: 3px; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------------- postal ---------------- */
.postcard-stack { position: relative; padding: 10px 6px 28px; }
.postcard {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 13px;
  box-shadow: var(--card-shadow), 0 1px 0 #fff inset;
  transform: rotate(-2.2deg);
}
.postcard--main { transform: rotate(-2.2deg); }
.postcard--back {
  position: absolute; inset: 26px 0 34px 40px; transform: rotate(3.6deg);
  background: #f6ead4; z-index: -1; padding: 0;
  box-shadow: 0 18px 30px -22px rgba(60, 40, 20, 0.7);
}
.postcard__photo {
  position: relative; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(60, 40, 20, 0.24);
  box-shadow: 0 1px 3px rgba(60, 40, 20, 0.25) inset;
  background: #e8c99b;
  aspect-ratio: 4 / 3;
}
.postcard__photo svg { display: block; width: 100%; height: 100%; }
.postcard__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 11px; }
.postcard__hand { flex: 1 1 auto; min-width: 0; font-family: var(--hand); font-size: 1.24rem; line-height: 1.05; color: var(--anil); transform: rotate(-1.2deg); }
.postcard__hand small { display: block; font-family: var(--body); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.airmail { height: 10px; border-radius: 3px; background: repeating-linear-gradient(45deg, var(--rosa) 0 9px, #fffaf0 9px 18px, var(--anil) 18px 27px, #fffaf0 27px 36px); border: 1px solid rgba(60, 40, 20, 0.2); }

.stamp { position: absolute; top: -16px; right: -10px; width: 84px; display: block; filter: drop-shadow(0 8px 10px rgba(60, 40, 20, 0.28)); transform: rotate(6deg); z-index: 2; }
.stamp .stamp-svg { display: block; width: 100%; height: auto; }
.postmark {
  position: absolute; top: 44px; right: 58px; width: 92px; height: 92px; opacity: 0.45;
  transform: rotate(-14deg); pointer-events: none;
}

.qr-tile {
  display: flex; align-items: center; gap: 10px;
  background: #fffdf7; border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 8px 10px 8px 8px; box-shadow: 0 1px 0 #fff inset, 0 8px 14px -12px rgba(60, 40, 20, 0.7);
}
.qr-tile img, .qr-tile svg { width: 62px; height: 62px; display: block; }
.qr-tile b { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tierra); }
.qr-tile span { display: block; font-size: 0.72rem; color: var(--ink-3); line-height: 1.25; }

/* ---------------- secciones ---------------- */
.section { padding: 62px 0; }
.section--tight { padding: 44px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.section__head p { max-width: 50ch; margin-top: 10px; }
.section-heading { display: flex; flex-direction: column; gap: 8px; }

.papel-divider { display: block; width: 100%; height: 34px; opacity: 0.9; margin: 4px 0 0; }

/* cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: linear-gradient(180deg, #fffdf7, #f7ecd8);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 26px 22px 22px; box-shadow: var(--card-shadow);
}
.step::before {
  content: ''; position: absolute; inset: 6px; border: 1px dashed rgba(70, 44, 22, 0.14); border-radius: 11px; pointer-events: none;
}
.step__n {
  font-family: var(--display); font-size: 1.5rem; color: #fff8ef; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
  background: radial-gradient(circle at 35% 28%, #f08356, var(--cempasuchil) 62%, #ab3a1c);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 4px 0 rgba(139, 48, 22, 0.55), 0 10px 16px -12px rgba(120, 40, 18, 0.8);
}
.step:nth-child(2) .step__n { background: radial-gradient(circle at 35% 28%, #e56a8a, var(--rosa) 62%, #8f2344); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 4px 0 rgba(120, 25, 55, 0.55), 0 10px 16px -12px rgba(120, 25, 55, .8); }
.step:nth-child(3) .step__n { background: radial-gradient(circle at 35% 28%, #2aa199, var(--jade) 62%, #084e49); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 4px 0 rgba(8, 70, 66, 0.6), 0 10px 16px -12px rgba(8, 70, 66, .8); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.95rem; }
.step__tape {
  position: absolute; top: -11px; left: 24px; width: 92px; height: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 224, 200, 0.55));
  border-left: 1px dashed rgba(120, 90, 60, 0.35); border-right: 1px dashed rgba(120, 90, 60, 0.35);
  transform: rotate(-2.5deg); box-shadow: 0 2px 5px rgba(60, 40, 20, 0.12);
}

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* beneficios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit {
  position: relative; padding: 22px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.88), rgba(246, 235, 216, 0.92));
  border: 1px solid var(--line); box-shadow: 0 1px 0 #fff inset, 0 14px 22px -22px rgba(60, 40, 20, 0.7);
}
.benefit__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(170deg, #fffdf8, #efdfc4); border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 #fff inset, 0 2px 0 rgba(90, 60, 30, 0.14); color: var(--tierra);
}
.benefit h3 { font-family: var(--body); font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.benefit p { font-size: 0.93rem; color: var(--ink-2); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .benefits { grid-template-columns: 1fr; } }

/* audiencias */
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience {
  position: relative; padding: 20px 18px 18px; border-radius: 14px; background: var(--paper-2);
  border: 1px solid var(--line-strong); box-shadow: var(--card-shadow); overflow: hidden;
}
.audience::after {
  content: ''; position: absolute; right: -28px; top: -28px; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(233, 185, 73, 0.55), rgba(224, 84, 44, 0.16));
  opacity: 0.7;
}
.audience h3 { font-family: var(--display); font-size: 1.02rem; line-height: 1.15; }
.audience p { font-size: 0.9rem; color: var(--ink-2); margin-top: 8px; }
.audience em { display: block; margin-top: 10px; font-style: normal; font-size: 0.8rem; color: var(--jade); border-top: 1px dashed var(--line); padding-top: 9px; }
@media (max-width: 1000px) { .audiences { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audiences { grid-template-columns: 1fr; } }

/* casos */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.case {
  position: relative; background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 16px 16px 18px; box-shadow: var(--card-shadow);
}
.case:nth-child(2) { transform: rotate(0.8deg); }
.case:nth-child(3) { transform: rotate(-0.7deg); }
.case__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.case__stamp { width: 74px; flex: none; display: block; filter: drop-shadow(0 6px 8px rgba(60, 40, 20, 0.24)); transform: rotate(4deg); }
.case__industry { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--rosa); }
.case__business { font-family: var(--display); font-size: 1.12rem; line-height: 1.15; margin-top: 3px; }
.case__city { font-family: var(--hand); font-size: 1.05rem; color: var(--anil); margin-top: 2px; }
.case__body { font-size: 0.88rem; color: var(--ink-2); margin-top: 12px; }
.case__body dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-top: 10px; }
.case__body dd { margin: 2px 0 0; }
.case__metrics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.metric {
  background: linear-gradient(180deg, #fff8e6, #f6e3bb); border: 1px dashed rgba(162, 80, 44, 0.5);
  border-radius: 8px; padding: 6px 9px; box-shadow: 0 1px 0 #fff inset;
}
.metric b { display: block; font-family: var(--display); font-size: 1rem; color: var(--tierra); line-height: 1.05; }
.metric span { font-size: 0.66rem; color: var(--ink-3); line-height: 1.2; display: block; max-width: 15ch; }
.case blockquote { margin: 14px 0 0; padding: 12px 12px 12px 14px; border-left: 3px solid var(--maiz); background: rgba(255, 255, 255, 0.5); border-radius: 0 8px 8px 0; font-size: 0.9rem; }
.case blockquote footer { margin-top: 6px; font-size: 0.74rem; color: var(--ink-3); font-style: normal; }
.case__duration { position: absolute; bottom: 12px; right: 14px; font-size: 0.66rem; color: var(--ink-3); }
@media (max-width: 980px) { .cases { grid-template-columns: 1fr; } .case { transform: none !important; } }
.disclaimer { margin-top: 18px; font-size: 0.78rem; color: var(--ink-3); display: flex; gap: 8px; align-items: flex-start; }
.disclaimer svg { flex: none; margin-top: 2px; }

/* ---------------- precios (3 planes) ---------------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 13px;
  padding: 26px 22px 22px; border-radius: 16px;
  background: linear-gradient(180deg, #fffdf7, #f7ecd8);
  border: 1px solid var(--line-strong); box-shadow: var(--card-shadow);
}
.plan-card.is-trial {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(246, 236, 218, 0.96)),
    repeating-linear-gradient(45deg, rgba(191, 55, 96, 0.06) 0 10px, transparent 10px 20px);
  border-style: dashed; border-color: rgba(70, 44, 22, 0.34);
}
.plan-card.is-featured {
  background: linear-gradient(168deg, #fffdf7 0%, #fbefd9 52%, #f6e2c4 100%);
  border-color: rgba(224, 84, 44, 0.5);
  box-shadow: 0 0 0 2px rgba(224, 84, 44, 0.13), var(--card-shadow);
}
.plan-flag {
  position: absolute; top: -13px; right: 20px;
  background: linear-gradient(180deg, #f07348, var(--cempasuchil) 60%, #cf4724);
  color: #fff8ef; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; box-shadow: 0 2px 0 var(--cempasuchil-d), 0 8px 12px -8px rgba(120, 40, 18, 0.8);
}
.plan-card__head { display: flex; flex-direction: column; gap: 5px; }
.plan-badge {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: #efe6d8; color: #6d5a45; border: 1px solid #ddd0bc;
}
.plan-card.is-featured .plan-badge { background: #fde7d4; color: #8a3a12; border-color: #efc3a3; }
.plan-card.is-trial .plan-badge { background: #e4f3ec; color: #145c46; border-color: #b9dfd0; }
.plan-card__name { font-family: var(--display); font-size: 1.18rem; line-height: 1.15; }
.plan-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.plan-price b { font-family: var(--display); font-size: clamp(2rem, 3vw, 2.55rem); line-height: 1; color: var(--tierra); }
.plan-cur { font-size: 0.78rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0.04em; }
.plan-per { font-size: 0.88rem; color: var(--ink-3); }
.plan-saving {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; color: #145c46;
  background: #e4f3ec; border: 1px solid #b9dfd0; padding: 3px 9px; border-radius: 999px;
}
.plan-note { font-size: 0.78rem; color: var(--ink-3); line-height: 1.4; }
.plan-yearline { font-size: 0.74rem; color: var(--ink-3); }
.plan-desc { font-size: 0.87rem; color: var(--ink-2); min-height: 3.4em; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-features li { display: flex; gap: 8px; font-size: 0.85rem; color: var(--ink-2); line-height: 1.45; }
.plan-features svg { flex: none; margin-top: 2px; color: var(--jade); }
.plan-limits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px;
  margin: 0; padding-top: 12px; border-top: 1px dashed var(--line);
}
.plan-limits dt { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.plan-limits dd { margin: 0; font-size: 0.82rem; font-weight: 500; }
.plan-card .btn { margin-top: auto; }
@media (max-width: 1000px) { .pricing { grid-template-columns: 1fr; } }

/* plan - boleto */
.plan-wrap { display: grid; grid-template-columns: 1.28fr 0.72fr; gap: 26px; align-items: stretch; }
.ticket {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  background: linear-gradient(150deg, #fffdf7 0%, #f8eeda 62%, #efdfc2 100%);
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.ticket__left { padding: 30px 28px; }
.ticket__right { padding: 30px 26px; border-left: 2px dashed rgba(70, 44, 22, 0.25); position: relative; }
.ticket__right::before, .ticket__right::after {
  content: ''; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line-strong);
}
.ticket__right::before { top: -12px; }
.ticket__right::after { bottom: -12px; }
.ticket__title { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.ticket__sub { font-size: 0.9rem; color: var(--ink-2); margin-top: 8px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-size: 2.1rem; color: var(--tierra); line-height: 1; }
.price span { font-size: 0.82rem; color: var(--ink-3); }
.plan-note { font-size: 0.76rem; color: var(--ink-3); margin-top: 10px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 4px; }
.limits div { display: flex; flex-direction: column; gap: 1px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.limits dt { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.limits dd { margin: 0; font-size: 0.9rem; font-weight: 500; }
.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.features li { display: flex; gap: 9px; font-size: 0.88rem; color: var(--ink-2); }
.features svg { flex: none; margin-top: 2px; color: var(--jade); }
.seal {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  margin: 6px auto 0; color: #fff6ea; font-family: var(--display); font-size: 0.76rem; line-height: 1.15;
  background: radial-gradient(circle at 34% 28%, #d1496f, var(--rosa) 55%, #86213f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 -3px 8px rgba(90, 10, 30, 0.5) inset,
    0 10px 18px -10px rgba(120, 30, 55, 0.9);
  transform: rotate(-8deg);
}
.seal span { font-family: var(--hand); font-size: 1.05rem; display: block; margin-top: 3px; }
.plan-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 26px 24px; background: linear-gradient(180deg, #fbf2e1, #f1e0c4); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--card-shadow); }
.plan-aside h3 { font-size: 1.16rem; }
.plan-aside p { font-size: 0.9rem; color: var(--ink-2); }
.plan-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; }
.plan-aside__list li { display: flex; gap: 8px; }
@media (max-width: 980px) {
  .plan-wrap { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; }
  .ticket__right { border-left: 0; border-top: 2px dashed rgba(70, 44, 22, 0.25); }
  .ticket__right::before, .ticket__right::after { left: auto; top: -13px; }
  .ticket__right::before { left: -12px; }
  .ticket__right::after { right: -12px; left: auto; }
}

/* tutoriales */
.tutorials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tutorial {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 14px;
  background: var(--paper-2); border: 1px solid var(--line-strong); box-shadow: var(--card-shadow);
}
.tutorial__media { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid rgba(60, 40, 20, 0.25); aspect-ratio: 16 / 10; background: #1d1712; }
.tutorial__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tutorial__badge { position: absolute; left: 8px; bottom: 8px; background: rgba(26, 20, 15, 0.78); color: #fff5e8; font-size: 0.68rem; padding: 3px 7px; border-radius: 5px; letter-spacing: 0.05em; }
.tutorial__play {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 14, 10, 0.18);
  border: 0; cursor: pointer;
}
.tutorial__play span {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #fffaf1, #ebd8b8); color: var(--cempasuchil-d);
  box-shadow: 0 1px 0 #fff inset, 0 4px 0 rgba(120, 70, 30, 0.35), 0 12px 20px -10px rgba(0, 0, 0, 0.6);
}
.tutorial h3 { font-size: 1.02rem; }
.tutorial p { font-size: 0.87rem; color: var(--ink-2); }
.tutorial__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; border-top: 1px dashed var(--line); padding-top: 12px; }
.tutorial__foot .qr-mini { width: 54px; height: 54px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; padding: 3px; }
.tutorial__foot a { font-size: 0.82rem; font-weight: 700; color: var(--anil); text-decoration: none; border-bottom: 1px solid rgba(44, 74, 114, 0.35); }
@media (max-width: 900px) { .tutorials { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq details {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 0 #fff inset, 0 6px 10px -12px rgba(60, 40, 20, 0.6); overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: 0 1px 0 #fff inset, 0 12px 20px -18px rgba(60, 40, 20, 0.8); }
.faq summary {
  cursor: pointer; padding: 15px 46px 15px 16px; font-weight: 700; font-size: 0.95rem; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.2rem; color: var(--cempasuchil);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 16px 16px; font-size: 0.92rem; color: var(--ink-2); }
.faq__side { position: sticky; top: 92px; }
.faq__note { margin-top: 16px; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.5); border: 1px dashed var(--line-strong); font-size: 0.86rem; color: var(--ink-2); }
.faq__note b { color: var(--ink); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq__side { position: static; } }

/* demo / formulario */
.demo {
  position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #fdf6e7 0%, #f5e6cb 60%, #eedcbd 100%);
  box-shadow: var(--card-shadow);
}
.demo__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; }
.demo__copy { padding: 38px 34px; }
.demo__form { padding: 34px 32px; background: rgba(255, 253, 247, 0.72); border-left: 2px dashed rgba(70, 44, 22, 0.2); }
.demo h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.demo__steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 13px; }
.demo__steps li { display: flex; gap: 12px; font-size: 0.92rem; color: var(--ink-2); }
.demo__steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--jade); color: #f4fffd; font-size: 0.72rem; font-family: var(--display); box-shadow: 0 2px 0 rgba(8, 70, 66, 0.6); }
.demo__steps strong { color: var(--ink); display: block; font-size: 0.92rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 0.94rem; color: var(--ink); background: #fffdf8;
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 11px 12px;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.08) inset, 0 1px 0 #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(15, 111, 104, 0.16), 0 1px 2px rgba(60, 40, 20, 0.06) inset;
}
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 0.78rem; color: var(--ink-3); margin: 12px 0 14px; line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--jade); }
.form-msg { margin-top: 12px; font-size: 0.86rem; padding: 10px 12px; border-radius: 8px; display: none; }
.form-msg.is-error { display: block; background: #fde8e4; color: #8a2a14; border: 1px solid #eec2b8; }
.form-msg.is-ok { display: block; background: #e4f3ec; color: #145c46; border: 1px solid #b9dfd0; }
@media (max-width: 900px) {
  .demo__grid { grid-template-columns: 1fr; }
  .demo__form { border-left: 0; border-top: 2px dashed rgba(70, 44, 22, 0.2); }
  .form-grid { grid-template-columns: 1fr; }
}

/* éxito del formulario */
.trial-result { display: none; }
.trial-result.is-open { display: block; }
.trial-code { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.trial-code code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 1.32rem; letter-spacing: 0.16em;
  background: #fffdf7; border: 1px dashed var(--line-strong); border-radius: 9px; padding: 8px 14px; color: var(--tierra);
}
.reviewer-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.reviewer-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: #fffdf7; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 0.86rem; }
.reviewer-list code { font-family: ui-monospace, Consolas, monospace; font-size: 0.84rem; }
.reviewer-list small { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.74rem; }

/* footer */
.site-footer { margin-top: 40px; background: #241d16; color: #e9dbc7; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #b99f7f; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; }
.footer-grid a { color: #e9dbc7; text-decoration: none; opacity: 0.86; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-brand { font-family: var(--display); font-size: 1.5rem; color: #fdf6e7; }
.footer-brand + p { font-size: 0.86rem; color: #c6b39a; margin-top: 10px; max-width: 40ch; }
.footer-bottom { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.76rem; color: #b09a80; }
.papel-top { height: 26px; background: #241d16; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* utilidades */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.pill-note { display: inline-flex; gap: 7px; align-items: center; font-size: 0.8rem; color: var(--ink-2); background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 渐进增强：默认可见，进入视口时才做一次轻微上浮 */
.reveal.is-in { animation: reveal-rise 0.55s ease both; }
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* modal de video */
.modal {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px;
  background: rgba(28, 20, 14, 0.72); backdrop-filter: blur(3px);
}
.modal.is-open { display: grid; }
.modal__box { width: min(860px, 100%); background: #1b1510; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.12); }
.modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: #f0e3d0; font-size: 0.85rem; background: #241d16; }
.modal__close { background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); color: #f0e3d0; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.modal video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* páginas internas (tutorial, demo, 404) */
.page-hero { padding: 40px 0 10px; }
.breadcrumb { font-size: 0.8rem; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.tutorial-page { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 26px; align-items: start; margin-top: 18px; }
.player-card { background: #1b1510; border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid rgba(0, 0, 0, 0.4); }
.player-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-meta { padding: 16px 18px; color: #f2e6d4; }
.player-meta h1 { font-size: 1.5rem; color: #fdf6e7; }
.player-meta p { color: #c9b79e; font-size: 0.9rem; margin-top: 8px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.steps-list li { position: relative; padding: 11px 13px 11px 44px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem; }
.steps-list li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--jade); color: #f5fffd; font-size: 0.72rem; font-family: var(--display);
}
.side-card { background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px; box-shadow: var(--card-shadow); }
.side-card h2 { font-size: 1.1rem; }
.side-card .qr-tile { margin-top: 12px; }
.side-card .qr-tile img, .side-card .qr-tile svg { width: 96px; height: 96px; }
@media (max-width: 900px) { .tutorial-page { grid-template-columns: 1fr; } }

/* portal de revisores */
.reviewer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.task { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.task:last-child { border-bottom: 0; }
.task__check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); background: #fffdf7; display: grid; place-items: center; font-size: 0.76rem; color: var(--jade); }
.task.is-done .task__check { background: var(--jade); color: #fff; border-color: #0a5a54; }
.task b { display: block; font-size: 0.9rem; }
.task small { color: var(--ink-3); font-size: 0.76rem; }
.task button { margin-left: auto; }
@media (max-width: 900px) { .reviewer-grid { grid-template-columns: 1fr; } }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; }
.badge--ok { background: #e4f3ec; color: #145c46; border-color: #b9dfd0; }
.badge--warn { background: #fdf0d8; color: #855210; border-color: #ecd2a2; }
.badge--bad { background: #fde8e4; color: #8a2a14; border-color: #eec2b8; }
.badge--info { background: #e7edf6; color: #29456b; border-color: #c3d1e4; }
