/* DOK1.shop - estilo de la tienda
   Idea: sticker de dibujo animado. Contornos negros gruesos y sombras duras, como el logo.
   El color de acento cambia con el selector de color de la barra superior. */

@font-face {
  font-family: 'Bagel Fat One';
  src: url('../fonts/bagel-fat-one-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bagel Fat One';
  src: url('../fonts/bagel-fat-one-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #000;
  --paper: #fff;
  --banana: #FFD93B;
  --bubble: #FF5FA8;
  --sky: #52C7FF;
  --lime: #B8F23F;
  --grape: #9B7BFF;
  --accent: #FFD93B;
  --pop: #FF5FA8;
  --btn-shadow: var(--accent);
  --line: 3px;
  --font-display: 'Bagel Fat One', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .pill:focus-within { outline-offset: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.35em; min-height: 48px;
  background: var(--paper); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700; text-decoration: none; line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--btn-shadow); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn-primary:active { box-shadow: 1px 1px 0 var(--btn-shadow); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn-small { min-height: 40px; padding: .5em 1em; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-small:hover { box-shadow: 5px 5px 0 var(--ink); }

/* ---------- Barra superior y selector de color ---------- */
.announce { background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500; }
.announce-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding-block: 6px; }
.swatches { display: flex; align-items: center; gap: 8px; flex: none; }
.swatches-label { margin-right: 4px; font-weight: 600; }
.swatch {
  width: 24px; height: 24px; padding: 0; border-radius: 50%;
  background: var(--c); border: 2px solid #fff;
  transition: transform .12s ease;
}
.swatch:hover { transform: scale(1.18); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px #fff; }
.swatch:focus-visible { outline-color: #fff; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: var(--line) solid var(--ink); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: .45em .9em; border-radius: 999px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--accent); }
.cart-btn { position: relative; padding-right: 1.1em; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .4em;
  background: var(--accent); border: 2px solid var(--ink); border-radius: 999px;
  font-size: .85rem; font-weight: 800;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.45) rotate(-8deg); } }

/* ---------- Hero ---------- */
.hero { background: var(--accent); border-bottom: var(--line) solid var(--ink); overflow: hidden; --btn-shadow: #fff; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding-block: clamp(36px, 7vw, 84px); }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); line-height: .96; text-wrap: balance; }
.lead { margin-top: 20px; max-width: 34ch; font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; line-height: 1.45; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { position: relative; padding: 40px 56px 48px; }
.logo-card {
  background: #fff; border: var(--line) solid var(--ink); border-radius: 32px;
  box-shadow: 10px 10px 0 var(--ink); padding: clamp(14px, 3vw, 30px);
  transform: rotate(-3deg);
}
.logo-card img { width: 100%; height: auto; }
.float {
  position: absolute; width: clamp(72px, 8.5vw, 104px); aspect-ratio: 1;
  border: var(--line) solid var(--ink); border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: 5px 5px 0 var(--ink);
}
.float img { width: 100%; height: 100%; object-fit: cover; }
.float:empty { display: none; }
.f1 { top: 4px; right: 0; transform: rotate(9deg); }
.f2 { bottom: 8px; left: 0; transform: rotate(-8deg); }

/* ---------- Cinta con texto que se mueve ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; border-bottom: var(--line) solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item { display: flex; align-items: center; gap: 22px; padding: 14px 0 14px 22px; font: 400 clamp(1.25rem, 2.6vw, 1.8rem)/1 var(--font-display); white-space: nowrap; }
.marquee-item .ico { width: .8em; height: .8em; fill: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tienda ---------- */
.shop { padding-block: clamp(40px, 6vw, 72px); }
.shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.shop-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px; }
.search, .sort { position: relative; display: block; }
.search .ico { position: absolute; left: 14px; top: 50%; translate: 0 -50%; pointer-events: none; }
.search input, .sort select, .field input, .field textarea, .field select, .row input {
  width: 100%; min-height: 48px; padding: .6em 1em; background: #fff;
  border: var(--line) solid var(--ink); border-radius: 16px;
}
.search input { padding-left: 2.7em; border-radius: 999px; min-width: min(280px, 100%); }
.sort select { border-radius: 999px; padding-right: 2.2em; appearance: none; font-weight: 600;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1em center; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; min-height: 42px; padding: .35em 1.05em;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 999px; font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease;
}
.chip small { font-weight: 600; opacity: .6; font-size: .85em; }
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); box-shadow: 3px 3px 0 var(--ink); }
.result-note { margin-top: 18px; min-height: 1.5em; font-weight: 500; opacity: .75; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 30px 26px; margin-top: 8px; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: var(--line) solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink); transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-bottom: var(--line) solid var(--ink); background: #f2f2f2; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.card-media img + img { opacity: 0; }
.card:hover .card-media img + img, .card:focus-within .card-media img + img { opacity: 1; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: .2em .75em;
  background: var(--pop); border: var(--line) solid var(--ink); border-radius: 999px;
  font-size: .82rem; font-weight: 800; line-height: 1.5; transform: rotate(-4deg);
}
.badge-nuevo { background: var(--lime); }
.badge-oferta { background: var(--bubble); }
.badge-ultimas { background: var(--sky); }
.badge-agotado { background: var(--ink); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.card-title { margin: 0; font: 650 1.05rem/1.25 var(--font-body); }
.card-title button { padding: 0; background: none; border: 0; text-align: left; font-weight: inherit; }
.card-title button::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; }
.price-now { font: 400 1.4rem/1 var(--font-display); }
.price-was { font-size: .95rem; text-decoration: line-through; opacity: .55; }
.card .btn { position: relative; z-index: 2; }

.empty { margin-top: 28px; padding: clamp(28px, 6vw, 56px); text-align: center; border: var(--line) dashed var(--ink); border-radius: 26px; background: var(--accent); }
.empty h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.empty p { margin: 10px auto 20px; max-width: 42ch; }

/* ---------- Sobre nosotros / cómo comprar ---------- */
.about { background: var(--pop); border-block: var(--line) solid var(--ink); }
.about-in { padding-block: clamp(44px, 8vw, 96px); text-align: center; }
.about h2 { max-width: 18ch; margin-inline: auto; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1; text-wrap: balance; }
.about p { max-width: 46ch; margin: 22px auto 0; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 500; }

.how { padding-block: clamp(40px, 6vw, 72px); }
.how > h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.steps li { padding: 22px; background: #fff; border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.steps li:nth-child(1) { --sn: var(--banana); }
.steps li:nth-child(2) { --sn: var(--sky); }
.steps li:nth-child(3) { --sn: var(--lime); }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; background: var(--sn); border: var(--line) solid var(--ink); border-radius: 50%; font: 400 1.4rem/1 var(--font-display); }
.steps h3 { font-size: 1.5rem; }
.steps p { margin-top: 6px; }
.info { margin-top: 28px; border: var(--line) solid var(--ink); border-radius: 22px; background: #fff; }
.info summary { padding: 16px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.info summary::-webkit-details-marker { display: none; }
.info summary::after { content: '+'; font: 400 1.6rem/1 var(--font-display); }
.info[open] summary::after { content: '–'; }
.info p { padding: 0 22px 20px; max-width: 70ch; white-space: pre-line; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #fff; }
.footer-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; padding-block: 36px; }
.footer-logo { width: 190px; padding: 8px 12px; background: #fff; border: var(--line) solid #fff; border-radius: 18px; transform: rotate(-2deg); }
.footer-logo img { width: 100%; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .9rem; opacity: .75; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Ventanas (producto, changuito, compra) ---------- */
dialog { color: var(--ink); padding: 0; border: var(--line) solid var(--ink); background: #fff; }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
body:has(dialog[open]) { overflow: hidden; }
.close {
  position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; background: #fff; border: var(--line) solid var(--ink); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.close:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.close .ico { width: 18px; height: 18px; }

.modal { width: min(1000px, 100vw - 24px); max-height: calc(100dvh - 24px); margin: auto; overflow: auto; border-radius: 28px; box-shadow: 10px 10px 0 var(--ink); }
.modal[open] { animation: pop-in .22s ease-out; }
.modal-wide { width: min(1080px, 100vw - 24px); }
@keyframes pop-in { from { transform: translateY(18px) scale(.97); opacity: 0; } }

.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.pd-gallery { padding: 18px; border-right: var(--line) solid var(--ink); background: var(--accent); }
.pd-main { aspect-ratio: 1; border: var(--line) solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pd-thumb { width: 64px; height: 64px; padding: 0; background: #fff; border: var(--line) solid var(--ink); border-radius: 14px; overflow: hidden; opacity: .75; }
.pd-thumb[aria-current="true"] { opacity: 1; box-shadow: 3px 3px 0 var(--ink); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: flex; flex-direction: column; gap: 16px; padding: 28px 28px 30px; }
.pd-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.02; padding-right: 48px; }
.pd-cat { font-weight: 600; opacity: .65; }
.pd-info .price-now { font-size: 2rem; }
.pd-desc { white-space: pre-line; max-width: 52ch; }
.pd-opt legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.pd-opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: block; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span { display: block; padding: .4em 1em; min-height: 42px; line-height: 1.8; background: #fff; border: var(--line) solid var(--ink); border-radius: 999px; font-weight: 700; }
.pill input:checked + span { background: var(--accent); box-shadow: 3px 3px 0 var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.pd-error { min-height: 1.4em; font-weight: 700; color: #b00020; }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; }
.pd-actions .btn { flex: 1 1 200px; }

.qty { display: inline-flex; align-items: center; border: var(--line) solid var(--ink); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 40px; padding: 0; background: none; border: 0; border-radius: 50%; font: 700 1.3rem/1 var(--font-body); }
.qty button:hover { background: var(--accent); }
.qty output { min-width: 2ch; text-align: center; font-weight: 800; }

/* Changuito (cajón lateral) */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); height: 100dvh; max-height: 100dvh;
  border-width: 0 0 0 var(--line); border-radius: 28px 0 0 28px; flex-direction: column;
}
.drawer[open] { display: flex; animation: slide-in .26s ease-out; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: var(--line) solid var(--ink); background: var(--accent); }
.drawer-head h2 { font-size: 1.8rem; }
.drawer-head .close { position: static; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px 22px; border-top: var(--line) solid var(--ink); background: #fff; }
.drawer-foot:empty { display: none; }
.cart-empty { display: grid; place-items: center; gap: 18px; padding: 48px 12px; text-align: center; }
.cart-empty p { max-width: 28ch; font-size: 1.1rem; font-weight: 500; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 2px dashed #bbb; }
.line:last-child { border-bottom: 0; }
.line-img { width: 76px; height: 76px; border: var(--line) solid var(--ink); border-radius: 16px; overflow: hidden; background: #f2f2f2; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font-weight: 650; line-height: 1.25; }
.line-opts { font-size: .92rem; opacity: .7; }
.line-warn { margin-top: 4px; font-size: .9rem; font-weight: 700; color: #b00020; }
.line-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.line-price { font: 400 1.15rem/1 var(--font-display); text-align: right; }
.line-remove { margin-top: 8px; padding: 0; background: none; border: 0; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.line .qty button { width: 34px; height: 34px; }
.sum { display: grid; gap: 6px; margin-bottom: 16px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { padding-top: 10px; margin-top: 4px; border-top: 2px solid var(--ink); font: 400 1.5rem/1 var(--font-display); }
.sum small { font-size: .88rem; opacity: .7; }

/* Compra */
.co { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.co-main { padding: 28px; }
.co-main h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); padding-right: 48px; }
.co-side { padding: 28px; background: var(--accent); border-left: var(--line) solid var(--ink); }
.co-side h3 { font-size: 1.4rem; margin-bottom: 14px; }
.co-lines { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.co-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.co-lines .line-img { width: 52px; height: 52px; border-radius: 12px; }
.co-lines small { display: block; opacity: .7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 20px; }
.field { display: grid; gap: 6px; font-weight: 650; }
.field.full { grid-column: 1 / -1; }
.field textarea { min-height: 84px; resize: vertical; border-radius: 16px; }
.field .hint { font-weight: 400; font-size: .88rem; opacity: .7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay { margin: 22px 0 0; padding: 0; border: 0; display: grid; gap: 10px; }
.pay legend { padding: 0; margin-bottom: 10px; font: 400 1.35rem/1.1 var(--font-display); }
.pay-opt { position: relative; display: block; }
.pay-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pay-opt > span { display: block; padding: 12px 16px; background: #fff; border: var(--line) solid var(--ink); border-radius: 18px; }
.pay-opt strong { display: block; }
.pay-opt small { opacity: .75; }
.pay-opt input:checked + span { background: var(--accent); box-shadow: 4px 4px 0 var(--ink); }
.pay-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.co-actions { margin-top: 22px; }
.co-error { margin-top: 12px; min-height: 1.4em; font-weight: 700; color: #b00020; }
#paypal-box { min-height: 52px; }
.co-done { padding: clamp(28px, 5vw, 52px); text-align: center; }
.co-done h2 { font-size: clamp(2rem, 4.5vw, 3rem); padding: 0; }
.co-done .big { margin: 12px auto 0; max-width: 46ch; font-size: 1.15rem; }
.order-no { display: inline-block; margin: 20px 0; padding: .35em 1em; background: var(--accent); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); font: 400 1.4rem/1.3 var(--font-display); }
.bank-box { margin: 0 auto 20px; max-width: 520px; padding: 18px 20px; text-align: left; background: #fff; border: var(--line) dashed var(--ink); border-radius: 20px; white-space: pre-line; font-weight: 600; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 200; translate: -50% 24px; max-width: min(92vw, 460px);
  padding: .8em 1.4em; background: var(--ink); color: #fff; border: var(--line) solid #fff; border-radius: 999px;
  font-weight: 650; text-align: center; pointer-events: none; outline: var(--line) solid var(--ink);
  opacity: 0; visibility: hidden; transition: translate .25s ease, opacity .25s ease, visibility 0s .25s;
}
.toast.show { translate: -50% 0; opacity: 1; visibility: visible; transition: translate .25s ease, opacity .25s ease; }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; order: -1; padding-top: 28px; }
  .lead { max-width: 40ch; }
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .pd, .co { grid-template-columns: 1fr; }
  .pd-gallery { border-right: 0; border-bottom: var(--line) solid var(--ink); }
  .co-side { border-left: 0; border-top: var(--line) solid var(--ink); order: -1; }
  .footer-in { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .swatches-label { display: none; }
  .brand img { height: 44px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .card { border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .card-body { padding: 10px 11px 12px; gap: 8px; }
  .card-title { font-size: .95rem; }
  .price-now { font-size: 1.2rem; }
  .badge { top: 8px; left: 8px; font-size: .74rem; }
  .btn { padding-inline: 1.1em; }
  .card .btn { min-height: 42px; font-size: .9rem; padding-inline: .6em; }
  .search { flex: 1 1 100%; }
  .search input { min-width: 0; }
  .sort { flex: 1 1 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .co-main, .co-side, .pd-info { padding: 20px; }
  .modal { width: 100vw; max-height: 100dvh; border-radius: 0; border-width: 0; box-shadow: none; }
  .drawer { border-radius: 0; }
  .float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .modal[open], .drawer[open], .cart-count.bump { animation: none; }
  * { transition-duration: 0s !important; }
}
