:root {
  color-scheme: light;
  --ink: #221f1a;
  --muted: #5e574e;
  --faint: #746d62;
  --line: #e3dacb;
  --paper: rgba(255, 252, 247, 0.94);
  --forest: #1a2822;
  --forest-2: #234237;
  --gold: #c6a56e;
  --gold-deep: #8a7352;
  --good: #1d6b45;
  --bad: #8d342c;
  --shadow: 0 16px 40px rgba(48, 36, 18, 0.06);
  --serif: Fraunces, Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 0% -10%, rgba(198, 165, 110, 0.2), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(35, 66, 55, 0.07), transparent 46%),
    #efe8dc;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
a { color: var(--forest-2); }
::selection { background: #ead7b4; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 16px 16px;
  background:
    linear-gradient(180deg, rgba(198, 165, 110, 0.16), transparent 28%),
    var(--forest);
  color: #efe8dc;
}
.brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 0 8px;
}
.mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(198, 165, 110, 0.7);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.brand > div { min-width: 0; }
.brand-kicker {
  display: block;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbbfaa;
  text-decoration: none;
}
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.brand input {
  width: 100%;
  margin-top: 2px;
  padding: 0 0 2px;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #f7f1e6;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.brand input:focus {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: none;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #ddd6ca;
  text-decoration: none;
}
.nav a:hover { background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] {
  background: rgba(198, 165, 110, 0.16);
  color: #f6ecdc;
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav .count {
  margin-left: auto;
  font-size: 12px;
  color: #b7b0a4;
  font-variant-numeric: tabular-nums;
}

.side-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.side-result {
  padding: 12px;
  border: 1px solid rgba(198, 165, 110, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.side-result span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbbfaa;
}
.side-result strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.side-result.pos strong { color: #c9ead8; }
.side-result.neg strong { color: #f0c2bc; }
.fine {
  margin: 0;
  color: #b7b0a4;
  font-size: 12px;
  line-height: 1.4;
}
.side-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.workspace { min-width: 0; }
.content {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}
.kicker, .form-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.98;
}
h2 { margin: 2px 4px 12px; font-size: 22px; }
h3 { margin: 0 0 8px; font-size: 20px; }
.lede, .help, .note {
  color: var(--muted);
}
.lede { margin: 8px 0 0; max-width: 68ch; }
.help, .note { margin: 8px 4px 0; font-size: 13px; }
.head-actions, .ficha-actions, .form-actions, .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.kpi, .panel, .ledger {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.kpi { padding: 14px 16px 16px; }
.kpi span, .ledger-row span {
  display: block;
  color: var(--faint);
  font-size: 13px;
}
.kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.kpi em {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-style: normal;
  font-size: 12.5px;
}
.kpi-good {
  background: var(--forest);
  border-color: var(--forest);
  color: #f6f1e7;
}
.kpi-good span, .kpi-good em { color: #d9d0c2; }
.kpi-bad {
  background: #6e2e28;
  border-color: #6e2e28;
  color: #f8efec;
}
.kpi-bad span, .kpi-bad em { color: #f0d2cd; }

.dash-grid, .split, .two {
  display: grid;
  gap: 14px;
}
.dash-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr); margin-bottom: 14px; }
.split { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.two { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.panel { padding: 16px 16px 12px; min-width: 0; max-width: 100%; }
.form-panel {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-top: 3px solid var(--gold);
}
#table-slot { display: grid; gap: 14px; min-width: 0; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
#buscar { width: min(360px, 100%); }
.toolbar select { width: min(200px, 100%); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.pager-note { margin: 0; color: var(--muted); font-size: 13px; }
.pager-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager-nav .chip { min-width: 34px; }

input, select, textarea {
  width: 100%;
  border: 1px solid #ddd4c6;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}
textarea { resize: vertical; min-height: 74px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(35, 66, 55, 0.12);
}
.fields { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label {
  font-size: 13px;
  color: #4e493f;
}
.req::after { content: " *"; color: var(--bad); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f1e6;
  border: 1px solid #eadfcb;
  font-size: 14px;
}
.preview strong { font-weight: 600; }
.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdeceb;
  color: #6e2e28;
}
.editing-flag {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 13px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  background: #efe8dc;
  color: var(--ink);
}
.btn:hover { background: #e7dfd1; }
.btn.primary { background: var(--forest-2); color: #f6f1e7; }
.btn.primary:hover { background: #1a332b; }
.btn.ghost { background: transparent; border-color: #d9d0c2; }
.btn.danger { background: transparent; color: var(--bad); border-color: #efd0cc; }
.btn.tiny { padding: 5px 8px; border-radius: 9px; font-size: 12.5px; }
.btn.is-on { color: var(--forest); background: #f3faf6; border-color: #b7d4c4; }
.sidebar .btn.ghost { border-color: rgba(239, 232, 220, 0.22); color: #efe8dc; }
.sidebar .btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
}
.chip.on { background: var(--forest); color: #f6f1e7; border-color: var(--forest); }

.table-wrap { overflow-x: auto; margin: 0 -6px; max-width: 100%; }
table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14px; }
th {
  padding: 8px 10px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 11px 10px;
  border-bottom: 1px solid #eee6da;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
tbody tr:hover td { background: #faf6ef; }
tr.is-editing td { background: #f4ecdf; }
.name { font-weight: 600; }
.name a { color: inherit; text-decoration: none; }
.name a:hover { box-shadow: inset 0 -1px 0 var(--gold); }
.num, .right { text-align: right; }
.actions, th.right {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fffdf8;
}
.actions { white-space: nowrap; text-align: right; box-shadow: -10px 0 10px rgba(255, 253, 248, 0.92); }
.actions .btn { margin-left: 4px; }
tbody tr:hover td.actions { background: #faf6ef; }
tr.is-editing td.actions { background: #f4ecdf; }
.sub { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.pill-activo, .pill-nacido { color: var(--good); background: #f3faf6; border-color: #b7d4c4; }
.pill-en-gestacion, .pill-programado { color: #8a6232; background: #fbf6ee; border-color: #ead7b8; }
.pill-no-prenada, .pill-retirado { color: #5c584f; background: #f6f4f0; }
.pill-vendido { color: #214e68; background: #f2f7fa; border-color: #c5d7e4; }
.pill-saludable { color: var(--good); background: #f3faf6; border-color: #b7d4c4; }
.pill-enfermo { color: #8a6232; background: #fbf6ee; border-color: #ead7b8; }
.pill-muerto { color: #6d3b3b; background: #faf3f3; border-color: #e4c8c8; }
.pill-semental { background: var(--forest); color: #f4efe6; border-color: var(--forest); }
.pill-yegua { background: #f7f1e6; }
.pill-cria { background: #eef4f1; border-color: #d5e3db; }
.money.pos { color: var(--good); font-weight: 600; }
.money.neg { color: var(--bad); font-weight: 600; }

.statline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 4px 12px;
  color: var(--muted);
  font-size: 13px;
}
.statline b { color: var(--ink); font-variant-numeric: tabular-nums; }

.chart-head, .ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.year-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.legend { display: flex; gap: 14px; margin: 0 4px 10px; color: var(--muted); font-size: 13px; }
.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  margin-right: 6px;
}
.swatch.inv { background: var(--gold); }
.swatch.ven { background: var(--good); }
.chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  min-height: 168px;
}
.chart-col { display: grid; grid-template-rows: 132px auto; gap: 6px; min-width: 0; }
.chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 132px; }
.bar { width: 7px; border-radius: 5px 5px 0 0; }
.bar.inv { background: var(--gold); }
.bar.ven { background: #2f6b4f; }
.chart-col span { text-align: center; font-size: 11px; color: var(--faint); }

.ledger { padding: 16px; }
.ledger-row, .activity a, .pipe-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid #eee6da;
}
.ledger-row b { font-variant-numeric: tabular-nums; font-weight: 560; }
.ledger-row.total {
  border-bottom: none;
  margin-top: 4px;
  padding-top: 12px;
}
.ledger-row.total span, .ledger-row.total b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
}
.activity { display: grid; }
.activity a {
  color: inherit;
  text-decoration: none;
  align-items: baseline;
}
.activity a:hover { background: #faf6ef; }
.tag {
  flex: none;
  width: 92px;
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pipe { display: grid; gap: 8px; }
.pipe-item {
  align-items: center;
  padding: 8px 0;
}
.pipe-item div { min-width: 0; }

.back {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--ink); }
.ficha-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.lineage { margin: 8px 0 0; color: var(--muted); }
.ficha-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.empty {
  padding: 28px 12px 22px;
  text-align: center;
}
.empty strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 560;
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 22, 18, 0.46);
}
.modal {
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fffdf9;
  box-shadow: 0 24px 60px rgba(30, 24, 16, 0.2);
}
.modal h2 { margin-top: 0; }
.modal p { color: var(--muted); }
.modal-actions { justify-content: flex-end; }
.parto-choices { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.parto-choices .btn { justify-content: center; width: 100%; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: min(420px, calc(100% - 36px));
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--forest);
  color: #f4efe6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.toast.bad { background: #6e2e28; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1500px) {
  .split, .dash-grid, .two, .ficha-grid { grid-template-columns: 1fr; }
  .form-panel { position: static; max-height: none; order: -1; }
}
@media (max-width: 800px) {
  .layout { display: block; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    padding: 12px 12px 10px;
  }
  .nav {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
  }
  .nav a { white-space: nowrap; }
  .side-foot { margin-top: 12px; }
  .side-result strong { font-size: 22px; }
  .side-actions { display: flex; }
  .content { width: min(100% - 24px, 1180px); padding-top: 18px; }
  .page-head, .ficha-top { display: grid; }
  .kpis { grid-template-columns: 1fr 1fr; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 520px) {
  .kpis, .duo { grid-template-columns: 1fr; }
  .chart { gap: 2px; }
  .bar { width: 4px; }
}
@media print {
  .sidebar, .form-panel, .toolbar, .head-actions, .actions, .side-foot, .toast, .modal-back { display: none !important; }
  .layout { display: block; }
  body { background: white; }
  .panel, .kpi, .ledger { box-shadow: none; }
}
.sidebar { overflow: auto; }
.kpis.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swatch.spent { background: #7d756b; }
.swatch.gold { background: #c6a56e; }

.timer-list { display: grid; gap: 12px; }
.timer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}
.timer-copy h3 { margin: 0; font-size: 28px; }
.timer-side { text-align: right; }
.timer-clock {
  margin: 0;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.timer-clock.done { color: var(--good); }
.timer-eta { margin: 6px 0 8px; color: var(--muted); font-size: 13px; }
.timer-track {
  height: 8px;
  border-radius: 99px;
  background: #efe6d8;
  overflow: hidden;
  margin-bottom: 10px;
}
.timer-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8a7352, #c6a56e);
}
.mini-timer b { font-variant-numeric: tabular-nums; font-weight: 600; }
.mini-timer.done b { color: var(--good); }

.benefit-list { display: grid; gap: 4px; }
.benefit-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: center;
  padding: 8px 4px;
}
.benefit-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 600; }
.benefit-name a { color: inherit; text-decoration: none; }
.benefit-name a:hover { box-shadow: inset 0 -1px 0 var(--gold); }
.benefit-lines { display: grid; gap: 5px; }
.benefit-line { height: 9px; border-radius: 99px; background: #f3ece1; overflow: hidden; }
.benefit-line span { display: block; height: 100%; border-radius: 99px; }
.benefit-line.inv span { background: #7d756b; }
.benefit-line.val span { background: #c6a56e; }

@media (max-width: 1100px) {
  .kpis.wide { grid-template-columns: 1fr 1fr; }
  .timer, .benefit-row { grid-template-columns: 1fr; }
  .timer-side, .benefit-row .num { text-align: left; }
}
@media (max-width: 800px) {
  .kpis.wide { grid-template-columns: 1fr; }
  .timer-clock { font-size: 36px; }
}
.horse-cell { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #efe6d8;
  color: #5c5348;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
}
.paste-zone {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 14px;
  border: 1.5px dashed #c9b79a;
  border-radius: 16px;
  background: #fbf6ee;
  text-align: center;
  outline: none;
}
.paste-zone:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 165, 110, 0.28); }
.paste-zone img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 14px;
  background: #efe6d8;
}
.paste-zone p { margin: 0; color: var(--muted); }
.paste-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ficha-top { align-items: flex-start; }
.ficha-copy { flex: 1; }
.paste-zone.portrait { margin: 0; align-self: start; }
.gasto-caballo { border-top: 1px solid #efe4d4; padding: 12px 0 4px; }
.gasto-caballo summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 650; }
.gasto-caballo summary span { color: var(--muted); font-weight: 500; }
.aviso { max-width: 520px; }
.aviso-line { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; color: var(--ink); }
#aviso-root .modal-back { z-index: 60; }
.pill-esteril { color: var(--bad); background: #fdf4f3; border-color: #e4c4c0; }
.pill-fertil, .pill-entrenado { color: var(--good); background: #f3faf6; border-color: #b7d4c4; }
.pill-en-venta { color: var(--forest); background: #f4f7f5; border-color: #c5d5cc; }
.pill-sin-entrenar { color: #5c584f; background: #f6f4f0; }
.trait-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.switch-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 8px; }
.switch { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track {
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
  margin-top: 2px;
  border-radius: 99px;
  background: #d9d0c3;
  position: relative;
}
.track::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.15s ease;
}
.switch input:checked + .track { background: var(--forest-2); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch b { display: block; font-weight: 600; }
.switch small { display: block; color: var(--muted); font-size: 13px; }
.acceso {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 32px 20px 48px;
  max-width: 980px;
  margin: 0 auto;
}
.acceso-brand h1 { margin: 0; font-family: var(--serif); font-weight: 560; font-size: 42px; }
.acceso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acceso-card h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 560; }
.acceso-card .btn { margin-top: 8px; }
.client-app { min-height: 100vh; }
.client-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: var(--forest);
  color: #efe8dc;
}
.client-bar .kicker { color: var(--gold); margin: 0; }
.client-bar strong, .site-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: #f6f1e7;
  text-decoration: none;
}
.client-bar .btn.ghost,
.icon-btn {
  color: #efe8dc;
  border-color: rgba(239, 232, 220, 0.28);
  background: transparent;
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f3eee4;
  cursor: pointer;
}
.icon-btn:hover { background: #fff; }
.client-bar .btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.client-app .content { max-width: 1240px; margin: 0 auto; padding: 28px 20px 48px; }
.product-farm {
  margin: 0;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.criadero-list li { align-items: center; gap: 12px; }
.farm-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}
.criadero-list .sub { display: block; font-weight: 400; }
.vitrina-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}
.vitrina-filters label {
  display: grid;
  gap: 4px;
  min-width: 150px;
  color: var(--muted);
  font-size: 13px;
}
.vitrina-filters select { width: 180px; }
.vitrina-filters .btn { margin-bottom: 2px; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7dfd2;
}
.product-frame img,
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e7dfd2;
}
.empty-photo {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 64px;
  color: #8a7352;
}
.product-body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.product-body h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 560; }
.product-price { margin: 0; font-family: var(--serif); font-size: 28px; }
.product-meta { margin: 0; color: var(--muted); }
.product .btn { justify-self: start; }
.admin-form { width: min(480px, 100%); }
.admin-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.admin-list li { display: flex; justify-content: space-between; gap: 12px; }
.admin-list span { color: var(--muted); }
#foto-zoom {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  border-radius: 18px;
  overflow: hidden;
  background: #1a2822;
  border: 3px solid #fffdf8;
  box-shadow: 0 18px 50px rgba(24, 22, 18, 0.28);
}
#foto-zoom img { width: 100%; max-height: 70vh; object-fit: contain; }
@media (max-width: 800px) {
  .acceso-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track::after { transition: none; }
}
