/*!
 * Software y sitio web: Alberto D. (renfe.elchesemueve.com)
 * Todos los derechos reservados · https://renfe.elchesemueve.com/signature.txt
 */
:root {
  --p-navy: #071022;
  --p-navy-2: #0f1e3a;
  --p-crimson: #e11d48;
  --p-blue: #0284c7;
  --p-amber: #fbbf24;
  --p-green: #10b981;
  --p-ink: #0f172a;
  --p-muted: #475569;
  --p-border: #cbd5e1;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #1e293b;
  color: var(--p-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 22px;
  background: #091122;
  border-bottom: 2px solid #1e3a5f;
  color: #f8fafc;
}
.pt-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pt-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.pt-select, .pt-btn {
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #13203b;
  color: #f8fafc;
  font: 750 0.82rem/1.2 inherit;
  cursor: pointer;
  text-decoration: none;
}
.pt-btn.is-primary {
  background: var(--p-crimson);
  border-color: var(--p-crimson);
  color: #ffffff;
  font-weight: 850;
}
.pt-btn.is-primary:hover { background: #be123c; }

.sheet-stage {
  padding: 26px 14px 42px;
  display: flex;
  justify-content: center;
}
.a4-sheet {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.p-hero {
  padding: 14mm 15mm 11mm;
  background: linear-gradient(135deg, var(--p-navy) 0%, var(--p-navy-2) 68%, #172b52 100%);
  color: #ffffff;
  border-bottom: 5px solid var(--p-crimson);
}
.p-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7mm;
}
.p-brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.p-brand-row img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  padding: 2px;
}
.p-brand-name {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-amber);
}
.p-brand-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
  font-weight: 600;
}
.p-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}
.p-main-title {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.p-main-title span {
  color: var(--p-amber);
}
.p-main-lead {
  margin: 4mm 0 0;
  font-size: 1.02rem;
  line-height: 1.42;
  color: #e2e8f0;
  font-weight: 500;
}

.p-body {
  flex: 1;
  padding: 9mm 15mm 7mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7mm;
}

.p-mock-board {
  border-radius: 12px;
  background: #081121;
  border: 1.5px solid #1e3252;
  color: #f8fafc;
  overflow: hidden;
}
.p-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #101d36;
  border-bottom: 1px solid #1e3252;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.p-mock-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--p-amber);
  font-weight: 900;
}
.p-mock-rows {
  padding: 6px 14px 10px;
}
.p-mock-row {
  display: grid;
  grid-template-columns: 64px 108px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  font-size: 0.84rem;
}
.p-mock-row:last-child { border-bottom: none; }
.p-m-hm {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 900;
  color: var(--p-amber);
}
.p-m-line {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 850;
  text-align: center;
  background: rgba(225, 29, 72, 0.25);
  color: #fecdd3;
}
.p-m-line.is-ave {
  background: rgba(2, 132, 199, 0.28);
  color: #bae6fd;
}
.p-m-dest {
  font-weight: 800;
  color: #ffffff;
}
.p-m-ok {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.p-qr-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9mm;
  padding: 7mm;
  border-radius: 16px;
  background: #f8fafc;
  border: 2px solid #0f172a;
}
.p-qr-frame {
  padding: 4mm;
  border-radius: 12px;
  background: #ffffff;
  border: 3px solid var(--p-crimson);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2mm;
}
.p-qr-frame img {
  width: 50mm;
  height: 50mm;
  display: block;
}
.p-qr-scan-tag {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p-crimson);
}
.p-qr-copy h2 {
  margin: 0 0 2.5mm;
  font-size: 1.34rem;
  font-weight: 900;
  color: var(--p-ink);
  line-height: 1.2;
}
.p-qr-copy p {
  margin: 0 0 3.5mm;
  font-size: 0.9rem;
  color: var(--p-muted);
  line-height: 1.42;
}
.p-url-pill {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--p-navy);
  color: var(--p-amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 900;
}

.p-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4mm;
}
.p-feat-card {
  padding: 4mm 4.5mm;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--p-border);
  border-left: 4px solid var(--p-blue);
}
.p-feat-card:nth-child(odd) {
  border-left-color: var(--p-crimson);
}
.p-feat-title {
  font-size: 0.86rem;
  font-weight: 850;
  color: var(--p-ink);
  margin-bottom: 1mm;
}
.p-feat-desc {
  font-size: 0.77rem;
  color: var(--p-muted);
  line-height: 1.35;
}

.p-footer {
  padding: 5mm 15mm;
  background: #f1f5f9;
  border-top: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--p-muted);
}
.p-footer strong { color: var(--p-ink); }

@page {
  size: A4 portrait;
  margin: 0;
}
@media print {
  html, body {
    background: #ffffff;
  }
  .no-print {
    display: none !important;
  }
  .sheet-stage {
    padding: 0;
    display: block;
  }
  .a4-sheet {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    border-radius: 0;
    box-shadow: none;
  }
}
@media (max-width: 820px) {
  .a4-sheet { width: 100%; min-height: auto; }
  .p-qr-showcase { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .p-features-grid { grid-template-columns: 1fr; }
  .p-mock-row { grid-template-columns: 56px 92px 1fr; }
  .p-m-ok { display: none; }
}
