@font-face { font-family: 'Manrope'; src: url('/fuente/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fuente/fraunces.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
:root { --vino: #26182c; --fucsia: #b8285e; --rosa: #f3e4ea; --crema: #fff8f4; --linea: #ecdcd1; --suave: #6a5862; --verde: #1a7f45; --curva: cubic-bezier(.2,.8,.2,1); --resorte: cubic-bezier(.34,1.56,.64,1); }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; background: var(--crema); color: var(--vino); -webkit-font-smoothing: antialiased; padding-bottom: 100px; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--fucsia); outline-offset: 2px; border-radius: 8px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tienda-cab { background: var(--vino); color: #fff; padding: 22px 18px 0; position: sticky; top: 0; z-index: 20; }
.tienda-marca { display: flex; gap: 12px; align-items: center; max-width: 960px; margin: 0 auto; }
.tienda-logo { width: 48px; height: 48px; border-radius: 16px; background: #ffc857; color: var(--vino); display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; flex: none; }
.tienda-marca h1 { margin: 0; font-family: 'Fraunces', serif; font-size: 1.45rem; font-weight: 600; }
.tienda-marca p { margin: 0; font-size: .85rem; opacity: .78; }
.buscador { display: flex; align-items: center; gap: 8px; max-width: 960px; margin: 16px auto 0; background: #fff; color: var(--vino); border-radius: 14px; padding: 0 14px; }
.buscador svg { width: 20px; height: 20px; flex: none; color: var(--suave); }
.buscador input { border: 0; outline: 0; background: transparent; min-height: 48px; width: 100%; color: var(--vino); }
.categorias { display: flex; gap: 8px; overflow-x: auto; max-width: 960px; margin: 0 auto; padding: 14px 0; scrollbar-width: none; }
.categorias::-webkit-scrollbar { display: none; }
.categorias button { flex: none; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; min-height: 40px; padding: 6px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--resorte); }
.categorias button[aria-selected="true"] { background: #fff; color: var(--vino); transform: scale(1.04); }
.tienda { max-width: 960px; margin: 0 auto; padding: 18px; }
.productos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.producto { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 24px -20px rgba(38,24,44,.6); transition: transform .3s var(--curva), box-shadow .3s; }
.producto:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -20px rgba(38,24,44,.6); }
.producto button { all: unset; display: block; width: 100%; cursor: pointer; }
.producto button:focus-visible { outline: 3px solid var(--fucsia); outline-offset: -3px; border-radius: 20px; }
.arte { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.arte svg { width: 58%; height: 58%; filter: drop-shadow(0 10px 12px rgba(38,24,44,.18)); }
.etq { position: absolute; left: 10px; top: 10px; background: var(--vino); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.info { padding: 10px 12px 14px; }
.info b { display: block; font-size: .95rem; }
.info span { color: var(--fucsia); font-weight: 800; }
.vacio { text-align: center; color: var(--suave); padding: 40px 0; }
.js .producto { animation: entra .5s var(--curva) both; }
@keyframes entra { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.barra-carrito { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(255,248,244,.95) 30%); }
.barra-carrito button { display: flex; align-items: center; gap: 12px; width: min(560px, 100%); margin: 0 auto; min-height: 58px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--verde); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 16px 30px -16px rgba(26,127,69,.8); }
.barra-carrito b { margin-left: auto; }
.burbuja-n { min-width: 30px; height: 30px; border-radius: 999px; background: #fff; color: var(--verde); display: grid; place-items: center; font-size: .9rem; }
.burbuja-n.salta { animation: salta .5s var(--resorte); }
@keyframes salta { 40% { transform: scale(1.45); } }
.js .barra-carrito:not([hidden]) { animation: subeb .45s var(--resorte); }
@keyframes subeb { from { transform: translateY(100%); } }
.velo { position: fixed; inset: 0; z-index: 40; background: rgba(20,12,24,.5); }
.hoja-p { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); width: min(560px, 100%); margin: 0 auto; }
.js .hoja-p:not([hidden]) { animation: subeh .45s var(--curva); }
@keyframes subeh { from { transform: translateY(100%); } }
.cerrar { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--rosa); font-size: 1.5rem; cursor: pointer; color: var(--vino); }
.p-arte { height: 200px; border-radius: 20px; display: grid; place-items: center; margin: 26px 0 14px; }
.p-arte svg { height: 75%; }
.hoja-p h2 { margin: 0; font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; }
.p-precio { color: var(--fucsia); font-weight: 800; font-size: 1.2rem; margin: 2px 0 6px; }
.p-desc { color: var(--suave); margin: 0 0 14px; }
.tallas { border: 0; padding: 0; margin: 0 0 14px; } .tallas legend { font-weight: 800; margin-bottom: 8px; }
.tallas div { display: flex; gap: 8px; flex-wrap: wrap; }
.tallas label { position: relative; }
.tallas input { position: absolute; opacity: 0; }
.tallas span { display: grid; place-items: center; min-width: 48px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--linea); font-weight: 800; cursor: pointer; transition: all .2s; }
.tallas input:checked + span { background: var(--vino); color: #fff; border-color: var(--vino); }
.tallas input:focus-visible + span { outline: 3px solid var(--fucsia); outline-offset: 2px; }
.cantidad { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 800; }
.cantidad span { margin-right: auto; }
.cantidad button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linea); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--vino); }
.cantidad output { min-width: 24px; text-align: center; font-size: 1.15rem; }
.agregar { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--fucsia); color: #fff; font-weight: 800; cursor: pointer; transition: transform .2s var(--curva); }
.agregar:active { transform: scale(.97); }
.lineas { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.lineas li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--crema); }
.lineas .mini { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; } .lineas .mini svg { width: 70%; height: 70%; }
.lineas p { margin: 0; flex: 1; font-size: .92rem; } .lineas p small { display: block; color: var(--suave); }
.lineas button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; color: var(--vino); }
.total-c { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 0 0 16px; }
#form-pedido { display: grid; gap: 12px; }
#form-pedido label { display: grid; gap: 6px; font-weight: 800; font-size: .95rem; }
#form-pedido input, #form-pedido select { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--linea); padding: 0 14px; background: #fff; color: var(--vino); }
.error-c { margin: 0; color: #a3122f; font-weight: 700; }
.nota-c { margin: 0; color: var(--suave); font-size: .85rem; text-align: center; }
.sin-js { text-align: center; padding: 20px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
