/* X9 PrintLab — web pública (x9printlab3d.com). Mismo tema oscuro y azul que la aplicación de escritorio.
   Sin fuentes externas ni dependencias: carga rápida y sin rastreo de terceros. */
:root {
  --bg: #0b0e12;
  --bg-2: #0f1216;
  --panel: #151a21;
  --card: #12161c;
  --line: #222a34;
  --line-2: #2c3540;
  --text: #dfe6ee;
  --strong: #ffffff;
  --muted: #8b98a7;
  --soft: #b9c4d0;
  --primary: #2f6bff;
  --primary-2: #4b82ff;
  --primary-press: #2557d6;
  --cyan: #19b5ff;
  --ok: #6fdc9a;
  --warn: #f4c25b;
  --bad: #ff8a9a;
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #8fb1ff; text-decoration: none; }
a:hover { color: #b5cbff; text-decoration: underline; }
h1, h2, h3 { color: var(--strong); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: Consolas, "Cascadia Mono", Menlo, monospace; }
.break { word-break: break-all; }
.center { text-align: center; }
.mb { margin: 0 auto 12px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.page-pad { padding: 40px 0 64px; }
:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }

/* ---------------------------------------------------------------- barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11, 14, 18, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--strong); font-weight: 800; font-size: 1.1rem; }
.logo:hover { text-decoration: none; color: var(--strong); }
.logo img { width: 36px; height: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--strong); text-decoration: none; }
.topbar .btn { margin-left: 4px; }
.menu-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #1d242d; color: var(--text); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 11px 20px; font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #26303b; color: var(--strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary-2); color: #fff; }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-primary:active { background: var(--primary-press); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; background:
  radial-gradient(900px 480px at 85% 10%, rgba(47, 107, 255, .22), transparent 60%),
  radial-gradient(700px 420px at 0% 100%, rgba(25, 181, 255, .10), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: #9fc0ff; background: rgba(47, 107, 255, .14); border: 1px solid rgba(91, 140, 255, .4); padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.lead { font-size: 1.18rem; color: var(--soft); max-width: 40em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-note { color: var(--muted); font-size: .9rem; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }

/* ---------------------------------------------------------------- secciones */
section { scroll-margin-top: 80px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; }
.kicker { color: var(--cyan); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 18px; }
.grid > .card + .card { margin-top: 0; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 107, 255, .15); border: 1px solid rgba(91, 140, 255, .35); margin-bottom: 14px; color: #9fc0ff; }
.feature .icon svg { width: 24px; height: 24px; }
.feature p { color: var(--soft); margin: 0; }
.feature .tag { display: inline-block; margin-top: 12px; font-size: .78rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; }

/* cómo funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: paso; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 18px; counter-increment: paso; }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
.steps p { color: var(--soft); font-size: .92rem; margin: 0; }

/* capturas */
.shot { border-radius: var(--radius); border: 1px solid var(--line-2); background: #0d1015; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.shot figcaption { padding: 12px 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
figure { margin: 0; }
.shots-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

/* ---------------------------------------------------------------- planes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.plan.featured { border-color: var(--primary-2); box-shadow: 0 0 0 1px rgba(91, 140, 255, .35), 0 20px 60px rgba(47, 107, 255, .16); }
.plan .badge-top { position: absolute; top: -12px; left: 24px; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .04em; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .desc { color: var(--muted); min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.price .amount { font-size: 2.4rem; font-weight: 800; color: var(--strong); }
.price .cur { color: var(--muted); font-weight: 700; }
.price .old { color: var(--muted); text-decoration: line-through; }
.price .unpublished { font-size: 1.15rem; font-weight: 700; color: var(--warn); }
.price-note { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.promo { display: inline-block; background: rgba(111, 220, 154, .14); color: var(--ok); border: 1px solid rgba(111, 220, 154, .4); border-radius: 999px; font-size: .8rem; font-weight: 700; padding: 2px 10px; }
.checklist { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.checklist li { position: relative; padding: 6px 0 6px 28px; color: var(--soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: rgba(47, 107, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%239fc0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plans-loading { color: var(--muted); }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.compare th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
table.compare tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--strong); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--soft); }

/* ---------------------------------------------------------------- alertas, formularios */
.alert { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.alert-info { background: rgba(47, 107, 255, .1); border-color: rgba(91, 140, 255, .45); color: #c5d6ff; }
.alert-warn { background: rgba(230, 160, 40, .1); border-color: rgba(230, 160, 40, .45); color: #f8d690; }
.alert-bad { background: rgba(122, 34, 48, .35); border-color: #a3384a; color: #ffe3e6; }
.alert-ok { background: rgba(46, 160, 90, .12); border-color: rgba(46, 160, 90, .5); color: #a6eec3; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .9rem; color: var(--soft); }
input[type=text], input[type=email], select {
  width: 100%; background: #0d1015; color: var(--text); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; font: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(63, 120, 255, .2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #dc465a; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--soft); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.method { position: relative; display: flex; gap: 12px; align-items: center; border: 1px solid var(--line-2); background: #0d1015; border-radius: 12px; padding: 14px; cursor: pointer; }
.method input { accent-color: var(--primary); width: 18px; height: 18px; }
.method:has(input:checked) { border-color: var(--primary-2); background: rgba(47, 107, 255, .1); }
.method strong { color: var(--strong); display: block; }
.method small { color: var(--muted); }
.method.disabled { opacity: .5; cursor: not-allowed; }
.coupon-row { display: flex; gap: 10px; }
.coupon-row input { flex: 1; }
.field-msg { font-size: .88rem; }
.field-msg.ok { color: var(--ok); }
.field-msg.bad { color: var(--bad); }

/* checkout */
.checkout-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 24px; align-items: start; }
.summary { position: sticky; top: 84px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; color: var(--strong); font-weight: 600; }
.summary .total { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; color: var(--strong); }
.pay-area { margin-top: 16px; }
.pay-area paypal-button, .pay-area paypal-basic-card-button { display: block; width: 100%; }
.secure { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--primary-2); animation: giro .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes giro { to { transform: rotate(360deg); } }
.status-box { text-align: center; }
.status-box .big-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.big-icon.ok { background: rgba(111, 220, 154, .14); color: var(--ok); }
.big-icon.bad { background: rgba(255, 138, 154, .14); color: var(--bad); }
.big-icon.wait { background: rgba(47, 107, 255, .14); color: #9fc0ff; }
.steps-list { padding-left: 20px; }
.steps-list li { margin-bottom: 6px; }
details.more summary { cursor: pointer; color: #8fb1ff; font-weight: 600; }

/* ---------------------------------------------------------------- textos legales */
.legal h1 { font-size: 2.1rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--soft); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { color: var(--strong); background: var(--panel); }
.legal .doc-meta { color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- pie */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--soft); }
.sandbox-bar { background: #5b4200; color: #ffe9a8; text-align: center; font-weight: 700; font-size: .9rem; padding: 6px 12px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .shots-side { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .topbar .btn-buy { display: none; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .row-2, .methods { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .coupon-row { flex-direction: column; }
}
.feature-wide { margin-top: 18px; }
