@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/PlusJakartaSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/PlusJakartaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0F7A73;
  --primary-dark: #0B5F58;
  --primary-hi: #117F77;
  --secondary: #4F46E5;
  --accent: #C2410C;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --success: #15803D;
  --sidebar: #0C4A45;
  --sidebar-muted: #A8C5C1;
  --primary-soft: #E6F7F5;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --header-h: 64px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary-dark); }
button, input { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img { height: 32px; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
}
.nav.is-open { display: flex; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav .btn { margin-top: 8px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--primary-soft); }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  padding: 36px 0 48px;
  background:
    radial-gradient(900px 420px at 90% -10%, #E6F7F5 0%, transparent 60%),
    var(--bg);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 12px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36em;
}
.fine {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.trust {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.hero-visual { margin-top: 32px; position: relative; }
.frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame img { width: 100%; height: auto; display: block; }
.hero-main { margin: 0; }
.phone-frame {
  width: min(260px, 72%);
  margin: 16px auto 0;
  border-radius: 28px;
  padding: 10px;
  background: var(--sidebar);
  box-shadow: var(--shadow);
}
.phone-frame img {
  border-radius: 20px;
  width: 100%;
  display: block;
}

/* Sections */
section { padding: 56px 0; }
.section-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-intro {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 40em;
}

/* Problem */
.problem { background: #fff; border-block: 1px solid var(--line); }
.cards {
  display: grid;
  gap: 16px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.problem-close {
  margin: 28px 0 0;
  font-size: 17px;
  font-weight: 600;
}

/* Features */
.feature {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
}
.feature:last-child { margin-bottom: 0; }
.feature h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.feature p { margin: 0; color: var(--muted); }
.shot-grid {
  display: grid;
  gap: 12px;
}
.shot-grid.two { grid-template-columns: 1fr; }
.caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Steps */
.steps { background: #fff; border-block: 1px solid var(--line); }
.step-list {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 20px 72px;
  position: relative;
}
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list h3 { margin: 0 0 6px; font-size: 18px; }
.step-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* Pricing */
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  max-width: 520px;
}
.price-card .daily {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}
.price-card .monthly {
  margin: 4px 0 16px;
  font-size: 18px;
  font-weight: 600;
}
.price-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.price-card li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3 8.5l3 3 7-7' stroke='%230F7A73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center / contain no-repeat;
}
.price-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  float: right;
  color: var(--primary);
  font-weight: 700;
}
.faq details[open] summary::after { content: '-'; }
.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  padding-right: 24px;
}

/* Final CTA */
.cta-final {
  background: var(--sidebar);
  color: #FFFDF8;
}
.cta-final h2 { margin: 0 0 12px; color: #fff; }
.cta-final p { margin: 0 0 24px; color: var(--sidebar-muted); max-width: 36em; }
.cta-final .btn-primary:hover { background: var(--primary-hi); }
.cta-final .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: 24px;
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links, .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer small { display: block; margin-top: 20px; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .header-inner { position: relative; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px 22px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .nav a { padding: 8px 0; }
  .nav .btn { margin-top: 0; }
  .hero { padding: 64px 0 72px; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .hero h1 { font-size: 48px; line-height: 1.1; }
  .hero-visual { margin-top: 0; padding: 16px 96px 16px 0; }
  .hero-visual .phone-frame {
    position: absolute;
    right: -4px;
    top: 56px;
    bottom: 16px;
    width: 188px;
    margin: 0;
    z-index: 2;
    overflow: hidden;
    max-height: none;
  }
  .hero-visual .phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  section { padding: 80px 0; }
  .section-title { font-size: 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
  }
  .feature.is-reverse { direction: rtl; }
  .feature.is-reverse > * { direction: ltr; }
  .shot-grid.two { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: 1fr 1fr 1fr; }
  .step-list li { padding: 72px 20px 20px 20px; }
  .step-list li::before { top: 20px; left: 20px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .hero h1 { font-size: 52px; }
}

/* Página de impresión directa (/impresion/) */
.nav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-soft); }
@media (min-width: 768px) {
  .nav a[aria-current="page"] { background: none; box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
}
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn-primary:hover { background: var(--primary-dark); }
.nav a.btn-ghost { color: var(--primary-dark); }
@media (min-width: 768px) {
  .nav a.btn { padding: 8px 16px; }
}
.print-hero-grid { display: grid; gap: 32px; align-items: center; }
.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  max-width: 460px;
}
.download-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.download-head strong { display: block; font-size: 17px; }
.download-head span { display: block; font-size: 14px; color: var(--muted); }
.win-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--primary); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.ticket-visual { margin: 0; display: flex; flex-direction: column; align-items: center; }
.ticket-paper {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  box-shadow: var(--shadow);
  padding: 20px 16px 28px;
  max-width: 100%;
  overflow-x: auto;
}
.ticket-paper pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}
.ticket-cut {
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 8px;
  background:
    linear-gradient(-45deg, transparent 6px, #fff 0) 0 0 / 12px 8px repeat-x,
    linear-gradient(45deg, transparent 6px, #fff 0) 0 0 / 12px 8px repeat-x;
}
.print-info-grid { display: grid; gap: 32px; align-items: start; }
.check-list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7A73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.notice {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}
.notice h3 { margin: 0 0 8px; font-size: 18px; color: #9A3412; }
.notice p, .notice li { color: var(--ink); font-size: 15px; }
.notice p { margin: 0 0 10px; }
.notice ol { margin: 0 0 10px; padding-left: 22px; }
.file-facts { margin: 0 0 16px; display: grid; gap: 10px; }
.file-facts > div {
  display: grid;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.file-facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.file-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.file-facts code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 500; }
.btn-copy { min-height: 32px; padding: 4px 12px; font-size: 13px; margin-left: 8px; vertical-align: middle; }
.code-block {
  margin: 8px 0 0;
  background: var(--sidebar);
  color: #E6F7F5;
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}
.step-list code { font-size: 14px; background: var(--primary-soft); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .print-info-grid { grid-template-columns: 1.1fr 1fr; }
  .step-list.step-list-5 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .print-hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .step-list.step-list-5 { grid-template-columns: repeat(3, 1fr); }
}

/* Sección corta "Impresión directa" en el inicio */
.print-promo { padding-top: 0; }
.print-band {
  display: grid;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.print-band h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.print-band .eyebrow { margin-bottom: 8px; }
.print-band .check-list { margin: 0; }
.print-band-cta .fine { margin-top: 10px; }
@media (min-width: 768px) {
  .print-band { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; gap: 32px; }
  .print-band-cta { text-align: center; }
}

/* Aviso de cookies (solo aparece si hay META_PIXEL_ID en js/config.js) */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.16);
  font-size: 14px;
  color: var(--muted);
}
.cookie-bar p { margin: 0; flex: 1 1 280px; }
.cookie-bar-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-bar .btn { padding: 8px 14px; font-size: 14px; }
