/* Nicoleta · estilo común (catálogo y panel). Móvil primero. */
:root {
  --fondo: #faf6f1; --papel: #ffffff; --tinta: #231c1f; --suave: #6f6468; --linea: #eadfd5;
  --acento: #a94c37; --acento-claro: #f6e4dd; --oro: #b88a3b;
  --wa: #1fa855; --wa-osc: #168043;
  --ok: #2f7d4f; --ok-claro: #e3f2e8; --reserva: #a36a12; --reserva-claro: #fbefd9; --vendida: #8a8186; --vendida-claro: #efebec;
  --radio: 16px; --sombra: 0 6px 24px rgba(35, 28, 31, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 16px/1.45 var(--sans); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.serif { font-family: var(--serif); }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); font-weight: 600; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.prim { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: var(--wa-osc); }
.btn.acento { background: var(--acento); border-color: var(--acento); color: #fff; }
.btn.peq { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn.ancho { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Chips y sellos */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); font-weight: 600; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.sello { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.sello.disponible { background: var(--ok-claro); color: var(--ok); }
.sello.reservada { background: var(--reserva-claro); color: var(--reserva); }
.sello.vendida { background: var(--vendida-claro); color: var(--vendida); }
.sello.ejemplo { background: #fff3c4; color: #7a5a00; border: 1px dashed #d9b84a; }

/* Rejilla de prendas */
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1080px) { .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tarj { position: relative; display: flex; flex-direction: column; background: var(--papel); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 0; padding: 0; text-align: left; width: 100%; }
.tarj .foto { aspect-ratio: 4 / 5; background: #efe7df; overflow: hidden; }
.tarj .foto img { width: 100%; height: 100%; object-fit: cover; }
.tarj .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.tarj .nombre { font-weight: 600; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarj .meta { color: var(--suave); font-size: 14px; }
.tarj .precio { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-top: 2px; }
.tarj .sellos { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tarj.vendida .foto img { filter: grayscale(.8); opacity: .6; }

/* Hoja (ventana desde abajo) */
.velo { position: fixed; inset: 0; background: rgba(35, 28, 31, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.hoja { background: var(--fondo); width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); }
@media (min-width: 720px) { .velo { align-items: center; } .hoja { border-radius: 22px; } }
.hoja .asa { width: 44px; height: 5px; border-radius: 9px; background: var(--linea); margin: 6px auto 12px; }
.hoja h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }
.cerrar { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--papel); font-size: 24px; line-height: 1; box-shadow: var(--sombra); }

/* Formularios */
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.campo label { font-size: 14px; font-weight: 700; color: var(--suave); }
.campo input, .campo select, .campo textarea { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--linea); background: var(--papel); }
.campo textarea { min-height: 96px; resize: vertical; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ayuda { color: var(--suave); font-size: 14px; margin: 4px 0 0; }
.aviso { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 80; max-width: calc(100vw - 32px); box-shadow: var(--sombra); transition: opacity .3s; }
.aviso.mal { background: #a3261b; }
.vacio { text-align: center; color: var(--suave); padding: 36px 16px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

a.btn { color: inherit; }
a.btn.prim, a.btn.wa, a.btn.acento { color: #fff; }
