/* =========================================================
   DiMasi Vintage — tokens y estilos compartidos (tienda + admin)
   Paleta tomada del mockup: arena, crema, taupe, tinta y suela.
   ========================================================= */
:root {
  --bg: #f7f3ee;          /* fondo general */
  --surface: #fbf9f6;     /* header, tarjetas */
  --paper: #ffffff;
  --sand: #ece5dc;        /* barra superior, chips */
  --sand-2: #f0eae2;      /* footer */
  --tile: #efebe6;        /* fondo de fotos de producto */
  --line: #ddd3c7;
  --line-soft: #e9e2d9;
  --ink: #1e1b18;         /* texto y botones principales */
  --ink-2: #4a433c;
  --muted: #7b7168;
  --taupe: #8f8172;
  --accent: #6f4e37;      /* suela */
  --gold: #b08d57;
  --ok: #4f6b4a;
  --ok-bg: #e8eee4;
  --err: #9b3b2f;
  --err-bg: #f6e7e3;
  --info-bg: #efe9e1;
  --sale: #8c3b2a;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --text: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --shadow: 0 10px 30px rgba(30, 27, 24, .08);
  --wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 14px; line-height: 1; flex: none; }
.logo-text { display: flex; flex-direction: column; align-items: center; }
.logo-mark { height: 50px; width: auto; }
.logo-name { font-family: var(--serif); font-size: 31px; font-weight: 500; letter-spacing: .32em; margin-right: -.32em; }
.logo-tag { font-family: var(--sans); font-size: 8.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-2); margin-top: 7px; }

/* ---------- Etiquetas tipo "NUEVA COLECCIÓN" ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 28px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #3a342e; border-color: #3a342e; color: #fff; }
.btn .icon { width: 16px; height: 16px; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-wa { background: #1f7a4d; border-color: #1f7a4d; }
.btn-wa:hover { background: #17603c; border-color: #17603c; }
.btn-danger { background: transparent; color: var(--err); border-color: #d9b5ad; }
.btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn-sm { padding: 9px 16px; font-size: 11.5px; letter-spacing: .14em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .04em; white-space: nowrap;
}
.link-arrow .icon { width: 15px; height: 15px; }
.link-underline {
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px; display: inline-flex; gap: 8px; align-items: center;
}

.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--err); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label {
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .error { font-family: var(--sans); font-size: 12.5px; color: var(--err); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--sans); font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(143,129,114,.18); }
.field.has-error input, .field.has-error select { border-color: var(--err); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.check { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.form-note { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* ---------- Avisos ---------- */
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 18px; margin: 18px 0; border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; border: 1px solid transparent;
}
.flash-ok, .flash-cart { background: var(--ok-bg); color: var(--ok); border-color: #cfdbc8; }
.flash-err { background: var(--err-bg); color: var(--err); border-color: #ebcdc6; }
.flash-info { background: var(--info-bg); color: var(--ink-2); border-color: var(--line); }
.flash a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Estado de pedido ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  background: var(--sand); color: var(--ink-2); white-space: nowrap;
}
.pill-nuevo { background: #f3e2c9; color: #7a4a12; }
.pill-contactado { background: #e3e8f0; color: #3b4f6b; }
.pill-confirmado { background: #e6e0f0; color: #54427a; }
.pill-enviado { background: #dfeaea; color: #2f5d5d; }
.pill-entregado { background: var(--ok-bg); color: var(--ok); }
.pill-mayorista { background: var(--ink); color: #f3d38f; }
.pill-cancelado { background: var(--err-bg); color: var(--err); }

/* ---------- Tablas ---------- */
.table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.table th {
  text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.table td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
