/* ==========================================================================
   RESPIRA SPA — Registro simple de ventas · tema claro minimalista
   ========================================================================== */

:root {
  --bg: #fbf9fe;
  --surface: #ffffff;
  --surface-soft: #f8f2fd;
  --line: #ecdef7;
  --line-strong: #c9a9e8;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-900: #3b0764;
  --ink: #2a1338;
  --ink-soft: #4b2f5e;
  --muted: #7d6a8b;
  --muted-2: #9b8aa8;
  --ok: #15803d;
  --danger: #be123c;
  --radius: 24px;
  --radius-sm: 14px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow-card: 0 18px 50px -30px rgba(76, 29, 149, 0.28);
  --shadow-hover: 0 26px 60px -28px rgba(126, 34, 206, 0.36);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(900px 600px at 92% -12%, rgba(216, 180, 254, 0.34), transparent 62%),
    radial-gradient(800px 560px at -10% 4%, rgba(233, 213, 255, 0.42), transparent 60%),
    radial-gradient(700px 500px at 50% 112%, rgba(243, 232, 255, 0.7), transparent 68%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-orbs span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 24s ease-in-out infinite alternate;
}
.bg-orbs span:nth-child(1) {
  width: 460px; height: 460px; top: -160px; right: 4%;
  background: rgba(216, 180, 254, 0.55);
}
.bg-orbs span:nth-child(2) {
  width: 380px; height: 380px; bottom: 2%; left: -140px;
  background: rgba(233, 213, 255, 0.8);
  animation-delay: -10s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, 24px, 0) scale(1.08); }
}

::selection { background: #e9d5ff; color: #3b0764; }

a { color: var(--purple-700); text-decoration: none; }
a:hover { color: var(--purple-900); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--ink);
}

p { margin: 0; }

fieldset { margin: 0; padding: 0; border: 0; }

:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1060px, calc(100% - 48px));
  margin-inline: auto;
}

.page {
  flex: 1;
  padding: 36px 0 64px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(236, 222, 247, 0.8);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 8px 24px -10px rgba(126, 34, 206, 0.55);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--purple-900);
}
.brand__text small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.brand__side {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions form { display: flex; }
.header-user {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ==========================================================================
   Common
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--purple-700);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-400));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(30px, 3.4vw, 40px); }
.section-head .eyebrow { margin-bottom: 7px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  color: var(--purple-700);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple-100);
  border: 1px solid var(--purple-200);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--purple-700);
}
.avatar--lg { width: 62px; height: 62px; font-size: 30px; }

.staff-photo {
  display: block;
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--purple-100);
  border: 1px solid var(--purple-200);
  box-shadow: 0 10px 24px -14px rgba(76, 29, 149, 0.5);
}
.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-photo--lg {
  width: 90px;
  height: 90px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }

.btn--primary {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(126, 34, 206, 0.7);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(126, 34, 206, 0.8);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn--ghost:hover {
  color: var(--purple-700);
  border-color: var(--line-strong);
  background: var(--purple-50);
}

.btn--sm { padding: 9px 16px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn--xl {
  padding: 17px 28px;
  font-size: 16px;
  letter-spacing: 0.03em;
}
.btn--xl svg { width: 20px; height: 20px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ==========================================================================
   Flash
   ========================================================================== */

.flashes {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.flash {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #c6f0d3;
  background: #f1fcf4;
  color: #166534;
  font-size: 13.5px;
  animation: rise 0.4s ease both;
}
.flash--error {
  border-color: #fecdd3;
  background: #fff5f6;
  color: var(--danger);
}
.flash svg { flex-shrink: 0; width: 18px; height: 18px; }

/* ==========================================================================
   Home
   ========================================================================== */

.home-hero {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 54px);
  padding: 16px 0 48px;
}

.home-hero__logo {
  position: relative;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.home-hero__logo::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 254, 0.75), transparent 68%);
  filter: blur(40px);
  z-index: -1;
}
.home-hero__logo img {
  width: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 24px 44px rgba(88, 28, 135, 0.24));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.home-hero__content { animation: rise 0.8s 0.06s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.home-hero__content .eyebrow { margin-bottom: 12px; }
.home-hero h1 {
  font-size: clamp(52px, 7vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.home-hero h1 .accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--purple-700) 10%, var(--purple-500) 70%, var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16.5px;
}

.staff-home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(58vh, 520px);
  padding: 12px 0 24px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.staff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.26s, box-shadow 0.26s;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.staff-card:nth-child(1) { animation-delay: 0.05s; }
.staff-card:nth-child(2) { animation-delay: 0.10s; }
.staff-card:nth-child(3) { animation-delay: 0.15s; }
.staff-card:nth-child(4) { animation-delay: 0.20s; }

.staff-card:hover {
  color: var(--ink);
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.staff-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.staff-card__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted-2);
  transition: background 0.25s, transform 0.25s, border-color 0.25s, color 0.25s;
}
.staff-card__arrow svg { width: 13px; height: 13px; }
.staff-card:hover .staff-card__arrow {
  background: var(--purple-100);
  border-color: var(--purple-300);
  color: var(--purple-700);
  transform: translateX(3px);
}

.staff-card__body { margin-top: 24px; }
.staff-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}
.staff-card__role {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ==========================================================================
   Flow / sale
   ========================================================================== */

.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sale-card,
.success-card {
  width: min(620px, 100%);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 30px 80px -46px rgba(76, 29, 149, 0.34);
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.sale-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sale-card__head .eyebrow { margin-bottom: 5px; }
.sale-card__head h1 { font-size: clamp(32px, 4.5vw, 40px); }
.sale-card__head p { margin-top: 5px; color: var(--muted-2); font-size: 12.5px; }

.sale-form { margin-top: 26px; display: grid; gap: 24px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > label,
.field-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hint { font-size: 11.5px; color: var(--muted-2); }

.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.text-input::placeholder { color: #b7a6c6; }
.text-input:focus {
  outline: none;
  border-color: var(--purple-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.10);
}

.amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.amount-field:focus-within {
  border-color: var(--purple-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}
.amount-field > span {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--purple-500);
  line-height: 1;
}
.amount-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  outline: none;
}
.amount-field input::placeholder { color: #d6c7e4; }
.amount-field input::-webkit-outer-spin-button,
.amount-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pay-group legend { padding: 0; margin-bottom: 10px; }

.pay-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pay-option { position: relative; }
.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-option__body {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pay-option__body:hover {
  border-color: var(--line-strong);
  background: var(--purple-50);
}
.pay-option__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--purple-600);
}
.pay-option__icon svg { width: 20px; height: 20px; }
.pay-option__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pay-option__text strong { font-size: 14px; font-weight: 500; color: var(--ink); }
.pay-option__text small { margin-top: 2px; font-size: 9.5px; color: var(--muted-2); white-space: normal; }
.pay-option__check {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #d9c8e8;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.pay-option__check::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.18s, transform 0.18s;
}
.pay-option input:checked + .pay-option__body {
  border-color: var(--purple-400);
  background: var(--purple-100);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.08);
}
.pay-option input:checked + .pay-option__body .pay-option__icon {
  border-color: var(--purple-200);
  color: var(--purple-700);
}
.pay-option input:checked + .pay-option__body .pay-option__check {
  background: var(--purple-600);
  border-color: var(--purple-600);
}
.pay-option input:checked + .pay-option__body .pay-option__check::after {
  opacity: 1;
  transform: scale(1);
}
.pay-option input:focus-visible + .pay-option__body {
  outline: 2px solid var(--purple-500);
  outline-offset: 2px;
}

.cancel-link {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  transition: color 0.2s;
}
.cancel-link:hover { color: var(--purple-700); }

/* ==========================================================================
   Confirmación
   ========================================================================== */

.success-card {
  width: min(540px, 100%);
  text-align: center;
  padding-top: clamp(34px, 5vw, 50px);
}
.success-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--purple-100);
  border: 1px solid var(--purple-200);
  color: var(--purple-700);
  box-shadow: 0 0 0 10px rgba(168, 85, 247, 0.06);
  animation: pop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.3) both;
}
.success-mark svg { width: 34px; height: 34px; }
@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.success-card .eyebrow { justify-content: center; }
.success-card .eyebrow::before { display: none; }
.success-card h1 {
  margin-top: 10px;
  font-size: clamp(50px, 9vw, 68px);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.success-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }

.qr-panel {
  margin: 22px 0 4px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
}
.qr-panel__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.qr-panel__img {
  width: min(280px, 76vw);
  height: auto;
  margin: 0 auto 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px -20px rgba(76, 29, 149, 0.55);
}
.qr-panel__status {
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-700);
}
.qr-panel__meta {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--muted-2);
  word-break: break-all;
}
.qr-panel [hidden] { display: none !important; }
.qr-paid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 4px;
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.3) both;
}
.qr-paid__mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: #fff;
  box-shadow: 0 0 0 10px rgba(168, 85, 247, 0.1),
              0 18px 32px -18px rgba(76, 29, 149, 0.7);
}
.qr-paid__mark svg { width: 38px; height: 38px; }
.qr-paid__title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--purple-900);
}
.qr-paid__sub { margin-top: 5px; font-size: 13px; color: var(--muted); }
.qr-error {
  margin: 22px 0 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #fecdd3;
  background: #fff5f6;
  color: var(--danger);
  font-size: 13.5px;
}

.success-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 26px 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  overflow: hidden;
}
.success-details > div { padding: 13px 16px; background: var(--surface-soft); }
.success-details__wide { grid-column: 1 / -1; }
.success-details dt {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.success-details dd {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.success-actions .btn { width: 100%; }
.success-actions form { display: flex; }
.success-actions form .btn { width: 100%; }

/* ==========================================================================
   Confirmación de venta en efectivo
   ========================================================================== */

body.modal-open { overflow: hidden; }

.sale-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sale-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 19, 56, 0.46);
  backdrop-filter: blur(2px);
}

.sale-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 34px 90px -34px rgba(42, 19, 56, 0.55);
  animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}

.sale-modal__dialog .eyebrow { margin-bottom: 6px; }

.sale-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sale-modal__details {
  display: grid;
  gap: 1px;
  margin: 20px 0 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
}
.sale-modal__details > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  background: var(--surface-soft);
}
.sale-modal__details dt {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.sale-modal__details dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.sale-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sale-modal__actions .btn { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 26px 0 32px;
  border-top: 1px solid rgba(236, 222, 247, 0.8);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer p { font-size: 11px; color: var(--muted-2); letter-spacing: 0.04em; }
.site-footer .mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.06em;
}
.site-footer .mark img { width: 24px; height: 24px; border-radius: 50%; opacity: 0.9; }

/* ==========================================================================
   Errors
   ========================================================================== */

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(88px, 14vw, 150px);
  line-height: 0.8;
  font-weight: 500;
  background: linear-gradient(120deg, var(--purple-900), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { font-size: 32px; margin-top: 18px; }
.error-page p { color: var(--muted); margin: 10px auto 24px; max-width: 420px; }

/* ==========================================================================
   Login
   ========================================================================== */

.login-wrap {
  min-height: min(64vh, 560px);
  display: grid;
  place-items: center;
  padding: 12px 0;
}

.login-card {
  width: min(420px, 100%);
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.login-card h1 {
  margin-top: 6px;
  font-size: clamp(34px, 5vw, 44px);
  color: var(--ink);
}
.login-card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.login-form {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

/* ==========================================================================
   Reportes
   ========================================================================== */

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.report-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.report-card h3 {
  margin-top: 5px;
  font-size: 30px;
  color: var(--ink);
}
.report-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.report-card form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.report-target {
  width: min(820px, 100%);
  margin: 18px auto 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted-2);
}
.report-target strong {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ==========================================================================
   Animations & responsive
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .site-header .container { min-height: 66px; }
  .brand__side { display: none; }
  .brand__text small { display: none; }
  .page { padding-top: 26px; }
  .home-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
    padding-top: 4px;
    padding-bottom: 36px;
  }
  .home-hero__logo { width: 160px; margin-inline: auto; }
  .home-hero__content .eyebrow { justify-content: center; }
  .home-hero h1 { font-size: 52px; }
  .section-head h2 { font-size: 32px; }
  .staff-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .staff-card { min-height: 156px; padding: 18px; }
  .staff-card__body { margin-top: 18px; }
  .staff-card__name { font-size: 29px; }
  .staff-card__role { font-size: 10.5px; }
  .avatar--lg { width: 52px; height: 52px; font-size: 26px; }
  .pay-option__text small { white-space: normal; }
  .success-actions { grid-template-columns: 1fr; }
  .site-footer .container { justify-content: center; text-align: center; }
  .header-user { display: none; }
  .header-actions { gap: 6px; }
  .report-grid { grid-template-columns: 1fr; }
  .login-card, .report-card { padding: 26px 22px; border-radius: 22px; }
}

@media (max-width: 620px) {
  .pay-options { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .home-hero__logo { width: 142px; }
  .home-hero h1 { font-size: 46px; }
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card { min-height: 142px; }
  .staff-card__top { align-items: center; }
  .staff-card__name { font-size: 31px; }
  .pay-options { grid-template-columns: 1fr; }
  .success-details { grid-template-columns: 1fr; }
  .sale-card, .success-card { border-radius: 22px; }
  .flow-head { align-items: center; }
  .sale-card__head { align-items: flex-start; }
}
