/* Alejandra's fashion store — estilos compartidos (página, hub y panel). */
:root {
  --bg: #0c0a0d;
  --card: #161117;
  --card2: #1e1720;
  --linea: #2d2331;
  --tx: #f6eff4;
  --mut: #a8979f;
  --rosa: #ff3d9a;
  --rosa2: #ff7cbc;
  --vino: #5c1a2c;
  --ok: #3ddc97;
  --r: 18px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }

.marca { font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.script { font-family: "Pinyon Script", "Brush Script MT", cursive; color: var(--rosa2); }
.mut { color: var(--mut); }

/* alambre de púas: una línea con nudos */
.alambre {
  height: 12px; width: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12'%3E%3Cpath d='M0 6h44' stroke='%23cfc3cb' stroke-width='1.4'/%3E%3Cpath d='M18 1l8 10M26 1l-8 10' stroke='%23cfc3cb' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x center;
  opacity: .55;
}

.avatar { border-radius: 50%; border: 2px solid var(--rosa); box-shadow: 0 0 0 4px rgba(255, 61, 154, .15), var(--sombra); background: #000; object-fit: cover; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 650; white-space: nowrap;
  background: var(--card2); border: 1px solid var(--linea); text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.rosa { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.btn.wa { background: #1faa59; border-color: #1faa59; color: #fff; }
.btn.ancho { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (hover: hover) {
  .btn:hover { border-color: var(--rosa); }
  .btn.rosa:hover { background: #ff5aab; }
}
.ico { width: 20px; height: 20px; flex: none; }

.precio { font-weight: 750; color: var(--rosa2); white-space: nowrap; }
.etq { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #000c; color: #fff; }
.etq.agotado { background: #2a2a2a; color: #bbb; }
.etq.nuevo { background: var(--rosa); }

/* hoja (sheet) que sube desde abajo */
.velo { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 40; }
.velo.on { opacity: 1; pointer-events: auto; }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92dvh; overflow: auto;
  background: var(--card); border-top: 1px solid var(--linea); border-radius: 24px 24px 0 0;
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  overscroll-behavior: contain; visibility: hidden;
}
.hoja.on { transform: none; visibility: visible; }
.hoja .asa { width: 42px; height: 5px; border-radius: 9px; background: var(--linea); margin: 0 auto 10px; }
.hoja .cerrar { position: absolute; right: 12px; top: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; z-index: 2; }
@media (min-width: 700px) {
  .hoja { left: 50%; right: auto; top: 50%; bottom: auto; width: 560px; max-height: 88vh; border-radius: 24px; border: 1px solid var(--linea);
    transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
  .hoja.on { transform: translate(-50%, -50%); opacity: 1; }
  .hoja .asa { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hoja, .velo, .btn { transition: none; } }

.aviso-toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -20px);
  background: #fff; color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 650; box-shadow: var(--sombra);
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 60; pointer-events: none; max-width: 90vw; text-align: center;
}
.aviso-toast.on { opacity: 1; transform: translate(-50%, 0); }

.foto { background: #fff; aspect-ratio: 1; width: 100%; object-fit: cover; }
