:root {
  --bg: #0b1220;
  --ink: #eef1fb;
  --muted: #9aa6c8;
  --violet: #6a1ee6;
  --periwinkle: #b7c3f0;
  --rule: #1e2a44;
  --glass: #8fd6e6;
  --glass-deep: #0e7490;
  --print: #f2a9cc;
  --print-deep: #be185d;
  --paper: #f2f4fb;
  --paper-ink: #0b1220;
  --paper-muted: #5b6585;
  --paper-rule: #d5dbee;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
a { color: var(--periwinkle); }
:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; border-radius: 4px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding-inline: 1rem; }

.logo { display: block; width: 11rem; height: auto; margin: 0 0 1.75rem; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  gap: 3.5rem;
  align-items: center;
  padding-block: 2rem;
}
h1 {
  font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 1rem;
  max-width: 17ch;
}
.lede { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.5rem; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.btn {
  display: inline-block;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border-radius: 0.6rem;
}
.btn:hover { background: #5a12d1; }
.mail { color: var(--periwinkle); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mailbox { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.copy {
  font: inherit; font-size: 0.8rem; font-weight: 600; line-height: 1;
  color: var(--periwinkle); background: transparent; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.35rem 0.7rem;
}
.copy:hover { border-color: var(--periwinkle); }
.copy.done { color: var(--ink); border-color: var(--violet); }
.soon { color: var(--muted); font-size: 0.9rem; margin: 1rem 0 0; }

.rubros { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.rubros h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 0.35rem; }
.rubros .intro { color: var(--muted); margin: 0 0 1.25rem; max-width: 40rem; font-size: 0.95rem; }
.label { display: flex; align-items: center; gap: 0.9rem; color: var(--ink); font-weight: 600; font-size: 0.85rem; margin: 0 0 0.9rem; }
.label::before, .label::after { content: ""; flex: 1; border-top: 1px dashed #33415f; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.cols > div { border-left: 2px solid var(--accent); padding-left: 0.9rem; }
.cols .glass { --accent: var(--glass); }
.cols .print { --accent: var(--print); }
.cols h3 { color: var(--accent); font-size: 1.02rem; margin: 0 0 0.3rem; }
.cols p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.rubros .more { color: var(--muted); margin: 1.25rem 0 0; font-size: 0.9rem; }

.ticket {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 0.5rem 0.5rem 0 0;
  position: relative;
  margin-bottom: 9px;
}
.ticket::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -9px; height: 9px;
  background: radial-gradient(circle at 9px 0, var(--paper) 8px, transparent 8.5px) -1px 0 / 18px 9px repeat-x;
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 0.85rem; }
.ticket-head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.ticket-head span { color: var(--paper-muted); font-size: 0.82rem; }
.switch { display: grid; grid-template-columns: 1fr 1fr; background: #e2e7f5; border-radius: 0.5rem; padding: 0.25rem; margin: 0 0 1rem; }
.switch button {
  font: inherit; font-size: 0.88rem; font-weight: 600;
  border: 0; border-radius: 0.35rem; padding: 0.45rem 0.4rem; cursor: pointer;
  background: transparent; color: var(--paper-muted);
}
.switch button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(11, 18, 32, 0.12); }
#tab-vid[aria-selected="true"] { color: var(--glass-deep); }
#tab-imp[aria-selected="true"] { color: var(--print-deep); }
.product { font-weight: 600; margin: 0 0 0.6rem; }
.fields { display: flex; gap: 0.75rem; margin: 0 0 0.6rem; }
.fields label { flex: 1; font-size: 0.78rem; color: var(--paper-muted); font-weight: 500; }
.fields input {
  display: block; width: 100%; margin-top: 0.25rem;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--paper-ink);
  background: #fff; border: 1px solid var(--paper-rule); border-radius: 0.4rem; padding: 0.4rem 0.6rem;
}
.fields input:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }
.lines { width: 100%; border-collapse: collapse; font-size: 0.88rem; line-height: 1.35; }
.lines td { padding: 0.35rem 0; border-bottom: 1px dashed var(--paper-rule); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.lines small { display: block; color: var(--paper-muted); font-size: 0.76rem; }
.lines .cost td { color: var(--paper-muted); border-bottom: 0; padding-top: 0.6rem; }
.lines .price td { border-bottom: 0; padding-top: 0.15rem; font-size: 1.1rem; font-weight: 800; }
.lines .price td:last-child { color: var(--violet); }
.lines .price small { font-weight: 500; }
.note { color: var(--paper-muted); font-size: 0.72rem; margin: 0.75rem 0 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .feed { animation: feed 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  @keyframes feed {
    from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); }
    to { clip-path: inset(0 0 -12px 0); transform: none; }
  }
  .reveal tr { animation: row 0.35s ease-out both; animation-delay: calc(var(--d, 0s) + var(--i, 0) * 70ms); }
  @keyframes row { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.8rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; padding-block: 1rem; }
footer p { margin: 0; max-width: 52rem; }
.brand { font-weight: 700; white-space: nowrap; }
.brand-mar { color: #9b6bff; }
.brand-erp { background: var(--ink); color: var(--bg); padding: 0 0.25em; border-radius: 2px; }

@media (min-width: 901px) and (max-height: 960px) {
  .logo { width: 9rem; margin-bottom: 1rem; }
  .hero { padding-block: 0.75rem 1rem; }
  h1 { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.6rem); max-width: 22ch; margin-bottom: 0.75rem; }
  .lede { font-size: 1rem; margin-bottom: 1.1rem; }
  .soon { margin-top: 0.75rem; }
  .rubros { margin-top: 1.25rem; padding-top: 1rem; }
  .rubros .intro { margin-bottom: 0.85rem; }
  .cols p { font-size: 0.88rem; line-height: 1.45; }
  .rubros .more { margin-top: 0.85rem; }
  .ticket { padding: 1rem 1.2rem 1.1rem; }
  .ticket-head { margin-bottom: 0.6rem; }
  .switch { margin-bottom: 0.75rem; }
  .lines td { padding: 0.25rem 0; }
  .lines .cost td { padding-top: 0.45rem; }
  footer .wrap { padding-block: 0.65rem; }
  footer { font-size: 0.75rem; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 1.5rem 3rem; }
  .cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .logo { width: 9.5rem; }
}

/* Rubro pages */
.rubros h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.details { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; }
.details h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.details p, .details li, .details dd { color: var(--muted); }
.details section + section { margin-top: 2.25rem; }
.details p { max-width: 46rem; margin: 0; }
.details ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; max-width: 46rem; }
.details li strong { color: var(--ink); font-weight: 600; }
.details dl { margin: 0; display: grid; gap: 1.1rem; max-width: 46rem; }
.details dt { font-weight: 600; }
.details dd { margin: 0.25rem 0 0; }
.kicker { font-weight: 600; margin: 0 0 0.75rem; }
.accent-glass .kicker { color: var(--glass); }
.accent-print .kicker { color: var(--print); }
.back { color: var(--muted); font-size: 0.9rem; }
