/* Kiki Estampado — estilos de la tienda.
   Reproduce el diseño de la página anterior. Los colores y tipografías salen del
   panel (Diseño) y llegan como variables CSS desde store.js. */

/* ---------------------------------------------------------------- variables */
:root {
  --color-background: #000000;
  --color-foreground: #ffffff;
  --color-surface: #000000;
  --color-surface-elevated: #231f17;
  --color-border: #38342b;
  --color-muted: #d4af37;
  --color-primary: #d4af37;
  --color-accent: #d4af37;
  --color-success: #2dff6b;
  --color-danger: #ff3b30;
  --color-whatsapp: #25d366;
  --color-button-text: #000000;
  --color-brand-magenta: #ff2d95;
  --color-brand-red: #ff3b30;
  --color-brand-orange: #ff8a00;
  --color-brand-yellow: #ffd60a;
  --color-brand-green: #2dff6b;
  --color-brand-cyan: #00e5ff;
  --color-brand-blue: #2d6bff;
  --color-brand-purple: #9b30ff;
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-accent: "Archivo Black", ui-sans-serif, system-ui, sans-serif;
  --banner-hover-color: var(--color-primary);
  --banner-glow-size: 24px;
  --banner-zoom: 1.05;
}

/* ---------------------------------------------------------------- base */
*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--color-border); margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: var(--font-sans); }
html.h-full, body.min-h-full { min-height: 100%; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--color-background); color: var(--color-foreground); font-family: var(--font-sans); }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
img, svg, video { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background-color: transparent; border-radius: 0; letter-spacing: inherit; }
button, [role="button"] { cursor: pointer; }
button:disabled { cursor: default; }
ol, ul { list-style: none; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in oklab, currentColor 50%, transparent); opacity: 1; }
select { appearance: auto; }
select option { background: var(--color-background); color: var(--color-foreground); }
summary { display: list-item; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
input[type=number]::-webkit-inner-spin-button { opacity: .6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ---------------------------------------------------------------- tipografía de marca */
.type-body { font-family: var(--font-sans); font-size: .9375rem; font-weight: 400; color: var(--color-muted); }
.type-button { font-family: var(--font-sans); font-size: .875rem; font-weight: 500; color: var(--color-button-text); }
.type-heading { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--color-foreground); line-height: 1.25; }
.type-price { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--color-foreground); }
.font-accent { font-family: var(--font-accent); }
.font-display { font-family: var(--font-display); }
.bg-brand-gradient { background-image: linear-gradient(90deg, var(--color-brand-magenta), var(--color-brand-red), var(--color-brand-orange), var(--color-brand-yellow), var(--color-brand-green), var(--color-brand-cyan), var(--color-brand-blue), var(--color-brand-purple)); }
.brand-logo.rainbow {
  background-image: linear-gradient(90deg, var(--color-brand-magenta), var(--color-brand-red), var(--color-brand-orange), var(--color-brand-yellow), var(--color-brand-green), var(--color-brand-cyan), var(--color-brand-blue), var(--color-brand-purple), var(--color-brand-magenta));
  background-size: 200% auto; animation: logo-sheen 3s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-logo.plain { color: var(--color-primary); }
.brand-logo img { max-height: 2.5rem; width: auto; }
@keyframes logo-sheen { to { background-position: 200%; } }

/* ---------------------------------------------------------------- fondo animado */
.bg-fx { --bg-fx-c1: var(--color-primary); --bg-fx-c2: #004cff; --bg-fx-opacity: .5; --bg-fx-duration: 18s; --bg-fx-scale: 1.6;
  z-index: -30; pointer-events: none; opacity: var(--bg-fx-opacity); position: fixed; inset: 0; overflow: hidden; }
.bg-fx::before, .bg-fx::after { content: ""; will-change: transform; position: absolute; inset: -30%; }
.bg-fx[data-bg-fx=seda]::before { background: conic-gradient(from 0deg at 35% 40%, transparent 0%, var(--bg-fx-c1) 18%, transparent 42%, var(--bg-fx-c2) 62%, transparent 85%); filter: blur(90px); animation: bg-fx-turn var(--bg-fx-duration) linear infinite; }
.bg-fx[data-bg-fx=seda]::after { background: conic-gradient(from 210deg at 68% 62%, transparent 0%, var(--bg-fx-c2) 22%, transparent 55%); filter: blur(120px); opacity: .7; animation: bg-fx-turn calc(var(--bg-fx-duration) * 1.7) linear infinite reverse; }
.bg-fx[data-bg-fx=vitrina]::before { background: radial-gradient(130% 65% at 50% -15%, var(--bg-fx-c1) 0%, transparent 68%); animation: bg-fx-breathe var(--bg-fx-duration) ease-in-out infinite; inset: 0; }
.bg-fx[data-bg-fx=vitrina]::after { background: radial-gradient(90% 45% at 50% 115%, var(--bg-fx-c2) 0%, transparent 70%); opacity: .55; animation: bg-fx-breathe calc(var(--bg-fx-duration) * 1.4) ease-in-out infinite reverse; inset: 0; }
.bg-fx[data-bg-fx=bruma]::before { background: linear-gradient(100deg, transparent 15%, var(--bg-fx-c1) 45%, transparent 72%); filter: blur(70px); animation: bg-fx-sweep var(--bg-fx-duration) ease-in-out infinite alternate; }
.bg-fx[data-bg-fx=bruma]::after { background: linear-gradient(80deg, transparent 30%, var(--bg-fx-c2) 60%, transparent 88%); filter: blur(100px); opacity: .6; animation: bg-fx-sweep calc(var(--bg-fx-duration) * 1.5) ease-in-out infinite alternate-reverse; }
.bg-fx[data-bg-fx=serigrafia]::before { background: radial-gradient(38% 38% at 38% 42%, var(--bg-fx-c1) 0%, transparent 68%); filter: blur(50px); mix-blend-mode: screen; animation: bg-fx-register var(--bg-fx-duration) ease-in-out infinite alternate; }
.bg-fx[data-bg-fx=serigrafia]::after { background: radial-gradient(42% 42% at 62% 58%, var(--bg-fx-c2) 0%, transparent 68%); filter: blur(50px); mix-blend-mode: screen; animation: bg-fx-register calc(var(--bg-fx-duration) * 1.25) ease-in-out infinite alternate-reverse; }
.bg-fx[data-bg-fx=destello]::before { background-image: radial-gradient(circle calc(2px * var(--bg-fx-scale)) at 18% 26%, var(--bg-fx-c1) 0%, transparent 100%), radial-gradient(circle calc(3px * var(--bg-fx-scale)) at 74% 18%, var(--bg-fx-c2) 0%, transparent 100%), radial-gradient(circle calc(2px * var(--bg-fx-scale)) at 62% 71%, var(--bg-fx-c1) 0%, transparent 100%), radial-gradient(circle calc(2px * var(--bg-fx-scale)) at 33% 82%, var(--bg-fx-c2) 0%, transparent 100%), radial-gradient(circle calc(3px * var(--bg-fx-scale)) at 88% 58%, var(--bg-fx-c1) 0%, transparent 100%); filter: blur(1px); animation: bg-fx-breathe calc(var(--bg-fx-duration) / 4) ease-in-out infinite; inset: 0; }
.bg-fx[data-bg-fx=destello]::after { background: radial-gradient(80% 60% at 50% 10%, var(--bg-fx-c2) 0%, transparent 72%); opacity: .4; animation: bg-fx-breathe var(--bg-fx-duration) ease-in-out infinite reverse; inset: 0; }
@keyframes bg-fx-turn { to { transform: rotate(360deg); } }
@keyframes bg-fx-breathe { 0%, to { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes bg-fx-sweep { 0% { transform: translate(-14%, -4%); } to { transform: translate(14%, 4%); } }
@keyframes bg-fx-register { 0% { transform: translate(-3%, -2%) scale(1); } to { transform: translate(3%, 2%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .bg-fx::before, .bg-fx::after, .brand-logo.rainbow { animation: none !important; } }

/* ---------------------------------------------------------------- utilidades (subconjunto de Tailwind) */
.block { display: block; } .flex { display: flex; } .grid { display: grid; } .hidden { display: none; } .inline { display: inline; } .inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; } .flex-row { flex-direction: row; } .flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; } .shrink-0 { flex-shrink: 0; } .basis-24 { flex-basis: 6rem; } .basis-32 { flex-basis: 8rem; }
.items-center { align-items: center; } .items-end { align-items: flex-end; } .items-start { align-items: flex-start; } .items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.self-start { align-self: flex-start; } .self-center { align-self: center; }
.gap-1 { gap: .25rem; } .gap-7 { gap: 1.75rem; } .gap-1\.5 { gap: .375rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; } .gap-14 { gap: 3.5rem; }
.gap-x-2 { column-gap: .5rem; } .gap-y-0\.5 { row-gap: .125rem; } .gap-x-5 { column-gap: 1.25rem; } .gap-y-2 { row-gap: .5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); } .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }
.divide-y > * + * { border-top-width: 1px; } .divide-border > * + * { border-color: var(--color-border); }
.relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; } .sticky { position: sticky; }
.inset-0 { inset: 0; } .inset-x-0 { left: 0; right: 0; } .top-0 { top: 0; } .bottom-0 { bottom: 0; } .right-1 { right: .25rem; } .top-1\/2 { top: 50%; } .bottom-6 { bottom: 1.5rem; } .right-6 { right: 1.5rem; } .right-0 { right: 0; } .left-0 { left: 0; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-40 { z-index: 40; } .z-50 { z-index: 50; } .z-60 { z-index: 60; }
.overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; }
.mx-auto { margin-left: auto; margin-right: auto; } .mt-auto { margin-top: auto; } .ml-3 { margin-left: .75rem; } .ml-auto { margin-left: auto; }
.mt-0\.5 { margin-top: .125rem; } .mt-1 { margin-top: .25rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; }
.px-1\.5 { padding-left: .375rem; padding-right: .375rem; } .px-2 { padding-left: .5rem; padding-right: .5rem; } .px-3 { padding-left: .75rem; padding-right: .75rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; } .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; } .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; } .py-2 { padding-top: .5rem; padding-bottom: .5rem; } .py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; } .py-3 { padding-top: .75rem; padding-bottom: .75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; } .py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; } .py-12 { padding-top: 3rem; padding-bottom: 3rem; } .py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-3 { padding-top: .75rem; } .pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; } .pb-1 { padding-bottom: .25rem; } .pb-2 { padding-bottom: .5rem; } .pb-3 { padding-bottom: .75rem; } .pl-2 { padding-left: .5rem; } .pl-4 { padding-left: 1rem; } .pr-10 { padding-right: 2.5rem; }
.w-full { width: 100%; } .w-fit { width: fit-content; } .w-7 { width: 1.75rem; } .w-9 { width: 2.25rem; } .w-10 { width: 2.5rem; } .w-14 { width: 3.5rem; } .w-20 { width: 5rem; } .w-32 { width: 8rem; } .w-3\.5 { width: .875rem; } .w-5 { width: 1.25rem; }
.h-7 { height: 1.75rem; } .h-9 { height: 2.25rem; } .h-10 { height: 2.5rem; } .h-14 { height: 3.5rem; } .h-20 { height: 5rem; } .h-full { height: 100%; } .h-3\.5 { height: .875rem; } .h-5 { height: 1.25rem; } .h-fit { height: fit-content; }
.min-h-screen { min-height: 100vh; } .min-w-0 { min-width: 0; }
.max-w-xs { max-width: 20rem; } .max-w-sm { max-width: 24rem; } .max-w-md { max-width: 28rem; } .max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; } .max-w-5xl { max-width: 64rem; } .max-w-6xl { max-width: 72rem; }
.aspect-square { aspect-ratio: 1 / 1; } .aspect-\[4\/5\] { aspect-ratio: 4 / 5; } .aspect-\[4\/3\] { aspect-ratio: 4 / 3; } .aspect-\[16\/9\] { aspect-ratio: 16 / 9; } .aspect-\[32\/9\] { aspect-ratio: 32 / 9; } .aspect-\[21\/9\] { aspect-ratio: 21 / 9; }
.object-cover { object-fit: cover; } .object-contain { object-fit: contain; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.rounded { border-radius: .25rem; } .rounded-sm { border-radius: .125rem; } .rounded-md { border-radius: .375rem; } .rounded-lg { border-radius: .5rem; } .rounded-xl { border-radius: .75rem; } .rounded-full { border-radius: 9999px; }
.border { border-width: 1px; } .border-2 { border-width: 2px; } .border-t { border-top-width: 1px; } .border-b { border-bottom-width: 1px; } .border-b-2 { border-bottom-width: 2px; }
.border-border { border-color: var(--color-border); } .border-primary { border-color: var(--color-primary); } .border-transparent { border-color: transparent; }
.bg-background { background-color: var(--color-background); } .bg-background\/95 { background-color: color-mix(in oklab, var(--color-background) 95%, transparent); }
.bg-surface { background-color: var(--color-surface); } .bg-surface-elevated { background-color: var(--color-surface-elevated); }
.bg-primary { background-color: var(--color-primary); } .bg-primary\/10 { background-color: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.bg-black { background-color: #000; } .bg-whatsapp { background-color: var(--color-whatsapp); }
.bg-gradient-to-t-black { background-image: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.text-xs { font-size: .75rem; line-height: 1rem; } .text-sm { font-size: .875rem; line-height: 1.25rem; } .text-base { font-size: 1rem; line-height: 1.5rem; } .text-lg { font-size: 1.125rem; line-height: 1.75rem; } .text-xl { font-size: 1.25rem; line-height: 1.75rem; } .text-2xl { font-size: 1.5rem; line-height: 2rem; } .text-3xl { font-size: 1.875rem; line-height: 2.25rem; } .text-\[11px\] { font-size: 11px; }
.font-normal { font-weight: 400; } .font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; } .tracking-tight { letter-spacing: -.025em; } .tracking-wide { letter-spacing: .025em; } .tracking-widest { letter-spacing: .1em; }
.leading-tight { line-height: 1.25; } .leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; } .text-right { text-align: right; }
.whitespace-nowrap { white-space: nowrap; } .whitespace-pre-line { white-space: pre-line; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-foreground { color: var(--color-foreground); } .text-muted { color: var(--color-muted); } .text-primary { color: var(--color-primary); } .text-accent { color: var(--color-accent); }
.text-white { color: #fff; } .text-success { color: var(--color-success); } .text-danger { color: var(--color-danger); } .text-background { color: var(--color-background); } .text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.underline { text-decoration-line: underline; } .underline-offset-2 { text-underline-offset: 2px; } .line-through { text-decoration-line: line-through; }
.outline-none { outline: none; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .3), 0 4px 6px -4px rgba(0, 0, 0, .3); }
.transition-colors { transition: color .15s, background-color .15s, border-color .15s; } .transition-opacity { transition: opacity .15s; } .transition-transform { transition: transform .15s; } .transition-all { transition: all .15s; }
.duration-300 { transition-duration: .3s; }
.cursor-pointer { cursor: pointer; } .cursor-zoom-in { cursor: zoom-in; }
.list-none { list-style: none; }
.opacity-50 { opacity: .5; }

/* hover / focus */
.hover\:text-primary:hover { color: var(--color-primary); } .hover\:text-accent:hover { color: var(--color-accent); }
.hover\:border-primary:hover { border-color: var(--color-primary); } .hover\:bg-surface-elevated:hover { background-color: var(--color-surface-elevated); }
.hover\:opacity-90:hover { opacity: .9; } .hover\:opacity-80:hover { opacity: .8; } .hover\:underline:hover { text-decoration-line: underline; }
.hover\:glow:hover { box-shadow: 0 0 15px color-mix(in oklab, var(--color-primary) 50%, transparent); }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.focus\:border-primary:focus { border-color: var(--color-primary); }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--color-primary); }
.focus-within\:border-primary:focus-within { border-color: var(--color-primary); }
.disabled\:opacity-50:disabled { opacity: .5; }
details[open] .group-open\:rotate-180 { transform: rotate(180deg); } details[open] .group-open\:rotate-45 { transform: rotate(45deg); }
.marker-none::marker { content: none; }

/* ---------------------------------------------------------------- componentes */
.field { width: 100%; border-radius: .375rem; border: 1px solid var(--color-border); background: var(--color-background); padding: .75rem 1rem; outline: none; }
.field:focus { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.field-sm { border-radius: .375rem; border: 1px solid var(--color-border); background: var(--color-surface); padding: .5rem .75rem; outline: none; }
.field-sm:focus { border-color: var(--color-primary); }
.banner-card { transition: border-color .3s, box-shadow .3s; }
.group:hover .banner-card, .group:focus-visible .banner-card { border-color: var(--banner-hover-color); box-shadow: 0 0 var(--banner-glow-size) -8px var(--banner-hover-color); }
.banner-card img { transition: transform .3s ease-out; }
.group:hover .banner-card img { transform: scale(var(--banner-zoom)); }
@media (prefers-reduced-motion: reduce) { .group:hover .banner-card img, .group:hover .group-hover\:scale-105 { transform: none; } }
.prose-legal p { white-space: pre-line; }
.prose-legal a, .md a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.md p + p { margin-top: .75rem; }
.md ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
.md h3 { font-family: var(--font-display); font-weight: 600; color: var(--color-foreground); margin: 1rem 0 .5rem; }
.md table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .875rem; }
.md th, .md td { border: 1px solid var(--color-border); padding: .5rem .75rem; text-align: left; }
.md th { color: var(--color-primary); }
.radio { accent-color: var(--color-primary); }
.check { accent-color: var(--color-primary); }
.price-old { color: var(--color-muted); text-decoration: line-through; font-size: .875rem; }
.price-off { color: var(--color-danger); font-size: .75rem; font-weight: 700; }
.badge-new { position: absolute; top: .5rem; left: .5rem; z-index: 1; border-radius: 9999px; background: var(--color-primary); color: var(--color-button-text); font-size: .6875rem; font-weight: 700; padding: .125rem .5rem; }
.badge-out { position: absolute; top: .5rem; right: .5rem; z-index: 1; border-radius: 9999px; background: rgba(0, 0, 0, .75); border: 1px solid var(--color-border); color: var(--color-foreground); font-size: .6875rem; padding: .125rem .5rem; }
.cart-count { position: absolute; top: -.25rem; right: -.25rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 9999px; background: var(--color-primary); color: var(--color-button-text); font-size: .625rem; font-weight: 700; line-height: 1.05rem; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 6rem; z-index: 70; transform: translateX(-50%) translateY(1rem); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  background: var(--color-surface-elevated); border: 1px solid var(--color-primary); color: var(--color-foreground); border-radius: 9999px; padding: .6rem 1.1rem; font-size: .875rem; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mobile-menu { position: fixed; inset: 0; z-index: 55; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, .6); }
.mobile-menu > div { width: min(20rem, 86vw); height: 100%; overflow: auto; background: var(--color-background); border-left: 1px solid var(--color-border); padding: 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu a.item { padding: .75rem .25rem; border-bottom: 1px solid var(--color-border); text-transform: uppercase; letter-spacing: .025em; font-size: .875rem; }
.lightbox { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.spinner { width: 1.25rem; height: 1.25rem; border-radius: 9999px; border: 2px solid var(--color-border); border-top-color: var(--color-primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { border-radius: .5rem; border: 1px solid var(--color-primary); background: color-mix(in oklab, var(--color-primary) 10%, transparent); padding: 1rem; font-size: .875rem; }
.notice-error { border-color: var(--color-danger); background: color-mix(in oklab, var(--color-danger) 12%, transparent); }
.thumbs button { width: 4rem; height: 4rem; border-radius: .375rem; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.thumbs button.on { border-color: var(--color-primary); }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 40rem) {
  .sm\:flex { display: flex; } .sm\:hidden { display: none; } .sm\:inline { display: inline; } .sm\:block { display: block; }
  .sm\:flex-row { flex-direction: row; } .sm\:flex-row-reverse { flex-direction: row-reverse; } .sm\:items-center { align-items: center; } .sm\:justify-between { justify-content: space-between; }
  .sm\:max-w-xs { max-width: 20rem; } .sm\:w-1\/2 { width: 50%; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-footer { grid-template-columns: 1.6fr 1fr 1fr; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:gap-2 { gap: .5rem; } .sm\:gap-12 { gap: 3rem; }
  .sm\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; } .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; } .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; } .sm\:text-base { font-size: 1rem; line-height: 1.5rem; } .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:gap-7 { gap: 1.75rem; }
}
@media (min-width: 64rem) {
  .lg\:inline { display: inline; } .lg\:flex-row { flex-direction: row; } .lg\:w-64 { width: 16rem; } .lg\:justify-center { justify-content: center; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg\:grid-cols-checkout { grid-template-columns: 1.5fr 1fr; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:divide-x > * + * { border-left-width: 1px; border-top-width: 0; }
}
@media (min-width: 80rem) { .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- variantes (talle / color) */
.ring-2 { box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-primary); }
.opacity-40 { opacity: .4; }
.swatch { cursor: pointer; transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.grid-cols-\[auto_1fr\] { grid-template-columns: auto 1fr; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-1 { row-gap: .25rem; }

/* ---------------------------------------------------------------- tipografía por tipo de texto (Diseño) */
.type-heading, .font-display.text-3xl, .font-display.text-2xl, h1.font-display, h2.font-display {
  font-family: var(--tit-font, var(--font-display)); color: var(--tit-color, inherit); font-style: var(--tit-style, normal);
}
.type-heading { font-size: calc(1.75rem * var(--tit-scale, 1)); font-weight: var(--tit-weight, 600); }
.type-price { font-family: var(--pre-font, var(--font-display)); font-size: calc(1.125rem * var(--pre-scale, 1)); color: var(--pre-color, var(--color-foreground)); font-weight: var(--pre-weight, 700); font-style: var(--pre-style, normal); }
.type-body { font-family: var(--des-font, var(--font-sans)); font-size: calc(.9375rem * var(--des-scale, 1)); color: var(--des-color, var(--color-muted)); font-style: var(--des-style, normal); }
.type-button { font-family: var(--bot-font, var(--font-sans)); font-size: calc(.875rem * var(--bot-scale, 1)); font-weight: var(--bot-weight, 500); font-style: var(--bot-style, normal); }
.brand-logo.rainbow { animation-duration: var(--logo-speed, 3s) !important; }
:root[style*="--logo-gradient"] .brand-logo.rainbow { background-image: var(--logo-gradient) !important; background-size: 200% auto; }

/* ---------------------------------------------------------------- imagen de fondo y fondos nuevos */
.bg-image { position: fixed; inset: -20px; z-index: -2; background-size: cover; background-position: center; opacity: .35; pointer-events: none; }
.bg-fx[data-bg-fx=trama]::before { inset: 0; background-image: linear-gradient(var(--bg-fx-c1) 1px, transparent 1px), linear-gradient(90deg, var(--bg-fx-c1) 1px, transparent 1px);
  background-size: calc(22px * var(--bg-fx-scale)) calc(22px * var(--bg-fx-scale)); opacity: .35; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  animation: bg-fx-breathe var(--bg-fx-duration) ease-in-out infinite; }
.bg-fx[data-bg-fx=trama]::after { inset: 0; background: radial-gradient(60% 50% at 70% 70%, var(--bg-fx-c2) 0%, transparent 70%); opacity: .35; }
.bg-fx[data-bg-fx=puntada]::before { inset: -50%; background-image: repeating-linear-gradient(45deg, var(--bg-fx-c1) 0 calc(6px * var(--bg-fx-scale)), transparent calc(6px * var(--bg-fx-scale)) calc(14px * var(--bg-fx-scale)));
  opacity: .18; -webkit-mask-image: repeating-linear-gradient(-45deg, #000 0 2px, transparent 2px 22px); mask-image: repeating-linear-gradient(-45deg, #000 0 2px, transparent 2px 22px); animation: bg-fx-stitch var(--bg-fx-duration) linear infinite; }
.bg-fx[data-bg-fx=puntada]::after { inset: 0; background: radial-gradient(70% 50% at 30% 20%, var(--bg-fx-c2) 0%, transparent 70%); opacity: .3; }
.bg-fx[data-bg-fx=grano]::before { inset: 0; background: radial-gradient(90% 70% at 30% 20%, var(--bg-fx-c1) 0%, transparent 70%), radial-gradient(80% 60% at 80% 90%, var(--bg-fx-c2) 0%, transparent 70%); opacity: .5; }
.bg-fx[data-bg-fx=grano]::after { inset: -100%; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: bg-fx-grain 1s steps(6) infinite; }
@keyframes bg-fx-stitch { to { transform: translate(60px, 60px); } }
@keyframes bg-fx-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-5%, 3%); } 66% { transform: translate(4%, -4%); } 100% { transform: translate(0, 0); } }

/* ---------------------------------------------------------------- opiniones */
.stars { color: var(--color-primary); letter-spacing: 2px; }
.star-btn { color: var(--color-primary); background: none; cursor: pointer; line-height: 1; }

/* ---------------------------------------------------------------- Mi cuenta */
.cuenta-menu { background: var(--cuenta-bg, var(--color-surface)); color: var(--cuenta-fg, var(--color-foreground)); font-family: var(--cuenta-font, var(--font-sans)); height: fit-content; }
.cuenta-menu a, .cuenta-menu button { color: inherit; background: none; cursor: pointer; }
.cuenta-menu a:hover, .cuenta-menu button:hover { color: var(--cuenta-on, var(--color-primary)); }
.cuenta-menu .on { color: var(--cuenta-on, var(--color-primary)); background: color-mix(in srgb, var(--cuenta-on, var(--color-primary)) 12%, transparent); }
@media (min-width: 1024px) { .lg\:grid-cols-account { grid-template-columns: 240px 1fr; } }
.border-danger { border-color: var(--color-danger); }
.hover\:bg-danger:hover { background: var(--color-danger); }
.notice-success { border: 1px solid var(--color-success); color: var(--color-success); padding: .75rem 1rem; border-radius: .375rem; }

/* ---------------------------------------------------------------- asistente de compras */
.ai-btn { position: fixed; right: 18px; bottom: calc(18px + var(--cookie-h, 0px)); z-index: 45; width: 54px; height: 54px; border-radius: 50%; background: var(--color-primary); color: var(--color-button-text);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.45); cursor: pointer; transition: transform .15s; }
.ai-btn:hover { transform: scale(1.06); }
.ai-panel { position: fixed; right: 18px; bottom: calc(84px + var(--cookie-h, 0px)); z-index: 46; width: min(380px, calc(100vw - 36px)); height: min(520px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.55); }
.ai-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--color-surface-elevated); font-family: var(--font-display); font-weight: 700; }
.ai-head button { background: none; color: inherit; cursor: pointer; }
.ai-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: .875rem; }
.ai-msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; line-height: 1.45; word-wrap: break-word; }
.ai-msg.bot { align-self: flex-start; background: var(--color-surface-elevated); }
.ai-msg.yo { align-self: flex-end; background: var(--color-primary); color: var(--color-button-text); }
.ai-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--color-border); }
.ai-form input { flex: 1; min-width: 0; background: var(--color-background); color: var(--color-foreground); border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 14px; font-size: .875rem; outline: none; }
.ai-form button { background: var(--color-primary); color: var(--color-button-text); border-radius: 999px; padding: 8px 14px; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.cuenta-menu button { text-align: left; font-size: inherit; }
