/* ------------------------------------------------------------------
   FolioMD — visual language inspired by time.is
   White / black / single red accent. Hairline separators.
   Mono dominates; sans is for body. Extreme size contrast.
------------------------------------------------------------------ */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --line-strong: #111111;
  --accent: #e63946;
  --accent-ink: #ffffff;
  --row-hover: #fafafa;

  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
.red { color: var(--accent); }
.muted { color: var(--muted); }
.hr { height: 1px; background: var(--line); width: 100%; }
.hr-strong { height: 1px; background: var(--line-strong); width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ------------------------------------------------------------------
   BETA BAR
------------------------------------------------------------------ */
.beta-bar {
  background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; padding: 7px 16px;
}

/* ------------------------------------------------------------------
   TOP NAV — tiny, text-only, time.is style
------------------------------------------------------------------ */
.topnav {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.topnav .brand {
  font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em;
  border: none;
}
.topnav .brand .dot { color: var(--accent); }
.topnav nav { display: flex; gap: 18px; align-items: baseline; }
.topnav nav > a, .topnav nav > span {
  border: none; color: var(--muted); font-size: 13px;
}
.topnav nav a:hover { color: var(--accent); }
.topnav nav a.active { color: var(--fg); }
.topnav .user-email { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------
   SECTION SCAFFOLD
------------------------------------------------------------------ */
section.screen {
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--line);
}
.screen-tag {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.screen-tag .num { color: var(--accent); }
.screen-tag .rule { flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------------
   LANDING — drop zone is hero
------------------------------------------------------------------ */
.hero {
  padding-top: 24px;
  text-align: center;
}
.hero-title {
  font-family: var(--mono);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.hero .preline {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.hero .preline .live { color: var(--accent); }
.hero .preline .live::before {
  content: "● ";
  animation: blink 1.2s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.dropzone {
  margin: 8px auto 0;
  width: 100%;
  height: 360px;
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  transition: background-color .12s linear, border-color .12s linear;
  position: relative;
}
.dropzone:hover { background: var(--row-hover); }
.dropzone.drag { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dropzone.drag .dz-sub, .dropzone.drag .dz-bracket, .dropzone.drag .dz-main { color: var(--accent-ink); }
.dropzone .dz-bracket {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.1em;
}
.dropzone .dz-main {
  font-family: var(--mono); font-weight: 700;
  font-size: 96px; line-height: 1; letter-spacing: -0.04em;
  margin: 18px 0;
  color: var(--fg);
}
.dropzone .dz-main .arrow { color: var(--accent); }
.dropzone.drag .dz-main .arrow { color: var(--accent-ink); }
.dropzone .dz-sub {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.dropzone .dz-corners { position: absolute; inset: 8px; pointer-events: none; }
.dropzone .dz-corners::before,
.dropzone .dz-corners::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--line-strong);
}
.dropzone .dz-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.dropzone .dz-corners::after  { bottom: 0; right: 0; border-left: none; border-top: none; }
.dropzone.drag .dz-corners::before,
.dropzone.drag .dz-corners::after { border-color: var(--accent-ink); }

.dz-meta {
  margin-top: 14px;
  display: flex; gap: 28px; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.dz-meta .or { opacity: .5; }
.dz-meta a { border-bottom: 1px solid var(--line); }

/* upload progress — mismas dimensiones que .dropzone */
.upload-progress {
  margin: 8px auto 0;
  width: 100%; height: 360px;
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0; padding: 32px;
  position: relative;
}
.up-file {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  margin-bottom: 24px; max-width: 100%;
}
.up-filename {
  font-weight: 700; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 340px;
}
.up-size { color: var(--muted); white-space: nowrap; }
.up-pct {
  font-family: var(--mono); font-weight: 700;
  font-size: 96px; line-height: 1; letter-spacing: -0.04em;
  color: var(--fg); margin-bottom: 24px;
}
.up-track {
  width: 100%; height: 3px;
  background: var(--line); position: relative; overflow: hidden;
}
.up-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--accent);
  transition: width 0.15s ease-out;
  width: 0%;
}
.up-label {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 14px;
}

/* stats row */
.stats {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats .cell {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}
.stats .cell:last-child { border-right: none; }
.stats .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.stats .value {
  font-family: var(--mono); font-weight: 700; font-size: 34px; letter-spacing: -0.02em;
  line-height: 1;
}
.stats .value .unit { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }

/* tier teaser table */
.tier-teaser {
  margin-top: 56px;
}
.tier-teaser h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.tier-teaser h3 a { color: var(--muted); border: none; }
.tier-teaser h3 a:hover { color: var(--accent); }
table.plain {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 13px;
}
table.plain th, table.plain td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
table.plain thead th {
  font-weight: 500; color: var(--muted); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
}
table.plain td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.plain th.num { text-align: right; }

/* ------------------------------------------------------------------
   DASHBOARD
------------------------------------------------------------------ */
.dash-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
}
.dash-head h2 {
  font-family: var(--mono); font-weight: 700; font-size: 28px;
  letter-spacing: -0.02em; margin: 0;
}
.dash-head .sub { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.dash-head .right { display: flex; gap: 14px; align-items: baseline; font-family: var(--mono); font-size: 13px; }

.dash-filters {
  display: flex; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  font-family: var(--mono); font-size: 12px;
}
.dash-filters .filter {
  padding: 10px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: none;
}
.dash-filters .filter:hover { color: var(--fg); }
.dash-filters .filter.active { color: var(--accent); }
.dash-filters .filter .count { color: inherit; opacity: .6; margin-left: 6px; }
.dash-filters .spacer { flex: 1; border-right: none; }

table.jobs {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 13px;
}
table.jobs thead th {
  text-align: left; font-weight: 500; padding: 12px 14px;
  color: var(--muted); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
table.jobs thead th.num { text-align: right; }
table.jobs tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
table.jobs tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.jobs tbody tr:hover { background: var(--row-hover); }
table.jobs .file { color: var(--fg); }
table.jobs .id { color: var(--muted); }
table.jobs a.dl { color: var(--accent); border: none; text-decoration: underline; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------------
   JOB DETAIL — huge progress + side-by-side preview
------------------------------------------------------------------ */
.detail-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.detail-head .crumbs {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
}
.detail-head .crumbs .sep { margin: 0 8px; opacity: .5; }
.detail-head .crumbs .file { color: var(--fg); }
.detail-head .actions { display: flex; gap: 16px; font-family: var(--mono); font-size: 12px; }

.progress-panel { padding: 48px 0 32px; text-align: center; }
.progress-panel .phase {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.progress-panel .phase .dot { color: var(--accent); }
.progress-panel .phase .dot::before { content: "● "; animation: blink 1.2s steps(2, jump-none) infinite; }
.counter {
  font-family: var(--mono); font-weight: 700;
  font-size: 168px; line-height: 0.95; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.counter .slash { color: var(--accent); margin: 0 .04em; }
.counter .total { color: var(--muted); }
.progress-panel .secondary {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  margin-top: 18px;
  display: flex; justify-content: center; gap: 32px;
}
.progress-panel .secondary b { color: var(--fg); font-weight: 500; }

.pbar {
  margin-top: 28px; height: 4px; width: 100%;
  background: var(--line); position: relative; overflow: hidden;
}
.pbar .fill {
  height: 100%; background: var(--accent);
  transition: width .6s cubic-bezier(.2,.6,.2,1);
}
.pbar-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  margin-top: 8px; color: var(--muted);
  letter-spacing: 0.04em;
}

.phases {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px;
}
.phases .ph {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.phases .ph:last-child { border-right: none; }
.phases .ph .step {
  color: var(--muted); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 6px;
}
.phases .ph .name { color: var(--fg); }
.phases .ph.done .name::before { content: "✓ "; color: var(--muted); }
.phases .ph.now { background: transparent; }
.phases .ph.now .step { color: var(--accent); }
.phases .ph.now .name::before { content: "● "; color: var(--accent); animation: blink 1.2s steps(2, jump-none) infinite; }
.phases .ph.next { color: var(--muted); }
.phases .ph.next .name { color: var(--muted); }

/* ------------------------------------------------------------------
   PRICING
------------------------------------------------------------------ */
.pricing-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.pricing-head h2 {
  font-family: var(--mono); font-weight: 700; font-size: 28px;
  letter-spacing: -0.02em; margin: 0;
}
.pricing-head .sub { color: var(--muted); font-family: var(--mono); font-size: 13px; }

table.pricing {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 13px;
  table-layout: fixed;
}
table.pricing th, table.pricing td {
  padding: 14px 16px; vertical-align: top;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
table.pricing thead th {
  border-bottom: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  font-weight: 500; vertical-align: bottom;
}
table.pricing thead th .tier-name {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
table.pricing thead th .tier-name .star { color: var(--accent); }
table.pricing thead th .price {
  font-family: var(--mono); font-weight: 700;
  font-size: 44px; letter-spacing: -0.03em; line-height: 1;
  color: var(--fg);
}
table.pricing thead th .price .ccy { font-size: 18px; vertical-align: top; margin-right: 2px; color: var(--muted); font-weight: 500; }
table.pricing thead th .price .per { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
table.pricing tbody td.feat { color: var(--muted); }
table.pricing tbody td.val  { color: var(--fg); }
table.pricing tbody td.no   { color: var(--muted); }
table.pricing tbody td.yes::before { content: "✓"; color: var(--fg); }

.buy-link {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 10px 18px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg);
}
.buy-link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.buy-link.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.buy-link.primary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ------------------------------------------------------------------
   FORMS — auth, upload
------------------------------------------------------------------ */
.form-card {
  max-width: 420px; margin: 48px auto 0;
  border: 1px solid var(--line-strong);
  padding: 32px;
}
.form-card h2 {
  font-family: var(--mono); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.form-group input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 14px;
  background: var(--bg); color: var(--fg);
  outline: none;
}
.form-group input:focus { border-color: var(--line-strong); }

.btn {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 10px 18px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg);
  background: var(--bg); cursor: pointer;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.message {
  padding: 10px 14px; margin-bottom: 14px;
  font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--line);
}
.message.ok { border-color: var(--fg); }
.message.error { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------------
   ERROR PAGE
------------------------------------------------------------------ */
.error-page {
  text-align: center; padding: 80px 0;
}
.error-page .code {
  font-family: var(--mono); font-weight: 700;
  font-size: 144px; line-height: 1; letter-spacing: -0.05em;
  color: var(--accent);
}
.error-page .msg {
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  margin-top: 14px;
}

/* ------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------ */
footer.foot {
  padding: 28px 0 60px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: baseline;
}
footer.foot .links a { border: none; color: var(--muted); margin-left: 18px; }
footer.foot .links a:hover { color: var(--accent); }

/* ------------------------------------------------------------------
   UPLOAD PARTIAL — drop zone inside dashboard
------------------------------------------------------------------ */
.upload-zone {
  border: 1px solid var(--line-strong);
  padding: 3rem 2rem; text-align: center; cursor: pointer;
  transition: background-color .12s linear;
  font-family: var(--mono);
}
.upload-zone:hover { background: var(--row-hover); }
.upload-zone input[type="file"] { display: none; }
.upload-zone.drag-over { background: var(--row-hover); border-color: var(--accent); }

/* ------------------------------------------------------------------
   UTILITY
------------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ------------------------------------------------------------------
   PAY CALC (pricing page)
------------------------------------------------------------------ */
.pay-calc { max-width: 560px; }
.calc-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.calc-row {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 16px; flex-wrap: wrap;
}
.calc-row input[type="number"] {
  font-family: var(--mono); font-size: 28px; font-weight: 700;
  width: 140px; padding: 6px 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--fg);
  outline: none; -moz-appearance: textfield;
}
.calc-row input[type="number"]::-webkit-outer-spin-button,
.calc-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-unit { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* slider */
.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: var(--line-strong); outline: none; cursor: pointer;
  margin-bottom: 4px;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--accent);
}
.calc-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: none;
}
.calc-slider-ticks {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  margin-bottom: 28px;
}

/* resultado */
.calc-result {
  border-top: 1px solid var(--line);
  padding-top: 20px; margin-bottom: 4px;
}
.calc-formula {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  margin-bottom: 4px;
}
.calc-big {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(48px, 8vw, 80px);
  letter-spacing: -0.04em; line-height: 1;
  color: var(--fg);
}
@keyframes flash-total { 0%,100% { color: var(--fg); } 30% { color: var(--accent); } }
.calc-big--flash { animation: flash-total 0.25s ease; }

.calc-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 0 22px; }
.pricing-foot { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 18px; }

/* Mobile upload button (landing, solo visible en movil) */
.mobile-upload-btn {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  width: 100%; padding: 28px 24px;
  border: 1px solid var(--line-strong);
  cursor: pointer; text-align: center; gap: 8px;
  margin: 8px auto 0;
}
.mobile-upload-btn:hover { background: var(--row-hover); }
.mobile-upload-btn .mob-main {
  font-family: var(--mono); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; color: var(--fg);
}
.mobile-upload-btn .mob-main .arrow { color: var(--accent); }
.mobile-upload-btn .mob-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------
   RESPONSIVE — movil (≤640px)
------------------------------------------------------------------ */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* NAV: brand + links en dos filas */
  .topnav { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .topnav nav { flex-wrap: wrap; gap: 14px; }
  .topnav .user-email { display: none; }

  /* SECTION */
  section.screen { padding: 28px 0 36px; }

  /* LANDING — ocultar dropzone, mostrar boton */
  .dropzone { display: none; }
  .mobile-upload-btn { display: flex; }

  /* LANDING — stats: 4 cols → 2 cols */
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .stats .cell:nth-child(even) { border-right: none; }
  .stats .cell:nth-child(3),
  .stats .cell:nth-child(4) { border-top: 1px solid var(--line); }
  .stats .value { font-size: 24px; }

  /* LANDING — tier teaser */
  .tier-teaser h3 { flex-direction: column; gap: 6px; }

  /* DASHBOARD */
  .dash-head { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Tabla → tarjetas */
  table.jobs thead { display: none; }
  table.jobs tbody tr { display: block; border: 1px solid var(--line); margin-bottom: 8px; }
  table.jobs tbody td {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left;
  }
  table.jobs tbody td:last-child { border-bottom: none; }
  table.jobs tbody td::before {
    content: attr(data-label);
    font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); font-family: var(--mono); flex-shrink: 0; margin-right: 12px;
  }
  table.jobs tbody tr:hover { background: var(--bg); }
  .col-id { display: none; }

  /* JOB DETAIL */
  .detail-head { flex-direction: column; gap: 10px; }
  .counter { font-size: clamp(48px, 18vw, 120px); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .phases .ph:nth-child(2) { border-right: none; }
  .phases .ph:nth-child(3),
  .phases .ph:nth-child(4) { border-top: 1px solid var(--line); }
  .progress-panel .secondary { flex-direction: column; gap: 6px; align-items: center; }

  /* PRICING */
  .pricing-head { flex-direction: column; gap: 6px; }
  .calc-row input[type="number"] { font-size: 22px; width: 110px; }
  .calc-big { font-size: 48px; }

  /* FORMS */
  .form-card { margin: 16px auto 0; padding: 20px 18px; }

  /* ERROR */
  .error-page .code { font-size: clamp(72px, 28vw, 144px); }
  .error-page { padding: 40px 0; }

  /* FOOTER */
  footer.foot { padding: 20px 0 32px; }
  footer.foot .container > div { flex-direction: column !important; gap: 14px; }
  footer.foot .links { display: flex; flex-wrap: wrap; }
  footer.foot .links a { margin-left: 0; margin-right: 16px; }

  /* BOTONES — area tactil mayor */
  .btn, .buy-link { padding: 13px 22px; }

  /* DZ META */
  .dz-meta { gap: 14px; flex-wrap: wrap; }
}
