/* Coloretes boutique — crema rosado, su rosa, un toque mantequilla (como su tienda) y letra con clase.
   Compartido por la página (/), el hub (/hub) y el panel (/admin). */
:root {
  --bg: #fff8f5;
  --card: #ffffff;
  --card2: #fbefef;
  --linea: rgba(74, 30, 48, .1);
  --linea2: rgba(74, 30, 48, .18);
  --tx: #2a1b21;
  --mut: #8a7680;
  --plata: #2a1b21;
  --rosa: #ec7fa9;
  --rosa2: #d4578a;
  --rosa-suave: #fde3ec;
  --mantequilla: #f8e58f;
  --vino: #f6d3df;
  --ok: #2fa66b;
  --r: 18px;
  --sombra: 0 18px 40px -18px rgba(120, 40, 70, .35);
  --cromo: linear-gradient(180deg, #f39cbf, #e2709d);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --display: "Playfair Display", Georgia, serif;
  --serif: "Playfair Display", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--tx); background: var(--bg);
  background-image: radial-gradient(90% 40% at 50% -6%, rgba(236, 127, 169, .22), transparent 70%);
  background-repeat: no-repeat;
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
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; }
a, [role="button"] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--rosa2); outline-offset: 3px; }
::selection { background: var(--rosa); color: #fff; }

/* paso suave entre el hub y la página (el logo viaja de una a otra) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
::view-transition-group(logo) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }

/* ── logo: su sello rosado con "Coloretes" en letra de pincel ── */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; view-transition-name: logo; font-size: 120px; }
.logo .sello { width: 1em; height: 1em; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, #f6a9c8, #ec7fa9 55%, #e06d9a); box-shadow: 0 .14em .3em -.14em rgba(212, 87, 138, .55), inset 0 -.03em .06em rgba(160, 40, 90, .25), inset 0 .03em .05em rgba(255, 255, 255, .45); }
.logo .sello span { font: 400 .215em/1 var(--script); color: #fff; transform: rotate(-8deg) translateY(-.04em); text-shadow: 0 .02em .05em rgba(150, 30, 80, .25); letter-spacing: -.01em; }
.logo .sub { margin-top: .12em; font: 600 .095em/1 var(--sans); letter-spacing: .55em; margin-right: -.55em; color: var(--rosa2); text-transform: uppercase; }
.marca { font-family: var(--display); font-weight: 600; letter-spacing: 0; line-height: 1.05; }

.titulo { font: 600 12px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--rosa2); }
.mut { color: var(--mut); }

/* separador: línea con un brillito */
.alambre {
  height: 14px; width: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M7 0c.6 4 3 6.4 7 7-4 .6-6.4 3-7 7-.6-4-3-6.4-7-7 4-.6 6.4-3 7-7Z' fill='%23ec7fa9'/%3E%3C/svg%3E") center no-repeat,
    linear-gradient(90deg, transparent, var(--linea2) 25%, var(--linea2) calc(50% - 16px), transparent calc(50% - 16px), transparent calc(50% + 16px), var(--linea2) calc(50% + 16px), var(--linea2) 75%, transparent) center / 100% 1px no-repeat;
}
.avatar { border-radius: 50%; object-fit: cover; }

/* botones */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 15px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--linea2); text-decoration: none; color: var(--tx);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn.rosa { background: var(--rosa); border-color: var(--rosa); color: #fff; box-shadow: 0 12px 26px -12px rgba(212, 87, 138, .8); }
.btn.plata { background: var(--tx); border-color: var(--tx); color: #fff; }
.btn.wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn.ancho { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.brilla::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: destello 1100ms var(--ease-out) 900ms 1 both;
}
@keyframes destello { to { transform: translateX(120%); } }
@media (hover: hover) and (pointer: fine) { .btn:hover { border-color: var(--rosa); } }
.ico { width: 20px; height: 20px; flex: none; }

.precio { font-family: var(--sans); font-weight: 700; color: var(--tx); white-space: nowrap; font-variant-numeric: tabular-nums; }
.precio.consultar { font-weight: 600; color: var(--rosa2); font-size: .92em; }
.etq { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px 4px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--tx); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .2); }
.etq.agotado { color: var(--mut); }
.etq.nuevo { background: var(--mantequilla); color: #5a4300; }

/* foto del artículo: esquinas suaves, aparece en fundido cuando carga */
.arco { position: relative; }
.arco .marco { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; background: linear-gradient(110deg, #f6e9ec 30%, #fbf2f4 50%, #f6e9ec 70%) 0 0 / 220% 100%; animation: sk 1.3s linear infinite; box-shadow: 0 14px 30px -18px rgba(120, 40, 70, .45); }
.arco img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 450ms ease, transform 900ms var(--ease-out); outline: 1px solid rgba(0, 0, 0, .06); outline-offset: -1px; }
.arco img.ok { opacity: 1; transform: none; }
.arco .marco:has(img.ok) { animation: none; }
@keyframes sk { to { background-position: -220% 0; } }

/* sticker de talla pegado en la foto */
.sticker {
  position: absolute; right: 8px; bottom: 9px; z-index: 2;
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: var(--rosa); color: #fff; font: 700 11.5px/1 var(--sans); letter-spacing: .03em; white-space: nowrap;
  box-shadow: 0 0 0 2.5px #fff, 0 6px 14px -4px rgba(150, 40, 80, .5);
  transform: rotate(-8deg);
}
.sticker.chico { min-width: 26px; height: 26px; font-size: 10px; padding: 0 6px; right: 6px; bottom: 7px; }

/* hoja (sheet) que sube desde abajo; se arrastra hacia abajo para cerrar */
.velo { position: fixed; inset: 0; background: rgba(42, 27, 33, .38); opacity: 0; pointer-events: none; transition: opacity 300ms 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(--bg); border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(60, 20, 40, .2);
  transform: translateY(105%); transition: transform 420ms var(--ease-drawer);
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  overscroll-behavior: contain; visibility: hidden;
}
.hoja.on { transform: none; visibility: visible; }
.hoja.arrastrando { transition: none; }
.hoja .asa { width: 44px; height: 5px; border-radius: 9px; background: var(--linea2); margin: 0 auto 12px; touch-action: none; }
.hoja .cerrar { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .2); display: grid; place-items: center; z-index: 3; transition: transform 160ms var(--ease-out); }
.hoja .cerrar:active { transform: scale(.92); }
@media (min-width: 700px) {
  .hoja { left: 50%; right: auto; top: 50%; bottom: auto; width: 560px; max-height: 88vh; border-radius: 24px;
    transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform 260ms var(--ease-out), opacity 200ms ease; }
  .hoja.on { transform: translate(-50%, -50%); opacity: 1; }
  .hoja .asa { display: none; }
}

.aviso-toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -24px) scale(.96);
  background: var(--tx); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--sombra);
  opacity: 0; transition: opacity 200ms ease, transform 320ms var(--ease-out); z-index: 60; pointer-events: none; max-width: 90vw; text-align: center;
}
.aviso-toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

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

/* aparición escalonada al entrar en pantalla */
.revela { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.revela.visto { opacity: 1; transform: none; }

/* títulos de sección */
.sec-tit { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.sec-tit::before, .sec-tit::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--linea2)); }
.sec-tit::after { background: linear-gradient(270deg, transparent, var(--linea2)); }

/* acordeón con altura animada */
.acc { border-bottom: 1px solid var(--linea); }
.acc button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 4px; text-align: left; font: 600 18px var(--display); }
.acc button i { width: 26px; height: 26px; border-radius: 50%; background: var(--rosa-suave); position: relative; flex: none; transition: transform 300ms var(--ease-out), background-color 200ms; }
.acc button i::before, .acc button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--rosa2); transform: translate(-50%, -50%); }
.acc button i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[data-on] button i { transform: rotate(45deg); background: var(--rosa); }
.acc[data-on] button i::before, .acc[data-on] button i::after { background: #fff; }
.acc .cuerpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.acc[data-on] .cuerpo { grid-template-rows: 1fr; }
.acc .cuerpo > div { overflow: hidden; }
.acc p { margin: 0; padding: 0 4px 16px; color: #5d4a52; }

@media (prefers-reduced-motion: reduce) {
  .hoja, .velo, .btn, .aviso-toast, .arco img { transition: none; }
  .arco img { transform: none; }
  .btn.brilla::after, .arco .marco { animation: none; }
  .revela { transform: none; transition: opacity 300ms ease; }
}
