/* Vitrina — tokens de marca y piezas comunes. Lo usan landing, tienda, panel y admin. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --tinta: #1d1a16;
  --tinta-2: #5b544b;
  --tinta-3: #8c8378;
  --papel: #fbf7f1;
  --papel-2: #f3ece2;
  --blanco: #ffffff;
  --linea: #e6ddd0;
  --acento: #e4572e;      /* tomate: marca Vitrina */
  --acento-2: #c94420;
  --verde: #1fa855;       /* WhatsApp / ok */
  --verde-2: #168a45;
  --amarillo: #f4b43a;
  --rojo: #d43c3c;
  --sombra: 0 1px 2px rgba(29, 26, 22, .06), 0 8px 24px rgba(29, 26, 22, .08);
  --sombra-2: 0 2px 4px rgba(29, 26, 22, .08), 0 18px 48px rgba(29, 26, 22, .16);
  --r: 14px;
  --r-2: 22px;
  --titulo: "Bricolage Grotesque", system-ui, sans-serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--titulo); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.25em; border: 0; border-radius: 999px;
  background: var(--tinta); color: var(--papel); font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
/* Fondos un tono más oscuro que la marca: texto blanco con contraste AA. */
.btn.acento { background: var(--acento-2); color: #fff; }
.btn.acento:hover { background: #a8381a; }
.btn.verde { background: #12783c; color: #fff; }
.btn.verde:hover { background: #0e6331; }
.btn.claro { background: var(--blanco); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn.chico { min-height: 38px; padding: 0 .9em; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.campo { display: grid; gap: 6px; align-content: start; }
.campo > span { font-size: 14px; font-weight: 600; color: var(--tinta-2); }
.campo small { color: var(--tinta-3); font-size: 13px; }
.entrada {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--linea); background: var(--blanco); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.entrada:focus { border-color: var(--acento); box-shadow: 0 0 0 4px rgba(228, 87, 46, .14); }
textarea.entrada { min-height: 84px; resize: vertical; }

.tarjeta { background: var(--blanco); border-radius: var(--r-2); box-shadow: var(--sombra); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--papel-2); font-size: 13px; font-weight: 600; white-space: nowrap;
}

.logo-vitrina { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none; }
.logo-vitrina .marca { width: 30px; height: 30px; }

.aviso {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--tinta); color: var(--papel); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; z-index: 999; pointer-events: none; max-width: calc(100% - 32px);
  transition: opacity .2s, transform .25s var(--ease); box-shadow: var(--sombra-2);
}
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
