/* ==========================================================================
   LUNARCREARTE — estilos
   Paleta oficial (60 % blanco roto · 30 % negro/gris · 10 % coral)
   Cambia los colores SOLO en :root.
   ========================================================================== */
:root {
  --bg: #FAFAFA;          /* blanco roto  */
  --ink: #111111;         /* negro profundo */
  --stone: #7D8597;       /* gris piedra: bordes, iconos, estados desactivados */
  --stone-ink: #596072;   /* gris piedra oscurecido: texto secundario pequeño (contraste AA) */
  --accent: #FF6B6B;      /* coral vivo: único acento */
  --accent-ink: #111111;  /* texto sobre coral (el blanco no llega a contraste AA) */
  --panel: #EFEFF0;       /* fondo neutro de mockups */
  --line: rgba(17, 17, 17, .14);

  --f-head: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1360px;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.lock { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.02; letter-spacing: -.03em; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--accent); }
::selection { background: var(--accent); color: var(--ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-s); transition: top .2s; }
.skip:focus { top: 1rem; }
.muted { color: var(--stone-ink); } .small { font-size: .875rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 9vw, 8rem); }
.section-tight { padding-block: 0 clamp(3rem, 8vw, 6rem); }
.section > .h2, .section-tight > .h2 { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: .95; }
.h2 { font-size: clamp(2rem, 5.2vw, 4rem); }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34rem; color: var(--stone-ink); }
.page-head { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem); }
.page-head .lead { margin-top: 1.25rem; }
.page-head .btn { margin-top: .5rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { color: var(--stone-ink); }
.link-btn { background: none; border: 0; padding: .4rem 0; text-decoration: underline; text-underline-offset: .2em; color: var(--stone-ink); font-size: .9rem; }
.link-btn:hover { color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: var(--stone-ink); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.5rem; border: 1.5px solid transparent; border-radius: var(--r-s); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-decoration: none; text-align: center; transition: transform .18s var(--ease), background-color .18s, color .18s, border-color .18s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { background: transparent; color: var(--stone); border-color: var(--line); cursor: not-allowed; transform: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .btn-accent:hover { background: var(--ink); color: var(--accent); } }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--accent); color: var(--accent-ink); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-inv { background: transparent; border-color: currentColor; color: inherit; }
.btn-line-inv:hover { background: #fff; color: var(--ink); }
.btn-danger { color: #a12b2b; border-color: #a12b2b; } .btn-danger:hover { background: #a12b2b; color: #fff; }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .8rem; }
.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 1.1rem; }
.field label, .lbl, .opt legend { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; padding: 0; }
.input { width: 100%; min-height: 48px; padding: .7rem .9rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-s); transition: border-color .15s; }
.input:hover { border-color: var(--stone); }
.input:focus-visible { border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: #a12b2b; }
.input-xl { font-size: 1.4rem; min-height: 64px; }
textarea.input { resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } @media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.2rem; font-size: .9rem; }
.check input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-error, .status.off { color: #a12b2b; } .status.ok { color: #1f6b3a; } .status { font-weight: 500; }
.opt { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.opt-values { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.chip small { color: var(--stone-ink); margin-left: .35em; }
.chip:hover { border-color: var(--ink); }
input:checked + .chip, .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
input:checked + .chip small, .chip.is-on small { color: #d5d8df; }
input:focus-visible + .chip, input:focus-visible + .swatch { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent); }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--line); cursor: pointer; padding: 0; display: inline-block; transition: transform .15s var(--ease); flex: none; }
.swatch:hover { transform: scale(1.08); }
input:checked + .swatch, .swatch.is-on { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch-custom { background: conic-gradient(#FF6B6B, #111, #7D8597, #FAFAFA, #FF6B6B); overflow: hidden; }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-s); background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.25rem; } .qty button:hover { background: var(--panel); }
.qty output { min-width: 2.5ch; text-align: center; font-weight: 600; }
.notice { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-s); font-size: .9rem; background: #fff; }
.notice > span:first-child { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.notice-warn { border-color: var(--accent); } .notice-warn > span:first-child { background: var(--accent); color: var(--ink); }
mark.ph { background: #ffe1e1; color: var(--ink); padding: 0 .25em; border-radius: 3px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); min-height: var(--header-h); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--f-head); font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; line-height: 1; white-space: nowrap; }
.wordmark b { font-weight: 800; } .wordmark span { font-weight: 300; }
.wordmark .dot { width: .3em; height: .3em; margin-left: .12em; border-radius: 50%; background: var(--accent); }
.wordmark-lg { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.nav { display: none; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--stone); } .nav a[aria-current="page"] { border-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: .1rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; border-radius: 50%; text-decoration: none; transition: background-color .15s; }
.icon-btn:hover { background: var(--panel); }
.icon-btn-light { color: #fff; } .icon-btn-light:hover { background: rgba(255, 255, 255, .14); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } 100% { transform: scale(1); } }
.hide-sm { display: none; }
.mmenu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); overflow: auto; padding: 1.5rem var(--gutter) 3rem; animation: fade .2s; }
.mmenu-in { display: flex; flex-direction: column; gap: .2rem; }
.mmenu-in a:not(.btn) { font: 800 clamp(2rem, 9vw, 3rem)/1.15 var(--f-head); letter-spacing: -.03em; text-decoration: none; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.mmenu-in a[aria-current="page"] { color: var(--stone-ink); }
.mmenu-in .btn { margin-top: 1.5rem; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } .hide-sm { display: inline-grid; } .mmenu { display: none !important; } }

/* ---------- Mockups y tarjetas ---------- */
.mock { width: 100%; height: 100%; } .mock svg { width: 100%; height: 100%; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 2vw, 1.75rem) clamp(.75rem, 2vw, 1.5rem); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1.08; background: var(--panel); border-radius: var(--r-m); overflow: hidden; padding: 4%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .mock { transition: transform .5s var(--ease); }
@media (hover: hover) { .card:hover .card-media .mock, .card:hover .card-media img { transform: scale(1.05); } }
.badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.badge { font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.badge-new { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.badge-off { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-body { display: flex; flex-direction: column; gap: .15rem; padding-top: .9rem; flex: 1; }
.card-cat { font-size: .82rem; color: var(--stone-ink); margin: 0; }
.card-title { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.15; margin: 0; } .card-title a { text-decoration: none; } .card-title a:hover { text-decoration: underline; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 0; }
.price { font-weight: 700; font-family: var(--f-head); font-size: 1.1rem; }
.stock { font-size: .8rem; color: var(--stone-ink); } .stock::before { content: ''; display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .4em; background: var(--stone); }
.stock-disponible::before { background: #2f8f57; } .stock-agotado { text-decoration: line-through; }
.card-variants { font-size: .82rem; color: var(--stone-ink); margin: 0; }
.card-actions { display: grid; gap: .5rem; margin-top: auto; padding-top: .9rem; }
@media (min-width: 520px) { .card-actions { grid-template-columns: 1fr 1fr; } }
.empty { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-m); }
.empty-lg { padding: clamp(3rem, 8vw, 6rem) 1rem; } .empty-lg h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .75rem; } .empty .btn-row { justify-content: center; }

/* ---------- Inicio ---------- */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(4.6rem, 15vw, 11.5rem); line-height: .82; letter-spacing: -.055em; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero .lead { margin-bottom: 2rem; }
.hero-stage { position: relative; padding-bottom: 30%; }
.hero-tee { background: var(--panel); border-radius: var(--r-l); padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) 1.25rem; }
.hero-tee #heroTee { aspect-ratio: 400 / 400; max-height: 460px; margin-inline: auto; }
.hero-live label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.hero-live-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; } .hero-live-row .input { flex: 1 1 12rem; }
.hero-live .swatch { width: 40px; height: 40px; }
.hero-mini { position: absolute; bottom: 0; width: 32%; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 6%; box-shadow: 0 18px 40px -22px rgba(17, 17, 17, .35); }
.hero-mug { left: 0; } .hero-cap { left: 35%; background: var(--panel); }

.hero h1, .hero .lead, .hero .btn-row { animation: rise .8s var(--ease) both; } .hero .lead { animation-delay: .1s; } .hero .btn-row { animation-delay: .18s; }
.hero-stage { animation: fade 1s .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: block; text-decoration: none; border-radius: var(--r-m); overflow: hidden; background: var(--panel); aspect-ratio: 1 / 1.05; }
.tile-media { position: absolute; inset: 8% 8% 22%; transition: transform .6s var(--ease); }
.tile-name { position: absolute; left: 1rem; bottom: 1rem; font: 800 clamp(1.15rem, 2.4vw, 1.6rem)/1 var(--f-head); letter-spacing: -.03em; }
.tile-blurb { position: absolute; left: 1rem; right: 1rem; bottom: 2.9rem; font-size: .85rem; color: var(--stone-ink); line-height: 1.3; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.tile::after { content: '→'; position: absolute; right: 1rem; bottom: .85rem; font-size: 1.3rem; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .tile:hover .tile-media { transform: scale(1.06) translateY(-4%); }
  .tile:hover .tile-blurb, .tile:focus-visible .tile-blurb { opacity: 1; transform: none; }
  .tile:hover::after { transform: translateX(5px); color: var(--accent); }
}
@media (hover: none) { .tile-blurb { display: none; } .tile-media { inset: 8% 8% 18%; } }
.tile:focus-visible .tile-blurb { opacity: 1; transform: none; }

.band { background: var(--ink); color: #fff; }
.band-in { padding-block: clamp(3.5rem, 9vw, 7rem); }
.band .h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.how { list-style: none; margin: 0 0 clamp(2rem, 5vw, 3.5rem); padding: 0; display: grid; gap: 1.5rem; counter-reset: s; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.how li { border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 1rem; counter-increment: s; }
.how li::before { content: counter(s); display: block; font: 800 1.1rem var(--f-head); color: var(--accent); margin-bottom: .6rem; }
.how h3 { font-size: 1.25rem; margin-bottom: .4rem; letter-spacing: -.02em; } .how p { color: #c7cad3; margin: 0; }
.cta-final { text-align: center; } .cta-final .h2 { max-width: 16ch; margin: 0 auto 2rem; }

.coll-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 700px) { .coll-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1100px) { .coll-grid { grid-template-columns: repeat(3, 1fr); } }
.coll { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-l); overflow: hidden; background: var(--panel); transition: transform .35s var(--ease); }
.coll:hover { transform: translateY(-4px); }
.coll-media { aspect-ratio: 4 / 3; padding: 7%; }
.coll-text { padding: 0 1.4rem 1.5rem; } .coll-text h3 { font-size: 1.6rem; margin-bottom: .4rem; } .coll-text p { margin: 0 0 .8rem; opacity: .85; }
.coll-count { font-size: .85rem; font-weight: 600; border-bottom: 1.5px solid currentColor; }
.coll-dark { background: var(--ink); color: #fff; } .coll-stone { background: var(--stone); color: var(--ink); } .coll-light { background: var(--panel); color: var(--ink); }
.coll-hero { padding-block: clamp(2rem, 6vw, 5rem); } .coll-hero-in { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .coll-hero-in { grid-template-columns: 1.1fr .9fr; } }
.coll-hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .9; margin-bottom: 1.2rem; } .coll-hero .lead { color: inherit; opacity: .85; margin-bottom: 1.5rem; }
.coll-hero .crumbs { color: inherit; opacity: .8; }
.coll-hero-media { aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
.coll-hero .btn-accent:hover { background: #fff; color: var(--ink); }

/* ---------- Novedades (lookbook) ---------- */
.lookbook { display: grid; }
.look { display: grid; }
.look-dark { background: var(--ink); color: #fff; } .look-stone { background: var(--stone); color: var(--ink); } .look-light { background: var(--panel); color: var(--ink); }
.look-media { display: block; padding: clamp(1.5rem, 5vw, 4rem); aspect-ratio: 1; max-height: 78vh; margin-inline: auto; width: 100%; }
.look-media img { width: 100%; height: 100%; object-fit: cover; }
.look-text { padding: clamp(1.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; max-width: 40rem; }
.look-kicker { font-size: .9rem; opacity: .8; margin-bottom: 1rem; }
.look-text h2 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: .9; margin-bottom: 1.2rem; }
.look-price { font: 800 1.6rem var(--f-head); }
.look-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.look-stone .btn-line-inv:hover, .look-light .btn-line-inv:hover { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .look { grid-template-columns: 1fr 1fr; min-height: 80vh; } .look-flip .look-media { order: 2; } .look-text { padding-left: clamp(2rem, 6vw, 6rem); } .look-flip .look-text { margin-left: auto; } }

/* ---------- Catálogo ---------- */
.cat-layout { display: grid; gap: 1.5rem; padding-bottom: clamp(3rem, 8vw, 6rem); }
@media (min-width: 960px) { .cat-layout { grid-template-columns: 270px 1fr; gap: 3rem; align-items: start; } .filter-toggle { display: none; } .filters { position: sticky; top: calc(var(--header-h) + 1rem); } }
.count-pill:not(:empty) { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 .55em; font-size: .75rem; }
@media (max-width: 959px) { .filters { display: none; padding: 1rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-m); } .filters.is-open { display: block; } }
.cat-results .muted { margin-bottom: 1rem; }

/* ---------- Producto ---------- */
.pdp { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem); }
.pdp-grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } .pdp-info { position: sticky; top: calc(var(--header-h) + 1rem); } }
.gallery-main { background: var(--panel); border-radius: var(--r-l); aspect-ratio: 1 / 1.02; padding: 6%; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.thumb { width: 84px; aspect-ratio: 1; padding: 8px; background: var(--panel); border: 2px solid transparent; border-radius: var(--r-s); } .thumb.is-on { border-color: var(--ink); } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .6rem 0 .5rem; }
.pdp-info .badges { position: static; }
.pdp-sub { color: var(--stone-ink); } .pdp-sub a { text-decoration: none; border-bottom: 1px solid var(--line); }
.pdp-price { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; font: 800 clamp(1.6rem, 3vw, 2.1rem) var(--f-head); } .pdp-price .stock { font: 400 .9rem var(--f-body); }
.pdp-desc { max-width: 34rem; }
.pdp-cta { margin-block: 1rem; }
.cta-box { margin-block: 1.5rem; padding: 1.4rem; border: 1.5px solid var(--ink); border-radius: var(--r-m); }
.cta-box h2 { font-size: 1.5rem; margin-bottom: .5rem; letter-spacing: -.02em; } .cta-box p { color: var(--stone-ink); }
.pdp-details { padding-left: 1.1rem; color: var(--stone-ink); font-size: .95rem; }

/* ---------- Cesta ---------- */
.steps { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; flex-wrap: wrap; font-size: .9rem; color: var(--stone-ink); }
.steps li { display: flex; align-items: center; gap: .5rem; } .steps span { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.steps .is-on { color: var(--ink); font-weight: 600; } .steps .is-on span { background: var(--ink); color: #fff; border-color: var(--ink); } .steps .is-done span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cart-grid { display: grid; gap: 2rem; } @media (min-width: 960px) { .cart-grid { grid-template-columns: 1fr 380px; gap: 3.5rem; align-items: start; } }
.lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.line { display: grid; grid-template-columns: 92px 1fr auto; gap: .5rem 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 1px solid var(--line); }
.line-media { grid-row: span 2; aspect-ratio: 1; background: var(--panel); border-radius: var(--r-s); padding: 6px; overflow: hidden; } .line-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.line-name { font-size: 1.1rem; letter-spacing: -.01em; } .line-name a { text-decoration: none; } .line-info p { margin: .15rem 0 0; }
.line-tag { font-size: .8rem; color: var(--stone-ink); margin: .3rem 0 0; }
.line .qty { justify-self: start; } .line-total { font: 800 1.1rem var(--f-head); margin: 0; justify-self: end; } .line .link-btn { justify-self: end; }
@media (min-width: 640px) { .line { grid-template-columns: 110px 1fr auto 100px auto; } .line-media { grid-row: auto; } }
.summary { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 1.6rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.summary h2 { font-size: 1.5rem; margin-bottom: 1rem; } .summary dl { margin: 0 0 1.2rem; } .summary dl div { display: flex; justify-content: space-between; padding: .45rem 0; } .summary dt { color: var(--stone-ink); } .summary dd { margin: 0; font-weight: 600; }
.sum-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .9rem !important; font: 800 1.3rem var(--f-head); } .sum-total dt { color: var(--ink) !important; } .summary .btn { margin-bottom: .6rem; } .summary p { margin: .5rem 0 0; }
.form h2, .review h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.4rem; }
.rv-block { padding: 1.3rem 0; border-top: 1px solid var(--line); } .rv-block h3 { font: 700 1rem var(--f-body); letter-spacing: 0; display: flex; justify-content: space-between; margin-bottom: .6rem; }
.rv-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; } .rv-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; } .rv-th { aspect-ratio: 1; background: var(--panel); border-radius: var(--r-s); padding: 4px; overflow: hidden; } .rv-th img { width: 100%; height: 100%; object-fit: cover; } .rv-price { text-align: right; font-size: .9rem; }
.done { max-width: 44rem; } .done h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; } .done .btn-row { margin-block: 1.4rem; }
.msg summary { cursor: pointer; font-weight: 600; } .msg pre { white-space: pre-wrap; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 1rem; font: .85rem/1.5 ui-monospace, Menlo, monospace; }
.contact-grid { display: grid; gap: 3rem; } @media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr .8fr; } }
.contact-side { padding-top: 1rem; } .legal { max-width: 46rem; padding-block: clamp(2rem, 6vw, 5rem); } .legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.5rem; } .legal h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; letter-spacing: -.02em; }

/* ---------- Diálogos ---------- */
.dlg { border: 0; padding: 0; background: var(--bg); color: var(--ink); border-radius: var(--r-l); width: min(94vw, 34rem); max-height: 92vh; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55); }
.dlg::backdrop { background: rgba(17, 17, 17, .55); animation: fade .2s; } .dlg[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg-x { position: absolute; right: .7rem; top: .7rem; width: 44px; height: 44px; border: 0; background: var(--panel); border-radius: 50%; font-size: 1.5rem; line-height: 1; z-index: 2; }
.qa { display: grid; } @media (min-width: 560px) { .dlg-qa { width: min(94vw, 46rem); } .qa { grid-template-columns: 1fr 1fr; } }
.qa-media { background: var(--panel); padding: 12%; aspect-ratio: 1; } .qa-media img { width: 100%; height: 100%; object-fit: cover; } .qa-body { padding: 1.6rem; } .qa-body h2 { font-size: 1.6rem; margin: 0 2.5rem .4rem 0; }
.dlg-search { width: min(94vw, 44rem); margin-top: 8vh; } .srch { padding: 1.4rem; } .srch form { margin: 2.8rem 0 1rem; } .srch-results { display: grid; margin-bottom: 1rem; } .srch-hit { display: flex; justify-content: space-between; padding: .8rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; } .srch-hit:hover { color: var(--stone-ink); } .srch-all { padding: .8rem 0; font-weight: 600; } .srch-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.dlg-rev { width: min(94vw, 44rem); } .rev { padding: 1.6rem; overflow: auto; max-height: 90vh; } .rev h2 { font-size: 1.7rem; margin: 0 2.5rem 1.2rem 0; }
.rev-prev { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; } .rev-prev figure { margin: 0; flex: 1 1 170px; } .rev-prev img { border-radius: var(--r-s); background: var(--panel); width: 100%; } .rev-prev figcaption { font-size: .82rem; color: var(--stone-ink); margin-top: .3rem; }
.rev-list { margin: 0 0 1rem; } .rev-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); } .rev-list dt { color: var(--stone-ink); } .rev-list dd { margin: 0; font-weight: 600; text-align: right; } .rev-total { font: 800 1.2rem var(--f-head); }
.rev-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; z-index: 90; transform: translate(-50%, 140%); display: flex; gap: 1rem; align-items: center; max-width: min(92vw, 34rem); padding: .9rem 1.2rem; background: var(--ink); color: #fff; border-radius: var(--r-m); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); transition: transform .35s var(--ease); font-size: .95rem; }
.toast.is-on { transform: translate(-50%, 0); } .toast a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(3rem, 7vw, 5rem) 1.5rem; margin-top: clamp(2rem, 5vw, 4rem); }
.foot-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .18); } @media (min-width: 800px) { .foot-top { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot-brand p { color: #c7cad3; margin: 1rem 0; } .foot-social { display: flex; gap: .3rem; margin-left: -.5rem; }
.foot-nav { display: flex; flex-direction: column; gap: .15rem; } .foot-nav h2 { font: 600 .95rem var(--f-body); letter-spacing: 0; color: var(--stone); margin-bottom: .6rem; } .foot-nav a { text-decoration: none; padding: .3rem 0; color: #e8e9ee; } .foot-nav a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .85rem; color: #aab0bf; } .foot-bottom p { margin: 0; }
.site-footer :focus-visible { outline-color: #fff; }

/* ==========================================================================
   PERSONALIZADOR
   ========================================================================== */
.cz-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 2vw, 1.25rem); } @media (min-width: 760px) { .cz-picker { grid-template-columns: repeat(5, 1fr); } }
.pick { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: .6rem .6rem 1rem; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-m); transition: border-color .2s, transform .25s var(--ease); }
.pick:hover { border-color: var(--ink); transform: translateY(-3px); }
.pick-media { aspect-ratio: 1; background: var(--panel); border-radius: var(--r-s); padding: 8%; display: block; } .pick-name { font: 800 1.2rem var(--f-head); padding-inline: .4rem; letter-spacing: -.02em; } .pick-price { font-size: .85rem; color: var(--stone-ink); padding-inline: .4rem; }
.cz-app { display: grid; gap: clamp(1.25rem, 3vw, 3rem); align-items: start; } @media (min-width: 940px) { .cz-app { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); } .cz-stagecol { position: sticky; top: calc(var(--header-h) + .75rem); } }
.cz-stagebar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; } .cz-title { font: 800 1.15rem var(--f-head); margin-right: auto; letter-spacing: -.02em; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r-s); overflow: hidden; background: #fff; } .seg button { min-width: 44px; min-height: 44px; padding: 0 .9rem; border: 0; background: none; font-weight: 600; } .seg button + button { border-left: 1.5px solid var(--ink); } .seg .is-on { background: var(--ink); color: #fff; }
.cz-stage { --u: 1px; --ar: 1; position: relative; width: min(100%, calc(72vh * var(--ar)), 640px); margin-inline: auto; background: var(--panel); border-radius: var(--r-l); user-select: none; -webkit-user-select: none; }
.cz-mock { position: absolute; inset: 0; pointer-events: none; } .cz-mock svg { width: 100%; height: 100%; }
.cz-area { position: absolute; border: 1.5px dashed var(--accent); }
.cz-area.is-circle, .cz-area.is-circle .cz-clip { border-radius: 50%; }
.cz-clip { position: absolute; inset: 0; overflow: hidden; }
.cz-stage[data-type="mug"] .cz-clip::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.3), transparent 20%, transparent 80%, rgba(0,0,0,.3)); }
.cz-area-tag { position: absolute; left: 0; bottom: 100%; margin-bottom: 4px; font-size: .7rem; line-height: 1; color: var(--stone-ink); white-space: nowrap; pointer-events: none; }
.cz-el { position: absolute; cursor: grab; touch-action: none; line-height: 1.1; white-space: pre; width: max-content; max-width: none; }
.cz-image, .cz-shape { width: auto; } .cz-text { min-width: 1ch; }
.cz-el:focus-visible { outline-offset: 2px; }
.cz-sel { position: absolute; z-index: 5; outline: 1.5px solid var(--ink); cursor: move; touch-action: none; }
.cz-sel .h { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; touch-action: none; padding: 0; }
.cz-sel .h::after { content: ''; position: absolute; inset: -14px; }
.h-se { right: -9px; bottom: -9px; cursor: nwse-resize; } .h-rot { left: 50%; top: -34px; margin-left: -8px; cursor: grab; } .h-rot::before { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 18px; background: var(--ink); }
.h-del { left: -11px; top: -11px; width: 22px !important; height: 22px !important; background: var(--accent) !important; color: var(--ink); font-size: 1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.cz-guide { position: absolute; background: var(--accent); pointer-events: none; z-index: 4; } .cz-guide-v { left: 50%; top: -8px; bottom: -8px; width: 1px; } .cz-guide-h { top: 50%; left: -8px; right: -8px; height: 1px; }
.cz-hint { font-size: .85rem; color: var(--stone-ink); max-width: 640px; margin: .8rem auto 0; }
.cz-panel { min-width: 0; }
.tabs { display: flex; border-bottom: 1.5px solid var(--line); overflow-x: auto; margin-bottom: 1.2rem; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; min-height: 48px; padding: 0 1rem; border: 0; background: none; font-weight: 600; color: var(--stone-ink); border-bottom: 3px solid transparent; margin-bottom: -1.5px; } .tabs [aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-bottom: 1rem; } .tool-grid .btn:first-child { grid-column: 1 / -1; }
.drop { display: grid; gap: .3rem; place-items: center; text-align: center; padding: 2rem 1rem; margin-bottom: 1rem; border: 2px dashed var(--stone); border-radius: var(--r-m); background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; } .drop:hover, .drop.is-over, .drop:focus-within { border-color: var(--accent); background: #fff5f5; } .drop span { color: var(--stone-ink); font-size: .9rem; }
.shape-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; } .shape-btn { display: grid; gap: .3rem; place-items: center; padding: .7rem .2rem; min-height: 76px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-s); font-size: .72rem; } .shape-btn:hover { border-color: var(--ink); } .shape-btn svg { width: 28px; height: 28px; overflow: visible; }
.props { margin-top: 1.4rem; padding: 1.2rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-m); } .props-h { font-size: 1.05rem; margin-bottom: 1rem; letter-spacing: -.01em; } .props-empty { margin: 0; }
.props input[type=range] { width: 100%; accent-color: var(--ink); height: 32px; } .props label output { float: right; color: var(--stone-ink); font-weight: 400; }
.font-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; } .font-btn { min-height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-s); font-size: 1rem; } .font-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.layers { list-style: none; margin: 0; padding: 0; } .layers li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); } .layers li.is-on { background: #fff0f0; } .layer-name { flex: 1; min-height: 46px; text-align: left; background: none; border: 0; padding: 0 .5rem; font-weight: 500; } .layer-btns button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.1rem; }
.cz-buy { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1.5px solid var(--ink); } .cz-buy-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; } .cz-buy-row strong { font: 800 1.4rem var(--f-head); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } ::view-transition-old(root) { animation: 140ms ease-out both vt-out; } ::view-transition-new(root) { animation: 260ms var(--ease) both vt-in; } }
@keyframes vt-out { to { opacity: 0; } } @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
@media print { .site-header, .site-footer, .toast { display: none; } }
